I am trying to change the community strings in my agent programmatically at run-time instead of loading them from the .conf file. I've found the vacm_parse_rocommunity() and netsnmp_config() functions, but when I call them, the old community strings remain and new ones get added. So then I tried calling various combinations of vacm_destroyAllViewEntries(),vacm_destroyAllGroupEntries() and vacm_destroyAllAccessEntries(), and then calling netsnmp_config(), but my agent just stops responding.
So my question is, is there a way I can _replace_ the current ro and rw community strings programmatically (i.e. without reloading a config file)? If anyone can point me in the right direction, I'd greatly appreciate it. Thanks, Josh ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ 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
