Hi Coders, I get the following error on amd64/FreeBSD6.1. The same code runs ok on i386/FreeBSD4.2.
I assign OID value, nullOid to a snmp variable in my agent memcpy(<var>, nullOid, nullOidLen); <var>_len = nullOidLen/sizeof(oid); and when I get the variable value using snmpget like: snmpget -v2c -c public localhost <var>.1 I get Timeout on this command. In snmp agent log I see the following message: NET-SNMP version 5.3.1 netsnmp_assert pss->s_snmp_errno != (-11) failed snmp_api.c:3124 snmp_build() send response: Error building ASN.1 representation (build objid: bad second subidentifier) ---<MIB-NAME>::<varname>.1 If I do not limit <var>_len to 2 (nullOidLen/sizeof(oid)), (say <var>_len = nullOidLen), there are no errors in snmp log and snmpget returns <MIB-NAME>::<var name>.1 = OID: SNMPv2-SMI::zeroDotZero.0.0.0.0.0.0.0.0.0.0.0.0.0.0. Compiled the same code and ran everything on a 32 bit machine and it runs OK. I.e snmpget -v2c -c public localhost <var>.1 gives correct result:OID: zeroDotZero I generated agent code using MFD templates. I'm using FreeBSD6.1/amd64/NET-SNMP version 5.3.1. Please help me fix this issue. Thanks, Avnindra ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
