Whole document tree
10. Assorted ToolsThe following are additional utilities and scripts included with am-utils, and get installed.
10.1 am-ejectA shell script unmounts a floppy or CD-ROM that is automounted, and then attempts to eject the removable device.
10.2 amd.conf-sampleA sample Amd configuration file. See section 6. Amd Configuration File.
10.3 amd2ldifA script to convert Amd maps to LDAP input files. Use it as follows:
10.4 amd2sunA script to convert Amd maps to Sun Automounter maps. Use it as follows
10.5 automount2amdA script to convert old Sun Automounter maps to Amd maps. Say you have the Sun automount file auto.foo, with these two lines:
will produce the Amd map amd.foo with this content:
This perl script will use the following /default entry
If you wish to generate Amd maps using the hostd (see section 3.3.3.8 hostd Selector Variable) Amd map syntax, then define the environment variable $DOMAIN or modify the script. Note that automount2amd does not understand newer Sun Automount map syntax, those used by autofs.
10.6 ctl-amdA script to start, stop, or restart Amd. Use it as follows:
See section 7. Run-time Administration, for more details.
10.7 ctl-hlfsdA script for controlling Hlfsd, much the same way `ctl-amd' controls Amd. Use it as follows:
See section 9. Hlfsd, for more details.
10.8 expnA script to expand email addresses into their full name. It is generally useful when using with the `lostaltmail' script, but is a useful tools otherwise.
10.9 fix-amd-mapAm-utils changed some of the syntax and default values of some variables. For example, the default value for `${os}' for Solaris 2.x (aka SunOS 5.x) systems used to be `sos5', it is now more automatically generated from `config.guess' and its value is `sunos5'. This script converts older Amd maps to new ones. Use it as follows:
10.10 fixmount`fixmount' is a variant of showmount(8) that can delete bogus mount entries in remote mountd(8) daemons. This is useful to cleanup otherwise ever-accumulating "junk". Use it for example:
See the online manual page for `fixmount' for more details of its usage.
10.11 fixrmtabA script to invalidate `/etc/rmtab' entries for hosts named. Also restart mountd for changes to take effect. Use it for example:
10.12 lostaltmailA script used with Hlfsd to resend any "lost" mail. Hlfsd redirects mail which cannot be written into the user's home directory to an alternate directory. This is useful to continue delivering mail, even if the user's file system was unavailable, full, or over quota. But, the mail which gets delivered to the alternate directory needs to be resent to its respective users. This is what the `lostaltmail' script does. Use it as follows:
This script needs a configuration file `lostaltmail.conf' set up with the right parameters to properly work. See section 9. Hlfsd, for more details.
10.13 lostaltmail.conf-sampleThis is a text file with configuration parameters needed for the `lostaltmail' script. The script includes comments explaining each of the configuration variables. See it for more information. Also see section 9. Hlfsd for general information.
10.14 mk-amd-mapThis program converts a normal Amd map file into an ndbm database with the same prefix as the named file. Use it as follows:
10.15 pawdPawd is used to print the current working directory, adjusted to reflect proper paths that can be reused to go through the automounter for the shortest possible path. In particular, the path printed back does not include any of Amd's local mount points. Using them is unsafe, because Amd may unmount managed file systems from the mount points, and thus including them in paths may not always find the files within. Without any arguments, Pawd will print the automounter adjusted current working directory. With any number of arguments, it will print the adjusted path of each one of the arguments.
10.16 wait4amdA script to wait for Amd to start on a particular host before performing an arbitrary command. The command is executed repeatedly, with 1 second intervals in between. You may interrupt the script using `^C' (or whatever keyboard sequence your terminal's `intr' function is bound to). Examples:
10.17 wait4amd2dieThis script is used internally by `ctl-amd' when used to restart Amd. It waits for Amd to terminate. If it detected that Amd terminated cleanly, this script will return an exist status of zero. Otherwise, it will return a non-zero exit status. The script tests for Amd's existence once every 5 seconds, six times, for a total of 30 seconds. It will return a zero exist status as soon as it detects that Amd dies.
10.18 wire-testA simple program to test if some of the most basic networking functions in am-util's library `libamu' work. It also tests the combination of NFS protocol and version number that are supported from the current host, to a remote one. For example, in this test a machine which only supports NFS Version 2 is contacting a remote host that can support the same version, but using both UDP and TCP. If no host name is specified, `wire-test' will try `localhost'.
This document was generated by Philippe Troin on March, 20 2002 using texi2html |