lost mac snmp oid

Hello everybody!

I have RB2011UiAS and use snmp oid (.1.3.6.1.2.1.17.4.3.1.2) for check mac in mac-table, but recently this oid returns: “iso.3.6.1.2.1.17.4.3.1.2 = No Such Object available on this agent at this OID”
Snmp is enabled and running. Another oid (iso.3.6.1.2.1) returns a lot of things.

I checked this oid on several different routerboards: another RB2011 and RB751/951. Also I used different firmware: 6.40.5, 6.40.4, 6.39.2. But on some routers oid returns correctly, on others oid returns “No Such Object available on this agent at this OID”

My config:

[admin@mikrotik] > snmp print 
          enabled: yes
          contact: 
         location: 
        engine-id: 
      trap-target: 
   trap-community: testcommunity
     trap-version: 2
  trap-generators: 
[admin@mikrotik] > snmp community print 
Flags: * - default 
 #   NAME                                    ADDRESSES                                                                      SECURITY   READ-ACCESS
 0 * testcommunity                           0.0.0.0/0                                                                      none       yes

What could be the problem? Please help configure the router so that the oid will return correctly.

Try to add 1 before first dot in the oid number.

I don’t see that problem with the OID you show, I use that regularly in a network documentation script.

I tried .1.3.6.1.2.1.17.4.3.1.2 and 1.3.6.1.2.1.17.4.3.1.2
Same problem: “No Such Object available on this agent at this OID”

I don’t see that problem with the OID you show, I use that regularly in a network documentation script.

I use that regularly too. I wrote above: "I checked this oid on several different routerboards: another RB2011 and RB751/951. Also I used different firmware: 6.40.5, 6.40.4, 6.39.2. But on some routers oid returns correctly, on others oid returns "

Of course it can do that when it has no entry in the MAC address table, but that is probably rare.
I think you’ll need to do some more investigation. E.g. login to the router and see what is in the ARP and Switch host tables.
It is a known issue that port numbers are not correct in a switched configuration (no problem with bridged) but that is not your problem it seems.

Mikrotik has MAC in mac address table:

[admin@mikrotik] > interface bridge host print 
Flags: L - local, E - external-fdb 
  BRIDGE                                            MAC-ADDRESS       ON-INTERFACE                                            AGE                 
L bridge-l2-xxxxxxxxxxxxxx                          02:49:55:2C:E6:E5 vlan2657-eoip-main                                      0s                  
  bridge-l2-xxxxxxxxxxxxxx                          02:8A:8D:48:22:EA vlan2657-eoip-main                                      56s                 
  bridge-l2-xxxxxxxxxxxxxx                          10:05:CA:48:A5:59 vlan2657-bridge-uplnik                                  3s                  
L bridge-l2-xxxxxxxxxxxxxx                          4C:5E:0C:6F:B8:9D vlan2657-bridge-uplnik                                  0s                  
  bridge-l2-xxxxxxxxxxxxxx                          58:AC:78:D4:63:91 vlan2657-eoip-main                                      0s                  
  bridge-l2-xxxxxxxxxxxxxx                          5C:83:8F:1C:F3:91 vlan2657-eoip-main                                      1s                  
  bridge-l2-xxxxxxxxxxxxxx                          64:12:25:44:6D:A1 vlan2657-bridge-uplnik                                  1s                  
  bridge-l2-xxxxxxxxxxxxxx                          D0:72:DC:97:BE:31 vlan2657-bridge-uplnik                                  0s                  
  bridge-l2-yyyyyyyyyyyyy                           00:00:5E:00:01:02 vlan3469-eoip-main                                      1s                  
  bridge-l2-yyyyyyyyyyyyy                           00:00:5E:00:01:27 vlan3469-eoip-main                                      1s                  
  bridge-l2-yyyyyyyyyyyyy                           00:1E:67:1C:31:6A vlan3469-eoip-main                                      1s                  
L bridge-l2-yyyyyyyyyyyyy                           02:49:55:2C:E6:E5 vlan3469-eoip-main                                      0s                  
  bridge-l2-yyyyyyyyyyyyy                           02:4E:B5:E0:EC:98 vlan3469-bridge-uplink                                  24s                 
  bridge-l2-yyyyyyyyyyyyy                           02:8A:8D:48:22:EA vlan3469-eoip-main                                      56s                 
  bridge-l2-yyyyyyyyyyyyy                           08:CC:68:6E:4E:19 vlan3469-eoip-main                                      0s                  
  bridge-l2-yyyyyyyyyyyyy                           24:B6:57:7F:20:41 vlan3469-bridge-uplink                                  0s                  
L bridge-l2-yyyyyyyyyyyyy                           4C:5E:0C:6F:B8:9D vlan3469-bridge-uplink                                  0s                  
  bridge-l2-yyyyyyyyyyyyy                           84:B2:61:3A:8D:B1 vlan3469-bridge-uplink                                  0s                  
  bridge-l2-zzzzzzzzzzzzzzzzzzzzzzzzz               00:13:60:7E:E6:85 vlan3337-bridge-uplink                                  0s                  
L bridge-l2-zzzzzzzzzzzzzzzzzzzzzzzzz               02:49:55:2C:E6:E5 vlan3337-eoip-main                                      0s                  
  bridge-l2-zzzzzzzzzzzzzzzzzzzzzzzzz               02:8A:8D:48:22:EA vlan3337-eoip-main                                      56s                 
L bridge-l2-zzzzzzzzzzzzzzzzzzzzzzzzz               4C:5E:0C:6F:B8:9D vlan3337-bridge-uplink                                  0s                  
  bridge-l2-zzzzzzzzzzzzzzzzzzzzzzzzz               4C:5E:0C:F3:C5:1D vlan3337-eoip-main                                      38s                 
  bridge-l2-zzzzzzzzzzzzzzzzzzzzzzzzz               B0:C6:9A:CF:A3:79 vlan3337-eoip-main                                      2s                  
  bridge-l2-zzzzzzzzzzzzzzzzzzzzzzzzz               E4:8D:8C:9B:4A:52 vlan3337-bridge-uplink                                  17s                 
  bridge-l2-zzzzzzzzzzzzzzzzzzzzzzzzz               FE:5F:B8:0D:A4:A9 vlan3337-eoip-main                                      17s                 
  bridge-uplink                                     00:13:60:7E:E6:85 sfp1                                                    0s                  
  bridge-uplink                                     00:1B:D5:D9:8E:D5 sfp1                                                    4s                  
  bridge-uplink                                     00:1C:0F:5D:E3:00 sfp1                                                    0s                  
  bridge-uplink                                     02:4E:B5:E0:EC:98 sfp1                                                    24s                 
  bridge-uplink                                     10:05:CA:48:A5:59 sfp1                                                    3s                  
  bridge-uplink                                     24:B6:57:7F:20:41 sfp1                                                    0s                  
L bridge-uplink                                     4C:5E:0C:6F:B8:9D sfp1                                                    0s                  
  bridge-uplink                                     64:12:25:44:6D:A1 sfp1                                                    1s                  
  bridge-uplink                                     84:B2:61:3A:8D:B1 sfp1                                                    2s                  
  bridge-uplink                                     D0:72:DC:97:BE:31 sfp1                                                    2s                  
  bridge-uplink                                     D4:CA:6D:04:5B:C0 sfp1                                                    2s                  
  bridge-uplink                                     E4:8D:8C:9B:4A:52 sfp1                                                    19s                 
L bridge-l2-aaaaaaaaaaaaaaaa                        02:49:55:2C:E6:E5 vlan3467-eoip-main                                      2s                  
  bridge-l2-aaaaaaaaaaaaaaaa                        02:8A:8D:48:22:EA vlan3467-eoip-main                                      58s                 
L bridge-l2-aaaaaaaaaaaaaaaa                        4C:5E:0C:6F:B8:9D vlan3467-bridge-uplink                                  2s