Querying and Setting the Server Power State (powerstate)
Function
The powerstate command is used to query and set the power state of the server.
Format
ipmcget [-t fru0] -d powerstate
ipmcset [-t fru0] -d powerstate -v <option>
Parameters
Parameter |
Description |
Value |
---|---|---|
option |
Specifies the operation to be performed on the server. |
|
Usage Guidelines
The power-off command is invalid for a server in power-off state.
Example
# Power on the server.
iBMC:/->ipmcset -d powerstate -v 1
WARNING: The operation may have many adverse effects
Do you want to continue?[Y/N]:y
Control fru0 power on successfully.
# Query the power state of the server.
iBMC:/->ipmcget -d powerstate
Power state : On
Hotswap state : M4