Community discussions

MikroTik App
 
nillok
just joined
Topic Author
Posts: 1
Joined: Mon Sep 04, 2023 3:15 pm

Dude

Mon Sep 04, 2023 3:30 pm

How can I count in, out traffic for bridge vlan with snmp? What snmp module and OIDS supported for this task
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3509
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: Dude

Mon Sep 04, 2023 5:48 pm

In the Dude, go the map and add(+) your router as a "Device", providing its login details and checking RouterOS box. Then in same map add(+) a Network object, one for each VLAN you have. Finally, add(+) a "Link" and draw a line between the router a VLAN, and in the dialog that appears select RouterOS type, and pick the VLAN interface that coorsponses to the one draw (& repeat per VLAN). All data will be track and the speeds will show on the link object's line in Map.

The key concept is the Link, but the rule is there can be only one link between same two objects – why you need multiple "Network", one per VLAN, so these tracking "Link" lines are unique. No SNMP is needed,RouterOS it can use winbox protocol to fetch stats.

To find OIDs for use in any SNMP client, you can use the mikrotik.mib from their website. You can also use the following CLI command to find a specific interface's OID:
/interface print
/interface print oid
You'll need to match the # from the first print that has the interface name, and the 2nd print with "oid" to find that interface's OID – the OID numbers don't always align, why "2 prints" are needed.

Who is online

Users browsing this forum: No registered users and 2 guests