Hello,
I'm trying to setup a template that collects port negotiation rates on Mikrotik devices. I get the info that I want on physical ports, but I get 0 results on virtual interfaces. I would like to filter out virtual interfaces so DCIs are not being created.
transport = CreateSNMPTransport($node);
if (transport == null)
return false;
// get the interface name to return as instance-name
vb = SNMPGet(transport, ".1.3.6.1.2.1.31.1.1.1.1." .. $1);
if (vb == null) or (vb == 0)
return false;
// filter out loopback
if (vb.value == "lo")
return false;
return %(true, $1, vb.value);
I've tried using contains(vb.value, "vlan") on the bottom statement, but that just breaks the script.
			I'm trying to setup a template that collects port negotiation rates on Mikrotik devices. I get the info that I want on physical ports, but I get 0 results on virtual interfaces. I would like to filter out virtual interfaces so DCIs are not being created.
transport = CreateSNMPTransport($node);
if (transport == null)
return false;
// get the interface name to return as instance-name
vb = SNMPGet(transport, ".1.3.6.1.2.1.31.1.1.1.1." .. $1);
if (vb == null) or (vb == 0)
return false;
// filter out loopback
if (vb.value == "lo")
return false;
return %(true, $1, vb.value);
I've tried using contains(vb.value, "vlan") on the bottom statement, but that just breaks the script.