Re: RE: Help required for Custom Table Handler

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/9/3 Sharad Vasista <[email protected]>:
>> The first question is - where will the data for this table come from?

> This data comes in from the BladeCenter kernel

Yes - but how?
The kernel knows about the various blades.
The agent (and the MIB modules) knows how to handle SNMP requests.

What you need to concentrate on is how to bridge
the gap between the agent and the kernel - how to tell
the agent about this list of blades.


> Query: If a new blade is added, how do I add a row for each new blade
> Currently we have a linked list thats appended with a new node.

But where does this list come from?

> Does net snmp provide something by which a new linked list node results in a
> new row being added to the table .

If you are using the 'table_data' helper, then this effectively replaces
your linked list - it holds a list of the blades entries that it knows about.
But it's up to *you* to provide the code that tells the helper about
what blades are present - it's not something that the agent can do
automatically.

I'd suggest you try running mib2c with the option "-S cache=1",
then fill the 'load' routine with code to populate the table with the
list of rows from the kernel.

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.