Re: GET_NEXT at the end of a table

2006-03-02 Thread Dave Shield
On Thu, 2006-02-02 at 18:55 +0100, Keller, Beat wrote:
 Hi,
 
 We have to implement the GET_NEXT from a table by our one. What
 shall we return if there is no further row in the table?

 Shall we set a special value in the varbind, a special OID, or
 do we have to return an error?

How are you implementing the table?   Which helper are you using?
Normally you should just return without setting a value, and the
agent will recognise this as the end of the table column, and move
on to the next object.



 If we just return SNMP_ERR_NOERROR it works, but it is very slow,
 because GET_NEXT is called around 40 times.

How are you testing this?  What is the *exact* request you are making?
Is the helper being called in exactly the same way each time?
Check the 'table_info-indexes' and 'table_info-colnum' values
for each call.

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


GET_NEXT at the end of a table

2006-02-02 Thread Keller, Beat
Hi,

We have to implement the GET_NEXT from a table by our one. What shall we
return if there is no further row in the table?

If we just return SNMP_ERR_NOERROR it works, but it is very slow,
because GET_NEXT is called around 40 times.

We also tried to set the SNMP_ENDOFMIBVIEW but with the same results.

Shall we set a special value in the varbind, a special OID, or do we
have to return an error?

Best Regards
Beat Keller  Stefan Wildhaber 
 


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: GET_NEXT at the end of a table

2006-02-02 Thread Turbo Fredriksson
Quoting Keller, Beat [EMAIL PROTECTED]:

 We have to implement the GET_NEXT from a table by our one. What shall we
 return if there is no further row in the table?

In my pass_through perl script I return 'NONE\n'. So I guess that's correct
(it's in the manual somewhere - should be the same for C/C++ etc).
-- 
[Hello to all my fans in domestic surveillance] iodine Khaddafi Nazi
Albanian Rule Psix explosion Panama Qaddafi NSA Ortega Uzi FSF North
Korea toluene
[See http://www.aclu.org/echelonwatch/index.html for more about this]
[Or http://www.europarl.eu.int/tempcom/echelon/pdf/rapport_echelon_en.pdf]
If neither of these works, try http://www.aclu.org and search for echelon.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users