Name
rpower - Controls remote power for Cluster Systems Management (CSM) nodes.
Synopsis
rpower [-a] [-h] [-n host[,host...]] [-N Node_group[,Node_group...]] [-v | -V] on | off | reboot | query | resetsp_hcp | resetsp_host
Description
The rpower command allows remote power control for the nodes in a cluster. The command uses the CSM database to determine the nodes and their service processor information. The -a option causes the rpower command to run on all of the nodes defined in the cluster. The -n and -N options cause the command to run on the set of nodes defined by these options. In addition to these options, you can define an environment variable, RPOWER_LIST, which is the name of a file that contains a list of nodes to manage. The host names used must be the names specified when defining the nodes in the CSM database.
The query option prints an on or off status response for each of the nodes specified. The on, off, reboot, and resetsp options print the node name with the command specified and the return code of the command.
Options
Environment
Exit Status
Security
While the rpower command currently only supports the Netfinity hardware, the architecture is designed to allow future enhancements for other hardware support. For Netfinity hardware, the rpower command requires that the systemid command be run first, in order to establish the user ID and password that is necessary to access the remote hardware.
Examples
rpower -n clsn04 queryThe output is:
clsn04 on
rpower -a queryThe output is similar to:
clsn05.ppd.pok.ibm.com on clsn04.ppd.pok.ibm.com on clsn03.ppd.pok.ibm.com on clsn02.ppd.pok.ibm.com on clsn01.ppd.pok.ibm.com on
rpower -n clsn04 offThe output is:
clsn04 off complete rc=0
rpower -n clsn04 on
nodegrp -p testThe output is similar to:
clsn01.ppd.pok.ibm.com clsn02.ppd.pok.ibm.com clsn05.ppd.pok.ibm.com
rpower -N test queryThe output is similar to:
clsn01.ppd.pok.ibm.com on clsn02.ppd.pok.ibm.com on clsn05.ppd.pok.ibm.com on
Files
See Also
Author
John Simpson - cluster@us.ibm.com