On Tue, 14 Nov 2017 06:46:49 +0000 YANG wrote: YK> I find net-snmp using configure file to configure the manager YK> that want receive the trap. Such as lines in snmpd.conf: YK> YK> trapsink localhost public YK> trap2sink localhost public YK> YK> We want using pollingTable to manage the user of the system, so YK> the manager will register into pollingTable, and we want add YK> such IP(manager) into the trap receiver list. So I want to know YK> how to add a IP into the list of trap receiver, not modify the YK> configure file and reload, just using code to dynamic add an YK> instance.
Try: snmpd_parse_config_trapsink( NULL, "localhost public"); snmpd_parse_config_trap2sink( NULL, "localhost public"); ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders