Lenovo BladeCenter HX5 Installation And User Manual page 104

Blade server
Table of Contents

Advertisement

}
################################################################################
#
# Collect the blade power state from the AMM.
#
################################################################################
proc collect_blade_power_state { blade } {
global amm_id amm
send -i $amm_id "info -T blade\[$blade\]\r"
}
################################################################################
#
# Collect a file from the AMM.
#
################################################################################
proc collect_file_from_amm { remote_directory filename local_copy } {
global amm userid password
set command "/usr/bin/curl"
set arg1 "--silent"
set arg2 "--user"
set arg3 "${userid}:${password}"
set arg4 "ftp://${amm}/${remote_directory}/${filename}"
set arg5 "-o"
set arg6 "${local_copy}"
set run_command [list exec $command $arg1 $arg2 $arg3 $arg4 $arg5 $arg6]
if {[catch $run_command result]} {
ft_log "Curl: command crashed with result $result fetching $arg4"
ft_log "Curl: The command was: ($command $arg1 $arg2 $arg3 $arg4 $arg5 $arg6"
return 1
}
return 0
}
################################################################################
#
# Delete a file from the AMM.
#
################################################################################
proc delete_file_from_amm { filename } {
global amm_id
send -i $amm_id "files -d ${filename}\r"
expect -i $amm_id "OK" {
return 0
}
return 1
}
################################################################################
96
BladeCenter HX5 Blade ServerInstallation and User's Guide
#
#
#
#
#
#
#
#
#

Advertisement

Table of Contents
loading

This manual is also suitable for:

7873787219101909

Table of Contents