class LMIShellClient.LMIShellClient(uri, username='', password='', **kwargs)[source]¶
LMIShellClient overrides few methods due to caching purposes.
Parameters:
uri (string) – URI of the CIMOM
username (string) – account, under which, the CIM calls will be performed
password (string) – user’s password
interactive (bool) – flag indicating, if the LMIShell client is running in the
interactive mode; default value is False.
use_cache (bool) – flag indicating, if the LMIShell client should use cache for
CIMClass objects. This saves a lot’s of communication, if there is often
the LMIShellClient._get_class_names() or
LMIShellClient.attr._get_class() call issued.
conn_type –
type of connection; can be of 2 values:
LMIBaseClient.CONN_TYPE_WBEM – WBEM connection,
LMIBaseClient.CONN_TYPE_PEGASUS_UDS – applicable only for
Tog-Pegasus CIMOM, it uses Unix socket for the connection; default value is
LMIBaseClient.CONN_TYPE_WBEM
key_file (string) – path to x509 key file; default value is None
cert_file (string) – path to x509 cert file; default value is None
verify_server_cert (bool) – indicates, whether a server side certificate needs to
be verified, if SSL used; default value is True
NOTE: If interactive is set to True, LMIShell will:
prompt for username and password, if missing and connection via
Unix socket can not be established.