Here is an example of the XML-output file that is generated by the custom inventory script. See the field descriptions from the table at the end of this page.
<?xml version="1.0" encoding="UTF-16"?> <CustomInventory InvDate="2011-11-28 14:49:31" InventoryVersion="1"> <Asset HostName="L0000900"> <Class Name="DiskDrive" Index="0"> <Attribute Name="Model">ST9320423AS ATA Device</Attribute> <Attribute Name="SerialNumber">202020202020202020202020563535484354434d</Attribute> <Attribute Name="Size">320069836800</Attribute> </Class> <Class Name="DiskDrive" Index="1"> <Attribute Name="Model">SAMSUNG HM321HI USB Device</Attribute> <Attribute Name="SerialNumber">801130168383</Attribute> <Attribute Name="Size">320070320640</Attribute> </Class> <Class Name="DiskDrive" Index="2"> <Attribute Name="Model">ST950032 5AS USB Device</Attribute> <Attribute Name="SerialNumber">801130168383</Attribute> <Attribute Name="Size">500105249280</Attribute> </Class> </Asset> </CustomInventory>
|
Notice
If the script generates an output file, the output file name must contain the device name of the computer that runs the scheduled task.
A single file can contain multiple assets.
Field |
Description |
<?xml version="1.0" encoding="UTF-16"?> |
XML header with Unicode encoding specified. |
<CustomInventory InvDate="2011-11-28 14:49:31" InventoryVersion="1"> |
Root element <CustomInventory> with attributes defined.
Root element contains one or more asset elements <Asset> with attributes. |
<Asset HostName="L0000900"> |
Asset element with an attribute defined.
Asset element contains one or more class elements <Class> with attributes. |
<Class Name="DiskDrive" Index="0"> |
Class element with attributes defined
Class element contains one or more attribute elements <Attribute> with attributes. |
<Attribute Name="SerialNumber">801130168383</Attribute> |
Attribute element with an attribute defined.
Attribute element´s value is the actual attribute value that is stored according to the data type that has been configured to Miradore. |
Related to