RE: Table GetNext for next column

"Madan Mohan Goud" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Dave,
	Thanks for the response.

1. I am following iterator approach by implementing
Get_first_data_point, Get_next_data_point and Table_handler functions
for each table. At initialization I am registering all above
corresponding functions with table_iterator Using
netsnmp_register_table_iterator API.

My Get_first_data_point will fectch the first index from the application
code which will supply values for SNMP.

My Get_nextdata_point will fetch the next index from the application
code by taking the index we supplied in Get_first_data_point.

My handler function will take the indexes from the request and retrieve
the value corresponding to this instance from application.

2. What is the simplest way of sending back the agent that no more
instances of this object exists? I am doing it by setting the type of
varbind in request to (request->requestvb->type) SNMP_NOSUCHOBJECT. Is
it correct way? Please correct it if it is not.

3. Please let me know if you need more details.

PS: Sorry! The bounce mail was in some other folder of my mail-box.
Could not recognize that. Sorry for flooding the same message again.


Thanks,
Madan

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Dave Shield
Sent: Tuesday, July 10, 2007 8:45 PM
To: Madan Mohan Goud
Cc: [email protected]
Subject: Re: Table GetNext for next column

On 10/07/07, Madan Mohan Goud <[email protected]> wrote:
>           I have an SNMP Table implemented in NETSNMP way.

What do you mean by the "NETSNMP way"?
There are at least four or five different approaches used in the
Net-SNMP
agent.   Which one(s) are you using?


>                               When the agent receives request for last
> index of the first column, What do I need to do in order to advance to
> the next column?

Normally, you'd simply indicate that there are no more instances of this
particular MIB object.   The agent framework would then automatically
move on to the next column.


>                      I think I am doing something wrong here. Can any
body
> assist me with this??

Given the lack of information about exactly what you're currently doing,
then not really!

A few more details would be helpful - such as which helper you're using,
and how you are currently reporting the end of the column.

Dave

PS: Please do not post the same request more than once.
       You were sent a message saying that your original query was
      waiting to be approved.  There was no need to resend it yourself.



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.