Class representing a connection object. Each desired connection to separate CIMOM should have its own connection object created. This class provides an entry point to the namespace/classes/instances/methods hierarchy present in the LMIShell.
Parameters: |
|
---|
NOTE: If interactive is set to True, LMIShell will:
Parameters: | namespace (string) – namespace path (eg. root/cimv2) |
---|---|
Returns: | LMINamespace object |
Raises : | LMINamespaceNotFound |
Returns: | list of all available namespaces |
---|
Usage: Available namespaces.
Returns: | LMINamespaceRoot object for root namespace |
---|
Subscribes to an indication. Indication is formed by 3 objects, where 2 of them (filter and handler) can be provided, if the LMIShell should not create those 2 by itself.
NOTE: Currently the call registers atexit hook, which auto-deletes all subscribed indications by the LMIShell.
Parameters: | kwargs (dictionary) – parameters for the indication subscription
|
---|---|
Returns: | LMIReturnValue object with rval set to True, if indication was subscribed; False otherwise. If a error occurs, errorstr is set to appropriate error string. |
Unsubscribes all the indications. This call ignores Permanent flag, which may be provided in LMIConnection.subscribe_indication(), and deletes all the subscribed indications.
Unsubscribes an indication.
Parameters: | name (string) – indication name |
---|---|
Returns: | LMIReturnValue object with rval set to True, if unsubscribed; False otherwise |
Sets a bool flag, which defines, if the LMIShell should use a cache.
Parameters: | active (bool) – whether the LMIShell’s cache should be used |
---|
Verifies credentials by performing a “dummy” GetClass() call on “SomeNonExistingClass”. Provided credentials are OK, if the LMIShell obtains pywbem.CIMError exception with the flag CIM_ERR_NOT_FOUND set. Otherwise, the should receive pywbem.AuthError.
Returns: | LMIReturnValue object with rval set to True, if the user was properly authenticated; False otherwise. In case of any error, rval is set to False and errorstr contains appropriate error string. |
---|---|
Return type: | LMIReturnValue |
Creates a connection object with provided URI and credentials.
Parameters: |
|
---|---|
Returns: | LMIConnection object or None, if LMIShell does not use exceptions |
Raises : | pywbem.AuthError |
NOTE: If interactive is set to True, LMIShell will:
Usage: Establish a connection.