Re: Question regarding the Iterator method

This is a discussion on Re: Question regarding the Iterator method within the SNMP Coders forums, part of the Networking and Network Related category; On 07/12/06, Magnus Fromreide <magfr@lysator.liu.se> wrote: > On ons, 2006-12-06 at ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-08-2006
Dave Shield
 
Posts: n/a
Default Re: Question regarding the Iterator method

On 07/12/06, Magnus Fromreide <magfr@lysator.liu.se> wrote:
> On ons, 2006-12-06 at 18:41 +0100, Olivier Beytrison wrote:
> > We have small temperature sensors (embedded devices) that will
> > periodically send information through the network to a central server.
> > (those devices can't run their own snmp agent). The application on the
> > server will store the data in a linked list.
> >
> > The same program is a subagent aswell, and will feed the data into the
> > snmp agent of the server.


That's the application on the central server, you mean?



> > 1. I've choosed the Iterator solution, as explained when running mib2c
> > (the data are held outside from the agent itself). Is that the right
> > choice ?

>
> I'd say no. When you are writing a subagent then the subagent acts as
> agent, so you are holding all data inside the (sub)agent (in that linked list)


I'm not sure I agree.
Yes - the data is held within the same application binary as the (sub)agent.
But you could reasonably regard the subagent as a semi-self-contained
unit within the wider application.

As regards the choice of MIB helper, what's relevant is whether the data
for the table is maintained by SNMP subagent code (i.e. one of the table
data helpers), or "external" to the Net-SNMP-provided code.
If the table data is stored in a linked list, and manipulated by your main
application code - then this is effectively "external" to the SNMP sub-unit,
so the iterator is a reasonable choice.

Otherwise, you're really looking at taking a second copy of the same
data within the application, specifically for the SNMP processing. If things
change as quickly as you imply, this might not be the best approach.

Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?p...rge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:15 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0