[snmp] Stack as Agent (was: deadlock when destroying a context)
Birgit Arkesteijn
birgit at westhawk.co.uk
Wed Jan 31 13:41:39 GMT 2007
Hi Stephen,
> While building an agent, I needed an AsnObjectId comparator
> or have AsnObjectId implement Comparable. I built an AsnObjectId
> comparator, which made get next requests easier to fulfill.
> Any thoughts about providing this in the stack?
Sounds like a good idea!
If you're willing to provide this piece of code, we'll certainly look at
it and add it to the stack if we're happy with it.
> Any chance of providing a better example of an agent with get or get
> next response?
> The trap example just sends or receives, and I had to combine the two
> to get a working agent.
The problem is that the stack has no architecture that helps you to
gather the response data. (The main reason is that we don't want to build in MIB knowledge (or a MIB parser)).
Therefor it isn't easy to come up with a good (or extensive) example.
The best examples are in
examplevX/ReceiveTrap.requestPduReceived()
(where X = (2c or 3))
This example
- tests for an incoming GetRequest(sysContact0)
- responds with my name and email address
Let me know what example you'd like to have and I'll see what I can do.
> My biggest wish would be for an agent that responds to Sun's JVM MIB
> and is extendable, as the one included in the 1.5 JVM is not
> extendable.
Unfortunately I'm not up to speed with Sun's 1.5 JVM MIB (sorry).
Allegedly the source code is available? So maybe we could wrap some code
around it.
However, I'm not sure I've got time in the near future to have a look.
Don't let that prevent you to send us your thoughts. Feedback, ideas and
suggestions are always welcome!
> Stephen Chen
> Senior Software Engineer
> ZipLip, Inc.
> schen at ziplip.net
Cheers, Birgit
--
-- Birgit Arkesteijn, birgit at westhawk.co.uk,
-- Westhawk Ltd, Albion Wharf, 19 Albion Street, Manchester M1 5LN, UK
-- tel.: +44 (0)161 237 0660
-- <URL: http://www.westhawk.co.uk>
More information about the snmp
mailing list