Balancing's Host Power Management feature, use the
To enable Host Power On using the CLI
1.Run the command:
xe
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
Configuring a Custom Script for XenServer's Host Power On Feature
If your servers'
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
28