Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following sections provide XML examples for different categories of statistics and other information.

CPU information

The XML examples in this section provide CPU information.

The following example shows an RPC request for CPU information.

Code Block
<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.

Code Block
<?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>
]]>]]>

Memory information

The XML examples in this section provide memory information.

The following example shows an RPC request for memory information.

Code Block
<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>
                    <memory xmlns="urn:vyatta.com:mgmt:vyatta-system:1">
                    </memory>
                </state>
            </system>
        </filter>
    </get>
</rpc>]]>]]>

Uptime information

The XML examples in this section provide memory information.

The following example shows an RPC request for uptime information.

Code Block
<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>
                    <times xmlns="urn:vyatta.com:mgmt:vyatta-system:1">
                    </times>
                </state>
            </system>
        </filter>
    </get>
</rpc>]]>]]>

Versino information

The XML examples in this section provide memory information.

The following example shows an RPC request for versino information.

Code Block
<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>
                    <platform>
                        <os-version xmlns="urn:vyatta.com:mgmt:vyatta-system:1"></os-version>
                    </platform>
                </state>
            </system>
        </filter>
    </get>
</rpc>]]>]]>