32 bit INT OID issue

Started by cserzs, March 31, 2016, 11:27:49 AM

Previous topic - Next topic

cserzs

Hi,

I have installed the v2.0-RC2 NetXMS system and I tried to integrate an SNMP device what uses 32 bit INT OIDs. I carried out the compilation process of corresponding MIB  files successfully but in DCI configuration/ Select MIB Object window when I tried to run an SNMP Walk process I found that the 32 bit INT OID components are not displayed properly (with negative sign). Please see the attached screenshot of this MIB Walk Results Window.

tomaskir

1) Use 2.0.3, RC2 is quite old.
2) Use the Java Management console, not the legacy one.

Let us know if the problem persists after those changes.

cserzs

Hi,

Thank you for your feedback.
I have upgraded my NetXMS system to v2.0.3 but despite this the 32 bit INT OID issue still inadequate (remain the negative sign).

Victor Kirhenshtein

Hi,

it's actually a bug in libnxsnmp. I've fixed it in development branch. If you are building from source, you can fix it by changing file src/snmp/libnxsnmp/main.cpp line 34:

from:
      size_t numChars = _sntprintf(&buffer[bufPos], bufferSize - bufPos, _T(".%d"), value);

to:
      size_t numChars = _sntprintf(&buffer[bufPos], bufferSize - bufPos, _T(".%u"), value);

Best regards,
Victor

cserzs

Hello Victor,

Thank you very much for your support.
I will wait for the official fixed version.

BR, Zsolt