common

Package with client-side python modules and command line utilities.

lmi.scripts.common.get_computer_system(ns)

Obtain an instance of CIM_ComputerSystem or its subclass. Preferred class name can be configured in configuration file. If such class does not exist, a base class (CIM_ComputerSystem) is enumerated instead. First feasible instance is cached and returned.

Parameters:ns (lmi.shell.LMINamespace) – Namespace object where to look for computer system class.
Returns:Instance of CIM_ComputerSystem.
Return type:lmi.shell.LMIInstance.