essruntask command
Runs specific tasks on a node.
Synopsis
essruntask { -N NodeList }
[ --prefix Prefix ] [ --suffix Suffix ] --task Task [ --mode MODE]
[ -h | --help ]
Availability
Available with IBM Storage Scale System.
Description
The essruntask command can be used to run specific tasks on a node.
Parameters
- -N NodeList
- Specifies a comma separated list of nodes to get the node details.
- --prefix Prefix
- Provides a host name prefix. Use = between
--prefixand value if the value starts with a -. - --suffix Suffix
- Provides a host name suffix. Use = between
--suffixand value if the value starts with-. - --task Task
- Provides the task with options to run on the NodeList or
NodeGroup. The allowed values are
scsi,scsi-encl,scsi-disk,scsi-sg,ping,ssh,mmlsenclosure-all,mmlsenclosure-all-not-ok,mmlsenclosure-all-L,mmlsfirmware-adapt,mmlsfirmware-encl,mmlsfirmware-drv, andmmlspdisk-not-ok. - --mode Mode
- Provides the run mode of the task. The default is
local. the allowed values arelocalandota. - -h | --help
- Displays usage information about this command and exits.
Exit status
- 0
- Successful completion.
- nonzero
- A failure has occurred.
Security
You must have root authority to run the essruntask command.
Example
This example shows how to run the
scsi task on the gssio1
node.# essruntask -N gssio1 --task scsi-sgA sample output is as
follows:2018-02-28T03:35:35.540298 Generating node list for the test...
2018-02-28T03:35:36.202471 nodelist: gssio1
Running task lsscsi -sg node gssio1
Success: Running task lsscsi -sg on node gssio1
gssio1: [0:0:0:0] storage IBM AL14SEB060N 6506 - /dev/sg1 -
gssio1: [0:0:1:0] storage IBM AL14SEB060N 6506 - /dev/sg2 -
gssio1: [0:0:2:0] enclosu IBM VSBPD14M1 6GSAS 03 - /dev/sg5 -
gssio1: [0:0:3:0] cd/dvd IBM. RMBO0140572 IP02 /dev/sr0 /dev/sg6 -
gssio1: [0:0:4:0] enclosu IBM PSBPD14M1 6GSAS 1508 - /dev/sg7 -
gssio1: [0:0:5:0] enclosu IBM PSBPD14M1 6GSAS 1508 - /dev/sg8 -
gssio1: [0:1:0:0] no dev IBM IPR-10 68C38500 - /dev/sg3 -
gssio1: [0:2:0:0] disk IBM IPR-10 68C38500 /dev/sda /dev/sg4 571GB
gssio1: [0:3:0:0] no dev IBM 57DC001SISIOA 0150 - /dev/sg0 -
gssio1: [2:0:0:0] disk IBM MTFDJAK400MBS 502E /dev/sdb /dev/sg9 400GB
gssio1: [2:0:1:0] disk IBM MTFDJAK400MBS 502E /dev/sdc /dev/sg10 400GB
gssio1: [2:0:2:0] disk IBM MTFDJAK400MBS 502E /dev/sdd /dev/sg11 400GB
gssio1: [2:0:3:0] disk IBM MTFDJAK400MBS 502E /dev/sde /dev/sg12 400GB
gssio1: [2:0:4:0] disk IBM MTFDJAK400MBS 502E /dev/sdf /dev/sg13 400GB
....
....Location
/opt/ibm/ess/tools/bin