Module wmiutils :: Class WmicQueryBuilder
[hide private]

Class WmicQueryBuilder

source code

BaseWmiQueryBuilder --+
                      |
                     WmicQueryBuilder

This class forms WMI query to be executed by 'wmic' command line tool

Instance Methods [hide private]
 
__init__(self, objectName) source code
 
setOutputFile(self, outputFile) source code
 
usePathCommand(self, value) source code
 
setNamespace(self, namespace)
Sets queried object namespace
source code
 
useSplitListOutput(self, value) source code
 
buildQuery(self)
Builds wmic query using template: wmic %(output)s%(namespace)s%(path)s%(object)s%(where)s get %(properties)s /value < %%SystemRoot%%\win.ini
source code
 
__isListType(self, fieldValue) source code
 
__parseAsList(self, fieldValue) source code
 
parseResults(self, output, separator='=')
Abstract method for results parsing
source code

Inherited from BaseWmiQueryBuilder: addQueryElement, addWhereClause, addWmiObjectProperties, getObjectName

Class Variables [hide private]
  WMIC_QUERY_TEMPLATE = 'wmic %(output)s%(namespace)s%(path)s%(o...
Method Details [hide private]

__init__(self, objectName)
(Constructor)

source code 
Parameters:
  • objectName - the name of the queried CIM class
Overrides: BaseWmiQueryBuilder.__init__
(inherited documentation)

buildQuery(self)

source code 

Builds wmic query using template: wmic %(output)s%(namespace)s%(path)s%(object)s%(where)s get %(properties)s /value < %%SystemRoot%%\win.ini

Overrides: BaseWmiQueryBuilder.buildQuery

parseResults(self, output, separator='=')

source code 

Abstract method for results parsing

Overrides: BaseWmiQueryBuilder.parseResults
(inherited documentation)

Class Variable Details [hide private]

WMIC_QUERY_TEMPLATE

Value:
'wmic %(output)s%(namespace)s%(path)s%(object)s%(where)s get %(propert\
ies)s /value < %%SystemRoot%%\\win.ini'