We have already written about iLO and its capabilities. However, it is worth getting more attention.

When deploying smaller or larger clusters, we start hardware configurations by setting iLO (server name, network configuration or adding the user). For smaller deployments, we proceed normally by logging in to each server manually and making necessary changes on the Website. But what if the implementation includes 100, 500 or 1000 servers? The mere thought of manually configuring so many machines can be a headache!

Automation of settings using iLO scripts can be of helps to us. We download the set of “HP Lights-Out Configuration Utility” applications from the HP Website that allows configuration through settings in XML files. When downloading the tools, we can find a set of XML files with sample settings. Applications are available for Windows and Linux systems and provide the administrator with total freedom of configuration.
We can replace creating of XML files by bash/python scripts. It will be a much more convenient way for Linux administrators accustomed to work with the console. The python-hpilo library provides such an opportunity. After installation, we have access to a set of python functions which enable the communication with iLO and the hpilo_cli console utility. Here are some examples in bash:

Here are some examples in bash:
/ Example 1.

for ip in 192.168.10.{1..100}
hpilo_cli -l login -p password $ip get_fw_version
/ Example 2.

for ip in 192.168.10.{1..100}
hpilo_cli -l login -p password $ip mod_user user_login=admin \
user_name=admin password=password \
admin_priv=True remote_cons_priv=True reset_server_priv=True \
virtual_media_priv=True, config_ilo_priv=True

Example 1 shows how to check out firmware versions for 100 servers, and in Example 2 we add ‘admin’ user with password ‘password’ and administrative rights for the same pool of servers.
In such a simple way we can freely manage and configure our servers in order to prepare them for further operation.
The initial configuration of the computer cluster has never been so simple! :)