Vyatta Network OS Documentation

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

Interface statistics

The following examples provide interface statistics for data plane, vhost, and tunnel interfaces, including Rx bytes, Rx packets, Rx errors, Tx bytes, Tx packets, Tx errors, and Tx dropped.

The following example shows an RPC request for interface statistics.

<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">
            <interfaces xmlns="urn:vyatta.com:mgmt:vyatta-interfaces:1">
                <statistics xmlns="urn:vyatta.com:mgmt:vyatta-interfaces:1">
                </statistics>
            </interfaces>
        </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>
        <interfaces xmlns="urn:vyatta.com:mgmt:vyatta-interfaces:1">
            <statistics>
                <interface>
                    <name>dp0s3</name>
                    <receive-statistics>
                        <bytes>695635</bytes>
                        <dropped>0</dropped>
                        <errors>0</errors>
                        <multicast>9996</multicast>
                        <oversized-packets>0</oversized-packets>
                        <packets>11287</packets>
                    </receive-statistics>
                    <transmit-statistics>
                        <bytes>568822</bytes>
                        <carrier-errors>0</carrier-errors>
                        <collisions>0</collisions>
                        <dropped>0</dropped>
                        <errors>0</errors>
                        <packets>1239</packets>
                    </transmit-statistics>
                    <type>dataplane</type>
                </interface>
            </statistics>
        </interfaces>
    </data>
</rpc-reply>
]]>]]>