Display NFS (Network File System) statistics
The nfsstat command displays statistics about NFS (Network File System) and RPC (Remote Procedure Call) activity for both the client and the server.
nfsstat [options]
-s: Display statistics for the NFS server side only.
-c: Display statistics for the NFS client side only.
-n: Display NFS statistics only (default is both NFS and RPC).
-2: Display statistics for NFS version 2 only.
-3: Display statistics for NFS version 3 only.
-4: Display statistics for NFS version 4 only.
-m: Print information about each mounted NFS file system.
-r: Display RPC statistics only.
To display information about the number of RPC and NFS calls sent and rejected by the client:
nfsstat -c
To display information specifically related to client NFS calls:
nfsstat -cn
To display RPC call information for both the client and the server:
nfsstat -r
To display information about the number of RPC and NFS calls received and rejected by the server:
nfsstat -s