Module Openwsman
In: ../openwsman.i
openwsman/openwsman.rb
openwsman/xmldoc.rb
openwsman/xmlnode.rb

About openwsman

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.

Using the bindings

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.

Methods

Classes and Modules

Class Openwsman::Client
Class Openwsman::ClientOptions
Class Openwsman::Context
Class Openwsman::EndPointReference
Class Openwsman::EnumerateInfo
Class Openwsman::Fault
Class Openwsman::Filter
Class Openwsman::Soap
Class Openwsman::SoapOp
Class Openwsman::Status
Class Openwsman::Transport
Class Openwsman::XmlAttr
Class Openwsman::XmlDoc
Class Openwsman::XmlNode

Constants

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

Public Class methods

return endpoint-reference (EPR) prefix for given classname and namespace

  • classname - classname (using the <schema>_<name> format)
  • namespace - optional namespace, required for Windows WMI which embeds the namespace in the EPR

Examples

  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

  • classname - classname (using the <schema>_<name> format)
  • namespace - optional namespace, required for Windows WMI which embeds the namespace in the EPR

Examples

  Openwsman.epr_uri_for "root/cimv2", "Win32_Foo"
  => "http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_Foo"

Public Instance methods

SWIG_exception(p1, p2)
create_doc_from_file(p1, p2)
create_doc_from_string(p1, p2)
create_soap_envelope()
debug()
debug=(p1)
uri_prefix(p1)

[Validate]