通过 AMT 向英特尔 NUC 发送正常关机

通过 AMT 向英特尔 NUC 发送正常关机

我有几个支持 AMT 且具有最新固件(2017-05-06)的英特尔 NUC(NUC5i5MYBE)主机。

我能够发送开机和(硬)关机并获取正确的电源信息移动通信技术公司Python AMT 工具

根据AMT 9.x 说明应该有一种方法可以发送正常关机 (12) 和正常重启 (14)。Web 界面 (在端口 16992 上) 报告的版本是Intel® Active Management Technology firmware version: 10.0.55-build 3000,所以我应该有这个。

但是当我发送这些命令时,虽然我收到命令已成功发送的指示,但 NUC 实际上并没有执行任何操作。

应该执行有序关机的操作系统是 Windows 7。

相反,我得到了如下 XML:

<?xml version="1.0" ?>
<a:Envelope xmlns:a="http://www.w3.org/2003/05/soap-envelope" xmlns:b="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:c="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:d="http://schemas.xmlsoap.org/ws/2005/02/trust" xmlns:e="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:f="http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd" xmlns:g="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PowerManagementService" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <a:Header>
    <b:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</b:To>
    <b:RelatesTo>uuid:05202c7a-dd61-4a1a-96e3-246359a58410</b:RelatesTo>
    <b:Action a:mustUnderstand="true">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PowerManagementService/RequestPowerStateChangeResponse</b:Action>
    <b:MessageID>uuid:00000000-8086-8086-8086-000000000216</b:MessageID>
    <c:ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PowerManagementService</c:ResourceURI>
  </a:Header>
  <a:Body>
    <g:RequestPowerStateChange_OUTPUT>
      <g:ReturnValue>2</g:ReturnValue>
    </g:RequestPowerStateChange_OUTPUT>
  </a:Body>
</a:Envelope>

我没有尝试使用开放世界,因为我无法弄清楚我需要使用什么适当的参数。

我也没有在 NUC 的 BIOS 设置或 Windows 中找到需要打开或关闭的任何内容。

我的问题是:英特尔 NUC 5i5MYBE 上的 AMT 是否能够正常开机和/或正常重置?如果可以,我该如何发送这些命令(最好使用某些 Linux 命令行工具或 API,例如 wsman)

答案1

英特尔让这一切变得非常复杂。

而一个理性的人可能会认为你可以做一些半简单的事情,就像这样: wsman invoke -a RequestPowerStateChange http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PowerManagementService -h ${AMT_HOST} -P 16992 -u admin -p ${AMT_PASSWORD} -k PowerState=10

其实比这“简单”多了。你自己判断吧: wsman invoke -a RequestPowerStateChange http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PowerManagementService -h ${AMT_HOST} -P 16992 -u admin -p ${AMT_PASSWORD} -J /tmp/power.xml

cat /tmp/power.xml <p:RequestPowerStateChange_INPUT xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PowerManagementService"> <p:PowerState>10</p:PowerState> <p:ManagedElement xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address> <wsa:ReferenceParameters> <wsman:ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem</wsman:ResourceURI> <wsman:SelectorSet> <wsman:Selector Name="CreationClassName">CIM_ComputerSystem</wsman:Selector> <wsman:Selector Name="Name">ManagedSystem</wsman:Selector> </wsman:SelectorSet> </wsa:ReferenceParameters> </p:ManagedElement> </p:RequestPowerStateChange_INPUT>

相关内容