2008/6/23 Tewen Hsieh <[EMAIL PROTECTED]>:
> I want to set/get manager's IP address and community in running
> time via CLI.
> Is there any API can get/set manager's IP address and community in net-snmp?

Any snmpd.conf directive can also be supplied on the command line,
using
              '--{token}={value}'

So try
             snmpd --rocommunity=public .....


> Or which data structure is used to store manager's IP address and community
> in net-snmp?

I wouldn't recommend trying to manipulate the data structures directly.
But you could try hardcoding the snmpd.conf settings into the code,
using
          netsnmp_config( "rocommunity public");


Dave

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to