System information
Appendix A: Advanced Device Configuration 371
Application Notes Related to Expect Scripts
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.
SP/Device Expect Script Exit Codes
Scripts that handle devices must end with one of the following exit codes.
Table A-8: Expect Script Exit Codes
Exit Code Definition
0 Success
1 Unexpected output from service processor/device, or another error in a
service processor protocol (such as timeout)
2 Bad command line (such as an incorrect number of arguments)
3 Action argument is not valid for the service processor/device type
4 Server or device given as first argument has not been configured