EasyManuals Logo

IBM BladeCenter HX5 User Manual

IBM BladeCenter HX5
142 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #101 background imageLoading...
Page #101 background image
return 1
}
################################################################################
# #
# Log into the AMM. #
# #
################################################################################
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}
#
# Reap the child process.
#
wait
ft_log "AMM: Logout -- id: $amm_id"
set amm_id ""
}
Chapter 4. Configuring the blade server 91

Table of Contents

Other manuals for IBM BladeCenter HX5

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM BladeCenter HX5 and is the answer not in the manual?

IBM BladeCenter HX5 Specifications

General IconGeneral
BrandIBM
ModelBladeCenter HX5
CategoryServer
LanguageEnglish

Related product manuals