Re: Help required for Custom Table Handler

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/9/2 Sharad Vasista <[email protected]>:
> I have created a mib2c file for my Table using mib2c.create-dataset.conf


> Here the mib2c created function netsnmp_table_set_multi_add_default_row(...)
> is present, as well as a handler  named mteEvent*Table_handler(.....)
> But there is no implementation , just a return value as "return
> SNMP_ERR_NOERROR;" within the handler definition body.

The point about the 'dataset' helper is that almost all of the processing
is done by the helper chain handlers.   Values/rows are created via SET
requests, and the individual values are supplied by the dataset helper
itself.   There's rarely any need for the user-supplied handler to do anything
(and most dataset-based implementations might well omit the MIB-specific
handler altogether).

The downside is that working with individual column values is fairly
cumbersome.   That's one of the reasons why the disman/mteEvent*
code you mention has been superceded by the disman/event/*
implementation - which uses 'mib2c.table_data.conf' instead.
This still uses the helper handler to determine which row of the
table is required, but processes the columns of this row within the
MIB-specific handler.



> How do I map this to the mib2c file created using mib2c.create-dataset.conf
> . Basically I want to implement the custom handler for GET/ SET.

The first question is - where will the data for this table come from?
Presumably it won't be populated via SNMP SET requests (since the
objects are defined as "read-only").   But you've deleted all of the
descriptions, so it's impossible to tell what these objects might refer to.

Dave

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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.