StatisticsΒΆ

Statistics about received and transmitted packets are available per interface.

To get the statistics of the eth0 interface in main vrf, do:

vsr> show state vrf main interface physical eth1 counters
counters
    in-octets 154
    in-unicast-pkts 2
    in-discards 1
    in-errors 0
    out-octets 3104
    out-unicast-pkts 29
    out-discards 0
    out-errors 0
    ..

To show the statistics in a human readable way:

vsr> show interface statistics name eth1
eth1
    rx.packets: 2
    rx.bytes: 154
    rx.errors: 0
    rx.multicast: 0
    rx.dropped: 1
    rx.overrun: 0
    tx.packets: 29
    tx.bytes: 3104
    tx.errors: 0
    tx.dropped: 0
    tx.fifo_errors: 0
    tx.carrier_errors: 0
    tx.collisions: 0

You can also display the input/output packet and bit rate per second:

vsr> show interface throughput count 4 name eth1
IFNAME             IN pkt/s   (IN bit/s)   OUT pkt/s  (OUT bit/s)
eth1                      0          (0)           0          (0)
eth1                      0          (0)           0          (0)
eth1                      0          (0)           0          (0)
eth1                      0          (0)           0          (0)

The command can be interrupted by hitting ctrl-c.

See also

The command reference for details about the API, and the show interface and show interface throughput commands.