Appendices : Device Configuration : SP/device Expect script arguments

SP/device Expect script arguments
With one exception, each of the Expect scripts used to control access to an SP takes exactly two arguments in the following format:
The exception to the two-argument format occurs when the action is spconsole. When the second argument is spconsole, any other number of arguments may follow; all arguments entered after the spconsole action are collected into a single command to be executed in the device’s native command interface.
servername
The servername is the alias configured for the server or device on the OnBoard appliance, for example, rsa_us. The script retrieves service processor/device specific information, such as the IP address, from the entry for the specified service processor/device, using the llconf program. This information is stored in the file /etc/onboard_server.ini, in the format known as INI file.
action
The action specifies the action for the script to take. The actions are listed below. Not all service processor/device types implement all of the listed actions. For example, the iLO type does not have a sensors reading feature, so the sensors action is not supported for iLO-type servers. See SP/Device Expect script exit codes for the correct way to handle an unexpected action argument.
sensors
Asks the SP for a sensor reading and display service processor sensor output on standard output.
poweron
Asks the SP to power up its server.
poweroff
Asks the SP to power down its server.
powercycle
Asks the SP to reboot its server.
powerstatus
Asks the SP if its server is powered up.
reset
Asks the SP to reset its server.
sel
Asks the SP to retrieve the System Event Log and display the SEL contents on standard output.
clearsel
Asks the SP to clear the System Event Log.
spconsole
The native command line of the SP. Enters interactive pass-through mode. The script authenticates with the SP, then connects the SP output directly to its standard output and its standard input to the SP input.
NOTE: ssh must be invoked with the -t option when this mode is used.
devconsole
Enters a console (also known as Device Console) session on a server whose service processor supports console access to the server or enters a console session on a server or other device that supports device console access through its Ethernet port.
NOTE: ssh must be invoked with the -t option when this mode is used.
log_sensors
Retrieves sensor data in a standard format.
NOTE: ssh must be invoked with the -t option when this mode is used.