Hi All,
I would like to print the CDP neighbors list on a device label.
While running snmpwalk I can see the data but it’s spreads over a few OID’s.
Does anyone has an idea on how to accomplish that?
Many Thanks.
Hi All,
I would like to print the CDP neighbors list on a device label.
While running snmpwalk I can see the data but it’s spreads over a few OID’s.
Does anyone has an idea on how to accomplish that?
Many Thanks.
The only way I can see to do it on a device label is to include the entire oid. That means you will have to manually add every neighbor to the appearance. i.e. CDP: [oid(“1.3.6.1.4.1.9.9.23.1.2.1.1.6.10101.197”)]
I tried something like CDP: [oid(“1.3.6.1.4.1.9.9.23.1.2.1.1.6.[Interface.Index]”)] but since the interface.index is only in context on interfaces it doesn’t work on the device appearance. Also the CDP neighbor is not actually part of the interface so I could not not get it to work like description below…
I put the following in the tooltip for interfaces and it works fine.
“Description: [oid(“1.3.6.1.2.1.31.1.1.1.18.[Interface.Index]”)]”
Since the CDP neighbor is loosely based on Interface.Index I thought maybe “CDP: [oid(“1.3.6.1.4.1.9.9.23.1.2.1.1.6.[Interface.Index]”)]” placed on the interface should show the neighbor of the interface. But it doesn’t work, I suspect it is out of context.
Maybe do some testing otherwise it is going to be a big manual process…
I just use the Description on link tooltip myself.
GL
Lebowski
Thanks Lebowski,
I appreciate your help, I will continue to play with it.
Many Thanks