Running agent without snmpd.conf
"Mani, Sathish" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I have added some new MIBs to the agent and it is working fine, but I have some issues in using the conf file. I want to give users of my application, the flexibility to configure the agent listen port and "rwcommunity". We are already using an XML file with all the configurable items for our application and I want the users to just change one XML and not touch the snmpd.conf. I noticed that we can configure the agent not to use the conf file using the NETSNMP_DS_LIB_DISABLE_CONFIG_LOAD option. But I don't know how to set the community string. I was hoping there will be some netsnmp_ds_set_string() methods to support this. But I did not find any. So effectively my algorithm in my agent startup code will be 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. Appreciate any help here! Thanks Sathish ------------------------------------------------------------------------- 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 [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users