2008/7/2 Tewen Hsieh <[EMAIL PROTECTED]>:
> My thought is that there must be a data structure(s) in net-snmp to
> store  manager's ip/port, trap receiver's ip/port and community/privilege
> parsed from snmpd.conf.

The Net-SNMP agent uses the standard MIB tables to store
trap destination and configuration information.

Try configuring a trapsink via the config file, and then walk the
tables  SNMP-NOTIFICATION-MIB::snmpNotifyTable
SNMP-TARGET-MIB::snmpTargetAddrTable and
SNMP-TARGET-MIB::snmpTargetParamsTable.

Experimenting with different trapsink/trap2sink entries
should show you how these are reflected in these tables.


> I try to allocate a share memory to store these information, and my external
> CLI application can also read/write this structure(s).

Your external application would simply have to construct
appropriate rows in these three tables.

Dave

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to