Re: table handlaer

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 17/05/07, Hamid Taromian <[email protected]> wrote:
> i want to handle my table within table handler.(GET_MODE),
>
> but i dont know hot to pass my table to table handler.
> my table is defined and registered outside this handler.

Yes - that's normal.

The structure of the table is typically defined and registered
in the initialisation routine.  The API used to register the table
will determine which helpers are called to assist with processing
a request (and hence how much work is done for you) - but this
will usually end up calling the handler routine that you specify
as part of the initialisation code.


If you use 'netsnmp_register_table()', then the table helper will
parse the requested OID, to extract the index values.  But that's
all that's done for you - deciding which row is required for a
particular request is up to you.  Some of the other helpers do
more of this processing for you.

If you need more assistance, you'll have to provide a bit more
detail of exactly what you're trying, and what problems you are
having.

Dave

-------------------------------------------------------------------------
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.