2009/3/30 Tanisha Kashyap <[email protected]>:
> My sole purpose is to actually make an agent which would implement a get/set 
> request
> on a MIB object and would also implement sending traps.

OK - in that case Sazid is quite correct.
You should use one of the agent trap API calls.

Please see the FAQ for a discussion for sending traps from the agent.


> I would be generating the skeleton code using mib2c and compile to produce a 
> .so file.
> Il then embed the path of this .so file into the snmpd.conf of the master 
> agent. So
> whenever the master agent is up my subagent also comes up.

Strictly speaking, that's a "dynamically loaded module", rather than a separate
subagent.   But the distinction doesn't really matter too much.
   (Except that it might confuse the list if you talk about a
"subagent" in this context)


> I need your inputs on this approach as well.

That approach should work fine.

Dave

------------------------------------------------------------------------------
_______________________________________________
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

Reply via email to