Re: Question regarding Tables in net-snmp

2013-01-04 Thread Reza Salehi
, January 4, 2013 1:41 PM Subject: Re: Question regarding Tables in net-snmp On 4 January 2013 18:21, Reza Salehi wrote: > I put a printf("test"); inside the former one ( > athStatusTable_get_first_data_point()  ).It gets called once if I run > snmpget  but still it gets called

Re: Question regarding Tables in net-snmp

2013-01-04 Thread Reza Salehi
, Reza From: Dave Shield To: Reza Salehi Cc: SNMP FORUM Sent: Friday, January 4, 2013 1:41 PM Subject: Re: Question regarding Tables in net-snmp On 4 January 2013 18:21, Reza Salehi wrote: > I put a printf("test"); inside t

Re: Question regarding Tables in net-snmp

2013-01-04 Thread Dave Shield
On 4 January 2013 18:21, Reza Salehi wrote: > I put a printf("test"); inside the former one ( > athStatusTable_get_first_data_point() ).It gets called once if I run > snmpget but still it gets called multiple time ( up to number of column in > the table) if I run snmpwalk or snmptable. Yes, t

Re: Question regarding Tables in net-snmp

2013-01-03 Thread Dave Shield
On 3 January 2013 18:54, Reza Salehi wrote: > I don't have any get_first or get_next in my code. I'm not sure I believe that. You said that you were using the 'table_iterator' helper. As part of that, mib2c will generate three routines (which you will have needed to tweak to match your environmen

Question regarding Tables in net-snmp

2013-01-03 Thread Reza Salehi
Hi Dave,   Thank you for your response. For some reason I am not getting any E-mail from net-snmp mailing list any more. Neither in my in box nor spam box. That's why I posted my answer twice yesterday and today I check the archive in net-snmp forum and I saw my E-mail along with your response.

Question regarding Tables in NET-SNMP

2013-01-02 Thread Reza Salehi
Happy New year everyone, I have a question regarding  Tables in NET-SNMP world. I have used mib2c to create a table for my code. Everything  is working  and I can retrieve my table using snmpwalk.  The only problem I have is  myTableHandler  gets call multiple times while it is iterating