From: SourceForge.net <no...@so...> - 2003-07-11 19:58:52
|
Bugs item #769832, was opened at 2003-07-11 19:58 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=769832&group_id=12694 Category: agent Group: None Status: Open Resolution: None Priority: 5 Submitted By: Ann Marie Rubin (annmarierubin) Assigned to: Nobody/Anonymous (nobody) Summary: tableinterator 64-bit int error Initial Comment: OS Info: SunOS kailee 5.10 s10_35 sun4u sparc SUNW,Ultra-60 net-snmp version 5.0.8 built on Fri Jul 11 08:35:49 EDT 2003 On a 64-bit Solaris kernel, net-snmp tableinterator returns an invalid integer value to snmp_agent.c. To reproduce, use attached module: 1. Install 64-bit net-snmp on a 64-bit OS kernel. 2. #command to "set" the nsSleeper value to 10: /usr/local/bin/snmpset -mALL -v 1 -c public -t 5 localhost 1.3.6.1.4.1.8051.2.1.2.0 i 10 2. In one terminal window, run: #command to "get" the nsSleeper value: #NET-SNMP-EXAMPLES-MIB::netSnmpExampleSleeper /usr/local/bin/snmpget -mALL -v 2c -t 15 -c public localhost 1.3.6.1.4.1.8051.2.1.2.0 3. In another terminal window, run: #command to walk to nsTransactionTable: /usr/local/bin/snmpwalk -mALL -v 1 -c public localhost 1.3.6.1.4.1.8072.1.8.1 snmpget returns the value ok: kailee 235 =>get_demo_module_9 SNMPv2-SMI::enterprises.8051.2.1.2.0 = INTEGER: 10 walk times out and returns nothing. Timeout: No Response from localhost kailee 253 =>walk_demo_module_9 Timeout: No Response from localhost kailee 254 =>walk_demo_module_9 Timeout: No Response from localhost kailee 255 =>walk_demo_module_9 Excerpt from snmpd.log. Note value of INTEGER: trace: snmp_agent.c, 2560 results: request results (status = 0): trace: snmp_agent.c, 2563 results: NET-SNMP-AGENT-MIB::nsTransactionMode.11 = INTEGER: 687194767360 trace: snmp_api.c, 2744 snmp_send: Building SNMPv1 message... trace: snmp_api.c, 2747 dumph_send: PDU-RESPONSE trace: snmp_api.c, 3098 snmp_pdu_realloc_rbuild: starting trace: snmp_api.c, 3113 dumph_send: VarBind trace: snmp.c, 322 dumph_send: Value 4. Install a 32-bit version of net-snmp, recompile the test module for 32-bit, and repeat the above test commands: % walk_demo_module_9 NET-SNMP-AGENT-MIB::nsTransactionMode.33 = INTEGER: 160 Excerpt from snmpd.log. Note value of INTEGER: results: request results (status = 0): trace: snmp_agent.c, 2563 results: NET-SNMP-AGENT-MIB::nsTransactionMode.7 = INTEGER: 160 trace: snmp_api.c, 2744 snmp_send: Building SNMPv1 message... trace: snmp_api.c, 2747 dumph_send: PDU-RESPONSE trace: snmp_api.c, 3098 snmp_pdu_realloc_rbuild: starting trace: snmp_api.c, 3113 dumph_send: VarBind trace: snmp.c, 322 dumph_send: Value dumpx_send: 02 02 00 A0 dumpv_send: Integer: 160 (0xA0) trace: snmp.c, 419 dumph_send: Name dumpx_send: 06 0D 2B 06 01 04 01 BF 08 01 08 01 01 02 07 dumpv_send: ObjID: NET-SNMP-AGENT-MIB::nsTransactionMode.7 trace: snmp_api.c, 3181 dumph_send: error index dumpx_send: 02 01 00 dumpv_send: Integer: 0 (0x00) trace: snmp_api.c, 3194 dumph_send: error status dumpx_send: 02 01 00 dumpv_send: Integer: 0 (0x00) trace: snmp_api.c, 3207 dumph_send: request_id dumpx_send: 02 04 76 A1 FB DC dumpv_send: Integer: 1990327260 (0x76A1FBDC) trace: snmp_api.c, 2753 dumph_send: Community String dumpx_send: 04 06 70 75 62 6C 69 63 dumpv_send: String: public trace: snmp_api.c, 2769 dumph_send: SNMP Version Number dumpx_send: 02 01 00 dumpv_send: Integer: 0 (0x00) trace: snmp_api.c, 2787 dumph_send: SNMPv1 Message ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=769832&group_id=12694 |