U
SING
D
EVICES
AND
I
NVENTORY
- 146 -
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> <items>
<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> <item name="e1" class="My New Class"
type="environment">%PROCESSOR_ARCHITECTURE%</item> <item name="w1"
class="My New Class" type="wmi" namespace="ROOT\CIMV2"query="SELECT *
FROM Win32_OperatingSystem">SerialNumber</item> <item name="t1"
Содержание ZENWORKS PATCH MANAGEMENT 6.4 SP2 - SERVER
Страница 1: ...User Guide ZENworks Patch Management 6 4 SP2 ...
Страница 44: ...USING ZENWORKS PATCH MANAGEMENT 28 ...
Страница 138: ...WORKING WITH DEPLOYMENTS 122 ...
Страница 212: ...USING GROUPS 196 ...
Страница 236: ...REPORTING 220 ...
Страница 308: ...CONFIGURING DEFAULT BEHAVIOR 292 ...
Страница 332: ...USING THE AGENT 316 The Agent Control Panel opens Figure 10 19 Agent Control Panel ...
Страница 354: ...SECURING YOUR PATCH MANAGEMENT SERVER 338 ...