send_user "Password: "
expect_user -re "(.*)\n"
set mp_password $expect_out(1,string)
stty echo
# Other Constants
set timeout 20
########################################################################
## BEGIN
##
spawn $env(SHELL)
match_max 100000
#foreach mp_name {puma_mp lion_mp cougar_mp} {
set mp_name "puma_mp"
send_user "\n\n----- $mp_name -----\n\n"
# Frequently used Strings
set MA_PROMPT "$mp_name\] MP> $"
set CM_PROMPT "$mp_name\] MP:CM> $"
# Expect the UNIX prompt...
#expect "-> $"
#### Log into the MP #####
send -- "telnet $mp_name\r"
expect ".*MP login: $"
send -- "$mp_user\r"
expect "MP password: $"
send -- "$mp_password\r"
expect "$MA_PROMPT"
#Run SL command to dump logs
#send "sl -forward -view text -nc\r"
send -- "cm\r"
expect "$CM_PROMPT"
#Run PC command to power on the system
send -- "pc -on -nc\r"
expect "$CM_PROMPT"
send "ma\r"
expect "$MA_PROMPT"
send "x\r"
#}
expect eof
Command Menu Commands and Standard Command Line Scripting Syntax
The following list of commands is provided to help you learn about the
Command
menu
commands. Command-line interface scripting syntax for each command is provided to help you
accomplish a scripting task. The following rules apply to scripting syntax:
•
The
-nc
(no confirmation) is optional. This special keyword designates that no user
confirmation is required to execute the command. If you enter
-nc
at the end of the command
line, the command is executed without asking you for user input. Without the
-nc
option,
you are asked to confirm the changes. The only exception to this rule is when a password
must be entered. In that case, you are prompted for a password separately. However,
66
Using iLO 2 MP
Summary of Contents for ntegrity iLO 2 MP
Page 1: ...HP Integrity iLO 2 MP Operations Guide HP Part Number 5991 5992 Published November 2007 ...
Page 10: ...10 ...
Page 48: ...48 ...
Page 146: ...146 ...
Page 186: ...186 ...
Page 194: ...194 ...