power command
This command turns on and turns off compute nodes and I/O modules.
If command syntax is not correctly entered, or if a command fails to run, an error message is returned. See Common errors for a list of error messages that apply to all commands or power command errors for a list of error messages that are specific to the power command.
Function | What it does | Command | Target (see paths in Command targets) |
---|---|---|---|
Power on | Turns on the specified command target. Note Some storage nodes might have specific boot sequence requirements, see the documentation for your storage node for details. | power -on This command can only be run by users who have one or more of the following command authorities:
| Compute node:
I/O module:
|
Power on to command console | Opens a command console with an SOL session when the specified compute node is turned on. Note Some storage nodes might have specific boot sequence requirements, see the documentation for your storage node for details. | power -on -c This command can only be run by users who have one or more of the following command authorities:
| Compute node:
|
Enable / disable SMS for compute node | Enable or disable the System Management Services (SMS) firmware menu on the specified compute node, for compute nodes that support this feature. Note
| power -sms state where state is enabled or disabled . This command can only be run by users who have one or more of the following command authorities:
| Compute node:
|
Enable / disable F1 (Setup) for compute node | Enable or disable F1 (Setup) menu on the specified compute node, for compute nodes that support this feature. Note
| power -f1 state where state is enabled or disabled . This command can only be run by users who have one or more of the following command authorities:
| Compute node:
|
Enable / disable F2 (Diagnostics) for compute node | Enable or disable F2 (Diagnostics) menu on the specified compute node, for compute nodes that support this feature. Note
| power -f2 state where state is enabled or disabled . This command can only be run by users who have one or more of the following command authorities:
| Compute node:
|
Power off | Turns off the specified command target. | power -off This command can only be run by users who have one or more of the following command authorities:
| Compute node:
I/O module:
|
Shutdown and power off compute node | Shuts down the operating system and turns off the specified compute node. | power -softoff This command can only be run by users who have one or more of the following command authorities:
| Compute node:
|
Power cycle | Cycles power for the specified compute node or I/O module. If the compute node or I/O module is off, it will turn on. If the compute node or I/O module is on, it will turn off and then turn on. | power -cycle This command can only be run by users who have one or more of the following command authorities:
| Compute node:
I/O module:
|
Power cycle to command console | Cycles power for the specified compute node. If the compute node is off, it opens a command console with an SOL session when it is turned on. If the compute node is on, it will turn off and then turn on. | power -cycle -c This command can only be run by users who have one or more of the following command authorities:
| Compute node:
|
Display power state | Displays the current power state for the specified compute node or I/O module. Possible return values are off, on, standby, or hibernate. | power -state | Compute node:
I/O module:
|
Enable / disable Wake on LAN globally | Enables or disables Wake on LAN globally for all compute nodes. Note The -wol, -sms, -local, -ap, and -d command options can be entered together, but these options must be used exclusive of all other command options. | power -wol state where state is enabled or disabled . This command can only be run by users who have one or more of the following command authorities:
| Lenovo Flex System chassis:
|
Enable / disable Wake on LAN for compute node | Enables or disables Wake on LAN for the specified compute node. Note The -wol, -sms,-local, -ap, and -d command options can be entered together, but these options must be used exclusive of all other command options. | power -wol state where state is enabled or disabled . This command can only be run by users who have one or more of the following command authorities:
| Compute node:
|
Enable / disable local power control globally | Enables or disables local power control globally for all compute nodes. Note The -local, -sms, -wol, -ap, and -d command options can be entered together, but these options must be used exclusive of all other command options. | power -local state where state is enabled or disabled . This command can only be run by users who have one or more of the following command authorities:
| Lenovo Flex System chassis:
|
Enable / disable local power control for compute node | Enables local power control for the specified compute node. Note The -local, -sms, -wol, -ap, and -d command options can be entered together, but these options must be used exclusive of all other command options. | power -local state where state is enabled or disabled . This command can only be run by users who have one or more of the following command authorities:
| Compute node:
|
Set automatic power-on policy for compute node | Sets the automatic power-on policy for the targeted compute node. Changes to the power-on policy setting take effect after the next restart of the compute node. Note The -ap, -sms, -wol, -local, and -d command options can be entered together, but these options must be used exclusive of all other command options. | power -ap policy where policy is:
This command can only be run by users who have one or more of the following command authorities:
| Compute node:
|
Set restart delay for compute node | Sets the amount of time that the targeted compute node waits to start after application of power to the Lenovo Flex System chassis. Changes to the restart delay take effect after the next restart of the compute node. Note The -d, -sms, -wol, -local, and -ap command options can be entered together, but these options must be used exclusive of all other command options. | power -d value where value is from 0 to 3600 seconds, inclusive. If you enter a value of 0, the restart delay is disabled (no delay). If you enter a value greater than 3600, an error will be displayed. This command can only be run by users who have one or more of the following command authorities:
| Compute node:
|
Set restart delay for I/O-module | Sets the amount of time that the targeted I/O-module waits to start after application of power to the Lenovo Flex System chassis. Changes to the restart delay take effect after the next restart of the I/O-module. Note The -d, -sms, -wol, -local, and -ap command options can be entered together, but these options must be used exclusive of all other command options. | power -d value where value is from 0 to 3600 seconds, inclusive. If you enter a value of 0, the restart delay is disabled (no delay). If you enter a value greater than 3600, an error will be displayed. This command can only be run by users who have one or more of the following command authorities:
| I/O module:
|
Display POST status for I/O module | Displays the POST status for the specified I/O module. If the command is run while POST is in progress, it returns the level of POST that is currently in process. If the command is run after POST is complete, it displays one of the following return values:
Where hex_code is a hexadecimal code. See the documentation that comes with your I/O module for information. Note This command option is not supported for serial concentrator I/O modules. | power -state -post | I/O module:
|
Example:
power -state
power -on
power -state
The following example shows the information that is returned from these three commands:
system:blade[5]> power -state
Off
system:blade[5]> power -on
OK
system:blade[5]> power -state
On
system:blade[5]>