SNMP, Counter64, value, ...

Started by sodalist, November 30, 2007, 01:36:53 PM

Previous topic - Next topic

sodalist

Hi,

Any suggestions on how to query 64bit counters with netxms ?

NETXMS version: 0.2.19 (x86_32, Windows 2003 SE)

in:
nxsnmpwalk -c public -v 2c x.x.x.x .1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.33

out:
.1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.33.1 [46]:
.1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.33.2 [46]:
.1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.33.3 [46]:
.1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.33.4 [46]:
.1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.33.5 [46]:

NET-SNMP version: 5.3.1 (x86_64, GNU/Linux)

in:
snmpwalk -v2c -O nT -c public x.x.x.x .1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.33

out:
.1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.33.1 = Counter64: 0
.1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.33.2 = Counter64: 143130624
.1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.33.3 = Counter64: 17891328
.1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.33.4 = Counter64: 357957632
.1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.33.5 = Counter64: 88080384


thank you,

Ales

Victor Kirhenshtein

Hello!

I have found a bug (it seems like that). Unfortunatelly, I don't have any device with COUNTER64 variables available, so I cannot test the solution. You can replace your libnxsnmp.dll with attached one - this should solve the problem. Also, if anybody will need to rebuild libnxsnmp from source, there are also patched variable.cpp file.

Best regards,
Victor

sodalist

Hi,

Verified patch. Working.


nxsnmpwalk -c public -v 2c x.x.x.x .1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.33
.1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.33.1 [46]: 0
.1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.33.2 [46]: 143130624
.1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.33.3 [46]: 17891328
.1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.33.4 [46]: 357957632
.1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.33.5 [46]: 88080384


Thank you very much,

Ales