On Mon, 2005-10-03 at 14:40 -0700, Toth, Gregory S wrote: > We wish to dynamically load a module using the dlmod option in > snmpd.conf. > Dlmod ourSnmp ../usr/bin/ourSnmp.so > But the module does not load.
> When we use the full path it does load > Since the directory location changes everyday for each daily build we > really want to use the relative path, is this possible? The path to the MIB module is simply passed to the 'dlmod' system call. Whether this allows relative paths or not may depend on the O/S that you are running on. Checking the Linux man page, this seems to use a fixed list of acceptable locations, rather than blindly accepting an arbitrary relative path. (Presumably for security - to ensure that the expected version of the library is picked up). One possible workaround would be to have a symbolic link in a fixed location, pointing to the current build. Or you could set /etc/ld.so.cache to point to today's versions of the library (assuming your dlmod works that way). Dave ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
