Ondrej Valousek wrote:
> Hi Ian / all,
> 
> Is there any way to make automounter dump maps it sees? I was just
> thinking about it - with files / NIS / program backend it is not much
> needed but it could be quite helpful with ldap backend - restarting
> automounter with verbose logging is not too practical in the production
> environment.

No, there isn't but you don't need to restart autofs to change the log
level. You can do that for the running deamon by:

automount --set-log-priority debug <master map mount point path>

and set it back to no logging (or another lower level) by:

automount --set-log-priority info <master map mount point path>

> 
> I would imagine either some small standalone program using autofs
> internals which would dump all (or certain specified) maps or running a
> second instance of autofs (with some parameter) which would not mount
> anything and just dump the maps and exits.

Not sure but we would probably do something similar to the log level
changing method above.

> 
> Is this a completely misplaced idea or is there a way to achieve this
> functionality now?

It's not a bad idea but I wonder how useful it really is since what is
really useful in trying to sort out problems is the debug log output.

> 
> Many thanks,
> Ondrej
> 
> _______________________________________________
> autofs mailing list
> [email protected]
> http://linux.kernel.org/mailman/listinfo/autofs

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to