Appendix A: Advanced Device Configuration
333
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, “
Entries With Templates Assigned,” on page 324.
talk_
type
.exp
servername action
talk_
type
.exp
servername
spconsole [
command1
|
command2
|
...
commandN
]
Summary of Contents for AlterPath OnBoard
Page 36: ...xxxvi AlterPath OnBoard Administrator s Guide...
Page 108: ...Understanding How Configuration Changes Are Handled 72 AlterPath OnBoard Administrator s Guide...
Page 116: ...Overview of Web Manager Menus 80 AlterPath OnBoard Administrator s Guide...
Page 146: ...Configuring Regular Users Wizard 110 AlterPath OnBoard Administrator s Guide...
Page 160: ...Upgrading AlterPath PM IPDU Software 124 AlterPath OnBoard Administrator s Guide...
Page 194: ...Configuring an Alternate Help File Location 158 AlterPath OnBoard Administrator s Guide...
Page 292: ...Configuring Private Subnets and Virtual Networks 256 AlterPath OnBoard Administrator s Guide...
Page 344: ...Using the create_cf Command When Troubleshooting 308 AlterPath OnBoard Administrator s Guide...