Dear net-snmp-coders, There is another major bug I discovered when working on nlmLogVariableTable.
netsnmp_table_data_add_row() fails to add rows if a lower oid row does not exist. For example, nlmLogVariableTable has the following objects: nlmLogVariableID nlmLogVariableValueType nlmLogVariableCounter32Val nlmLogVariableUnsigned32Val nlmLogVariableTimeTicksVal nlmLogVariableInteger32Val nlmLogVariableOctetStringVal nlmLogVariableIpAddressVal nlmLogVariableOidVal nlmLogVariableCounter64Val nlmLogVariableOpaqueVal If nlmLogVariableValueType is TIMETICKS, which means nlmLogVariableCounter32Val and nlmLogVariableUnsigned32Val do not exist, then nlmLogVariableTimeTicksVal can NOT be added to the table using netsnmp_table_data_add_row(). This is why we do not see nlmLogVariableTimeTicksVal, nlmLogVariableInteger32Val, and nlmLogVariableOidVal in the nlmLogVariableTable populations below. Please advice how to fix or work around this problem. I need to make this part work for our customers. Thanks for your support. Emi Yanagi -----Original Message----- From: Nobody [mailto:[EMAIL PROTECTED] On Behalf Of SourceForge.net Sent: Thursday, July 19, 2007 2:36 PM To: [EMAIL PROTECTED] Subject: [ net-snmp-Bugs-1757101 ] Bug in initialize_table_nlmLogVariableTable Bugs item #1757101, was opened at 2007-07-19 14:35 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=1757101&gro up_id=12694 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: emiy (emiy) Assigned to: Nobody/Anonymous (nobody) Summary: Bug in initialize_table_nlmLogVariableTable Initial Comment: Version: Net-SNMP 5.3.1 OS: Linux nlmLogVariableTable does NOT populate variables in a traplog because the following lines in initialize_table_nlmLogVariableTable(): netsnmp_table_set_add_default_row(table_set, COLUMN_NLMLOGVARIABLEINDEX, ASN_UNSIGNED, 0, NULL, 0); After I removed these lines, I was able to populate nlmLogVariabletable. NOTIFICATION-LOG-MIB::nlmLogNotificationID."default".1 = OID: NET-SNMP-AGENT-MIB::nsNotify Restart NOTIFICATION-LOG-MIB::nlmLogNotificationID."default".2 = OID: IF-MIB::linkUp NOTIFICATION-LOG-MIB::nlmLogVariableID."default".1.1 = OID: SNMPv2-MIB::sysUpTime.0 NOTIFICATION-LOG-MIB::nlmLogVariableID."default".2.1 = OID: SNMPv2-MIB::sysUpTime.0 NOTIFICATION-LOG-MIB::nlmLogVariableID."default".2.2 = OID: IF-MIB::ifIndex.1 NOTIFICATION-LOG-MIB::nlmLogVariableID."default".2.3 = OID: IF-MIB::ifAdminStatus.1 NOTIFICATION-LOG-MIB::nlmLogVariableID."default".2.4 = OID: IF-MIB::ifOperStatus.1 NOTIFICATION-LOG-MIB::nlmLogVariableID."default".2.5 = OID: SNMPv2-MIB::snmpTrapEnterprise .0 NOTIFICATION-LOG-MIB::nlmLogVariableValueType."default".1.1 = INTEGER: timeTicks(3) NOTIFICATION-LOG-MIB::nlmLogVariableValueType."default".2.1 = INTEGER: timeTicks(3) NOTIFICATION-LOG-MIB::nlmLogVariableValueType."default".2.2 = INTEGER: integer32(4) NOTIFICATION-LOG-MIB::nlmLogVariableValueType."default".2.3 = INTEGER: integer32(4) NOTIFICATION-LOG-MIB::nlmLogVariableValueType."default".2.4 = INTEGER: integer32(4) NOTIFICATION-LOG-MIB::nlmLogVariableValueType."default".2.5 = INTEGER: objectId(7) Regards, Emi Yanagi ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1757101&gro up_id=12694 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
