On 12/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> My next question is how do I get session ID from a AgentX subagent?

If you know that you'll *only* be querying objects from the same
subagent, then you can use the routines from the 'utilities/iquery.c'
module - exactly the same as for the new DisMan Event MIB
implementation.

If you might be querying more general objects, then you'll have to
open a suitable
SNMP session to the main (master) agent, and register this with
      netsnmp_query_set_default_session()
(or else pass it to the netsnmp_query_* calls).

The agent doesn't handle this latter case automatically - you'd need
to set this up manually.
(and watch out for recursive configurations)

But once the session is created and registered, it shouldn't make any
difference whether this is being driven from the main agent or a
subagent.

Dave

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to