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 eth0 counters
    in-octets 7316
    out-unicast-pkts 22
    out-octets 7316
    in-unicast-pkts 113
    in-discards 0
    in-errors 0
    out-discards 0
    out-errors 0

To show the statistics in a human readable way:

vsr running config# show interface statistics name eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether de:ad:de:01:02:03 brd ff:ff:ff:ff:ff:ff
    RX: bytes  packets  errors  dropped overrun mcast
    7316       113      0       0       0       0
    TX: bytes  packets  errors  dropped carrier collsns
    7316       22       0       0       0       0

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

vsr> show interface throughput name eth0
IFNAME             IN pkt/s   (IN bit/s)   OUT pkt/s  (OUT bit/s)
eth0                  12.8M       (8.2G)       13.1M       (8.4G)
eth0                  13.1M       (8.4G)       12.8M       (8.2G)
eth0                  13.0M       (8.3G)       12.4M       (8.0G)
eth0                  12.4M       (8.0G)       13.0M       (8.3G)

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.