Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

shareall - Make multiple local resources available for client access

&pagelevel(4)&pagelevel

The shareall command allows multiple NFS resources to be simultaneously made available for client access.

The command takes the specifications concerning the resources to be made available from an input file, from the file /etc/dfs/dfstab or from the standard input. Specifications from an input file or from the standard input must have the same format as the file /etc/dfs/dfstab. The format of these entries corresponds to the syntax of the share command.

If the shareall command is entered without options, all resources which are entered in the file /etc/dfs/dfstab are made available.

Syntax


shareall[ -F nfs][ -| file]

-F nfs

Specifies that a resource of the file system type nfs is to be made available. Because no other file system types for distributed file usage are supported in POSIX, this option may be omitted.

-

Specifies that the command expects that the specifications for the file systems to be made available will come from the standard input. The individual lines are terminated with RETURN or with EM DUE. The command is executed after entering Ctrl-D or @@D.

file

Input file containing specifications for the file systems to be made available. If neither - nor file is specified, the file /etc/dfs/dfstab is taken as the input file by default.

Files

/etc/dfs/dfstab

Table of resources to be shared

Examples

Example 1:

You create an input file called sh_list, via which three resources are to be made available for client access. The file contains the following entries:

$ cat sh_list
share -F nfs -o ro /usr/reports/mtg.notes
share -F nfs -o ro,rw=art.dept /export/graphics
share -F nfs /usr/man

The following command makes available all resources:

$ shareall sh_list
Example 2:

You wish to make three resources available for client access. Because this is a one-off situation, no input file is required.

$ shareall -

The cursor jumps to the next line. Enter the following commands, and terminate each command line with RETURN or EM DUE.

share -F nfs -o ro /usr/reports/mtg.notes
share -F nfs -o ro,rw=art.dept /export/graphics
share -F nfs /usr/man

Press Ctrl-D resp. @@D. The commands are executed.