Novell ZENWORKS PATCH MANAGEMENT 6.4 SP2 User Manual page 161

Hide thumbs Also See for ZENWORKS PATCH MANAGEMENT 6.4 SP2:
Table of Contents

Advertisement

Example XML (This example will return the value of the defined environment variable):
<item name="Environment Example" Class="User Defined" type
="Environment">%PROCESSOR_ARCHITECTURE%</item>
Returns:
"Environment Example = i386"
WMI
Windows Management Instrumentation (WMI) allows the user to use scripting to use the
WMI component, and tends to focus on operating system settings.
In the case of a WMI item, two additional attributes, namespace and query are used. If
the namespace attribute is not specified, the default value of ROOT\CIMV2 is used. The
query attribute must be defined as a valid WQL query. The string added will be of the form
"name = value" where name is the tag name and value is the actual value for the
specified WMI property.
Example XML (This example will return the Serial Number property from the Operating
System):
<item name="Windows SN" type="wmi" query=" SELECT * FROM
Win32_OperatingSystem">SerialNumber</item>
Returns:
"Windows SN = ABCD-EFGH-IJKL"
Example XML (This example will retrieve the Manufacturer property of the device):
<item name="Device Manufacturer" type="wmi" query=" SELECT * FROM
Win32_OperatingSystem">Manufacturer</item>
Returns:
"Device Manufacturer = Computer Manufacturer A"
Text_File
Allows the user to retrieve text data from a file.
The string added will be of the form "name = value" where each line of the text file
contains a Name/Value pair separated with a delimiter (defined with the delimiter
attribute). For each valid line, in the text file, an entry will be added to inventory. When
specifying a file name an environment variable, such as %WINDIR% can be used.
Example XML (This example will return the Name/Value pairs from a TXTSample.txt
file in the Windows directory):
<item name="ti" type="text_file"
delimiter="=">%WINDIR%\TXTSample.txt</item>
- 145 -
U
D
I
SING
EVICES AND
NVENTORY

Advertisement

Table of Contents
loading

Table of Contents