Script file support in Moonshot iLO CM firmware

You can use basic script files for simple repetitive operations at the Moonshot iLO CM firmware command line. Upload the script to the chassis non-volatile memory using the add script file command and then execute them with the run command. There are no conditional directives available in the script language, and each command ends at the end of a line.

This section describes the commands available for uploading/removing, executing, and viewing scripts. There is no capability to edits scripts from the Moonshot iLO CM firmware command line. Create scripts using any text editor and save them with a .cm extension.

You can use the following helper commands inside any script:

Echo <text>

Used to output helpful messages to script users.

Wait <seconds>

Used to insert a delay while a command runs, up to 180 seconds.

Sample script sample_script_1.cm

echo Sample script 1
# Comment lines must start with pound sign
echo This script reboots all servers in the chassis
echo It sends a shutdown command, waits 3 minutes, 
echo then powers on all servers.
set node power off shutdown all
wait 180
set node power on all