31
Hewlett-Packard Integrated Lights-Out (iLO). To use XenServer with iLO, you must enable iLO on the host and
connect interface to the network. For more information, see HP’s iLO documentation.
A custom script based on the XenAPI that enables you to turn the power on and off through XenServer. For
more information, see the section called “Configuring a Custom Script for XenServer's Host Power On Feature”.
Using the Host Power On feature requires three tasks:
1. Ensuring the hosts in the pool support controlling the power remotely (that is, they have Wake-on-LAN
functionality, a DRAC or iLO card, or you created custom script).
2. Enabling the Host Power On functionality using the CLI or XenCenter.
3. (Optional.) Configuring automatic Host Power On functionality in Workload Balancing. For information on how
to configure Host Power On in Workload Balancing please refer to the Citrix XenServer Workload Balancing
Administrator's Guide.
Note:
You must enable Host Power On and configure the Power Management feature in Workload
Balancing before Workload Balancing can turn hosts on and off automatically.
Using the CLI to Manage Host Power On
You can manage the Host Power On feature using either the CLI or XenCenter. This topic provides information
about managing it with the CLI.
Host Power On is enabled at the host level (that is, on each XenServer).
After you enable Host Power On, you can turn hosts on using either the CLI or XenCenter.
After enabling Host Power On, you can enable the Workload Balancing Automation and Power Management
features, as described in the Workload Balancing Administrator's Guide.

To Enable Host Power On Using the CLI

1. Run the command:
xe host-set-power-on host=<host uuid>\
power-on-mode=("" , "wake-on-lan",
"iLO", "DRAC","custom")
power-on-config:key=value
For iLO and DRAC the keys are power_on_ip, power_on_user, power_on_password_secret. Use
power_on_password_secret to specify the password if you are using the secret feature.

To Turn on Hosts Remotely Using the CLI

1. Run the command:
xe host-power-on host=<host uuid>
Configuring a Custom Script for XenServer's Host Power On Feature
If your servers' remote-power solution uses a protocol that is not supported by default (such as Wake-On-Ring
or Intel Active Management Technology), you can create a custom Linux Python script to turn on your XenServer
computers remotely. However, you can also can create custom scripts for iLO, DRAC, and Wake-On-LAN remote-
power solutions.
This topic provides information about configuring a custom script for Host Power On using the key/value pairs
associated with the XenServer API call host.power_on.