proc amm_login { amm userid password } {
global amm_id save_amm save_userid save_password
#
# Backup our login creds.
#
set save_amm $amm
set save_userid $userid
set save_password $password
#
# SSH command with no host key checking.
#
spawn ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -l$userid $amm
set amm_id $spawn_id
ft_log "AMM: Login -- id: $amm_id"
#
# Install an end of file handler to bomb out incase the AMM connection dies.
#
expect_after -i $amm_id eof eof_handler
#
# Log into the AMM.
#
expect {
"password:" {
send "$password\r"
}
}
#
# Make sure we made it.
#
expect -exact "system>"
}
################################################################################
#
#
# Log out of the AMM. (Be nice to the CLI, it won't run commands some times #
# if you close the connection on it too soon).
#
#
#
################################################################################
proc amm_logout { } {
global amm_id
#
# Log out and let the CLI figure out what happened.
#
send -i $amm_id "exit\r"
catch {close -i $amm_id}
#
94
BladeCenter HX5 Blade ServerInstallation and User's Guide
Summary of Contents for 1909
Page 1: ...BladeCenter HX5 Blade Server Installation and User s Guide Machine Types 7873 7872 1910 1909 ...
Page 80: ...72 BladeCenter HX5 Blade ServerInstallation and User s Guide ...
Page 112: ...104 BladeCenter HX5 Blade ServerInstallation and User s Guide ...
Page 116: ...108 BladeCenter HX5 Blade ServerInstallation and User s Guide ...
Page 120: ...112 BladeCenter HX5 Blade ServerInstallation and User s Guide ...
Page 126: ...118 BladeCenter HX5 Blade ServerInstallation and User s Guide ...
Page 133: ...Taiwan Class A compliance statement Appendix B Notices 125 ...
Page 134: ...126 BladeCenter HX5 Blade ServerInstallation and User s Guide ...
Page 139: ......
Page 140: ...Part Number 00V9872 Printed in China 1P P N 00V9872 ...
Page 141: ... 1P00V9872 ...