Replace community strings programatically

"Iverson, Joshua" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.