We are using SNMP to monitor a RUT50X Router.
We have downloaded the MIB file from the router UI and can successfully query for values.
However, with snmpwalk
when we query mSent
, mSentToday
, mReceived
or mReceivedToday
we get a signed integer, which means the value can be negative, as opposed to the MIB definition which should be an unsigned Counter64.
For instances, querying the router with MIBS=+TELTONIKA-MIB snmpwalk -m .snmp/mibs/teltonika.mib -v 2c -c public 192.168.1.1 .1 -d
returns the following:
Sending 48 bytes to UDP: [192.168.1.1]:161->[0.0.0.0]:41687
0000: 30 2E 02 01 00 04 06 70 75 62 6C 69 63 A1 21 02 0......public.!.
0016: 04 57 99 06 CE 02 01 00 02 01 00 30 13 30 11 06 .W.........0.0..
0032: 0D 2B 06 01 04 01 82 FC 32 02 02 01 15 01 05 00 .+......2.......
Received 52 byte packet from UDP: [192.168.1.1]:161->[0.0.0.0]:41687
0000: 30 32 02 01 00 04 06 70 75 62 6C 69 63 A2 25 02 02.....public.%.
0016: 04 57 99 06 CE 02 01 00 02 01 00 30 17 30 15 06 .W.........0.0..
0032: 0D 2B 06 01 04 01 82 FC 32 02 02 01 16 01 02 04 .+......2.......
0048: 94 80 01 0A ....
TELTONIKA-MIB::mSent.1 = Wrong Type (should be Counter64): INTEGER: -1803550454
Sending 48 bytes to UDP: [192.168.1.1]:161->[0.0.0.0]:41687
0000: 30 2E 02 01 00 04 06 70 75 62 6C 69 63 A1 21 02 0......public.!.
0016: 04 57 99 06 CF 02 01 00 02 01 00 30 13 30 11 06 .W.........0.0..
0032: 0D 2B 06 01 04 01 82 FC 32 02 02 01 16 01 05 00 .+......2.......
Received 52 byte packet from UDP: [192.168.1.1]:161->[0.0.0.0]:41687
0000: 30 32 02 01 00 04 06 70 75 62 6C 69 63 A2 25 02 02.....public.%.
0016: 04 57 99 06 CF 02 01 00 02 01 00 30 17 30 15 06 .W.........0.0..
0032: 0D 2B 06 01 04 01 82 FC 32 02 02 01 17 01 02 04 .+......2.......
0048: E7 23 9E DF .#..
TELTONIKA-MIB::mReceived.1 = Wrong Type (should be Counter64): INTEGER: -417095969
Note the value returned is an INTEGER
and is negative. Whereas it should be a COUNTER64
.
The Router Firmware is RUTX_R_00.07.04.5
.
I have tried changing to use SNMP v1, 2 and 3 and the returned value is always the same.
Is it possible to change the SNMP response to return the correct data type?