HP iLO 4 Scripting and Command Line Guide

HOLD_PWR_BTN parameters
Without the TOGGLE parameter, the HOLD_PWR_BTN command powers off a running server. If
the server power is off, the server power will remain off. The affect of using the command with the
TOGGLE parameter defines the action to take based on the current power state of the server. The
following occurs based on the value of TOGGLE:
When the server power is on, a Yes value for TOGGLE will turn the power off.
When the server power is off, a Yes value for TOGGLE will turn the power on.
When the server power is off, a No value for TOGGLE will leave the power off.
HOLD_PWR_BTN runtime errors
The possible error messages include:
Server information is open for read-only access. Write access is
required for this operation.
User does not have correct privilege for action. RESET_SERVER_PRIV
required.
COLD_BOOT_SERVER
The COLD_BOOT_SERVER command forces a cold boot of the server, if the server is currently on.
For this command to parse correctly, the COLD_BOOT_SERVER command must appear within a
SERVER_INFO command block, and SERVER_INFO MODE must be set to write. The user must
have the Virtual Power and Reset privilege to execute this command.
For example:
<RIBCL VERSION="2.0">
<LOGIN USER_LOGIN="adminname" PASSWORD="password">
<SERVER_INFO MODE="write">
<COLD_BOOT_SERVER/>
</SERVER_INFO>
</LOGIN>
</RIBCL>
COLD_BOOT_SERVER parameters
None
COLD_BOOT_SERVER runtime errors
The possible error messages include:
Server information is open for read-only access. Write access is
required for this operation.
Host power is already OFF.
User does not have correct privilege for action. RESET_SERVER_PRIV
required.
WARM_BOOT_SERVER
The WARM_BOOT_SERVER command forces a warm boot of the server, if the server is currently
on. For this command to parse correctly, the WARM_BOOT_SERVER command must appear within
a SERVER_INFO command block, and SERVER_INFO MODE must be set to write. The user must
have the Virtual Power and Reset privilege to execute this command.
For example:
SERVER_INFO 177