LMINamespace Package

class LMINamespace.LMINamespace(conn, name)[source]

LMI class representing CIM namespace.

Parameters:
  • conn (LMIConnection) – connection object
  • name (string) – namespace name
classes(filter_key='', exact_match=False)[source]

Returns a list of class names.

Parameters:
  • filter_key (string) – substring of a class name
  • exact_match (bool) – tells, if to search for exact match or substring
Returns:

list of class names

Usage: Available classes.

cql(query)[source]

Executes a CQL query and returns a list of LMIInstance objects.

Parameters:query (string) – CQL query to execute
Returns:LMIReturnValue object with rval set to a list of LMIInstance objects

Usage: Queries.

name[source]
Returns:namespace name
Return type:string
print_classes(filter_key='', exact_match=False)[source]

Prints out a list of classes.

Parameters:
  • filter_key (string) – substring of a class name
  • exact_match (bool) – tells, if to search for exact match, or to search for a matching substring

Usage: Available classes.

wql(query)[source]

Executes a WQL query and returns a list of LMIInstance objects.

Parameters:query (string) – WQL query to execute
Returns:LMIReturnValue object with rval set to a list of LMIInstance objects

Usage: Queries.

class LMINamespace.LMINamespaceRoot(conn)[source]

Derived class for root namespace. Object of this class is accessible from LMIConnection object as a hierarchy entry.

Parameters:conn (LMIConnection) – connection object
PG_InterOp[source]
Returns:root/PG_InterIp namespace
Return type:LMINamespace
PG_Internal[source]
Returns:root/PG_Internal namespace
Return type:LMINamespace
cimv2[source]
Returns:root/cimv2 namespace
Return type:LMINamespace
interop[source]
Returns:root/interop namespace
Return type:LMINamespace
namespaces[source]
Returns:list of strings with available namespaces

Usage: Available namespaces.

print_namespaces()[source]

Prints out all available namespaces accessible via the namespace root.

Usage: Available namespaces.

This Page