=head1 NAME B - remote power control of nodes =head1 SYNOPSIS B I [B<--nodeps>] [B|B|B|B|B|B|B|B] [B<-m> I==I [B<-m> I=~I]] [B<-t> I] [B<-r> I] B [B<-h>|B<--help>|B<-v>|B<--version>] =head2 BMC (using IPMI) specific: B I [B|B|B|B|B|B|B|B|B|B [B<-w> I] [B<-o>] [B<-r>]] =head2 PPC (with IVM or HMC) specific: B I [B<--nodeps>] {B} =head2 PPC (with HMC) specific: B I [B] B I [B] =head2 CEC (using Direct FSP Management) specific: B I [B|B|B] [B<-T tooltype>] B I [B|B|B|B] =head2 Frame (using Direct FSP Management) specific: B I [B|B|B|B|B] =head2 LPAR (using Direct FSP Management) specific: B I [B|B|B|B|B|B|B|B] =head2 Blade (using Direct FSP Management) specific: B I [B|B|B|B|B|B] =head2 Blade specific: B I [B|B] =head2 zVM specific: B I [B|B|B|B|B] =head1 DESCRIPTION B controls the power for a single or range of nodes, via the out-of-band path. =head1 OPTIONS =over 4 =item B Turn power on. =item B Turn power on to standby state =item B<-T> The value could be B or B. The tooltype value B is for xCAT and B is for CNM. The default value is "B". For cold start in the large cluster, it will save a lot of time if the admins use "B I B B<-T> B" to power on all the CECs from the management node through the B connections. =item B Turn CEC to low power state (state EOCT). This is a disruptive operation which requires the CEC to be powered off prior to entering low power mode. And we can use power off command to get out of lowepower state. =item B Places the rack in the rack standby state. It requires that all CECs and DE be powered off before it will run. =item B Exit Rack standby will be the default state that a rack goes into when power is initially applied to the rack. It simply moves the BPA from Rack standby to both bpa's in standby state. =item B Reboot the service processor. If there are primary and secondary FSPs/BPAs of one cec/frame, it will reboot them almost at the sametime. =item B Attempt to request clean shutdown of OS (may not detect failures in completing command) For stateless osimage, the 'acpid' package needs to be added to the .pkglist configuration file for the stateless osimage to enable the 'softoff' function. =item B Turn power off. =item B Suspend the target nodes execution. The B action could be run together with B<-w> B<-o> B<-r>. Refer to the following steps to enable the B function: 1. Add the 'acpid' and 'suspend' package to the .pkglist of your osimage so that the required package could be installed correctly to your target system. 2. Add two configuration files for the base function: /etc/pm/config.d/suspend S2RAM_OPTS="--force --vbe_save --vbe_post --vbe_mode" /etc/acpi/events/suspend_event event=button/sleep.* action=/usr/sbin/pm-suspend 3. Add the hook files for your specific applications which need specific action before or after the suspend action. Refer to the 'pm-utils' package for how to create the specific hook files. =item B Wake up the target nodes which is in B state. Don't try to run B against the 'on' state node, it would cause the node gets to 'off' state. =item B|B Print the current power state/status. =item B Send a hard reset. =item B If off, then power on. If on, then hard reset. This option is recommended over B. =item B Power off, then on. =item B Boot the node to open firmware console mode. =item B Boot the node to open firmware SMS menu mode. =item B<-m> I==I B<-m> I=~I Use one or multiple B<-m> flags to specify the node attributes and the expected status for the node installation monitoring and automatic retry mechanism. The operators ==, !=, =~ and !~ are valid. This flag must be used with -t flag. Note: if the "val" fields includes spaces or any other characters that will be parsed by shell, the "attrval" needs to be quoted. If the operator is "!~", the "attrval" needs to be quoted using single quote. =item B<--nodeps> Do not use dependency table (default is to use dependency table). Valid only with B for blade power method and B for hmc/fsp power method. =item B<-r> I specify the number of retries that the monitoring process will perform before declare the failure. The default value is 3. Setting the retrycount to 0 means only monitoring the os installation progress and will not re-initiate the installation if the node status has not been changed to the expected value after timeout. This flag must be used with -m flag. =item B<-t> I Specify the the timeout, in minutes, to wait for the expectedstatus specified by -m flag. This is a required flag if the -m flag is specified. Power off, then on. =item B<-w> I To set the I for the B action to wait for the success. =item B<-o> To specify that the target node will be power down if B action failed. =item B<-r> To specify that the target node will be reset if B action failed. =item B<-h>|B<--help> Prints out a brief usage message. =item B<-v>|B<--version> Display the version number. =back =head1 EXAMPLES =over 3 =item * rpower node4,node5 stat node4: on node5: off =item * rpower node5 on node5: on =back =head1 SEE ALSO L, L, L, L, L