The examples in this section show how to use input XML to perform list commands.
Example 39 Example Blacklisted CPU XMLThe example input XML for the ldm list-devices -B command for blacklisted cores is:
<cmd>
<action>list-devices</action>
<options>-B</options>
<data version="3.0">
<Envelope>
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Item>
<rasd:OtherResourceType>core</rasd:OtherResourceType>
</Item>
</Section>
</Envelope>
</data>
</cmd>
The following example XML example shows the output of the ldm list-devices -B command:
<cmd>
<action>list-devices</action>
<options>-B</options>
<data version="3.0">
<Envelope>
<References/>
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Item>
<rasd:OtherResourceType>core</rasd:OtherResourceType>
<gprop:GenericProperty key="cid">1</gprop:GenericProperty>
<gprop:GenericProperty key="status">blacklisted</gprop:GenericProperty>
</Item>
...
</Section>
</Envelope>
...
</cmd>
Example 40 Example Blacklisted Memory XML
The example input XML for the ldm list-devices -B command for blacklisted memory is:
<cmd>
<action>list-devices</action>
<options>-B</options>
<data version="3.0">
<Envelope>
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Item>
<rasd:OtherResourceType>memory</rasd:OtherResourceType>
</Item>
</Section>
</Envelope>
</data>
</cmd>
The following example XML example shows the output of the ldm list-devices -B command:
<cmd>
<action>list-devices</action>
<options>-B</options>
<data version="3.0">
<Envelope>
<References/>
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Item>
<rasd:OtherResourceType>memory</rasd:OtherResourceType>
<gprop:GenericProperty key="pa">0xa30000000</gprop:GenericProperty>
<gprop:GenericProperty key="size">2G</gprop:GenericProperty>
<gprop:GenericProperty key="status">blacklisted</gprop:GenericProperty>
</Item>
<Item>
<rasd:OtherResourceType>memory</rasd:OtherResourceType>
<gprop:GenericProperty key="pa">0xbb0000000</gprop:GenericProperty>
<gprop:GenericProperty key="size">2G</gprop:GenericProperty>
<gprop:GenericProperty key="status">evac_pending</gprop:GenericProperty>
<gprop:GenericProperty key="domain">ldg1</gprop:GenericProperty>
</Item>
</Section>
</Envelope>
<response>
<status>success</status>
</response>
</data>
<response>
<status>success</status>
</response>
</cmd>
<response>
<status>success</status>
</response>
Example 41 Using the list-bindings -e Command With XML
The following XML example shows the ldm list-bindings -e command output:
<cmd>
<action>list-bindings</action>
<options>-e</options>
<data version="3.0">
<Envelope>
<References/>
<Content xsi:type="ovf:VirtualSystem_Type" ovf:id="primary">
...
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Item>
<rasd:OtherResourceType>vldc</rasd:OtherResourceType>
<gprop:GenericProperty key="service_name">primary-vldc3
</gprop:GenericProperty>
<gprop:GenericProperty key="client">SP</gprop:GenericProperty>
<gprop:GenericProperty key="desc">spds</gprop:GenericProperty>
<gprop:GenericProperty key="ldc">0x14</gprop:GenericProperty>
<bind:Binding/>
</Item>
</Section>
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Item>
<rasd:OtherResourceType>vldc</rasd:OtherResourceType>
<gprop:GenericProperty key="client">SP</gprop:GenericProperty>
<gprop:GenericProperty key="desc">sunvts</gprop:GenericProperty>
<gprop:GenericProperty key="ldc">0x6</gprop:GenericProperty>
<bind:Binding/>
</Item>
</Section>
...
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Item>
<rasd:OtherResourceType>vldcc</rasd:OtherResourceType>
<gprop:GenericProperty key="name">ds</gprop:GenericProperty>
<gprop:GenericProperty key="service">primary-vldc0@primary
</gprop:GenericProperty>
<gprop:GenericProperty key="desc">domain-services</gprop:GenericProperty>
<gprop:GenericProperty key="ldc">0x2</gprop:GenericProperty>
<bind:Binding/>
</Item>
</Section>
...
</cmd>
Example 42 Using the list-netdev -b Command With XML
The following XML example can be used to run the ldm list-netdev -b primary command. This command lists information about all the network devices the primary domain:
<cmd>
<action>list-netdev</action>
<options>-b</options>
<data version="3.0">
<Envelope>
<References/>
<Content xsi:type="ovf:VirtualSystem_Type" ovf:id="primary"></Content>
</Envelope>
</data>
</cmd>
The following XML example output is the result of the previous input:
<cmd>
<action>list-netdev</action>
<options>-b</options>
<data version="3.0">
<Envelope>
<References/>
<Content xsi:type="ovf:VirtualSystem_Type" ovf:id="primary">
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Item>
<rasd:OtherResourceType>network_device</rasd:OtherResourceType>
<gprop:GenericProperty key="name">aggr0</gprop:GenericProperty>
<gprop:GenericProperty key="class">AGGR</gprop:GenericProperty>
<gprop:GenericProperty key="media">ETHER</gprop:GenericProperty>
<gprop:GenericProperty key="state">down</gprop:GenericProperty>
<gprop:GenericProperty key="speed">0M</gprop:GenericProperty>
<gprop:GenericProperty key="over">net2,net3</gprop:GenericProperty>
</Item>
</Section>
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Item>
<rasd:OtherResourceType>network_device</rasd:OtherResourceType>
<gprop:GenericProperty key="name">net0</gprop:GenericProperty>
<gprop:GenericProperty key="class">PHYS</gprop:GenericProperty>
<gprop:GenericProperty key="media">ETHER</gprop:GenericProperty>
<gprop:GenericProperty key="state">up</gprop:GenericProperty>
<gprop:GenericProperty key="speed">1000M</gprop:GenericProperty>
<gprop:GenericProperty key="over">igb0</gprop:GenericProperty>
<gprop:GenericProperty key="loc">/SYS/MB/NET0</gprop:GenericProperty>
</Item>
</Section>
...
</Content>
</Envelope>
...
</data>
...
</cmd>
Example 43 Using the list-netstat Command With XML
The following XML example can be used to run the ldm list-netstat -u K -o net0 ldg1 command. This command lists information about the net0 network device in kilobytes for the ldg1 domain:
<cmd>
<action>list-netstat</action>
<data version="3.0">
<Envelope>
<References/>
<Content xsi:type="ovf:VirtualSystem_Type" ovf:id="ldg1">
<Section xsi:type="ovf:ResourceAllocationSection_Type">
<Item>
<gprop:GenericProperty key="network_device">net0</gprop:GenericProperty>
<gprop:GenericProperty key="byte_unit">K</gprop:GenericProperty>
</Item>
</Section>
</Content>
</Envelope>
</data>
</cmd>
The following XML example output is the result of the previous input:
<cmd>
<action>list-netstat</action>
<data version="3.0">
<Envelope>
<References/>
<Content xsi:type="ovf:VirtualSystem_Type" ovf:id="ldg1">
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Item>
<rasd:OtherResourceType>network_stat</rasd:OtherResourceType>
<gprop:GenericProperty key="name">net0</gprop:GenericProperty>
<gprop:GenericProperty key="ipackets">509.68K</gprop:GenericProperty>
<gprop:GenericProperty key="rbytes">43856.31K</gprop:GenericProperty>
<gprop:GenericProperty key="opackets">4.58K</gprop:GenericProperty>
<gprop:GenericProperty key="obytes">413.03K</gprop:GenericProperty>
</Item>
</Section>
</Content>
</Envelope>
...
</cmd>
Example 44 Using the list-io Command With XML
The following XML example can be used to run the ldm list-io command:
<cmd>
<action>list-io</action>
<data version="3.0"></data>
</cmd>
The following XML example output is the result of the previous input:
<cmd>
<action>list-io</action>
<data version="3.0">
<Envelope>
<References/>
<Section xsi:type="ovf:VirtualHardwareSection_Type">
<Item>
<rasd:OtherResourceType>BUS</rasd:OtherResourceType>
<gprop:GenericProperty key="dev">pci@400</gprop:GenericProperty>
<gprop:GenericProperty key="alias">/SYS/MB/CMP0/PEX</gprop:GenericProperty>
<gprop:GenericProperty key="status">IOV</gprop:GenericProperty>
<gprop:GenericProperty key="domain">primary</gprop:GenericProperty>
<gprop:GenericProperty key="type">BUS</gprop:GenericProperty>
<gprop:GenericProperty key="bus">/SYS/MB/CMP0/PEX</gprop:GenericProperty>
</Item>
...
</Section>
</Envelope>
</data>
...
</cmd>
Example 45 Using the list-io -l Command With XML
The following XML example can be used to run the ldm list-io -l command:
<cmd>
<action>list-io</action>
<options>-l</options>
<data version="3.0"></data>
</cmd>
The following XML example output is the result of the previous input:
<cmd>
<action>list-io</action>
<options>-l</options>
<data version="3.0">
<Envelope>
<References/>
<Section xsi:type="ovf:VirtualHardwareSection_Type"
..
<Item>
<rasd:OtherResourceType>PCIE</rasd:OtherResourceType>
<gprop:GenericProperty key="dev">pci@400/pci@2/pci@0/pci@8
</gprop:GenericProperty>
<gprop:GenericProperty key="alias">/SYS/MB/PCIE0</gprop:GenericProperty>
<gprop:GenericProperty key="status">OCC</gprop:GenericProperty>
<gprop:GenericProperty key="domain">primary</gprop:GenericProperty>
<gprop:GenericProperty key="type">PCIE</gprop:GenericProperty>
<gprop:GenericProperty key="bus">/SYS/MB/CMP0/PEX</gprop:GenericProperty>
<gprop:GenericProperty key="subdev">SUNW,emlxs@0/fp/disk
</gprop:GenericProperty>
<gprop:GenericProperty key="subdev">SUNW,emlxs@0/fp/tape
</gprop:GenericProperty>
<gprop:GenericProperty key="subdev">SUNW,emlxs@0/fp@0,0
</gprop:GenericProperty>
<gprop:GenericProperty key="subdev">SUNW,emlxs@0,1/fp/disk
</gprop:GenericProperty>
<gprop:GenericProperty key="subdev">SUNW,emlxs@0,1/fp/tape
</gprop:GenericProperty>
<gprop:GenericProperty key="subdev">SUNW,emlxs@0,1/fp@0,0
</gprop:GenericProperty>
</Item>
...
<rasd:OtherResourceType>VF</rasd:OtherResourceType>
<gprop:GenericProperty key="dev">pci@500/pci@2/pci@0/pci@0/network@0,86
</gprop:GenericProperty>
<gprop:GenericProperty key="alias">/SYS/MB/PCIE5/IOVNET.PF0.VF3
</gprop:GenericProperty>
<gprop:GenericProperty key="status"/>
<gprop:GenericProperty key="domain"/>
<gprop:GenericProperty key="type">VF</gprop:GenericProperty>
<gprop:GenericProperty key="class">NETWORK</gprop:GenericProperty>
<gprop:GenericProperty key="bus">/SYS/MB/CMP1/PEX</gprop:GenericProperty>
<gprop:GenericProperty key="user-assigned-name"/>
<gprop:GenericProperty key="class:mac-addr">00:14:4f:f8:7f:88
</gprop:GenericProperty>
<gprop:GenericProperty key="class:alt-mac-addrs">
00:14:4f:f9:27:75,00:14:4f:f8:b7:a4</gprop:GenericProperty>
<gprop:GenericProperty key="class:mtu">1500</gprop:GenericProperty>
</Item>
</Section>
</Envelope>
</data>
...
</cmd>