hardware セクションには、一般インベントリおよび追加インベントリのエントリが含まれます。 General Inventory セクションには、Client Automation エージェントに収集されたインベントリ グループおよびインベントリ属性のみを設定できます。 ユーザ定義のグループおよび属性を追加する場合は、GeneralInventory group タグの外側で作成する必要があります。 ユーザ定義のグループおよび属性は、DSM エクスプローラの[追加]フォルダの下の[インベントリ]に表示されます。
hardware セクションには以下のタグがあります。
グループ名を定義します。この下に、インベントリ項目が作成されます。
インベントリ項目の名前、タイプ、およびサブタイプを定義します。
例: hardware セクション(属性および値)
以下は、hardware セクションのコード例です。
<hardware> <group name="GeneralInventory">
<group name="System">
<attribute name="Total Memory" type="int64" subtype="byte">2147483648</attribute> <attribute name="Model" type="string">OptiPlex GX270</attribute> <attribute name="Type" type="string">Desktop</attribute> <attribute name="No of Processors" type="int32" subtype="normal">1</attribute> <attribute name="No of COM ports" type="int32" subtype="normal">2</attribute> <attribute name="No of Printer ports" type="int32" subtype="normal">1</attribute> <attribute name="No of USB ports" type="int32" subtype="normal">2</attribute> <attribute name="No of Video ports" type="int32" subtype="normal">1</attribute> <attribute name="Vendor" type="string">Dell Computer Corporation</attribute> <attribute name="Serial Number" type="string">50ZQ21J</attribute> <attribute name="Asset Tag" type="string">N/A</attribute> <attribute name="System ID" type="string">44454C4C-3000-105A-8051-B5C04F32314A</attribute>
</group>
</group>
</hardware>
以下の図は、上記コードの GUI 結果を示します。

例: ハードウェア インベントリ ファイル(表形式)
以下は、ハードウェア インベントリ ファイルのコード例です。
<hardware>
<group name="GeneralInventory"> <group name="FileSystem"> <group name="LocalFileSystem" tableid="0001"> <attribute name="Device" type="string">\Device\HarddiskVolume1</attribute>
<attribute name="FileSystem" type="string">FAT32</attribute> <attribute name="Free" type="int64" subtype="G">2230124544</attribute> <attribute name="Mount Point" type="string">C:\</attribute> <attribute name="Name" type="string">C:\</attribute> <attribute name="Serial Number" type="string">5872-D416</attribute> <attribute name="Size" type="int64" subtype="G">3784294400</attribute> <attribute name="Type" type="string">Fixed</attribute> <attribute name="Used" type="int64" subtype="G">1554169856</attribute> <attribute name="Used %" type="int32">20</attribute> <attribute name="Volume Label" type="string">C</attribute>
</group>
<group name="LocalFileSystem" tableid="0002">
<attribute name="Device" type="string">\Device\HarddiskVolume2</attribute> <attribute name="FileSystem" type="string">FAT32</attribute> <attribute name="Free" type="int64" subtype="G">2230124544</attribute> <attribute name="Mount Point" type="string">D:\</attribute> <attribute name="Name" type="string">D:\</attribute> <attribute name="Serial Number" type="string">5872-D423</attribute> <attribute name="Size" type="int64" subtype="G">43784794400</attribute> <attribute name="Type" type="string">Fixed</attribute> <attribute name="Used" type="int64" subtype="G">41554269856</attribute> <attribute name="Used %" type="int32">89</attribute> <attribute name="Volume Label" type="string">D</attribute>
</group> </group> </group>
</hardware>
以下の図は、上記コードの GUI 結果を示します。

|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|