text stringlengths 0 4.23k |
|---|
Parameters |
Parameter |
Description |
-o anon={yes|no} |
Specifies whether anonymous (unmapped) users can access the share directory. |
-o rw=[<host>[:<host>]...] |
Provides read-write access to the shared directory by the hosts or client groups specified by host. You must separate host and group names with a colon (:). If host isn't specified, all hosts and client groups (except those specified with the ro option) get read-write access. If neither the ro nor the rw option is set, all clients have read-write access to the shared directory. |
-o ro=[<host>[:<host>]...] |
Provides read-only access to the shared directory by the hosts or client groups specified by host. You must separate host and group names with a colon (:). If host isn't specified, all clients (except those specified with the rw option) get read-only access. If the ro option is set for one or more clients, but the rw option isn't set, only the clients specified with the ro option have access to the shared directory. |
-o encoding={euc-jp|euc-tw|euc-kr|shift-jis|Big5|Ksc5601|Gb2312-80|Ansi) |
Specifies the language encoding to configure on an NFS share. You can use only one language on the share. This value can include any of the following values:euc-jp: Japaneseeuc-tw: Chineseeuc-kr: Koreanshift-jis: JapaneseBig5: ChineseKsc5601: KoreanGb2312-80: Simplified ChineseAnsi: ANSI-encoded |
-o anongid=<gid> |
Specifies that anonymous (unmapped) users access the share directory using gid as their group identifier (GID). The default is -2. The anonymous GID is used when reporting the owner of a file owned by an unmapped user, even if anonymous access is disabled. |
-o anonuid=<uid> |
Specifies that anonymous (unmapped) users access the share directory using uid as their user identifier (UID). The default is -2. The anonymous UID is used when reporting the owner of a file owned by an unmapped user, even if anonymous access is disabled. |
-o root=[<host>[:<host>]...] |
Provides root access to the shared directory by the hosts or client groups specified by host. You must separate host and group names with a colon (:). If host isn't specified, all clients get root access. If the root option isn't set, no clients have root access to the shared directory. |
/delete |
If sharename or <drive>:<path> is specified, this parameter deletes the specified share. If a wildcard (*) is specified, this parameter deletes all NFS shares. |
/? |
Displays help at the command prompt. |
{yes|no} |
[<host>[:<host>]...] |
[<host>[:<host>]...] |
{euc-jp|euc-tw|euc-kr|shift-jis|Big5|Ksc5601|Gb2312-80|Ansi) |
<gid> |
<uid> |
[<host>[:<host>]...] |
<drive>:<path> |
Remarks |
If sharename as the only parameter, this command lists the properties of the NFS share identified by sharename. |
If sharename and <drive>:<path> are used, this command exports the folder identified by <drive>:<path> as sharename. If you use the /delete option, the specified folder stops being available to NFS clients. |
<drive>:<path> |
<drive>:<path> |
nfsstat |
A command-line utility that displays statistical info about the Network File System (NFS) and Remote Procedure Call (RPC) calls. Used without parameters, this command displays all of the statistical data without resetting anything. |
Syntax |
nfsstat [-c][-s][-n][-r][-z][-m] |
Parameters |
Parameter |
Description |
-c |
Displays only the client-side NFS and RPC and NFS calls sent and rejected by the client. To display NFS or RPC information only, combine this flag with the -n or -r parameter. |
-s |
Displays only the server-side NFS and RPC and NFS calls sent and rejected by the server. To display NFS or RPC information only, combine this flag with the -n or -r parameter. |
-m |
Displays information about mount flags set by mount options, mount flags internal to the system, and other mount information. |
-n |
Displays NFS information for both the client and server. To display only the NFS client or server information, combine this flag with the -c or -s parameter. |
-r |
Displays RPC information for both the client and server. To display only the RPC client or server information, combine this flag with the -c or -s parameter. |
-z |
Resets the call statistics. This flag is only available to the root user and can be combined with any of the other parameters to reset particular sets of statistics after displaying them. |
Examples |
To display information about the number of RPC and NFS calls sent and rejected by the client, type: |
nfsstat -c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.