06-29-2013 12:39 PM
I have a problem with NX-OS and i am trying to initiate the following command to filter output of "show cdp nei det"
this is how i would done on 6500
show cdp nei det | grep Device |IPv4 Add|Cisco IOS Softw
I need this to work on NX-OS.. I noticed lots of features after "|" is there a nice document out there to help me understand and i assume do things better.
thanks
06-30-2013 10:49 AM
The configuration guide has a pretty extensive section on the use of regular expressions in the NX-OS cli.
For your particular example, the string:
show cdp nei det | egrep 'Device |IPv4 Add|Cisco IOS Softw'
...would work. Note that it excludes software for neighbors not running IOS (e.g. NX-OS etc.).
10-29-2024 06:48 AM
I use following command to find out which spanning tree has large TCN on N9K, similar should work on NXOS with filter string include space.
show spanning-tree detail | in 'executing|Number of topology'
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide