mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 23:42:32 +00:00
b50bbef303
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
33 lines
676 B
PHP
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
|
|
}
|