I'm trying to automate a process for our Ops. The process requires that some windows servers running on blades are shut down, left down for a few hours, the restarted when some other processes complete. This is done by an op logging on to each blade's iLO web interface to stop and start. I've been trying to automate this with HP's cpqlocfg program with partial success. I can issue the GET_POWER, GET_USER_INFO, etc commands but SET_HOST_POWER fails in a specific way. Using the cpqlocfg GET_EVENTLOG command I can see the events XML login and the power comand being issued from the iLO interface but then nothing happens. Some hints from googling suggest ACPI isn't configured properly but I can't find any hits on how to verify this. Am I even using the right command? There's also a few other options like PRESS_PWR_BUTTON etc. Problem is I have nowhere to test this, all I can do at the moment is give a script to ops and ask them to try it as 4am on a Sunday when they try the proc. The shutdown is trivial as I can use the windows "shutdown" command, it's the power on that I need help on. Anyone done this? I'd tag this "rib ribcl ilo" but lack the rep points, sorry.
This is entirely scriptable. I'd use the Windows shutdown interface to handle that portion. The blade startup can be achieved via scripts or SSH to the blade enclosure's Onboard Administrator or to the individual hosts' ILO.
Let's assume these are G7 ProLiant systems. You can use the ILO Scripting Guide to determine the commands you need for your automated process.
If Widows is running on the server, the only way to ensure a clean shutdown is to run shutdown.exe (or an equivalent utility). All iLO can do is simulate an ACPI power button press, which isn't guaranteed to work (the OS is free to ignore it, which some versions of Windows do under some conditions). The blade should power itself off after Windows shuts down. You should be able to use the PRESS_PWR_BUTTON RIBCL command to turn the server back on.