Lenovo BladeCenter HX5 7873 Problem Determination And Service Manual page 55

Blade server
Table of Contents

Advertisement

expect -i $amm_id "OK" {
set rv [ amm_save_target "system" ]
return 0
}
return 1
}
################################################################################
#
# Set the CLI target to a blade.
#
Returns 0 on success and 1 on failure.
#
################################################################################
proc amm_set_blade_target { blade_no } {
global amm_id
send -i $amm_id "env -T system:blade\[$blade_no\]\r"
expect -i $amm_id "OK" {
set rv [ amm_save_target "system:blade\[$blade_no\]" ]
return 0
}
return 1
}
################################################################################
#
# Collect the current SOL ready status.
#
################################################################################
proc blade_collect_sol_ready_status { } {
global amm_id
send -i $amm_id "sol\r"
expect -i $amm_id "OK" {
} timeout {
return 1
}
expect -i $amm_id "SOL Session: Ready" {
return 0
}
return 1
}
################################################################################
#
# Log into the AMM.
#
################################################################################
proc amm_login { amm userid password } {
global amm_id save_amm save_userid save_password
#
#
#
#
#
#
#
#
#
#
.
Chapter 2
Configuring the blade server
39

Advertisement

Table of Contents
loading

Table of Contents