Go to main content

man pages section 8: System Administration Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

automountd(8)

Name

automountd - autofs mount/unmount daemon

Synopsis

automountd [-Tvn] [-D 
name=value]

Description

automountd is an RPC server that answers file system mount and unmount requests from the autofs file system. It uses local files or name service maps to locate file systems to be mounted. These maps are described with the automount(8) command.

If automount finds any non-trivial entries in either the local or distributed automount maps and if the daemon is not running already, the automountd daemon is automatically invoked by automount(8). automountd enables the svc:/network/nfs/nlockmgr service (lockd(8)), and the svc:/network/nfs/status service (statd(8)), if NFS mounts need to be done.

SMF Management

The automountd service is managed by the service management facility, smf(7), under the service identifier:

svc:/system/filesystem/autofs

Administrative actions on this service, such as enabling, disabling, or requesting restart, can be performed using svcadm(8). The service's status can be queried using svcs(1). If it is disabled, it is enabled by automount(8) unless the application/auto_enable property is set to false.

Values for parameters for automountd are stored in SMF and manipulated using sharectl(8). The following are the supported parameters.

automountd_verbose=TRUE | FALSE

Verbose mode. Causes status messages to be logged to:

/var/svc/log/system-filesystem-autofs:default.log

See smf(7). The default value is FALSE. Equivalent to the –v option.

nobrowse=ON | OFF

Turn on or off browsing for all autofs mount points. The default value is OFF. Equivalent to the –n option.

trace=num

Expands each RPC call and logs it to:

/var/svc/log/system-filesystem-autofs:default.log

See smf(7). The default value, 0, turns off such tracing. Starting with 1, with each higher value, the verbosity of trace output increases. This property is equivalent to the –T option.

environment=name= value

Environment variables. You can specify multiple name =value pairs with a comma separator. If there is more than one value for a name, use the double forward slash to indicate that. See EXAMPLES. There are no environment variable settings supplied. This property is equivalent to the –D option.

All the above parameters can be changed using the sharectl(8) command.

Options

The following options are supported:

–D name=value

Assign value to the indicated automount map substitution variable. These assignments cannot be used to substitute variables in the master map auto_master.

–n

Turn off browsing for all autofs mount points. This option overrides the -browse autofs map option on the local host.

–T

Trace. Expand each RPC call and display it on the standard output.

–v

Verbose. Log status messages to the console.

Examples

Example 1 Setting Verbose Mode

The following command turns on verbose mode, causing status messages to be logged to the location specified in “SMF Management,” above. See that section for a description of the properties specified in this and following examples.

# sharectl set -p automountd_verbose=true autofs
Example 2 Turning on Browsing for Mount Points

The following command turns on browsing for all autofs mount points.

# sharectl set -p nobrowse=off autofs
Example 3 Specifying and Displaying Environment Variables

The following commands set and display the value for an environment variable named DAY.

# sharectl set -p environment=DAY=TUES autofs
% sharectl get -p environment autofs
environment=DAY=TUES

The following command sets multiple parameters for an environment variable. The subsequent command displays the result.

# sharectl set -p environment=DAY=TUES,TIME=NOON autofs
% sharectl get -p environment autofs
environment=DAY=TUES,TIME=NOON

The following command set multiple values for name that is assigned to an environment variable. The subsequent command displays the result.

# sharectl set -p environment=DAY=MON\\,TUE,TIME=NOON autofs

% sharectl get -p environment autofs
environment=DAY=MON\,TUE,TIME=NOON

Files

/etc/auto_master

Master map for automounter.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/file-system/autofs

See Also

svcs(1), attributes(7), smf(7), automount(8), sharectl(8), svcadm(8)