Re: Replace community strings programatically

2010-07-27 Thread Dave Shield
On 27 July 2010 22:24, Iverson, Joshua wrote: > 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)? No. The 'r[ow]community' directives are really just wrappers round the 'com2sec' directive. The co

Replace community strings programatically

2010-07-27 Thread Iverson, Joshua
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