Novell ZENWORKS PATCH MANAGEMENT 6.4 SP2 User Manual page 162

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

Advertisement

U
D
I
SING
EVICES AND
Returns:
"Line 1 = This is line one"
"Line 2 = This is line two"
XML_File
Allows the user to retrieve text data from a file.
An external XML file will be referenced. The XML file structure must be defined by the
XPath string. When specifying an XML file name an environment variable, such as
%WINDIR% can be used.
Example XML (This example will return the value of the Asset Number tag from the
SampleXML.xml file in the Windows directory):
<item name="Asset" type="xml_file"
xpath="/Top/Inventory/AssetNumber">%WINDIR%\SampleXML.xml</item>
Returns:
"Asset = PLA001"
Example XML (This example will return the value of the Location tag from the
SampleXML.xml file in the Windows directory):
<item name="Building" type="xml_file"
xpath="/Top/Inventory/Location">%WINDIR%\SampleXML.xml</item>
Returns:
"Building = Scottsdale-Main"
Where the SampleXML.xml file is as follows:
<?xml version="1.0" encoding="utf-8"?><Top><Inventory>
<AssetNumber>PLA001</AssetNumber><Location>Scottsdale-Main</Location>
</Inventory></Top>
An example XML file, using the valid Windows agent inventory options, is provided below:
<?xml version="1.0" encoding="utf-8"?><customInventory>
<item name="l1" class="User Defined" type="literal">value1</item>
<item name="l2" class="User Defined" type="literal">value2</item>
<item name="l3" class="User Defined" type="literal">value3</item>
<item name="l4" class="User Defined" type="literal">value4</item>
<item name="r1" class="My New Class" type="registry">
HKEY_LOCAL_MACHINE\Software\PatchLink.com\Discovery
Agent\InventoryInputFile</item>
type="environment">%PROCESSOR_ARCHITECTURE%</item>
class="My New Class" type="wmi" namespace="ROOT\CIMV2"query="SELECT *
FROM Win32_OperatingSystem">SerialNumber</item>
NVENTORY
<item name="e1" class="My New Class"
- 146 -
<items>
<item name="w1"
<item name="t1"

Advertisement

Table of Contents
loading

Table of Contents