Command ReferenceA-59
NAME
nfsstat - display NFS statistics
SYNOP SIS
nfsstat [ interval ]
nfsstat [ -c ] [ -t ] -h [ ip_address | host_name ]
nfsstat -l [ -t ]
nfsstat -z
DESCRIPTION
nfsstat displays statistical information about NFS (Network File System) and RPC
(Remote Procedure Call) for the filer. It can also be used to reinitialize this infor-
mation. If no arguments are given, nfsstat displays statistical information since
last zeroed with the -z option (or since reboot if statistics have not been zeroed).
If the interval argument is specified, nfsstat continuously displays the summary
information for the following NFS requests: getattr, lookup, readlink, read, write,
create, remove, and readdir/readdirplus. The first line of data displayed, and every
20th line thereafter, contains cumulative statistics. Each subsequent line shows
incremental statistics for the interval (in seconds) since the last display.
Per-client statistics can also be collected and displayed by enabling the
nfs.per_client_stats.enable options (using the options command - see
options) and invoking nfsstat with the -h or the -l options. Per-client statistics are
collected for up to the first 256 NFS clients that have mounted the filesystem on
the given filer.
OPTIONS
-h Displays per-clie nt statistics since last zeroed with the -z option (or since
reboot if statistics have not been zeroed). The statistics are displayed on a
per-client basis, with the IP address and host name (where available) of each
client being displayed at the head of each clientî‚’s block of statistics.
If an optional IP address or host name is specified with the -h option, only
the statistics associated with this client are displayed.
-lDisplays a list of the clients whose statistics have been collected on a per-
client basis, along with the total NFS calls for that client since last reboot, or
last zeroed with the -z option, the count being displayed both as the actual
count and as a percentage of calls from all clients.
-zZeroes (reinitializes) the current statistics. (However, statistics since boot are
also retained.)
-cIncludes reply cache statistics in the data displayed.
-tDisplays the statistics since boot time, rather than since the last time they
were zeroed.
nfsstat