On 19 April 2011 02:45, Hector Yuen <[email protected]> wrote:
> [The config file] typically contains something like
>
> rocommunity public
> agentaddress 161
>
>
> I would like to set these parameters programatically instead of
> reading from a file.

The simplest approach would be to call

    netsnmp_config( "rocommunity public" );
    netsnmp_config( "agentaddress 161" );

Dave

------------------------------------------------------------------------------
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