O'Reilly logo

JUNOS Cookbook by Aviva Garrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

7.2. Viewing Traffic Statistics on an Interface

Problem

You want to check how much traffic is passing through an interface.

Solution

The show interfaces extensive command shows detailed statistics about the traffic on an interface:

	aviva@router1# show interfaces extensive fe-0/0/0

Discussion

When you need to get traffic statistics about an interface, use either the show interfaces extensive command for maximal information or the show interfaces detail for a slightly abridged view. The extensive version displays quite a bit of information. Again, the specifics of the output vary depending on the interface type. Here is the relevant output for a Fast Ethernet interface:

	aviva@router1> show interfaces extensive fe-0/0/0 … Traffic statistics: Input bytes : 302512 672 bps Output bytes : 0 0 bps Input packets : 2081 0 pps Output packets : 0 0 pps Input errors: Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Policed discards: 0, L3 incompletes: 1682, L2 channel errors: 0, L2 mismatch timeouts: 0, FIFO errors: 0, Resource errors: 0 Output errors: Carrier transitions: 1, Errors: 0, Drops: 0, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0 Queue counters: Queued packets Transmitted packets Dropped packets 0 best-effort 0 0 0 1 expedited-fo 0 0 0 2 assured-forw 0 0 0 3 network-cont 0 0 0 Active alarms : None Active defects : None MAC statistics: Receive Transmit Total octets 466604 0 Total packets 3763 0 Unicast packets 0 0 Broadcast ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required