[ A problem with the sourceforge mailservers meant
that my original response never got through to the
list, but Bernhard has already quoted it in full. ]
> > Though of course those [snmp.conf] files will also be read in by
> > any client-side tools that run on the same system, so that might
> > be a less appropriate choice for settings specific to just
> > the subagents.
>
> Well, I think snmp.conf might be the right place for the agentx stuff.
> It would be a global configuration setting, telling all agentx-enabled
> applications on the system where to connect.
But what about non-agentx-enabled applications?
"snmpget" and "snmpwalk" and the like?
Remember that snmp.conf is loaded by *all* Net-SNMP applications.
It's really intended for settings that affect the core 'libnetsnmp'
library - i.e. the code under 'snmplib'.
Anything that's specific to a particular set of applications
doesn't really belong in the snmp.conf file, IMO.
I'd tend to agree with Wes.
If you've got a group of applications that need to share the same
settings, then they should use the same
init_snmp("xxxx");
call, and the shared settings can then go in "xxxx.conf"
> If I read the man-pages & code right, there exists a config token for
> snmpd.conf "AgentXSocket", is there a specific reason why no such token
> exists for snmp.conf?
Because most of the applications don't use AgentX, and don't
register a config_handler for "AgentXSocket"
If you put this entry into snmp.conf, then every use of
snmpget or snmpwalk would result in an error.
What might be worth looking at is making the "init_snmp" token
somewhat more flexible - perhaps extending it to take a *list*
of "application names".
So
init_snmp("snmpd:agentx")
would read snmp.conf
snmpd.conf
agentx.conf
init_snmp("snmptrapd:agentx")
would read snmp.conf
snmptrapd.conf
agentx.conf
and init_snmp("snmpwalk")
would read snmp.conf
snmpwalk.conf
How does that sound to people?
Dave
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders