On 18/02/2008, William Hegardt <[EMAIL PROTECTED]> wrote: > > What are you actually trying to do? > > My subagent needs to be able to configure the community settings for the > master agent. Rather than modify snmpd.conf, I was looking for an API that > would let me change this from the subagent.
Sorry - there's no such API. Your only option is to modify the snmpd.conf file, and send a HUP signal to the master agent. The safest approach would probably be to choose a different location on the config search path, and use that for the subagent-controlled file (containing *just* the ro/rwcommunity settings), rather than tweaking the main snmpd.conf file. > .... but when the end-user wants to set specific community strings, it > would be easier if the subagent application could do it directly. That still sounds odd - why would the end-user be communicating with a subagent to do this? If anything, I'd expect the end-user to be communicating with the master agent, which would then choose how to process that request (either internally, or passed on to a subagent). But I presume you know what you're doing. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users