...
Expand | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
You would mostly be familiar with the "show" command. It is very good and can basically be used to get output from control plane object. Most of the time this can be used against static object like config. Let's assume that I would like to get BGP config from my home router:
But I can also check the status of BGP peering into VRF dn42
Check the same BGP peering but now for IPv6
Let's see some BGP prefix received in VRF dn42 bgp table: so my screen is too small for all the IPv6 BGP prefix into DN42 VRF As a last example, something we usually do as network operators is to check ongoing interface traffic level:
In the last example we repeatedly issue the "sh int sdn1" command and try to see if TX/RX packets counters increment or not. This command can be improved in order to be less chatty:
Same goes if want want interface traffic for all interface
Above was to check interface status related to software switched packet. What if I want to check hardware switched packet counters switched by P4 or DPDK ?
|
Expand | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
In my previous examples, the output of "show ipv4 bgp 42 unicast database" command could not fit my window. Say hello to "view" keyword then ! Let's now try to get hardware counters as above:
Then you'll be able to see READ-ONLY text buffer where you can navigate and check the output that are beyond boundaries of your screen !
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
As mentioned above, "show" gives you diagnosis instant photo of a control plane object. In order to see counter increment, you'd have to issue "show" repeatedly. In order to avoid that, let me introduce you the "watch" command Let's now try to get hardware counters as above:
It will clear the terminal session and gives you the same outout as above but with counter updated in a regular basis So in this example you'll see a live output with counter incrementing. In the screenshot it is not noticeable, but in real life this is bluffing. See watch interface pretty much like Junos "monitor" keyword. So needless to say that "watch" is applicable to every control plane object such as BGP: Amazing, don't you think ? |
...
Expand | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
In my previous examples, the output of "show ipv4 bgp 42 unicast database" command could not fit my window. Say hello to "display" keyword then !
Then you'll be able to see READ-ONLY text buffer where you can navigate and check the output that are beyond boundaries of your screen ! As a side note, you can benefit from online help by pressing <f1> You can press Ctrl+q in order to exit the editor. As the viewer is a READ-ONLY buffer
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
Last but not list. "differ" , this will split the window in 2 buffers reflecting the same output but with different version and it it signal line lines that have changed.
With this view you can easily spot the differences between 2 advertisements interval. To be honest, when i used this feature for the first time I was totally stumbled and said: Waouw ... Simply amazing ... |
...