Advanced Device Configuration > Application Notes Related to Expect Scripts > SP/Device Expect Script Arguments > action

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 service processor for a sensor reading and display service processor sensor output on standard output
poweron
Asks the service processor to power up its server
poweroff
Asks the service processor to power down its server
powercycle
Asks the service processor to power cycle its server
powerstatus
Asks the service processor if its server is powered on
reset
Asks the service processor to reset its server
sel
Asks the service processor to retrieve the System Event Log and display the SEL contents on standard output
clearsel
Asks the service processor to clear the System Event Log
spconsole
The native command line of the service processor. Enters interactive pass-through mode. The script authenticates with the service processor, then connects the service processor output directly to its standard output and its standard input to the service processor 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 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.

Advanced Device Configuration > Application Notes Related to Expect Scripts > SP/Device Expect Script Arguments > action