Community discussions

MikroTik App
 
User avatar
slarner
newbie
Topic Author
Posts: 31
Joined: Wed Jul 18, 2007 10:54 am
Location: UK
Contact:

Function / Probe help!

Mon Dec 05, 2016 4:46 pm

hi,

I wonder if someone can help me to get dude to read Device.CustomField2 which in this case is the frequency set on a radio and then check against the snmp value from the actual device. OID 1.3.6.1.4.1.41112.1.4.1.1.4.1

This is mainly to see when or if a radio has jumped channel due to DFS.

I have no idea how to do this im sure its quite simple function

Hope someone can help!

Stewart
 
lebowski
Forum Guru
Forum Guru
Posts: 1619
Joined: Wed Aug 27, 2008 5:17 pm

Re: Function / Probe help!

Mon Dec 05, 2016 10:00 pm

Using CustomField2 as a processed value doesn't seem possible...

Try this type of thing on the appearance of a device label and you get Device.CustomField2 instead of the value in the field.
[if(Device.CustomField2=2412,"stuff","no stuff"]
[oid("1.3.6.1.4.1.9.9.272.1.1.2.15.1.6.1.1",10,5)]
[if(oid("1.3.6.1.4.1.9.9.272.1.1.2.15.1.6.1.1",10,5)=2412,"stuff","no stuff")]
[if(oid("1.3.6.1.4.1.9.9.272.1.1.2.15.1.6.1.1",10,5)=Device.CustomField2,"stuff","no stuff")]
anyone?

Lebowski

Who is online

Users browsing this forum: No registered users and 11 guests