Lenovo BladeCenter HX5 7873 Problem Determination And Service Manual page 56

Blade server
Table of Contents

Advertisement

#
# 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}
#
# Reap the child process.
#
40
BladeCenter HX5 Blade ServerProblem Determination and Service Guide
#
#
#

Advertisement

Table of Contents
loading

Table of Contents