=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 CEC (with HMC) specific: B I [B|B|B|B|B] =head2 LPAR (with HMC) specific: B I [B|B|B|B|B|B|B|B|B] =head2 CEC (using Direct FSP Management) specific: B I [B|B|B] [B<-T tooltype>] B I [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 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'(the suspend package is not needed on RHEL) 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. For some of xCAT hardware such as NeXtScale, it may need to enable S3 before using B. The following steps can be used to enable S3. Please reference L for "pasu" usage. [root@xcatmn home]# echo "set Power.S3Enable Enable" > power-setting [root@xcatmn home]# pasu -b power-setting node01 node01: Batch mode start. node01: [set Power.S3Enable Enable] node01: Power.S3Enable=Enable node01: node01: Beginning intermediate batch update. node01: Waiting for command completion status. node01: Command completed successfully. node01: Completed intermediate batch update. node01: Batch mode completed successfully. [root@xcatmn home]# pasu node01 show all|grep -i s3 node01: IMM.Community_HostIPAddress3.1= node01: IMM.Community_HostIPAddress3.2= node01: IMM.Community_HostIPAddress3.3= node01: IMM.DNS_IP_Address3=0.0.0.0 node01: IMM.IPv6DNS_IP_Address3=:: node01: Power.S3Enable=Enable =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