CPU information
The XML examples in this section provide CPU information.
The following example shows an RPC request for CPU information.
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
<get xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<filter type="subtree">
<system>
<state>
<processor xmlns="urn:vyatta.com:mgmt:vyatta-system:1">
</processor>
</state>
</system>
</filter>
</get>
</rpc>
]]>]]>
The following example shows the RPC reply.
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
<data>
<system xmlns="urn:vyatta.com:mgmt:vyatta-system:1">
<state>
<processor>
<utilization>
<cpu>0</cpu>
<guest>0.00</guest>
<idle>98.41</idle>
<iowait>0.11</iowait>
<irq>0.00</irq>
<nice>0.00</nice>
<niced-guest>0.00</niced-guest>
<soft>0.00</soft>
<steal>0.07</steal>
<sys>1.39</sys>
<user>0.01</user>
</utilization>
<utilization>
<cpu>1</cpu>
<guest>0.00</guest>
<idle>97.27</idle>
<iowait>0.06</iowait>
<irq>0.00</irq>
<nice>0.00</nice>
<niced-guest>0.00</niced-guest>
<soft>0.00</soft>
<steal>0.35</steal>
<sys>1.87</sys>
<user>0.44</user>
</utilization>
<utilization>
<cpu>all</cpu>
<guest>0.00</guest>
<idle>97.85</idle>
<iowait>0.09</iowait>
<irq>0.00</irq>
<nice>0.00</nice>
<niced-guest>0.00</niced-guest>
<soft>0.00</soft>
<steal>0.21</steal>
<sys>1.63</sys>
<user>0.23</user>
</utilization>
</processor>
</state>
</system>
</data>
</rpc-reply>
]]>]]>