Re: Implementing an agent

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2010/2/5 Jordi Gutiérrez Hermoso <[email protected]>:
> Does anyone have sample code on how to implement several tables with
> shared and multiple indices in a subagent?

If you've got a common data structure for the underlying contents of
these tables, you can actually implement the tables independently.
It doesn't matter if there's no explicit linkage between the tables - if
they are all driven by a shared underlying set of data, they will
automatically reflect the linked indexes.


You haven't said anything about where this underlying data will
come from, and how the tables will be populated/maintained.
But you'll probably need a set of shared routines to handle this
functionality (either creating a entry dynamically via SET requests,
or loading a cached version from some underlying subsystem).

The processing of GET* requests for each individual table should
then follow naturally from this shared data set..   So you can actually
develop the implementation one table at a time.

Dave

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
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.