Community discussions

MikroTik App
 
Duduhandelman
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 89
Joined: Wed Jan 04, 2012 5:30 pm

Display CDP

Wed Jul 11, 2012 3:38 pm

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.
 
lebowski
Forum Guru
Forum Guru
Posts: 1616
Joined: Wed Aug 27, 2008 5:17 pm

Re: Display CDP

Wed Jul 11, 2012 8:48 pm

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
 
Duduhandelman
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 89
Joined: Wed Jan 04, 2012 5:30 pm

Re: Display CDP

Wed Jul 11, 2012 9:58 pm

Thanks Lebowski,
I appreciate your help, I will continue to play with it.

Many Thanks

Who is online

Users browsing this forum: No registered users and 9 guests