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?
jdanAsked:
Who is Participating?
 
ajay_mhasalCommented:
HI,

Download Sample xml scripts for ILO from here

http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=18964&prodSeriesId=1146658&prodNameId=1135772&swEnvOID=181&swLang=8&mode=2&taskId=135&swItem=MTX-84d9a19b43b84516ac2d26d01f

http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&mode=3&taskId=135&swItem=MTX-UNITY-I23218


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. -->

<RIBCL VERSION="2.0">
<LOGIN USER_LOGIN="adminname" PASSWORD="password">
<SERVER_INFO MODE="write">
<!-- 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) -->
<SET_HOST_POWER HOST_POWER="No"/>
</SERVER_INFO>
</LOGIN>
</RIBCL>
-----------------------------------------------------------------------


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 192.168.1.1 -f poweroff.xml -u Admin -p pword

Similarly you can start the server by exploring sample scripts.
0
 
jdanAuthor Commented:
thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.