Lenovo BladeCenter HX5 Installation And User Manual page 101

Blade server
Table of Contents

Advertisement

send -i $amm_id "env -T system\r"
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.
#
################################################################################
#
#
#
#
#
#
#
#
#
#
.
Chapter 4
Configuring the blade server
93

Advertisement

Table of Contents
loading

This manual is also suitable for:

7873787219101909

Table of Contents