run: check for mis-configured Intel ME/AMT SOL

and show hint about how to enable it.

Fixes #1876
This commit is contained in:
Alexander Boettcher 2016-02-03 18:20:43 +01:00 committed by Christian Helmuth
parent 46e4c3dc9b
commit bc70d67ee7
1 changed files with 15 additions and 1 deletions

View File

@ -34,8 +34,22 @@ proc run_log { wait_for_re timeout_value } {
return false
}
# Check that SOL is correctly configured if wsman is available
if {[have_installed wsman]} {
set redir_state [exec wsman get http://intel.com/wbem/wscim/1/amt-schema/1/AMT_RedirectionService -h [power_on_amt_host] -P 16992 -u admin -p [power_on_amt_password]]
set redir_state [regexp -inline {ListenerEnabled.*ListenerEnabled} $redir_state]
if {![regexp {ListenerEnabled>true} $redir_state]} {
puts " Warning: AMT_RedirectionService listener is disabled - serial output will not be available"
puts " Use wsman to enable the listener service, e.g.:"
puts " wsman put http://intel.com/wbem/wscim/1/amt-schema/1/AMT_RedirectionService -h [power_on_amt_host] -P 16992 -u admin -p <your-intel-me-amt-password> -k ListenerEnabled=true"
puts ""
}
}
#
# amttool expects in the environment variable AMT_PASSWORD the password
# password via environment variable for amtterm will not show up in logs
#
set ::env(AMT_PASSWORD) [log_amt_password]