Community discussions

MikroTik App
 
idmytrenko
just joined
Topic Author
Posts: 3
Joined: Mon Dec 28, 2020 5:23 pm

Substituting values on the device label.

Wed Dec 30, 2020 1:10 pm

Hi!
I want to monitor switches with a large number of ports (48). I have found SNMP IOD for each port and I am successfully getting values.
[raw_oid("1.3.6.1.4.1.674.10895.5000.2.6132.1.1.1.1.8.1.1.3.","48")]
The problem is that I have to have 48 functions for each sample. It would be great to be able to pass the port number as a parameter to the function, but the custom functions don't seem to be able to do that.
A concatenation on the device label by type would do as a last resort.
Device.Name is set to 48.
[concatenate("1.3.6.1.4.1.674.10895.5000.2.6132.1.1.1.1.8.1.1.3.",[Device.Name])]
But unfortunately, nested values are not substituted.

Can you tell me how to get by with one function instead of 48?
v.6.46.8

Who is online

Users browsing this forum: No registered users and 12 guests