reverse engineering things that predecessors left without any documentation and throwing them out the window because devops
Menu
menu

Setting the Automounter daemon options has changed greatly in Solaris 11 (what hasn’t?) and no longer requires editing /etc/default/autofs. It is all done in SMF, just like the network configuration.

Solaris 10:

[code] chmod 644 /etc/default/autofs
vi /etc/default/autofs
[/code]

Add the following:

[code] # temporary logging
AUTOMOUNT_VERBOSE=TRUE
AUTOMOUNTD_VERBOSE=TRUE
AUTOMOUNTD_TRACE=3
[/code]

Then restart the autofs service:

[code] svcadm restart autofs
[/code]

Solaris 11:

[code] sharectl get autofs
sharectl set -p automount_verbose=true autofs
sharectl set -p automountd_verbose=true autofs
sharectl set -p trace=3 autofs
svcadm restart autofs
[/code]

In both cases you view the same log file:

[code] tail -f /var/svc/log/system-filesystem-autofs:default.log
[/code]