Step 2: Display Real-Time Statistics about an Interface
Action
To display real-time statistics about traffic passing through an interface on the router, use the following JUNOS CLI operational mode command:
user@host>monitor interfaceinterface-nameSample Output
user@R1>monitor interface so-0/0/1Next='n', Quit='q' or ESC, Freeze='f', Thaw='t', Clear='c', Interface='i'R1Interface: so-0/0/1, Enabled, Link is UpEncapsulation: PPP, Keepalives, Speed: OC3 Traffic statistics:Input bytes: 5856541 (88 bps)Output bytes: 6271468 (96 bps)Input packets: 157629 (0 pps)Output packets: 157024 (0 pps)Encapsulation statistics:Input keepalives: 42353Output keepalives: 42320LCP state: OpenedError statistics:Input errors: 0Input drops: 0Input framing errors: 0Input runts: 0Input giants: 0Policed discards: 0L3 incompletes: 0L2 channel errors: 0L2 mismatch timeouts: 0Carrier transitions: 1Output errors: 0Output drops: 0Aged packets: 0Active alarms : NoneActive defects: NoneSONET error counts/seconds:LOS count 1LOF count 1SEF count 1ES-S 77SES-S 77SONET statistics:BIP-B1 0BIP-B2 0REI-L 0BIP-B3 0REI-P 0Received SONET overhead: F1 : 0x00 J0 : 0xZWhat It Means
The sample output shows the input and output packets for a particular SONET interface (
so-0/0/1). The information can include common interface failures, such as SONET/SDH and T3 alarms, loopbacks detected, and increases in framing errors. For more information, see Track Error Conditions.To control the output of the command while it is running, use the keys shown in Table 37.
Table 37: Monitor Interface Output Control Keys
See the JUNOS System Basics and Services Command Reference for details on using match conditions with the
monitor trafficcommand.