| setres | (Set Reservation) | 
|  | This command is deprecated. Use mrsvctl -c instead. | 
setres [arguments] resourceexpression
ARGUMENTS:
               
[ -a <ACCOUNT_LIST ]
               
[ -b <SUBTYPE ]
               
[ -c <CHARGE_SPEC> ]
               
[ -d <DURATION> ]
               
[ -e <ENDTIME> ]
               
[ -E ]   // EXCLUSIVE
               
[ -f <FEATURE_LIST> ]
               
[ -g <GROUP_LIST> ]
               
[ -n <NAME> ]
               
[ -o <OWNER> ]
               
[ -p <PARTITION> ]
               
[ -q <QUEUE_LIST> ]   // (ie CLASS_LIST)
               
[ -Q <QOSLIST> ]
               
[ -r <RESOURCE_DESCRIPTION> ]
               
[ -R <RESERVATION_PROFILE> ]
               
[ -s <STARTTIME> ]
               
[ -T <TRIGGER> ]
               
[ -u <USER_LIST> ]
               
[ -x <FLAGS> ]
| Name | Format | Default | Description | 
| ACCOUNT_LIST | <STRING>[:<STRING>]... | --- | list of accounts that will be allowed access to the reserved resources | 
| SUBTYPE | <STRING> | --- | specify the subtype for a reservation | 
| CHARGE_SPEC | <ACCOUNT>[,<GROUP>[,<USER>]] | --- | specifies which credentials will be accountable for unused resources dedicated to the reservation | 
| CLASS_LIST | <STRING>[:<STRING>]... | --- | list of classes that will be allowed access to the reserved resource | 
| DURATION | [[[DD:]HH:]MM:]SS | INFINITY | duration of the reservation (not needed if ENDTIME is specified) | 
| ENDTIME | [HH[:MM[:SS]]][_MO[/DD[/YY]]] or +[[[DD:]HH:]MM:]SS | INFINITY | absolute or relative time reservation will end (not required if Duration specified) | 
| EXCLUSIVE | N/A | N/A | requests exclusive access to resources | 
| FEATURE_LIST | <STRING>[:<STRING>]... | --- | list of node features which must be possessed by the reserved resources | 
| FLAGS | <STRING>[:<STRING>]... | --- | list of reservation flags (See Managing Reservations for details) | 
| GROUP_LIST | <STRING>[:<STRING>]... | --- | list of groups that will be allowed access to the reserved resources | 
| NAME | <STRING> | name set to first name listed in ACL or SYSTEM if no ACL specified | name for new reservation | 
| OWNER | <CREDTYPE>:<CREDID> where CREDTYPE is one of user, group, acct, class, or qos | N/A | specifies which credential is granted reservation ownership privileges | 
| PARTITION | <STRING> | [ANY] | partition in which resources must be located | 
| QOS_LIST | <STRING>[:<STRING>]... | --- | list of QOS's that will be allowed access to the reserved resource | 
| RESERVATION_ PROFILE | existing reservation profile ID | N/A | requests that default reservation attributes be loaded from the specified reservation profile (see RSVPROFILE) | 
| RESOURCE_ DESCRIPTION | colon delimited list of zero or more of the following <ATTR>=<VALUE>
pairs PROCS=<INTEGER> MEM=<INTEGER> DISK=<INTEGER> SWAP=<INTEGER> | PROCS=-1 | specifies the resources to be reserved per task. (-1 indicates all resources on node) | 
| RESOURCE_ EXPRESSION | ALL or TASKS{==|>=}<TASKCOUNT> or <HOST_REGEX> | Required Field. No Default | specifies the tasks to reserve.  ALL indicates all resources available
should be reserved. Note: If ALL or a host expression is specified, Moab will apply the reservation regardless of existing reservations and exclusive issues. If TASKS is used, Moab will only allocate accessible resources. | 
| STARTTIME | [HH[:MM[:SS]]][_MO[/DD[/YY]]] or +[[[DD:]HH:]MM:]SS | NOW | absolute or relative time reservation will start | 
| TRIGGER | <STRING> | N/A | comma delimited reservation trigger list following format described in the trigger format section of the reservation configuration overview. | 
| USER_LIST | <STRING>[:<STRING>]... | --- | list of users that will be allowed access to the reserved resources | 
Reservations can be viewed using the showres command and can be released using the releaseres command.
> setres -u john:mary -s +24:00:00 -d 8:00:00 TASKS==2 reservation 'john.1' created on 2 nodes (2 tasks) node001:1 node005:1
> setres -s 8:00:00_06/20 -e 17:00:00_06/22 ALL reservation 'system.1' created on 8 nodes (8 tasks) node001:1 node002:1 node003:1 node004:1 node005:1 node006:1 node007:1 node008:1
> setres -r PROCS=1:MEM=512 -g staff -l interactive 'node00[3-6]' reservation 'staff.1' created on 4 nodes (4 tasks) node003:1 node004:1 node005:1 node006:1