On 9/7/10 9:19 AM, ToomsCJ7 wrote:
I am having some issues getting the correct local port in this table.  I am not 
100% sure its even possible.  I know how to get the port index with the derived 
value options, but I would prefer to have the actual port name.

<snmp-device-variables-ondemand>
lldpTable, .1, TABLE
lldpTable/lldpRemSysName, 1.0.8802.1.1.2.1.4.1.1.9.0, STRING, "Remote Name"
lldpTable/lldpRemPortDesc, 1.0.8802.1.1.2.1.4.1.1.8.0, STRING, "Remote Port"
lldpTable/lldpRemSysDesc, 1.0.8802.1.1.2.1.4.1.1.10.0, STRING, "Remote Model"
</snmp-device-variables-ondemand>

The above table works for finding the remote port and name.

However, I would like to add the local port OID.  For example.

iso.0.8802.1.1.2.1.4.1.1.9.0.21.1 = Switch Name
iso.0.8802.1.1.2.1.4.1.1.8.0.21.1 = RemotePort A1
iso.0.8802.1.1.2.1.3.7.1.4.21= LocalPort B1

The index is 21, but if I add this to the on-demand table it will show the 
wrong local port.  I am guessing this is due to the .1 on the other OIDs where 
as the local port does not have a .1.
The OID "1.0.8802.1.1.2.1.3.7.1.4.21" is in a different table, indexed only by the local port number. The .1 (lldpRemIndex) at the end of the other OID's is causing the wrong variable to be retrieved when you tack it onto the other table.

There is currently no way to bend the on-demand table syntax to drop the final .1 on the third OID.

--
Bill Fisher
Dartware, LLC
____________________________________________________________________
List archives: http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [email protected]

Reply via email to