[H-GEN] NFS timeout

David Jericho davidj at pisoftware.com
Thu Jul 3 19:54:42 EDT 2003


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

On Fri, Jul 04, 2003 at 11:17:56AM +1200, Jay wrote:
> Is there a smarter way to find out if a network which provides NFS shares is 
> reachable, other than to way for the NFS timeout.

Ping? It all involves timeouts anyway.

> Is it doable within reason to put this task into a script run during boot-up?

#!/bin/sh

ping -c 1 host.ip.addr.ess
RETVAL=$?

if [ ${RETVAL} -eq 0]; then
	mount nfs:/share /mount/point
else
	echo "Can't mount nfs:/share"
fi

-- 
David Jericho
Systems Administrator, Plugged In Software

--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list