{
    "content": [
        {
            "type": "text",
            "text": "# nfsstat(8) (man)\n\n**Summary:** nfsstat - list NFS statistics\n\n**Synopsis:** nfsstat [OPTION]...\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -s | --server | — | Print only server-side statistics. The default is to print both server and client sta‐ tistics. |\n| -c | --client | — | Print only client-side statistics. |\n| -n | --nfs | — | Print only NFS statistics. The default is to print both NFS and RPC information. |\n| -2 | — | — | sions of NFS that have non-zero counts. |\n| -3 | — | — | sions of NFS that have non-zero counts. |\n| -4 | — | — | sions of NFS that have non-zero counts. |\n| -m | --mounts | — | Print information about each of the mounted NFS file systems. If this option is used, all other options are ignored. |\n| -r | --rpc | — | Print only RPC statistics. |\n| -o | — | — | Display statistics for the specified facility, which must be one of: nfs NFS protocol information, split up by RPC call. |\n| -v | --verbose | — | This is equivalent to -o all. |\n| -l | --list | — | Print information in list form. |\n| -S | --since | — | Instead of printing current statistics, nfsstat imports statistics from file and dis‐ plays the difference between those |\n| — | --sleep | [interval | Instead of printing current statistics and immediately exiting, nfsstat takes a snap‐ shot of the current statistics and |\n\n## Examples\n\n- `Show all information about all versions of NFS.`\n- `Same as above.`\n- `Show all information about active versions of NFS.`\n- `Show statistics for NFS version 3 server.`\n- `Show information about mounted NFS filesystems.`\n\n## See Also\n\n- rpc.nfsd(8)\n- nfs(5)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (2 lines)\n- **OPTIONS** (1 lines) — 13 subsections\n  - -s, --server (3 lines)\n  - -c, --client (2 lines)\n  - -n, --nfs (2 lines)\n  - -2 (2 lines)\n  - -3 (2 lines)\n  - -4 (2 lines)\n  - -m, --mounts (4 lines)\n  - -r, --rpc (2 lines)\n  - -o (22 lines)\n  - -v, --verbose (2 lines)\n  - -l, --list (2 lines)\n  - -S, --since (6 lines)\n  - -Z[interval], --sleep=[interval] (6 lines)\n- **EXAMPLES** (1 lines) — 5 subsections\n  - nfsstat -o all -234 (2 lines)\n  - nfsstat --verbose -234 (2 lines)\n  - nfsstat -o all (2 lines)\n  - nfsstat --nfs --server -3 (2 lines)\n  - nfsstat -m (2 lines)\n- **DISPLAY** (2 lines)\n- **FILES** (1 lines) — 3 subsections\n  - /proc/net/rpc/nfsd (2 lines)\n  - /proc/net/rpc/nfs (2 lines)\n  - /proc/mounts (2 lines)\n- **SEE ALSO** (2 lines)\n- **BUGS** (11 lines)\n- **AUTHOR** (5 lines)\n\n## Full Content\n\n### NAME\n\nnfsstat - list NFS statistics\n\n### SYNOPSIS\n\nnfsstat [OPTION]...\n\n### DESCRIPTION\n\nThe nfsstat displays statistics kept about NFS client and server activity.\n\n### OPTIONS\n\n#### -s, --server\n\nPrint only server-side statistics. The default is to print both server and client sta‐\ntistics.\n\n#### -c, --client\n\nPrint only client-side statistics.\n\n#### -n, --nfs\n\nPrint only NFS statistics. The default is to print both NFS and RPC information.\n\n#### -2\n\nsions of NFS that have non-zero counts.\n\n#### -3\n\nsions of NFS that have non-zero counts.\n\n#### -4\n\nsions of NFS that have non-zero counts.\n\n#### -m, --mounts\n\nPrint information about each of the mounted NFS file systems.\n\nIf this option is used, all other options are ignored.\n\n#### -r, --rpc\n\nPrint only RPC statistics.\n\n#### -o\n\nDisplay 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\n#### -v, --verbose\n\nThis is equivalent to -o all.\n\n#### -l, --list\n\nPrint information in list form.\n\n#### -S, --since\n\nInstead  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\n#### -Z[interval], --sleep=[interval]\n\nInstead  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\n### EXAMPLES\n\n#### nfsstat -o all -234\n\nShow all information about all versions of NFS.\n\n#### nfsstat --verbose -234\n\nSame as above.\n\n#### nfsstat -o all\n\nShow all information about active versions of NFS.\n\n#### nfsstat --nfs --server -3\n\nShow statistics for NFS version 3 server.\n\n#### nfsstat -m\n\nShow information about mounted NFS filesystems.\n\n### DISPLAY\n\nThe Flags output from the -m option is the same as the flags give to the mount command.\n\n### FILES\n\n#### /proc/net/rpc/nfsd\n\nprocfs-based interface to kernel NFS server statistics.\n\n#### /proc/net/rpc/nfs\n\nprocfs-based interface to kernel NFS client statistics.\n\n#### /proc/mounts\n\nprocfs-based interface to the mounted filesystems.\n\n### SEE ALSO\n\nrpc.nfsd(8).  nfs(5).\n\n### BUGS\n\nThe  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\n### AUTHOR\n\nOlaf Kirch, <okir@suse.de>\n\n\n\n7 Aug 2007                                   nfsstat(8)\n\n"
        }
    ],
    "structuredContent": {
        "command": "nfsstat",
        "section": "8",
        "mode": "man",
        "summary": "nfsstat - list NFS statistics",
        "synopsis": "nfsstat [OPTION]...",
        "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"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-s, --server",
                        "lines": 3,
                        "flag": "-s",
                        "long": "--server"
                    },
                    {
                        "name": "-c, --client",
                        "lines": 2,
                        "flag": "-c",
                        "long": "--client"
                    },
                    {
                        "name": "-n, --nfs",
                        "lines": 2,
                        "flag": "-n",
                        "long": "--nfs"
                    },
                    {
                        "name": "-2",
                        "lines": 2,
                        "flag": "-2"
                    },
                    {
                        "name": "-3",
                        "lines": 2,
                        "flag": "-3"
                    },
                    {
                        "name": "-4",
                        "lines": 2,
                        "flag": "-4"
                    },
                    {
                        "name": "-m, --mounts",
                        "lines": 4,
                        "flag": "-m",
                        "long": "--mounts"
                    },
                    {
                        "name": "-r, --rpc",
                        "lines": 2,
                        "flag": "-r",
                        "long": "--rpc"
                    },
                    {
                        "name": "-o",
                        "lines": 22,
                        "flag": "-o"
                    },
                    {
                        "name": "-v, --verbose",
                        "lines": 2,
                        "flag": "-v",
                        "long": "--verbose"
                    },
                    {
                        "name": "-l, --list",
                        "lines": 2,
                        "flag": "-l",
                        "long": "--list"
                    },
                    {
                        "name": "-S, --since",
                        "lines": 6,
                        "flag": "-S",
                        "long": "--since"
                    },
                    {
                        "name": "-Z[interval], --sleep=[interval]",
                        "lines": 6,
                        "long": "--sleep",
                        "arg": "[interval]"
                    }
                ]
            },
            {
                "name": "EXAMPLES",
                "lines": 1,
                "subsections": [
                    {
                        "name": "nfsstat -o all -234",
                        "lines": 2
                    },
                    {
                        "name": "nfsstat --verbose -234",
                        "lines": 2
                    },
                    {
                        "name": "nfsstat -o all",
                        "lines": 2
                    },
                    {
                        "name": "nfsstat --nfs --server -3",
                        "lines": 2
                    },
                    {
                        "name": "nfsstat -m",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "DISPLAY",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 1,
                "subsections": [
                    {
                        "name": "/proc/net/rpc/nfsd",
                        "lines": 2
                    },
                    {
                        "name": "/proc/net/rpc/nfs",
                        "lines": 2
                    },
                    {
                        "name": "/proc/mounts",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}