NFS Configuration File
In this sample auto_direct_files.cfg, we describe a fairly complicated NFS configuration file. Note how the use of nested #if directives achieves some sophisticated per-system customizations (for example, sharing a file system over two different subnets).
/////////////////////////////////////////////////////////////////////////////// // // auto_direct_files.cfg // /////////////////////////////////////////////////////////////////////////////// #if solaris auto_direct path "/etc/auto_direct" mode 644 uid =rootuid gid =bingid # this file is managed by PIKT # if ! ( berlin | berlin2 ) # if baksubnet /opt/local app2-bak:/opt/local2 /usr/local app2-bak:/usr/local2 # else /opt/local berlin2:/opt/local2 /usr/local berlin2:/usr/local2 # endif # endif # if usersys # if perf /var/mail paris:/var/mail # endif # if perf /pub/cremdat3 berlin:/pub/cremdat3 /pub/cremdat5 berlin:/pub/cremdat5 /pub/cremdat6 berlin:/pub/cremdat6 /pub/crem_addons berlin:/pub/crem_addons /compcrem madrid2:/export/home/madrid2 # endif # if ! paris /pub/perf_disk_1 paris:/pub/perf_disk_1 # endif # if ! paris4 /pub/perf_disk_5 paris4:/pub/perf_disk_5 /pub/perf_disk_6 paris4:/pub/perf_disk_6 /pub/perf_disk_16 paris4:/pub/perf_disk_16 /pub/perf_disk_17 paris4:/pub/perf_disk_17 /pub/perf_disk_33 paris4:/pub/perf_disk_33 /pub/perf_disk_34 paris4:/pub/perf_disk_34 /pub/perf_disk_35 paris4:/pub/perf_disk_35 # endif # if mus /var/mail pop-bak:/var/mail # endif # if mus /pub/cremdat3 app-bak:/pub/cremdat3 /pub/cremdat5 app-bak:/pub/cremdat5 /pub/cremdat6 app-bak:/pub/cremdat6 /pub/crem_addons app-bak:/pub/crem_addons # endif # if ( mus | comp | moscow ) // & ! mus0-bak # if baksubnet /pub/mus_disk_23 mus0-bak:/pub/mus_disk_23 /pub/mus_disk_24 mus0-bak:/pub/mus_disk_24 /pub/mus_disk_25 mus0-bak:/pub/mus_disk_25 /pub/mus_disk_26 mus0-bak:/pub/mus_disk_26 /pub/mus_disk_27 mus0-bak:/pub/mus_disk_27 /pub/mus_disk_28 mus0-bak:/pub/mus_disk_28 /pub/mus_disk_29 mus0-bak:/pub/mus_disk_29 /pub/mus_disk_30 mus0-bak:/pub/mus_disk_30 /pub/mus_disk_31 mus0-bak:/pub/mus_disk_31 /pub/mus_disk_32 mus0-bak:/pub/mus_disk_32 /pub/mus_disk_33 mus0-bak:/pub/mus_disk_33 /pub/mus_disk_34 mus0-bak:/pub/mus_disk_34 # else # endif # endif # if mus /mnt3/danzig_scratch danzig:/scratch/Data1step # endif # if madrid /var/mail moscow:/var/mail /var/forward moscow:/var/forward /pub/cremdat3 berlin:/pub/cremdat3 /pub/cremdat6 berlin:/pub/cremdat6 /pub/crem_addons berlin:/pub/crem_addons /opt/rbs/windows -ro egbdfvax:"rbs$windows" # endif # if ! moscow /pub/alum_disk_1 moscow:/pub/alum_disk_1 # endif # endif // usersys #endif // solaris ///////////////////////////////////////////////////////////////////////////////
On the piktmaster system, we would install the auto_direct file to the mus system with the command:
# piktc -iv +F auto_direct +H mus
For more examples, see Samples.