genode/tool/run/amt.inc
Alexander Boettcher b50bbef303 tool: support meshcmd as AMT alternative tool
which may be used as alternative for

- AMT log grabbing, default: amtterm
- AMT power cycling, default: wsman, alternative: amttool

https://www.meshcommander.com
https://github.com/Ylianst/MeshCommander
https://www.intel.com/content/www/us/en/developer/articles/news/meshcmd-new-intel-amt-command-line-tool.html
2024-11-26 18:17:41 +01:00

33 lines
676 B
PHP

##
# Check whether AMT support is available
#
proc is_amt_available { {host "" } {password "" } } {
if {![have_spec x86]} { return false }
#
# Exit execution if parameter are not set rather returning
# false because we cannot recover anyway.
#
if {[string compare $host ""] == 0} {
puts "Aborting, AMT host not specified."
exit -1
}
if {[string compare $password ""] == 0} {
puts "Aborting, AMT password not set."
exit -1
}
if {[have_installed amtterm] &&
[expr [have_installed amttool] || [have_installed wsman] ] } {
return true
}
if {[have_installed meshcmd]} {
return true
}
puts "No support for Intel's AMT detected."
return false
}