[SOLVED] SNMP reporting memory problem

Hello,

I have roughly searched this forum and haven’t found answer to my problem.

I want to get memory usage from my RB433 (with latest RouterOS v5.0rc7), so I use and get

snmpwalk -c community -v 1 IPaddress .1.3.6.1.2.1.25.2.3.1.6
HOST-RESOURCES-MIB::hrStorageUsed.65536 = INTEGER: 12864
HOST-RESOURCES-MIB::hrStorageUsed.131073 = INTEGER: 33424

I want only the first line, so I add .1 to OID, but then I get “End of MIB”.

I’m a little newcomer in this problematic. Am I doing something bad? I tried to search via google, but no luck.

Can someone help me to solve it?

Thanks
Pavouk106

Pavouk106,

Thank you very much for the report.
We have found and fixed one problem at 5.0rc8 version for the particular problem.
Memory and Disk reported values are fixed at 5.0rc8.

Thanks for very fast reply.

I’m looking forward to v5.0rc8 and have values back in SNMP generated graphs.

Hi.

I’ve just tried RC8 for this very reason, but the memory and hard disk entries still don’t seem to be there.

Did this bugfix get dropped from rc8 in the end?

I’m using rc8 on a 411 board, and am getting this response from a snmpwalk on .1.3.6.1.2.1.25.2.3.1.6:

iso.3.6.1.2.1.25.2.3.1.6.65536 = INTEGER: 10936
iso.3.6.1.2.1.25.2.3.1.6.131073 = INTEGER: 29476

Instead of this on a version 3.3:

iso.3.6.1.2.1.25.2.3.1.6.1 = INTEGER: 38004
iso.3.6.1.2.1.25.2.3.1.6.2 = INTEGER: 17156

Thanks - Lawrence

The problem should be fixed at 5.0rc8. We will try to make additional tests.
Do you have any other MikroTik board with rc8 (do you get the same problem there too)?

Hi.

I’ve just tried the same snmpwalk on a different rc8 box, this time a RB433, and the results are the same:

iso.3.6.1.2.1.25.2.3.1.6.65536 = INTEGER: 15760
iso.3.6.1.2.1.25.2.3.1.6.131073 = INTEGER: 29036

Thanks - Lawrence

Actually, it turns out that this RB433 is in fact now on rc9, and still the problem persists…

Cheers - Lawrence

Hi.

Any news on this?

Thanks - Lawrence

I’m running rc9 now on my 433 and the problem from first post is still there.

I run snmpwalk with OID .1.3.6.1.2.1.25.2.3.1.6 and I get 2 values.
When I run it with IOD .1.3.6.1.2.1.25.2.3.1.6.1 I get End of MIB instead of first value.

I tried to snmpwalk older version of OS (don’t know which one though, I’m not admin here in the net) and I can get 2 values and by adding .1 or .2 I get the first and the second value respectively.

It would be great if I could get specific value even from 5.0rc.

(5.0rc is great in other things though :wink: )

reported oids by /system resource print oid

> sy resource print oid 
           uptime: .1.3.6.1.2.1.1.3.0
  total-hdd-space: .1.3.6.1.2.1.25.2.3.1.5.131073
   used-hdd-space: .1.3.6.1.2.1.25.2.3.1.6.131073
     total-memory: .1.3.6.1.2.1.25.2.3.1.5.65536
      used-memory: .1.3.6.1.2.1.25.2.3.1.6.65536

why would you try other values?

if you want only first line of snmpwalk of .1.3.6.1.2.1.25.2.3.1.6 you have to use .1.3.6.1.2.1.25.2.3.1.6.131073

I have to apologize, I realized it few minutes after shutting down my PC and going to work. I just have to use other ending number (as you had written).

RouterOS v4 had it made in other way (.1 and .2) and I haven’t understood the change (to the new numbers). I’m not professional in these things (SNMP and all)

I’m sorry about that. Thank you for answers