packages icon



 CKNFS(1L)                          NCSA                           CKNFS(1L)
                                  06/10/89



 NAME
      cknfs - check for dead NFS servers

 SYNOPSIS
      cknfs [ -esvDL ] [ -t timeout ] [path...]

 DESCRIPTION
      Cknfs takes a list of execution paths.  Each path is examined for an
      NFS mount point.  If found, the corresponding NFS server is checked.
      Paths that lead to dead NFS servers are ignored.  The remaining paths
      are printed to stdout.

    Options
      The following options are available,

      -e   Silent.  Do not print paths.

      -s   Print paths in sh format, with colons as separators.

      -u   Unique paths.  Keep only the first pathname when several paths
           reference the same directory.  Symbolic links are de-referenced
           before comparison.

      -t timeout
           Specify the timeout interval before assuming an NFS server is
           dead.  The default is 10 seconds.

      -v   Verbose.  A status message is printed for each NFS server.

      -D   Debug.  Messages are printed as the paths are parsed.

      -L   Expand symbolic links on output.  This increases the efficiency
           of shell path searches on machines without a kernel directory
           name cache.


 EXAMPLES
           set path = `/usr/lbin/cknfs /bin /usr/bin /usr/ucb . /usr6/bin
           /sdg/bin`

           alias cd 'cknfs -e \!*; if ($status == 0) chdir \!*'

      The latter example checks the path before performing a chdir
      operation.

 SEE ALSO
      nfs(4)

 AUTHOR
      Alan Klietz
      National Center for Supercomputing Applications



                                    - 1 -         Formatted:  April 24, 2024






 CKNFS(1L)                          NCSA                           CKNFS(1L)
                                  06/10/89



 BUGS
      In some instances, a path that cknfs assumes valid could be vulnerable
      to hanging if a 3rd party machine fails.  This happens if your
      administrator mixes NFS mount points and/or regular directories with
      NFS directories from 3rd party machines.  The best organization is an
      overall /nfs directory with local subdirectories for each server
      machine and with mount points located therein.















































                                    - 2 -         Formatted:  April 24, 2024