Re: Understanding snmpwalk

2010-10-19 Thread Leo Lin
Hi Dave,   I've found the source of the bug.  As all bug, it was a silly mistake.   Initially, I've set the RowIndex on Table2 to OctetString while studying the data_set.c source code.  I've decided to change it to Integer32 which is more practical.   by DEBUGMSGTL, the code ends while executin

Re: Understanding snmpwalk

2010-10-19 Thread Leo Lin
while executing   switch (table_info->colnum){ case } --- On Tue, 10/19/10, Dave Shield wrote: From: Dave Shield Subject: Re: Understanding snmpwalk To: "Leo Lin" Cc: "Net-snmp-users" Date: Tuesday, October 19, 2010, 8:53 AM On 19 October 2010 16:42, Leo Lin wr

Re: Understanding snmpwalk

2010-10-19 Thread Dave Shield
On 19 October 2010 16:42, Leo Lin wrote: > you are correct, table.c is not the source of the problem. >  However, I don't understand why snmpd hangs on AlarmDescription.2 on conf.c It doesn't. The client application (snmpwalk or snmpgetnext) issues a GETNEXT request on alarmDescription.2.The

Re: Understanding snmpwalk

2010-10-19 Thread Leo Lin
hanks!   Leo; --- On Tue, 10/19/10, Dave Shield wrote: From: Dave Shield Subject: Re: Understanding snmpwalk To: "Leo Lin" Cc: "Net-snmp-users" Date: Tuesday, October 19, 2010, 8:16 AM On 19 October 2010 16:07, Leo Lin wrote: > snmpwalk –v1 –cprivate localhost AlarmDat

Re: Understanding snmpwalk

2010-10-19 Thread Dave Shield
On 19 October 2010 16:07, Leo Lin wrote: > snmpwalk –v1 –cprivate localhost AlarmDateTime // works OK > snmpwalk –v1 –cprivate localhost AlarmType    // works OK > snmpwalk –v1 –cprivate localhost AlarmDescription // hangs @ > AlarmDescription.2 You're thinking of this in the wrong way. It'

Re: Understanding snmpwalk

2010-10-19 Thread Leo Lin
helper, I will try with my own module (snmpd –agent.c table.c) and see if there’s any errors.   Leo; --- On Tue, 10/19/10, Dave Shield wrote: From: Dave Shield Subject: Re: Understanding snmpwalk To: "Leo Lin" Cc: "Net-snmp-users" Date: Tuesday, October 19, 2010, 5:29 AM O

Re: Understanding snmpwalk

2010-10-19 Thread Dave Shield
On 19 October 2010 13:20, Leo Lin wrote: > Actually I have 2 tables, and on both it behaves differently. What are the root OIDs of each table? What other objects are defined between the two? > On both tables, if I perform snmpgetnext, it works fine. That's a bit vague. What OIDs are you runnin

Re: Understanding snmpwalk

2010-10-19 Thread Leo Lin
nstead, to check if this happens with the helper as well.  Then, I will DEBUGMSGTL to check where it hangs...   Leo; --- On Tue, 10/19/10, Dave Shield wrote: From: Dave Shield Subject: Re: Understanding snmpwalk To: "Leo Lin" Cc: "Net-snmp-users" Date: Tuesday, October 19,

Re: Understanding snmpwalk

2010-10-19 Thread Dave Shield
On 19 October 2010 01:44, Leo Lin wrote: > if I issue snmpwalk like so > $snmpwalk -v1 -cprivate localhost MyTable > the agent displays the contents of the table, but it hangs for a while, and > later I get > Timeout: No response from localhost > then the snmpd shutsdown. > > Is this norm

Re: Understanding snmpwalk

2010-10-18 Thread Leo Lin
Hi,   I'm using net-snmp-5.6.rc1, and I've implemented scalars and table oids modules on my agent.   Everything works fine, I can issue snmpget, snmpgetnext, snmpset,   one of the tables is as following:   MyTable (1) |--TableEntry (1)    |    Index: RowIndex    |- Integer32 Row

Understanding snmpwalk

2010-10-18 Thread Leo Lin
Hi,   I'm using net-snmp-5.6.rc1, and I've implemented scalars and table oids modules on my agent.   Everything works fine, I can issue snmpget, snmpgetnext, snmpset,   one of the tables is as following:   MyTable (1) |--TableEntry (1)     RowIndex Integer32 AlarmType OctetString AlarmDescripti