LMINamespace¶
- class lmi.shell.LMINamespace.LMINamespace(conn, name)[source]¶
LMI class representing CIM namespace.
Parameters: - conn (LMIConnection) – connection object
- name (string) – namespace name
- classes()[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.
- get_class(classname)[source]¶
Returns LMIClass.
Parameters: classname (string) – class name of new LMIClass Raises: LMIClassNotFound
- print_classes()[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 lmi.shell.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 - 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.