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 0
    in-unicast-pkts 0
    in-discards 0
    in-errors 0
    out-octets 4130
    out-unicast-pkts 37
    out-discards 0
    out-errors 0
    ..

To show the statistics in a human readable way:

vsr> show interface statistics name eth1
eth1
    rx.packets: 0
    rx.bytes: 0
    rx.errors: 0
    rx.multicast: 0
    rx.dropped: 0
    rx.overrun: 0
    tx.packets: 37
    tx.bytes: 4130
    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)         4.0       (4.4K)
eth1                      0          (0)         1.7       (1.5K)

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.