04-30-2015 09:32 AM - edited 03-03-2019 07:50 AM
show cdp neighbor fastethernet1
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone,
D - Remote, C - CVTA, M - Two-port Mac Relay
Device ID Local Intrfce Holdtme Capability Platform Port ID
ASMxxxx1.xxxxxx.net
Fas 1 134 R S I WS-C4948E Gig 1/42
Anyone have a hack that might supress the .xxxxxx.net piece of the device id in show cdp neighbors ?
it would make some reporting we are trying to do just a bit easier
thanks
Solved! Go to Solution.
04-30-2015 10:02 AM
Since you asked for a hack, you could:
If you ever need to generate a new SSH key you'll have to add the domain-name back in.
Alternately, depending on how you're doing your reporting, use EEM or the WSMA API to extract just the data you need.
04-30-2015 10:02 AM
Since you asked for a hack, you could:
If you ever need to generate a new SSH key you'll have to add the domain-name back in.
Alternately, depending on how you're doing your reporting, use EEM or the WSMA API to extract just the data you need.
04-30-2015 10:39 AM
Sadly, solution 1 would be career limiting.
the reporting tool is a hand built script. I'll do some more digging on what we might have available.
thanks for the prompt response.
05-05-2015 06:42 PM
This can be done. I've got an EEM script, authored by Joe Clarke, which strips out the domain and populate relevant information into the interface description.
I am still reading the documentation but you might want to look at Cisco Secure CDP.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: