Community discussions

MikroTik App
 
vipata
just joined
Topic Author
Posts: 17
Joined: Tue Jul 09, 2013 3:52 pm

Problems to display OIDs values

Fri Nov 10, 2017 10:38 am

Hi,

I'm having problems trying to display the OIDs values through labels. I can see all the MIB's OIDs using the SNMP Walk, yet when I edit the label in the Appearance options of the network map element, it hasn't display anything. For example, the OID "3.6.1.4.1.41112.1.6.1.2.1.6.0" or "iso.org.dod.internet.private.enterprises.ubnt.ubntMIB.ubntUniFi.unifiApWireless.unifiVapTable.unifiVapEntry.unifiVapEssId" has the value "ctbell-pruebas", but when I introduce the following lines in the label field, it doesn't appear anything:

SSID1: [oid("3.6.1.4.1.41112.1.6.1.2.1.6.0")]
SSID2: [oid("iso.org.dod.internet.private.enterprises.ubnt.ubntMIB.ubntUniFi.unifiApWireless.unifiVapTable.unifiVapEntry.unifiVapEssId")]

I'm using an Ubiquiti MIB.

Where can the problem be?
 
eriitguy
Member Candidate
Member Candidate
Posts: 197
Joined: Thu Jan 26, 2017 1:16 pm

Re: Problems to display OIDs values

Fri Nov 10, 2017 4:30 pm

Hi,

I'm having problems trying to display the OIDs values through labels. I can see all the MIB's OIDs using the SNMP Walk, yet when I edit the label in the Appearance options of the network map element, it hasn't display anything. For example, the OID "3.6.1.4.1.41112.1.6.1.2.1.6.0" or "iso.org.dod.internet.private.enterprises.ubnt.ubntMIB.ubntUniFi.unifiApWireless.unifiVapTable.unifiVapEntry.unifiVapEssId" has the value "ctbell-pruebas", but when I introduce the following lines in the label field, it doesn't appear anything:

SSID1: [oid("3.6.1.4.1.41112.1.6.1.2.1.6.0")]
SSID2: [oid("iso.org.dod.internet.private.enterprises.ubnt.ubntMIB.ubntUniFi.unifiApWireless.unifiVapTable.unifiVapEntry.unifiVapEssId")]

I'm using an Ubiquiti MIB.

Where can the problem be?
Hello, vipata!

What is happening when you place some generic oids?
For example:
Uptime: [oid("1.3.6.1.2.1.1.3.0")]

Thank you!
 
SFitzpatrick
just joined
Posts: 5
Joined: Thu Oct 12, 2017 10:53 pm

Re: Problems to display OIDs values

Fri Nov 10, 2017 11:35 pm

Instead of putting the OID call in the label, what I've been doing is creating a function and calling that from the label.

Try making a function like

Name: ubiquiti_ssid
code: oid("3.6.1.4.1.41112.1.6.1.2.1.6.0",10,5)

The added parameters 10,5 specify the cache and negative cache time for the oid call. Adding these will prevent excessive false-negative results. 10 seconds is the default cache time, but the default negative cache time is 300 seconds - meaning that if the function fails the Dude will keep reporting that failure for 300 seconds, even if successive function calls do not fail. Changing this to a shorter time like 5 seconds alleviates the issue.

Then on your label, simply put:
SSID: [ubiquiti_ssid()]

This has worked well in my experience, I hope it helps you too.

Edit: Also I noticed that in your SSID1 oid call you dropped a 1 from the start of the oid. It should be oid("1.3.6.1.4.1.41112.1.6.1.2.1.6.0"), correct?

Who is online

Users browsing this forum: No registered users and 4 guests