Step 1: Display Real-Time Statistics about All Interfaces on the Router
Action
To display real-time statistics about traffic passing through all interfaces on the router, use the following JUNOS command-line interface (CLI) operational mode command:
user@host>monitor interface trafficSample Output
user@host>monitor interface traffichost nameSeconds: 15Time: 12:31:09Interface Link Input packets (pps) Output packets (pps)so-1/0/0 Down 0 (0) 0 (0)so-1/1/0 Down 0 (0) 0 (0)so-1/1/1 Down 0 (0) 0 (0)so-1/1/2 Down 0 (0) 0 (0)so-1/1/3 Down 0 (0) 0 (0)t3-1/2/0 Down 0 (0) 0 (0)t3-1/2/1 Down 0 (0) 0 (0)t3-1/2/2 Down 0 (0) 0 (0)t3-1/2/3 Down 0 (0) 0 (0)so-2/0/0 Up211035(1) 36778 (0)so-2/0/1 Up 192753 (1) 36782 (0)so-2/0/2 Up 211020 (1) 36779 (0)so-2/0/3 Up 211029 (1) 36776 (0)so-2/1/0 Up 189378 (1) 36349 (0)so-2/1/1 Down 0 (0) 18747 (0)so-2/1/2 Down 0 (0) 16078 (0)so-2/1/3 Up 0 (0) 80338 (0)at-2/3/0 Up 0 (0) 0 (0)at-2/3/1 Down 0 (0) 0 (0)Bytes=b, Clear=c, Delta=d, Packets=p, Quit=q or ESC, Rate=r, Up=^U, Down=^DWhat It Means
The sample output displays traffic data for active interfaces and the amount that each field has changed since the command started or since the counters were cleared by using the
Ckey. In this example, themonitor interfacecommand has been running for 15 seconds since the command was issued or since the counters last returned to zero.