Unclassified

lmiwbem.lmiwbem_core.is_subclass()

Determine if one class is a subclass of another one.

Parameters:
  • ch (WBEMConnection) – CIMOM handle
  • ns (string) – namespace where to look for CIMClass-es
  • superclass (string) – super class name
  • subclass – either string containing sub class name of CIMClass instance
lmiwbem.lmiwbem_core.slp_discover()

Peforms SLP discovery.

Parameters:
  • srvtype (str) – service type
  • scopelist (str) – comma separated list of scope names
  • filter (str) – query formulated of attribute pattern matching expressions in the form of an LDAPv3 search filter
Returns:

list of SLPResult

Raises:

SLPError

lmiwbem.lmiwbem_core.slp_discover_attrs()

Performs SLP attributes discovery.

Parameters:
  • srvurl (str) – service URL
  • scopelist (str) – comma separated list of scope names
  • attrids (str) – comma separated list of attribute ids to return
Returns:

dict containing attrs with values

Raises:

SLPError

lmiwbem_core.DEFAULT_NAMESPACE = 'root/cimv2'

This variable is used, when no namespace parameter is provided to WBEMConnection.

lmiwbem_core.DEFAULT_TRUST_STORE = '/etc/pki/ca-trust/source/anchors/'

This variable is used, when SSL connection is applied.