|
|||
Part I Network Services Topics Part II Accessing Network File Systems Topics 4. Managing Network File Systems (Overview) 5. Network File System Administration (Tasks) 6. Accessing Network File Systems (Reference) Commands for Troubleshooting NFS Problems 8. Planning and Enabling SLP (Tasks) 10. Incorporating Legacy Services Part V Serial Networking Topics 15. Solaris PPP 4.0 (Overview) 16. Planning for the PPP Link (Tasks) 17. Setting Up a Dial-up PPP Link (Tasks) 18. Setting Up a Leased-Line PPP Link (Tasks) 19. Setting Up PPP Authentication (Tasks) 20. Setting Up a PPPoE Tunnel (Tasks) 21. Fixing Common PPP Problems (Tasks) 22. Solaris PPP 4.0 (Reference) 23. Migrating From Asynchronous Solaris PPP to Solaris PPP 4.0 (Tasks) 25. Administering UUCP (Tasks) Part VI Working With Remote Systems Topics 27. Working With Remote Systems (Overview) 28. Administering the FTP Server (Tasks) 29. Accessing Remote Systems (Tasks) Part VII Monitoring Network Services Topics |
Autofs ReferenceThe remaining sections of this chapter describe more advanced autofs features and topics. Autofs and MetacharactersAutofs recognizes some characters as having a special meaning. Some characters are used for substitutions, and some characters are used to protect other characters from the autofs map parser. Ampersand (&)If you have a map with many subdirectories specified, as in the following, consider using string substitutions. john willow:/home/john mary willow:/home/mary joe willow:/home/joe able pine:/export/able baker peach:/export/baker You can use the ampersand character (&) to substitute the key wherever the key appears. If you use the ampersand, the previous map changes to the following: john willow:/home/& mary willow:/home/& joe willow:/home/& able pine:/export/& baker peach:/export/& You could also use key substitutions in a direct map, in situations such as the following: /usr/man willow,cedar,poplar:/usr/man You can also simplify the entry further as follows: /usr/man willow,cedar,poplar:& Notice that the ampersand substitution uses the whole key string. Therefore, if the key in a direct map starts with a / (as it should), the slash is included in the substitution. Consequently, for example, you could not do the following: /progs &1,&2,&3:/export/src/progs The reason is that autofs would interpret the example as the following: /progs /progs1,/progs2,/progs3:/export/src/progs Asterisk (*)You can use the universal substitute character, the asterisk (*), to match any key. You could mount the /export file system from all hosts through this map entry. * &:/export Each ampersand is substituted by the value of any given key. Autofs interprets the asterisk as an end-of-file character. Autofs and Special CharactersIf you have a map entry that contains special characters, you might have to mount directories that have names that confuse the autofs map parser. The autofs parser is sensitive to names that contain colons, commas, and spaces, for example. These names should be enclosed in double-quotes, as in the following: /vms -ro vmsserver: - - - "rc0:dk1 - " /mac -ro gator:/ - "Mr Disk - " |
||
|