>>>>> On Wed, 04 May 2005 18:38:20 -0400, Alex Burger <[EMAIL PROTECTED]> said:
Alex> c:\Program Files\Net-SNMP\etc\snmp;c:\Program Files\Net-SNMP\snmp\persist
Alex> The testing I did today was with 5.2.1. A new enviornment variable was
Alex> added months ago to main called SNMP_PERSISTENT_DIR which we could use
Alex> instead of the persistentDir snmp.conf token. Changing the token to use
Alex> netsnmp_ds_register_premib() works, but you mentioned it could still
Alex> cause issues. Using SNMP_PERSISTENT_DIR is perfectly fine with
Alex> me.
FYI, SNMP_PERSISTENT_FILE has been around since at least 5.0.x...
Alex> The question now is shouldn't we always load the persistent file, even
Alex> if the user defined SNMPCONFPATH?
No. You shouldn't ever force the loading of a particular persistent
file. We can't force the loading of it because people may be doing
something intentionally based on passed usage. In short, if you
change the behavior of the existing library you're talking about
something that should probably go into 6.0 if at all. Maybe a
warning, however, would be a good alternative ("warning: persistent
directory not found in the SNMPCONFPATH setting") or something.?
Alex> BTW, snmp_config states:
Alex> ***
Alex> Additionally, the above default search path can be overridden by
Alex> setting the environment variable SNMPCONFPATH to a colon-separated list
Alex> of directories to search for.
Alex> Finally, applications that store persistent data will also look in the
Alex> /var/net-snmp directory for configuration files there.
Alex> ***
Yeah, that's misleading I agree. The second paragraph is supposed to
be disconnected from the first (IE, the second is talking about the
default conf path but when following the first it doesn't read that way).
--
Wes Hardaker
Sparta, Inc.
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders