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

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:
talk_ type .exp servername action
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.
talk_ type .exp servername spconsole [command1 | command2 | ... commandN]

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