Another good command to use when you want to monitor is just “monitor”.
With this command, you can monitor the real time traffic that is happening on the Juniper router.
Let me show you how you can do that:
root@R1> monitor interface traffic
R1 Seconds: 10 Time: 18:29:23
Interface Link Input packets (pps) Output packets (pps)
ge-0/0/0 Up 0 (0) 0 (0)
lc-0/0/0 Up 0 0
pfh-0/0/0 Up 0 0
ge-0/0/1 Up 0 (0) 0 (0)
ge-0/0/2 Up 0 (0) 0 (0)
ge-0/0/3 Up 0 (0) 0 (0)
ge-0/0/4 Up 0 (0) 0 (0)
ge-0/0/5 Up 0 (0) 0 (0)
ge-0/0/6 Up 0 (0) 0 (0)
ge-0/0/7 Up 0 (0) 0 (0)
ge-0/0/8 Up 0 (0) 0 (0)
ge-0/0/9 Up 0 (0) 0 (0)
demux0 Up 0 0
dsc Up 0 0
em0 Up 0 0
em1 Up 0 5
em2 Up 0 0
em3 Up 0 0
Bytes=b, Clear=c, Delta=d, Packets=p, Quit=q or ESC, Rate=r, Up=^U, Down=^D
This will show you the real time traffic on all interfaces.
If you want to see the traffic on a specific interfaces, that’s also possible as the following:
root@R1> monitor interface ge-0/0/1
R1 Seconds: 3 Time: 18:30:58
Delay: 0/0/1
Interface: ge-0/0/1, Enabled, Link is Up
Encapsulation: Ethernet, Speed: 1000mbps
Traffic statistics: Current delta
Input bytes: 0 (0 bps) [0]
Output bytes: 0 (0 bps) [0]
Input packets: 0 (0 pps) [0]
Output packets: 0 (0 pps) [0]
Error statistics:
Input errors: 0 [0]
Input drops: 0 [0]
Input framing errors: 0 [0]
Carrier transitions: 1 [0]
Output errors: 0 [0]
Output drops: 0 [0]
Next=’n’, Quit=’q’ or ESC, Freeze=’f’, Thaw=’t’, Clear=’c’, Interface=’i’
That’s all what you need to know about the monito command, see you in the upcoming lesson 😊
0 Comments