Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template update: cisco_nxos_show_cdp_neighbors #147

Closed
gavmckee80 opened this issue Sep 12, 2017 · 1 comment · Fixed by #208
Closed

Template update: cisco_nxos_show_cdp_neighbors #147

gavmckee80 opened this issue Sep 12, 2017 · 1 comment · Fixed by #208

Comments

@gavmckee80
Copy link

gavmckee80 commented Sep 12, 2017

ISSUE TYPE
  • Template Creation Help
TEMPLATE USING
Value Filldown NEIGHBOR (\S+)
Value Required LOCAL_INTERFACE (\S+)
Value NEIGHBOR_INTERFACE (\S+)

Start
  ^Device.*ID -> CDP

CDP
  ^${NEIGHBOR}\s+${LOCAL_INTERFACE}\s+\d+\s+[\w\s]+\S+\s+${NEIGHBOR_INTERFACE} -> Record
  ^${NEIGHBOR}
  ^\s+${LOCAL_INTERFACE}\s+\d+\s+[\w\s]+\S+\s+${NEIGHBOR_INTERFACE} -> Record
SAMPLE COMMAND OUTPUT
xxx-xxx-xxx-xxx# show cdp neighbors 
Capability Codes: R - Router, T - Trans-Bridge, B - Source-Route-Bridge
                 S - Switch, H - Host, I - IGMP, r - Repeater,
                 V - VoIP-Phone, D - Remotely-Managed-Device,
                 s - Supports-STP-Dispute


Device-ID             Local Intrfce Hldtme Capability  Platform         Port ID
my-dc1-mgt-sw1(FOC213230KP)
                   mgmt0          138    R S I s   N3K-C3172PQ-XL     Eth1/48       
lx-dc1-server01.mynetwork.com
                   Eth1/1/1       109    H         Linux              eth9          
lx-dc1-server02.mynetwork.com
                   Eth1/1/2       106    H         Linux              eth9          
lx-dc1-server03.mynetwork.com
                   Eth1/1/3       91     H         Linux              eth9          
lx-dc1-server04.mynetwork.com
                   Eth1/1/4       112    H         Linux              eth9          
lx-dc1-server05.mynetwork.com
                   Eth1/2/1       100    H         Linux              eth9
SUMMARY

I would like to learn how to add Capability and Platform to the template above. This will be very useful as the output for these values in the show cdp neighbor detail is somewhat different. I find the values supplied in this output to be much more useful.

@itdependsnetworks
Copy link
Contributor

Thanks @gavmckee80 I remember this being a bit of an issue, but will try and take a look this weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants