On Mon, Mar 23, 2009 at 3:44 PM, Mike Ayers <[email protected]> wrote:
>
> Please don't crosspost.
I decided to crosspost because I felt that this thread now belonged on the
"coder's" list
rather than the "user's" list. Sorry if I offended you.
> From: Fulko Hew [mailto:[email protected]]
> > Sent: Monday, March 23, 2009 12:13 PM
>
> > I am making a 'network simulator', where a simple application
> > (in Perl) will cause Net-SNMP to 'forget'
> > all of the variables it would normally answer to, and replace
> > them with internally generated/supported
> > variables. This way I can generate 'artificial' responses to
> > any SNMP requests, and simulate 'any'
> > kind of device. The second half of the project will be to
> > use IP aliases on the interface so that this
> > one box will respond to a (large, configurable) number of
> > addresses, where each address will be
> > a different device... each with possibly a different set of
> > supported OIDs, and possibly a different
> > set of 'fake' data.
>
> That's what I suspected...
>
> Sorry, but I think you're barking up the wrong tree here. You can't
> squeeze that kind of behavior out of the net-snmp master agent without
> making major, probably nonportable changes. I suggest you consider looking
> at the behavior you need to simulate and writing an emulator that does only
> that.
>
I believe I can squeeze that behavior... I've got everything I need to do
the job
except for that target address, because the addresses are visible, but the
decode type information (protocol ID)is currently lost, and... The session
structure that is passed down does have definitions for this information,
but for some reason does not have it populated.
As an outsider coming into this code/API, I'd consider that a bug that the
fields are defined, but not populated.
I've decided (for now) to persue using the un-tagged data.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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