2008-01-08 15:57:51 +00:00
=head1 NAME
2008-03-14 20:54:31 +00:00
B<rpower> - remote power control of nodes
2008-01-08 15:57:51 +00:00
=head1 SYNOPSIS
2011-04-01 02:35:39 +00:00
B<rpower> I<noderange> [B<--nodeps>] [B<on>|B<onstandby>|B<off>|B<suspend>|B<stat>|B<state>|B<reset>|B<boot>] [B<-m> I<table.column>==I<expectedstatus> [B<-m> I<table.column>=~I<expectedstatus>]] [B<-t> I<timeout>] [B<-r> I<retrycount>]
2008-01-08 15:57:51 +00:00
2008-03-14 20:54:31 +00:00
B<rpower> [B<-h>|B<--help>|B<-v>|B<--version>]
2008-01-08 15:57:51 +00:00
2013-01-31 06:31:30 +00:00
=head2 BMC (using IPMI) specific:
B<rpower> I<noderange> [B<on>|B<off>|B<softoff>|B<reset>|B<boot>|B<stat>|B<state>|B<status>|B<wake>|B<suspend> [B<-w> I<timeout>] [B<-o>] [B<-r>]]
2008-10-06 16:06:34 +00:00
=head2 PPC (with IVM or HMC) specific:
B<rpower> I<noderange> [B<--nodeps>] {B<of>}
2014-07-31 09:25:43 +00:00
=head2 CEC (with HMC) specific:
2009-03-05 03:21:20 +00:00
2014-07-31 09:25:43 +00:00
B<rpower> I<noderange> [B<on>|B<off>|B<reset>|B<boot>|B<onstandby>]
2009-03-05 03:21:20 +00:00
2014-07-31 09:25:43 +00:00
=head2 LPAR (with HMC) specific:
B<rpower> I<noderange> [B<on>|B<off>|B<stat>|B<state>|B<reset>|B<boot>|B<of>|B<sms>|B<softoff>]
2010-07-01 09:44:32 +00:00
2011-04-19 06:52:56 +00:00
=head2 CEC (using Direct FSP Management) specific:
2012-04-12 08:53:04 +00:00
B<rpower> I<noderange> [B<onstandby>|B<stat>|B<state>] [B<-T tooltype>]
2014-07-09 07:29:44 +00:00
B<rpower> I<noderange> [B<on>|B<off>|B<resetsp>]
2011-04-19 06:52:56 +00:00
=head2 Frame (using Direct FSP Management) specific:
2011-07-27 09:00:35 +00:00
B<rpower> I<noderange> [B<rackstandby>|B<exit_rackstandby>|B<stat>|B<state>|B<resetsp>]
2011-04-19 06:52:56 +00:00
2011-06-21 01:38:04 +00:00
=head2 LPAR (using Direct FSP Management) specific:
B<rpower> I<noderange> [B<on>|B<off>|B<stat>|B<state>|B<reset>|B<boot>|B<of>|B<sms>]
2013-04-17 15:10:41 +00:00
=head2 Blade (using Direct FSP Management) specific:
B<rpower> I<noderange> [B<on>|B<onstandby>|B<off>|B<stat>|B<state>|B<sms>]
2009-05-12 05:56:45 +00:00
=head2 Blade specific:
B<rpower> I<noderange> [B<cycle>|B<softoff>]
2011-12-09 18:21:13 +00:00
=head2 zVM specific:
B<rpower> I<noderange> [B<on>|B<off>|B<reset>|B<stat>|B<softoff>]
2008-01-08 15:57:51 +00:00
=head1 DESCRIPTION
2008-03-14 20:54:31 +00:00
B<rpower> controls the power for a single or range of nodes, via the out-of-band path.
2008-01-08 15:57:51 +00:00
=head1 OPTIONS
=over 4
=item B<on>
Turn power on.
2009-03-05 03:21:20 +00:00
=item B<onstandby>
Turn power on to standby state
2012-04-12 08:53:04 +00:00
=item B<-T>
The value could be B<lpar> or B<fnm>. The tooltype value B<lpar> is for xCAT and B<fnm> is for CNM. The default value is "B<lpar>". For cold start in the large cluster, it will save a lot of time if the admins use "B<rpower> I<noderange> B<onstandby> B<-T> B<fnm>" to power on all the CECs from the management node through the B<fnm> connections.
2011-04-19 06:52:56 +00:00
=item B<rackstandby>
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_rackstandby>
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.
2011-07-27 09:00:35 +00:00
=item B<resetsp>
Reboot the service processor. If there are primary and secondary FSPs/BPAs of one cec/frame, it will reboot them almost at the sametime.
2008-10-13 15:29:32 +00:00
=item B<softoff>
Attempt to request clean shutdown of OS (may not detect failures in completing command)
2013-01-31 06:31:30 +00:00
For stateless osimage, the 'acpid' package needs to be added to the .pkglist configuration file for the stateless osimage to enable the 'softoff' function.
2008-01-08 15:57:51 +00:00
=item B<off>
Turn power off.
2010-03-26 14:01:48 +00:00
=item B<suspend>
2013-01-31 06:31:30 +00:00
Suspend the target nodes execution.
The B<suspend> action could be run together with B<-w> B<-o> B<-r>.
Refer to the following steps to enable the B<suspend> function:
2013-11-13 20:14:36 +00:00
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.
2013-01-31 06:31:30 +00:00
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>
Wake up the target nodes which is in B<suspend> state.
Don't try to run B<wake> against the 'on' state node, it would cause the node gets to 'off' state.
2010-03-26 14:01:48 +00:00
2014-04-17 08:44:40 +00:00
For some of xCAT hardware such as NeXtScale, it may need to enable S3 before using B<wake>. The following steps can be used to enable S3. Please reference L<pasu(1)|pasu.1> for "pasu" usage.
[root@xcatmn home]# echo "set Power.S3Enable Enable" > power-setting
2014-04-17 08:49:47 +00:00
[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
2014-04-17 08:44:40 +00:00
2008-01-08 15:57:51 +00:00
=item B<stat>|B<state>
Print the current power state/status.
=item B<reset>
Send a hard reset.
=item B<boot>
If off, then power on.
If on, then hard reset.
2008-03-14 20:54:31 +00:00
This option is recommended over B<cycle>.
2008-01-08 15:57:51 +00:00
=item B<cycle>
Power off, then on.
2008-10-06 16:06:34 +00:00
=item B<of>
2011-06-21 01:38:04 +00:00
Boot the node to open firmware console mode.
=item B<sms>
Boot the node to open firmware SMS menu mode.
2008-10-06 16:06:34 +00:00
2011-04-01 02:35:39 +00:00
=item B<-m> I<table.column>==I<expectedstatus> B<-m> I<table.column>=~I<expectedstatus>
2009-07-08 03:14:41 +00:00
2011-04-01 02:35:39 +00:00
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.
2009-07-08 03:14:41 +00:00
Note: if the "val" fields includes spaces or any other characters that will be parsed by shell, the "attr<oper-ator>val" needs to be quoted. If the operator is "!~", the "attr<operator>val" needs to be quoted using single quote.
2008-03-11 14:15:55 +00:00
=item B<--nodeps>
2008-03-11 12:15:39 +00:00
2011-04-01 02:35:39 +00:00
Do not use dependency table (default is to use dependency table). Valid only with B<on|off|boot|reset|cycle> for blade power method and B<on|off|reset|softoff> for hmc/fsp power method.
2008-03-11 12:15:39 +00:00
2011-04-01 03:02:22 +00:00
=item B<-r> I<retrycount>
2009-07-08 03:14:41 +00:00
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.
2011-04-01 03:02:22 +00:00
=item B<-t> I<timeout>
2009-07-08 03:14:41 +00:00
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.
2013-01-31 06:31:30 +00:00
=item B<-w> I<timeout>
To set the I<timeout> for the B<suspend> action to wait for the success.
=item B<-o>
To specify that the target node will be power down if B<suspend> action failed.
=item B<-r>
To specify that the target node will be reset if B<suspend> action failed.
2008-03-14 20:54:31 +00:00
=item B<-h>|B<--help>
2008-01-08 15:57:51 +00:00
2008-03-14 20:54:31 +00:00
Prints out a brief usage message.
2008-01-08 15:57:51 +00:00
2011-04-01 03:02:22 +00:00
=item B<-v>|B<--version>
2008-01-08 15:57:51 +00:00
Display the version number.
=back
=head1 EXAMPLES
2008-03-14 20:54:31 +00:00
=over 3
2008-01-08 15:57:51 +00:00
2008-03-14 20:54:31 +00:00
=item *
2008-01-08 15:57:51 +00:00
2011-04-01 02:35:39 +00:00
rpower node4,node5 stat
2008-01-08 15:57:51 +00:00
2008-03-14 20:54:31 +00:00
node4: on
node5: off
2008-01-08 15:57:51 +00:00
2008-03-14 20:54:31 +00:00
=item *
2008-01-08 15:57:51 +00:00
2011-04-01 02:35:39 +00:00
rpower node5 on
2008-01-08 15:57:51 +00:00
2008-03-14 20:54:31 +00:00
node5: on
2008-01-08 15:57:51 +00:00
2008-03-14 20:54:31 +00:00
=back
2008-01-08 15:57:51 +00:00
2008-03-14 20:54:31 +00:00
=head1 SEE ALSO
2008-01-08 15:57:51 +00:00
2008-08-02 16:18:07 +00:00
L<noderange(3)|noderange.3>, L<rcons(1)|rcons.1>, L<rinv(1)|rinv.1>, L<rvitals(1)|rvitals.1>, L<rscan(1)|rscan.1>
2008-03-11 12:15:39 +00:00
2008-03-11 14:15:55 +00:00