Re: Running agent without snmpd.conf

This is a discussion on Re: Running agent without snmpd.conf within the SNMP Users forums, part of the Networking and Network Related category; On 04/01/2008, Mani, Sathish <smani@qualcomm.com> wrote: > I want the users to just change ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-07-2008
Dave Shield
 
Posts: n/a
Default Re: Running agent without snmpd.conf

On 04/01/2008, Mani, Sathish <smani@qualcomm.com> wrote:
> I want the users to just change one XML and not touch the snmpd.conf.


> 1) Configure the agent not to use conf file
> netsnmp_ds_set_boolean(NETSNMP_DS_LIBRARY_ID,
> NETSNMP_DS_LIB_DISABLE_CONFIG_LOAD, 1);
> 2) Get the agent listen port from XML and configure the agent to use it.
> netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID,
> NETSNMP_DS_AGENT_PORTS, AGENT_LISTEN_PORT);
> 3) Get the community string from the XML file and
> configure the agent to use it.
>
> I AM NOT sure what function I have to call for this.


See the code file 'mibgroup/mibII/vacm_conf.c' - in particular the
routines 'vacm_parse_r{o,w}community()' and related code.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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/...net-snmp-users
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:23 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0