{
    "mode": "man",
    "parameter": "nfsstat",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/nfsstat/8/json",
    "generated": "2026-05-30T07:09:10Z",
    "synopsis": "nfsstat [OPTION]...",
    "sections": {
        "NAME": {
            "content": "nfsstat - list NFS statistics\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "nfsstat [OPTION]...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The nfsstat displays statistics kept about NFS client and server activity.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-s, --server",
                    "content": "Print only server-side statistics. The default is to print both server and client sta‐\ntistics.\n",
                    "flag": "-s",
                    "long": "--server"
                },
                {
                    "name": "-c, --client",
                    "content": "Print only client-side statistics.\n",
                    "flag": "-c",
                    "long": "--client"
                },
                {
                    "name": "-n, --nfs",
                    "content": "Print only NFS statistics. The default is to print both NFS and RPC information.\n",
                    "flag": "-n",
                    "long": "--nfs"
                },
                {
                    "name": "-2",
                    "content": "sions of NFS that have non-zero counts.\n",
                    "flag": "-2"
                },
                {
                    "name": "-3",
                    "content": "sions of NFS that have non-zero counts.\n",
                    "flag": "-3"
                },
                {
                    "name": "-4",
                    "content": "sions of NFS that have non-zero counts.\n",
                    "flag": "-4"
                },
                {
                    "name": "-m, --mounts",
                    "content": "Print information about each of the mounted NFS file systems.\n\nIf this option is used, all other options are ignored.\n",
                    "flag": "-m",
                    "long": "--mounts"
                },
                {
                    "name": "-r, --rpc",
                    "content": "Print only RPC statistics.\n",
                    "flag": "-r",
                    "long": "--rpc"
                },
                {
                    "name": "-o",
                    "content": "Display statistics for the specified facility, which must be one of:\n\nnfs    NFS protocol information, split up by RPC call.\n\nrpc    General RPC information.\n\nnet    Network layer statistics, such as the number of received packets, number of TCP\nconnections, etc.\n\nfh     Usage information on the server's file handle cache, including the total number\nof lookups, and the number of hits and misses.\n\nrc     Usage information on the server's request reply cache, including the total num‐\nber of lookups, and the number of hits and misses.\n\nio     Usage information on the server's io statistics; bytes read and written.\n\nra     Usage information on the server's read ahead  cache,  including  the  ra  cache\nsize, the depth of ra cache hits, and ra cache misses.\n\nall    Display all of the above facilities.\n",
                    "flag": "-o"
                },
                {
                    "name": "-v, --verbose",
                    "content": "This is equivalent to -o all.\n",
                    "flag": "-v",
                    "long": "--verbose"
                },
                {
                    "name": "-l, --list",
                    "content": "Print information in list form.\n",
                    "flag": "-l",
                    "long": "--list"
                },
                {
                    "name": "-S, --since",
                    "content": "Instead  of printing current statistics, nfsstat imports statistics from file and dis‐\nplays the difference between those and the current statistics.  Valid input files  may\nbe in the form of /proc/net/rpc/nfs (raw client stats), /proc/net/rpc/nfsd (raw server\nstats), or saved output from nfsstat itself (client and/or server stats).    Any  sta‐\ntistics missing from a saved nfsstat output file are treated as zeroes.\n",
                    "flag": "-S",
                    "long": "--since"
                },
                {
                    "name": "-Z[interval], --sleep=[interval]",
                    "content": "Instead  of printing current statistics and immediately exiting, nfsstat takes a snap‐\nshot of the current statistics and pauses until it  receives  SIGINT  (typically  from\nCtrl-C),  at which point it takes another snapshot and displays the difference between\nthe two.  If interval is specified, nfsstat will print the number of  NFS  calls  made\nsince the previous report.  Stats will be printed repeatedly every interval seconds.\n",
                    "long": "--sleep",
                    "arg": "[interval]"
                }
            ]
        },
        "EXAMPLES": {
            "content": "",
            "subsections": [
                {
                    "name": "nfsstat -o all -234",
                    "content": "Show all information about all versions of NFS.\n"
                },
                {
                    "name": "nfsstat --verbose -234",
                    "content": "Same as above.\n"
                },
                {
                    "name": "nfsstat -o all",
                    "content": "Show all information about active versions of NFS.\n"
                },
                {
                    "name": "nfsstat --nfs --server -3",
                    "content": "Show statistics for NFS version 3 server.\n"
                },
                {
                    "name": "nfsstat -m",
                    "content": "Show information about mounted NFS filesystems.\n"
                }
            ]
        },
        "DISPLAY": {
            "content": "The Flags output from the -m option is the same as the flags give to the mount command.\n",
            "subsections": []
        },
        "FILES": {
            "content": "",
            "subsections": [
                {
                    "name": "/proc/net/rpc/nfsd",
                    "content": "procfs-based interface to kernel NFS server statistics.\n"
                },
                {
                    "name": "/proc/net/rpc/nfs",
                    "content": "procfs-based interface to kernel NFS client statistics.\n"
                },
                {
                    "name": "/proc/mounts",
                    "content": "procfs-based interface to the mounted filesystems.\n"
                }
            ]
        },
        "SEE ALSO": {
            "content": "rpc.nfsd(8).  nfs(5).\n",
            "subsections": []
        },
        "BUGS": {
            "content": "The  default  output  has  been  changed.  To get the old default output you must run nfsstat\n--auto -2.\n\nThe function of the -v and -a options have changed. The -a option is now reserved for  future\nuse. The -v does what the -a option used to do, and the new -[234] options replace the -v op‐\ntion.\n\nThe Display section should be more complete.\n\nFurther bugs can be found or reported at http://nfs.sf.net/.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Olaf Kirch, <okir@suse.de>\n\n\n\n7 Aug 2007                                   nfsstat(8)",
            "subsections": []
        }
    },
    "summary": "nfsstat - list NFS statistics",
    "flags": [
        {
            "flag": "-s",
            "long": "--server",
            "arg": null,
            "description": "Print only server-side statistics. The default is to print both server and client sta‐ tistics."
        },
        {
            "flag": "-c",
            "long": "--client",
            "arg": null,
            "description": "Print only client-side statistics."
        },
        {
            "flag": "-n",
            "long": "--nfs",
            "arg": null,
            "description": "Print only NFS statistics. The default is to print both NFS and RPC information."
        },
        {
            "flag": "-2",
            "long": null,
            "arg": null,
            "description": "sions of NFS that have non-zero counts."
        },
        {
            "flag": "-3",
            "long": null,
            "arg": null,
            "description": "sions of NFS that have non-zero counts."
        },
        {
            "flag": "-4",
            "long": null,
            "arg": null,
            "description": "sions of NFS that have non-zero counts."
        },
        {
            "flag": "-m",
            "long": "--mounts",
            "arg": null,
            "description": "Print information about each of the mounted NFS file systems. If this option is used, all other options are ignored."
        },
        {
            "flag": "-r",
            "long": "--rpc",
            "arg": null,
            "description": "Print only RPC statistics."
        },
        {
            "flag": "-o",
            "long": null,
            "arg": null,
            "description": "Display statistics for the specified facility, which must be one of: nfs NFS protocol information, split up by RPC call. rpc General RPC information. net Network layer statistics, such as the number of received packets, number of TCP connections, etc. fh Usage information on the server's file handle cache, including the total number of lookups, and the number of hits and misses. rc Usage information on the server's request reply cache, including the total num‐ ber of lookups, and the number of hits and misses. io Usage information on the server's io statistics; bytes read and written. ra Usage information on the server's read ahead cache, including the ra cache size, the depth of ra cache hits, and ra cache misses. all Display all of the above facilities."
        },
        {
            "flag": "-v",
            "long": "--verbose",
            "arg": null,
            "description": "This is equivalent to -o all."
        },
        {
            "flag": "-l",
            "long": "--list",
            "arg": null,
            "description": "Print information in list form."
        },
        {
            "flag": "-S",
            "long": "--since",
            "arg": null,
            "description": "Instead of printing current statistics, nfsstat imports statistics from file and dis‐ plays the difference between those and the current statistics. Valid input files may be in the form of /proc/net/rpc/nfs (raw client stats), /proc/net/rpc/nfsd (raw server stats), or saved output from nfsstat itself (client and/or server stats). Any sta‐ tistics missing from a saved nfsstat output file are treated as zeroes."
        },
        {
            "flag": "",
            "long": "--sleep",
            "arg": "[interval",
            "description": "Instead of printing current statistics and immediately exiting, nfsstat takes a snap‐ shot of the current statistics and pauses until it receives SIGINT (typically from Ctrl-C), at which point it takes another snapshot and displays the difference between the two. If interval is specified, nfsstat will print the number of NFS calls made since the previous report. Stats will be printed repeatedly every interval seconds."
        }
    ],
    "examples": [
        "Show all information about all versions of NFS.",
        "Same as above.",
        "Show all information about active versions of NFS.",
        "Show statistics for NFS version 3 server.",
        "Show information about mounted NFS filesystems."
    ],
    "see_also": [
        {
            "name": "rpc.nfsd",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/rpc.nfsd/8/json"
        },
        {
            "name": "nfs",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/nfs/5/json"
        }
    ]
}