wsman can admittedly be a bit complex with regard to running commands.

For example, to power on and off an AMT-capable laptop using wsman, one
can run the following command:

test@test-Latitude-6430U:~$ wsman invoke -a RequestPowerStateChange -J
request.xml http://schemas.dmtf.org/wbem/wscim/1/cim-
schema/2/CIM_PowerManagementService?SystemCreationClassName="CIM_ComputerSystem",SystemName="Intel(r)
AMT",CreationClassName="CIM_PowerManagementService",Name="Intel(r) AMT
Power Management Service" --port 16992 -h 10.9.164.246 --username admin
-p "passw0rd" -V -v

...In all of the above, I also pointed to an xml file that contained
some "ManagedElement" information that's apparently required to make the
"RequestPowerStateChange" command work.   I'll attach the xml file, too.
To change the power states, change the PowerState parameter to whatever
you need.  2 == on, 8 == off, 5 == reboot.

Information on how to construct a command can be found here as a guide
(two of these are Dell server-centric but can provide help with how to
enumerate the right classes, etc. to build a command):

http://en.community.dell.com/techcenter/systems-management/w/wiki/4374
.how-to-build-and-execute-wsman-method-commands.aspx

http://en.community.dell.com/techcenter/extras/m/white_papers/20206146.aspx

http://software.intel.com/sites/manageability/AMT_Implementation_and_Reference_Guide/default.htm?turl=WordDocuments%2Fchangesystempowerstate.htm

As you can see, making your own commands can  be a bit of an exercise.
Fortunately, there are somewhat easier ways to harness wsman without
having to perform all of the work above.  Dell, for example, has created
an extensive set of scripts for PowerEdge to make wsman a lot more user-
friendly.  There is also an API on that page for those that want to
write their own scripts:

http://en.community.dell.com/techcenter/systems-management/w/wiki/1981
.scripting-the-dell-lifecycle-controller.aspx


** Attachment added: "wsman-amt-request.xml"
   
https://bugs.launchpad.net/ubuntu/+bug/1068766/+attachment/3921634/+files/wsman-amt-request.xml

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1068766

Title:
  [needs-packaging] wsmancli command line tool for openwsman

To manage notifications about this bug go to:
https://bugs.launchpad.net/dell-poweredge/+bug/1068766/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to