SP/Device Expect script exit codes Scripts that handle devices must end with one of the exit codes shown in Table D.6. 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 To create a custom Expect script: 1. Access the command line of the OnBoard as an administrator. 2. Go to the /libexec/onboard directory. 3. Open one of the talk_customN.exp script files for editing. NOTE: Use talk_custom1.exp for the first custom script, talk_custom2.exp for a second, and so on, up to a total of three scripts. 4. Copy the contents of a template or an existing script into the talk_customN.exp script file. 5. Edit the script as desired. 6. Save and quit the file. 7. Make sure the permissions are still 755.