Module | Openwsman |
In: |
../openwsman.i
openwsman/openwsman.rb openwsman/xmldoc.rb openwsman/xmlnode.rb |
Openwsman (www.openwsman.org) is a project intended to provide an open-source implementation of the Web Services Management specification (WS-Management) and to expose system management information on the Linux operating system using the WS-Management protocol. WS-Management is based on a suite of web services specifications and usage requirements that exposes a set of operations focused on and covers all system management aspects.
The bindings provide access to the client-side API of openwsman. You start by creating a Client instance and set up ClientOptions to control the communication.
The Client instance now provides the WS-Management operations, like enumerate, get, invoke, etc.
All client operations return a XmlDoc representing the SOAP response from the system. # You can then use XmlDoc methods to extract SOAP elements from the response and dig down through its XmlNode and XmlAttr objects.
NO_AUTH | = | WS_NO_AUTH | No authentication | |
BASIC_AUTH | = | WS_BASIC_AUTH | HTTP basic auth | |
DIGEST_AUTH | = | WS_DIGEST_AUTH | HTTP digest auth | |
PASS_AUTH | = | WS_PASS_AUTH | Windows Passport auth | |
NTLM_AUTH | = | WS_NTLM_AUTH | Windows NT Lan manager auth | |
GSSNEGOTIATE_AUTH | = | WS_GSSNEGOTIATE_AUTH | GSSAPI auth |
return endpoint-reference (EPR) prefix for given classname and namespace
prefix = Openwsman.epr_prefix_for "CIM_Managed_Element" => "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2" prefix = Openwsman.epr_prefix_for "Win32_Foo", "root/cimv2" => "http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2"
create full endpoint reference URI for namespace and classname
Openwsman.epr_uri_for "root/cimv2", "Win32_Foo" => "http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_Foo"