Hi, I am using netsnmp version 5.4.1.2 for 64 bit Linux, I am
getting following error.snmpd err send response: Error building ASN.1
representation (build int
size 4: s/b 8)I tried with latest release 5.6 and 5.6.1.pre1 also and got same
error.any clue??
Thanks,Prakash
Looking at the most current net-snmp code, it sure looks like upgrading
will not help me. It looks like net-snmp demands that values defined as
INTEGER in the MIB must be handed into net-snmp (i.e. with
snmp_set_var_value() or snmp_set_var_typed_value()) using a long, i.e.
64 bits in a 64-bit
On Mon, 19 Jul 2010 18:04:06 -0400 John wrote:
JG> Thanks. But are you suggesting that I change the longs to int32_t
JG> throughout the baseline net-snmp code, the very exercise that the good
JG> folks at net-snmp thought was too onerous to take on?
No, just in that one place to fix the error yo
Thanks. But are you suggesting that I change the longs to int32_t
throughout the baseline net-snmp code, the very exercise that the good
folks at net-snmp thought was too onerous to take on? I'm hesitant to
change that so far untouched code, although I did look into that very
possibility. Probl
On Mon, 19 Jul 2010 12:03:00 -0400 John wrote:
JG> But later, deep in the net-snmp code, at the top of the routine
JG> asn_build_int(), we fail this sanity test:
JG>
JG> if (intsize != sizeof(long)) {
JG> _asn_size_err(errpre, intsize, sizeof(long));
JG> return NULL;
JG>
, I can no longer snmpwalk our MIBs. I get lots of this in
the log when I try:
snmpd err send response: Error building ASN.1 representation (build int
size 4: s/b 8)
Looking at our code, I see that for rows in the MIB that are of type
INTEGER, we appropriately define fields in structs of type
i'm still making sense :-)
root# snmpwalk -On -v 2c -c public localhost ipForwarding .
1.3.6.1.2.1.4.1.0 = INTEGER: notForwarding(2)
Begin forwarded message:
From: Alef Veld <[EMAIL PROTECTED]>
Date: December 10, 2006 3:45:39 PM GMT+01:00
To: Net-Snmp- Subagent
Subject: snmpge
till making sense :-)
root# snmpwalk -On -v 2c -c public localhost ipForwarding .
1.3.6.1.2.1.4.1.0 = INTEGER: notForwarding(2)
Begin forwarded message:
From: Alef Veld <[EMAIL PROTECTED]>
Date: December 10, 2006 3:45:39 PM GMT+01:00
To: Net-Snmp- Subagent
Subject: snmpget: Error bu
lowing error at the agent.
venkayamma> "send response: Error building ASN.1 representation"
That's not a good sign, but debugging exactly what is going on will
take the use of a debugger (like gdb) to trace down exactly where and
why that is getting hit.
--
Wes Hardaker
Sparta, Inc.
the
following error at the agent.
"send response: Error building ASN.1 representation"
I started the agent with the follwing command in
/usr/sbin directory
./snmpd -f -Le -d
If you have any idea about this please send me replay.
Thanks in advance,
ve
10 matches
Mail list logo