Hi all,
I want to write an external application to get/add/delete com2sec entry.
In netsnmp_udp_parse_security( )(in /snmplib/snmpUDPDomain.c),
I add code to store parsed information in my structure(use share memory).
My external application will access the structure and then write back new
com2sec entrys to /var/net-snmp/snmpd.conf.
After finishing writing new com2sec entrys back to /var/net-snm/snmpd.conf, I
will call init_snmp("snmpd") to reload snmpd.conf.
But the callback function(netsnmp_udp_parse_security( )) will not be called,
it's log is as following:
snmp_api.c init_snmp 788
No log handling enabled - turning on stderr logging
/not/usr//share/snmp/snmpd.conf: line 16: Warning: Unknown token: group.
/not/usr//share/snmp/snmpd.conf: line 17: Warning: Unknown token: group.
/not/usr//share/snmp/snmpd.conf: line 19: Warning: Unknown token: group.
/not/usr//share/snmp/snmpd.conf: line 20: Warning: Unknown token: group.
/not/usr//share/snmp/snmpd.conf: line 27: Warning: Unknown token: view.
/not/usr//share/snmp/snmpd.conf: line 34: Warning: Unknown token: access.
/not/usr//share/snmp/snmpd.conf: line 35: Warning: Unknown token: access.
/not/usr//share/snmp/snmpd.conf: line 44: Warning: Unknown token: dlmod.
/not/usr//share/snmp/snmpd.conf: line 46: Warning: Unknown token: dlmod.
/not/usr//share/snmp/snmpd.conf: line 47: Warning: Unknown token: dlmod.
/not/usr//share/snmp/snmpd.conf: line 51: Warning: Unknown token: dlmod.
/var/net-snmp/snmpd.conf: line 9: Warning: Unknown token: com2sec.
init_snmp() finished
Why com2sec is an unknown token? Or I miss something important?
Could anyone help me? Your help will be appreciated!
Thanks,
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders