Wes Hardaker wrote:

On Tue, 5 Oct 2004 22:08:42 -0400, Robert Story (Coders) <[EMAIL PROTECTED]> said:


GDP> 1. Overload the context in snmp.conf
GDP> ====================================
GDP> Example:
GDP> defCommunity public
GDP> [myhost1]
GDP> defCommunity whatever
GDP> [myhost2]
GDP> defCommunity whatelse

Robert> This is what my original idea was, and I like it better than
Robert> the other two. Not only does it match our exising conf file
Robert> special tokens, the idea of a header is fairly common in conf
Robert> files.

I disagree.  I don't think we should double use [blah] directives.
Right now, the [blah] directives are reserved for application types.
Making this potentially collide with host names would be confusing and
prone to errors when real host names collide with application types.

How about if [blah] was changed to [xxx blah] where xxx could be 'type' or 'host' such as:


 # make this file handle snmp.conf tokens:
 [type snmp]
 dumpPacket true
 [host server1]
 logTimestamp true
 [host server2]
 logTimestamp false
 [host *.example.com]
 escapeQuotes true
 [host *]            # back to all hosts

 # return to our original snmpd.conf tokens:
 [type snmpd]
 rocommunity mypublic

For backwards compatability, if there is only one token inside of the [] then it can be assumed to be an application type.

Alex



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to