Re: is it possible to set the community from a subagent

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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
[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.