Server Management - Remote Server Management
1752682 Members
5585 Online
108789 Solutions
New Discussion

SET_HOST_POWER HOST_POWER="No" not working reliable

 
nojetlag
Occasional Visitor

SET_HOST_POWER HOST_POWER="No" not working reliable

I need to be able to shut down a DL380 G7 in case of a problem. For this I wanted to use the ILO xml scripts. However it seems not to be reliable.

In the ILO log I see that the command was received, sometimes it shuts down right away, sometimes, i see some services go down, and sometimes not much happens. What's the purpose if this command if it is not reliable ? And how should I shut down a server via this interface reliable ? 

1 REPLY 1
acartes
Honored Contributor

Re: SET_HOST_POWER HOST_POWER="No" not working reliable

It depends on the RIBCL command you use.

For details on the commands, download the Scripting and Command Line Guide.

For sample RIBCL scripts, download the Scripting Sample

 

Thie following RIBCL command attempts a momentary virtual power-button press if the host is on.
iLO attempts a graceful OS shutdown if the OS supports ACPI and is configured for it.  The duration that the OS requires to shutdown depends on the OS.
If the host is already off, nothing will happen.

<RIBCL VERSION="2.0">
 <LOGIN USER_LOGIN="adminname" PASSWORD="password">
  <SERVER_INFO MODE="write">
   <SET_HOST_POWER HOST_POWER="Off"/>
  </SERVER_INFO>
 </LOGIN>
</RIBCL>


The following RIBCL command forces the host off by doing a "press-and-hold" virtual power button press.
This will probably not be a graceful OS shutdown, even if the OS supports ACPI and is configured for it.
With "toggle" set to "yes", a system that is off attempts to power-on.
With "toggle" set to "no", a system that is off remains off.

<RIBCL VERSION="2.0">
 <LOGIN USER_LOGIN="adminname" PASSWORD="password">
  <SERVER_INFO MODE="write">
   <HOLD_PWR_BTN TOGGLE="YES"/>
  </SERVER_INFO>
 </LOGIN>
</RIBCL>