NX-OS 'show" command filters - CDP Neighbors

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Labels:
-
Network Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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'
