How to with ASN_INTEGER on CentOS

David Ulrich <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

On CentOS 4.4 with NET-SNMP version: 5.1.2
I get some value from network elements with INTEGER type. This value  
could be negative or positive. But I notice that :
- with net-snmp C library or command line tool the value returned is  
correct when positive but when it's negative the value is (2^32 -  
"correct value")

example :
with C library :
- INTEGER: 4294967254
with command line tool :
- truncating integer value to 32 bits
- SNMPv2-SMI::transmission.127.1.1.1.1.6.3 = INTEGER: 4294967269

When I use the same command line tool on my Mac OS X -NET-SNMP  
version: 5.4- the value returned is correct :
- SNMPv2-SMI::transmission.127.1.1.1.1.6.3 = INTEGER: -27

My Mac is a CoreDuo 32bits and the CentOS is a Xeon 64bits.

Is their a fix or a solution on CentOS?

Regards

David


David Ulrich
---
e-mail: [email protected]
Phone:  +41274511962

Sierre-Énergie SA
Rte de l'Industrie 29
CH-3960 Sierre





-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.