Balancing's Host Power Management feature, use the pool-send-wlb-configurationcommand with the ParticipatesInPowerManagement=<true> \ config:set_host_configuration=<true> arguments.

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

When you create a custom script, run it from the command line each time you want to control power remotely on XenServer. Alternatively, you can specify it in XenCenter and use the XenCenter UI features to interact with it.

The XenServer API is documented in the document, the [Citrix XenServer Management API], which is available from the Citrix Web site.

Note:

Do not modify the scripts provided by default in the /etc/xapi.d/plugins/ directory. You can include new scripts in this directory, but you should never modify the scripts contained in that directory after installation.

Key/Value Pairs

To use Host Power On, you must configure the host.power_on_mode and host.power_on_config keys. Their values are provided below.

There is also an API call that lets you set these fields all at once:

void host.set_host_power_on_mode(string mode, Dictionary<string,string> config)

host.power_on_mode

Definition: This contains key/value pairs to specify the type of remote-power solution (for example, Dell DRAC).

28

Page 48
Image 48
Citrix Systems 5.6 manual To enable Host Power On using the CLI, To turn on hosts remotely using the CLI, Key/Value Pairs