WmiDetector
Subscribe

From OpenNMS

Jump to: navigation, search

The WMI Detector can be used to detect the availability of WMI on a device when scanning it using Provisiond. By default, it expects to make a WMI query to the Win32_ComputerSystem class, checking for "OK" from the "Status" object.

For more details on WMI in OpenNMS, see the main WMI page.

Default Parameters

All detectors accept the "port", "timeout", "retries", and "serviceName" parameters:

port  
The port to connect to on the remote host.
timeout (default: "2000") 
The amount of time to wait before giving up on a connection.
retries (default: "1") 
The number of times to attempt a connection again, before giving up.
serviceName (default: "WMI") 
The service name to use if the detector finds a valid service.

Additional Parameters

In addition, the WMI Detector accepts the following parameters:

username (default: "Administrator") 
The username to use when authenticating against the WMI host.
password  
The password to use when authenticating against the WMI host.
domain (default: "WORKGROUP") 
The Windows domain to use when authenticating against the WMI host.
wmiClass (default: "Win32_ComputerSystem") 
The WMI class to query.
wmiWqlStr  
A raw WMI WQL query to compare against. If this is specified, wmiClass will be ignored.
wmiObject (default: "Status") 
The WMI object to query.
compVal (default: "OK") 
The value to use when performing a comparison against the wmiObject.
compOp (default: "EQ") 
The type of operator to use when comparing the wmiObject to the compVal.
choices: EQ (equals), NEQ (not equals), GT (greater than), and LT (less than)