Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & physical platforms portfolio.

Uptime information

The XML examples in this section provide uptime information.

The following example shows an RPC request for uptime 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>
                    <times xmlns="urn:vyatta.com:mgmt:vyatta-system:1">
                    </times>
                </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>
                <times>
                    <uptime>3614</uptime>
                </times>
            </state>
        </system>
    </data>
</rpc-reply>
]]>]]>