hp ilo-2 command line power off and power on problem

I have an hp G5 DL360 with iLO2 and when I try to do "power on" or "power off" it does not respond.  iLO only seems to respond to the "power reset" command.

Is there another way to power on and off using the iLO command line utility?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


Download Sample xml scripts for ILO from here



Save following sample script as "poweroff.xml"

<!-- RIBCL Sample Script for HP Lights-Out Products -->
<!-- Copyright (c) 2003 Hewlett-Packard Development Company, L.P. -->

<!-- Description: This is a sample XML script to toggle the power -->
<!-- on the host server in which one of the following -->
<!-- devices is executing: -->
<!-- Integrated Lights-Out 2 (iLO 2) -->
<!-- Integrated Lights-Out (iLO) -->
<!-- Remote Insight Lights-Out Edition II (RILOE II) -->

<!-- NOTE: You will need to replace the USER_LOGIN and PASSWORD -->
<!-- values with values that are appropriate for your -->
<!-- environment. -->

<!-- This script will use the ACPI Power Button function to -->
<!-- attempt to gracefully shutdown the host operating system -->
<!-- (if your OS supports and is configured for graceful -->
<!-- shutdown) before it powers off the server. -->

<!-- Use CPQLOCFG.EXE ver 2.25 or greater with this script. -->

<!-- This script was written for iLO 2 firmware version 1.10 -->
<!-- release. -->

<!-- See "HP Integrated Lights-Out Management Processor -->
<!-- Scripting and Command Line Resource Guide" for more -->
<!-- information on scripting and the syntax of the RIBCL -->
<!-- XML. -->

<!-- Firmware support infomation for this script: -->
<!-- iLO 2 - All versions. -->
<!-- iLO - All versions. -->
<!-- RILOE II - All versions. -->

<LOGIN USER_LOGIN="adminname" PASSWORD="password">
<!-- Modify the HOST_POWER attribute to toggle power on the host server -->
<!-- HOST_POWER="No" (Turns host server power off) -->
<!-- A graceful shutdown will be attempted for ACPI-aware -->
<!-- operating systems configured to support graceful shutdown. -->
<!-- HOST_POWER="Yes" (Turns host server power on) -->

Now Assuming that your script is named "poweroff.xml" and that you have already downloaded and installed the HP Lights-Out Configuration Utility

Commands like this could do the trick:
C:\>cpqlocfg -s -f poweroff.xml -u Admin -p pword

Similarly you can start the server by exploring sample scripts.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jdanAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.