Skip to content

Instantly share code, notes, and snippets.

@booyaa
Created November 19, 2012 14:39
Show Gist options
  • Select an option

  • Save booyaa/4110985 to your computer and use it in GitHub Desktop.

Select an option

Save booyaa/4110985 to your computer and use it in GitHub Desktop.
RIBCL Example for setting Host power settings
<!-- RIBCL Sample Script for Integrated Lights-Out -->
<!-- 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 the iLO is executing. -->
<!-- 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.10 or greater with this script -->
<!-- This script was written for iLO firmware ver 1.10 or -->
<!-- higher. -->
<!-- See the iLO User Guide for more information on scripting -->
<!-- and the syntax of the RIBCL XML. -->
<!-- cpqlocfg -s SERVERNAME -f set_host_power.xml -->
<RIBCL VERSION="2.0">
<LOGIN USER_LOGIN="toor" PASSWORD="xxx">
<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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment