System information

Appendix A: Advanced Device Configuration 369
Application Notes Related to Expect Scripts
T To Create a Custom IPMI Expect Script
1. Log into the OnBoard command line as root.
2. Go to the /libexec/onboard directory.
3. Copy the contents of talk_generic_ipmi.exp into the
talk_custom1.exp file.
4. Follow the instructions in the file for how to get a list of ipmitools
command options that you can use.
5. Save and quit the file.
6. Make sure the permissions are still 755.
SP/Device Expect Script Arguments
With one exception, each of the Expect scripts used to control access to a
service processor 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, 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.” For an example, see Table A-1, “onboard_server.ini Device
Entries With Templates Assigned,” on page 360.
talk_type.exp servername action
talk_type.exp servername spconsole [command1 | command2 | ... commandN]