
172 MergePoint 5224/5240 Service Processor Manager Installer and Administrator Guide
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.
SP/Device Expect script exit codes
Scripts that handle devices must end with one of the exit codes shown in Table C.2.
To create a custom Expect script:
1. Log into the SP manager console as an administrator.
2. Go to the /libexec/spmanager directory.
3. Copy an existing talk_<family_name>.exp and name the new file in the format:
talk_customN.exp.
NOTE: Use talk_custom1.exp for the first custom script, talk_custom2.exp for a second, up to a total of
three scripts.
4. Edit the script as desired.
5. Save and quit the file.
6. Make sure the permissions are still 755.
Contact your Avocent representative if you need additional support for creating a custom
Expect script.
Table C.2: Expect Script Exit Codes
Exit Code Definition
0 Success
1 Unexpected output from service processor/device, or another error in an SP protocol (such
as time-out)
2 Bad command line (such as an incorrect number of arguments)
3 Action argument is not valid for the SP/device type
4 Server or device given as first argument has not been configured
Comentarios a estos manuales