Community discussions

MikroTik App
 
User avatar
leostereo
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 92
Joined: Thu Oct 18, 2012 11:36 pm
Location: mendoza , argentina
Contact:

How to use a function in aparence/label device.

Thu Jun 06, 2019 6:33 pm

Hy guys, Im trying to diplay connected stations in my ubiquiti nanostation ap.
I dont have the oid that directly provides the integer for connected devices.
Instead I have the oid that provides a line per connected station.
So , how can I count the lines to get the desired number.
I want to display this number at device label so Im trying without success:

[array_size(oid_column(oid(" iso.3.6.1.4.1.14988.1.1.1.2.1.3")))]

it prints "0" even , snmpwalk executed from same server returns:
[root@mon1_dev tecnet]# snmpwalk -v1 -c XXXX XXXXX  iso.3.6.1.4.1.14988.1.1.1.2.1.3
SNMPv2-SMI::enterprises.14988.1.1.1.2.1.3.0.39.34.118.120.209.5 = INTEGER: -68
SNMPv2-SMI::enterprises.14988.1.1.1.2.1.3.0.39.34.150.35.97.5 = INTEGER: -61
SNMPv2-SMI::enterprises.14988.1.1.1.2.1.3.36.164.60.72.77.113.5 = INTEGER: -59
SNMPv2-SMI::enterprises.14988.1.1.1.2.1.3.36.164.60.172.185.85.5 = INTEGER: -64
SNMPv2-SMI::enterprises.14988.1.1.1.2.1.3.36.164.60.172.185.124.5 = INTEGER: -57
SNMPv2-SMI::enterprises.14988.1.1.1.2.1.3.36.164.60.172.187.61.5 = INTEGER: -58
SNMPv2-SMI::enterprises.14988.1.1.1.2.1.3.104.114.81.42.23.158.5 = INTEGER: -58
SNMPv2-SMI::enterprises.14988.1.1.1.2.1.3.104.114.81.100.90.253.5 = INTEGER: -54
SNMPv2-SMI::enterprises.14988.1.1.1.2.1.3.220.159.219.8.94.105.5 = INTEGER: -74
SNMPv2-SMI::enterprises.14988.1.1.1.2.1.3.220.159.219.152.176.47.5 = INTEGER: -72
[
regards.
Leandro.
 
lumper
just joined
Posts: 1
Joined: Mon May 21, 2012 5:08 pm

Re: How to use a function in aparence/label device.

Fri Jun 14, 2019 3:01 am

Hi, man,

You don't have to use an oid() function inside oid_column().
Try just [array_size(oid_column(" iso.3.6.1.4.1.14988.1.1.1.2.1.3"))] instead.

Who is online

Users browsing this forum: No registered users and 12 guests