Hi all,

I am trying to setup the port number for an snmp daemon that I wrote
based on an example I found on the web (pgsnmpd). I see that there is
a call to

netsnmp_ds_set_string(NETSNMP_DS_LIBRARY_ID,
                         NETSNMP_DS_LIB_OPTIONALCONFIG,
                         filename);

where filename is the file name of an snmp configuration file. This
typically contains something like

rocommunity public
agentaddress 161


I would like to set these parameters programatically instead of
reading from a file. Is there a place/example I could look at to see
how these configuration parameters can be passed? All I can find are
examples on creating an snmpd.conf file and loading it through the
function call above.

Thanks in advance.
Hector

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to