Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not power off when run poweroff command #28

Open
leslie-wang opened this issue Aug 25, 2019 · 0 comments
Open

not power off when run poweroff command #28

leslie-wang opened this issue Aug 25, 2019 · 0 comments

Comments

@leslie-wang
Copy link

Thanks for the great project which simplify the mgmt greatly!

I'm trying to use the tool to shut down one 5i5MYHE NUC, but seems like it doesn't work. Below is the response message

$ bin/amtctrl windows off
<?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:c86a90bb-66ae-401e-8e6f-4a48e06d4a4f</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-0000000000C1</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>

From the DASH spec https://www.dmtf.org/sites/default/files/standards/documents/DSP1027_1.0.2.pdf, seems like the return value 2 means

8.1.4 ManagedElement
383 The ManagedElement parameter indicates the reference to the instance of CIM_ComputerSystem that
384 represents the target computer system whose power state is to be set.
385 If the instance of CIM_ComputerSystem is not associated with the instance of
386 CIM_PowerManagementService through the CIM_AssociatedPowerManagementService association, the
387 RequestPowerStateChange( ) method shall return 2 (Error Occurred).

Please let me know if there is anything more I need do to make it work. Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant