An `amt` driver (napalm_amt.AmtDriver), a ManagementControllerDriver for the management controller of Intel vPro machines, with its own lean WS-Management client (requests + ElementTree, HTTP Digest, ports 16992/16993). It reads the machine's identity, hardware with the SMBIOS system UUID, firmware (AMT with build, BIOS), power state and the hardware event log, reports what AMT listens on (plain HTTP or TLS, KVM incl. port 5900, IDE-R), and switches the machine's power. AMT cannot be reset over WS-Management, so there is no reboot_host. Discovery recognises AMT by its ports and its Server header. Tested against Intel's published AMT 12 recordings (go-wsman-messages, Apache-2.0, see NOTICE). `python -m napalm_amt.record` records a real AMT read-only; the first test devices are two Lenovo ThinkCentre M910x.
51 lines
3.3 KiB
XML
51 lines
3.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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.xmlsoap.org/ws/2004/09/enumeration" xmlns:h="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_AssociatedPowerManagementService" xmlns:i="http://schemas.dmtf.org/wbem/wscim/1/common" 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>1</b:RelatesTo>
|
|
<b:Action a:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/enumeration/PullResponse</b:Action>
|
|
<b:MessageID>uuid:00000000-8086-8086-8086-000000007A95</b:MessageID>
|
|
<c:ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_AssociatedPowerManagementService</c:ResourceURI>
|
|
</a:Header>
|
|
<a:Body>
|
|
<g:PullResponse>
|
|
<g:Items>
|
|
<h:CIM_AssociatedPowerManagementService>
|
|
<h:AvailableRequestedPowerStates>10</h:AvailableRequestedPowerStates>
|
|
<h:AvailableRequestedPowerStates>8</h:AvailableRequestedPowerStates>
|
|
<h:AvailableRequestedPowerStates>5</h:AvailableRequestedPowerStates>
|
|
<h:AvailableRequestedPowerStates>11</h:AvailableRequestedPowerStates>
|
|
<h:AvailableRequestedPowerStates>4</h:AvailableRequestedPowerStates>
|
|
<h:AvailableRequestedPowerStates>7</h:AvailableRequestedPowerStates>
|
|
<h:AvailableRequestedPowerStates>14</h:AvailableRequestedPowerStates>
|
|
<h:AvailableRequestedPowerStates>12</h:AvailableRequestedPowerStates>
|
|
<h:PowerState>2</h:PowerState>
|
|
<h:ServiceProvided>
|
|
<b:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</b:Address>
|
|
<b:ReferenceParameters>
|
|
<c:ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PowerManagementService</c:ResourceURI>
|
|
<c:SelectorSet>
|
|
<c:Selector Name="CreationClassName">CIM_PowerManagementService</c:Selector>
|
|
<c:Selector Name="Name">Intel(r) AMT Power Management Service</c:Selector>
|
|
<c:Selector Name="SystemCreationClassName">CIM_ComputerSystem</c:Selector>
|
|
<c:Selector Name="SystemName">Intel(r) AMT</c:Selector>
|
|
</c:SelectorSet>
|
|
</b:ReferenceParameters>
|
|
</h:ServiceProvided>
|
|
<h:UserOfService>
|
|
<b:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</b:Address>
|
|
<b:ReferenceParameters>
|
|
<c:ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem</c:ResourceURI>
|
|
<c:SelectorSet>
|
|
<c:Selector Name="CreationClassName">CIM_ComputerSystem</c:Selector>
|
|
<c:Selector Name="Name">ManagedSystem</c:Selector>
|
|
</c:SelectorSet>
|
|
</b:ReferenceParameters>
|
|
</h:UserOfService>
|
|
</h:CIM_AssociatedPowerManagementService>
|
|
</g:Items>
|
|
<g:EndOfSequence/>
|
|
</g:PullResponse>
|
|
</a:Body>
|
|
</a:Envelope>
|