This gets into pretty strange complexity, but you could do something like this with an executable mount map that calls a script that does a ping of the host and only if the response time is < some threshold or if the ip address of your host is in some range then echo back the remote mount path otherwise don't echo anything and exit the script. The only expected return from the executable mount map (see /net for example) is the string value of mount options and server:/path. That's a pretty flexible framework for achieving all kinds of things.
Sent from my android device. -----Original Message----- From: Ski Kacoroski <[email protected]> To: "[email protected]" <[email protected]> Sent: Sat, 15 Aug 2015 20:51 Subject: [lopsa-discuss] Question on autofs on laptops Hi, I use autofs to connect to several smb shares at work. This works fine except for when i am not at work, then things get long delays if I try df -h for example as it attempts to connect to each share in the map and times out. Any ideas on how to set this up so it only will try to connect to shares at work while I am at work (e.g. on a 10.x.x.x network? Or perhaps there is a timeout parameter I can tweak a bit or maybe a better tool than autofs. cheers, ski h -- "When we try to pick out anything by itself, we find it connected to the entire universe" John Muir Chris "Ski" Kacoroski, [email protected], 206-501-9803 or ski98033 on most IM services _______________________________________________ Discuss mailing list [email protected] https://lists.lopsa.org/cgi-bin/mailman/listinfo/discuss This list provided by the League of Professional System Administrators http://lopsa.org/
_______________________________________________ Discuss mailing list [email protected] https://lists.lopsa.org/cgi-bin/mailman/listinfo/discuss This list provided by the League of Professional System Administrators http://lopsa.org/
