RE: snmpd conf at run time

"Mike Ayers" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <83E753BE7B6A324ABB336245BAF1DAAC079E9B32@mailserver.metatv-ds.metatv.com>
> From: [email protected] 
> [mailto:[email protected]] On 
> Behalf Of Meilán García Antonio
> Sent: Friday, December 14, 2007 1:58 AM

> About communities, I would like that the manager could change 
> only the communities name, and change (or add/del) traps 
> destination. The only mode for changing these parameters is 
> changing these tokens in snmpd.conf? and if this is so, how 
> can I change it at run time?

	One way would be to use the snmpCommunityTable to lookup the securityName for the current community, find the entries in snmpTargetParamsTable with that securityName, then find the correct snmpTargetAddrTable entry that matches the one of those (by paramName) and modify that entries securityName to be the securityName of the new community.

	Another way would be to change the community name in the snmpCommunityTable.

	Either way can blow up in your face if you're using conf file directives and more than one target.

	In short, you can set up and manipulate mindbogglingly complex configurations dynamically using the SNMPv3 MIBs.  This is good, because even the basic configurations are mindbogglingly complex.  You will need to commune deeply with RFCs 3413, 3584, and... well, you'll probably want to know them all, as this is by far the most intricate aspect of SNMPv3.

	If at all possible, try to find a way to set things up so that dynamic reconfiguration is not necessary.


	HTH,

Mike

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.