nfsstat(8)

๐Ÿ’– nfsstat(8) โ€” like, your NFS receipts, bestie ๐Ÿ’–

okay so this is nfsstat, a lil system manager's manual situation (that's the manual name btw, section 8, we stan a sysadmin classic) ๐ŸŽ€


โœจ NAME โœจ

nfsstat โ€” list NFS statistics ๐Ÿฆ‹


โœจ SYNOPSIS โœจ

nfsstat [OPTION]...

โœจ DESCRIPTION โœจ

so basically, nfsstat displays statistics kept about NFS client and server activity. it's giving โœจreceiptsโœจ. no cap, it just shows you the numbers. ๐Ÿ’…


โœจ OPTIONS โœจ

  • -s, --server โ€” print only server-side statistics. the default is to print both server and client statistics. you're picking a side, periodt. ๐Ÿ‘‘
  • -c, --client โ€” print only client-side statistics. the other side of the situationship. ๐Ÿซถ
  • -n, --nfs โ€” print only NFS statistics. the default is to print both NFS and RPC information. keep it NFS-only, mind your business, slay. โœจ
  • -2 โ€” print only NFS v2 statistics. the default is to only print information about the versions of NFS that have non-zero counts. v2 is so vintage of it, lowkey iconic. ๐ŸŽ€
  • -3 โ€” print only NFS v3 statistics. the default is to only print information about the versions of NFS that have non-zero counts. ๐Ÿ”ฅ
  • -4 โ€” print only NFS v4 statistics. the default is to only print information about the versions of NFS that have non-zero counts. the main character version fr fr. ๐Ÿ’…
  • -m, --mounts โ€” print information about each of the mounted NFS file systems.
โš ๏ธ heads up bestie: if this option is used, all other options are ignored. she does NOT share the spotlight. ๐Ÿšจ
  • -r, --rpc โ€” print only RPC statistics. ๐ŸŒธ
  • -o facility โ€” 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 number 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. the whole buffet, eat up. ๐Ÿ“
  • -v, --verbose โ€” this is equivalent to -o all. same vibe, shorter name. ๐Ÿ’œ
  • -l, --list โ€” print information in list form. ๐Ÿ“
  • -S, --since file โ€” instead of printing current statistics, nfsstat imports statistics from file and displays 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 statistics missing from a saved nfsstat output file are treated as zeroes. it's giving "compare me to my past self" energy. ๐Ÿชž
  • -Z[interval], --sleep=[interval] โ€” instead of printing current statistics and immediately exiting, nfsstat takes a snapshot 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. literally the "wait for itโ€ฆ wait for itโ€ฆ ok now" option. ๐Ÿ˜ญ

โœจ EXAMPLES โœจ

nfsstat -o all -234

show all information about all versions of NFS. ๐Ÿ’…

nfsstat --verbose -234

same as above. ๐Ÿซถ

nfsstat -o all

show all information about active versions of NFS. โœจ

nfsstat --nfs --server -3

show statistics for NFS version 3 server. ๐Ÿ‘‘

nfsstat -m

show information about mounted NFS filesystems. ๐Ÿฆ‹


โœจ DISPLAY โœจ

the Flags output from the -m option is the same as the flags give to the mount command. (yes, "give", that's what the page says, we don't edit the source material bestie, we just vibe with it ๐Ÿ’€)


โœจ FILES โœจ

  • /proc/net/rpc/nfsd โ€” procfs-based interface to kernel NFS server statistics. ๐ŸŒธ
  • /proc/net/rpc/nfs โ€” procfs-based interface to kernel NFS client statistics. ๐ŸŒธ
  • /proc/mounts โ€” procfs-based interface to the mounted filesystems. ๐ŸŒธ

โœจ SEE ALSO โœจ

rpc.nfsd(8). nfs(5). go read those too, iykyk ๐ŸŽ€


โœจ BUGS โœจ

๐Ÿšจ bug alert, bestie, read carefully:

the default output has been changed. to get the old default output you must run nfsstat --auto -2.

the function of the -v and -a options have changed. the -a option is now reserved for future use. the -v does what the -a option used to do, and the new -[234] options replace the -v option.

the Display section should be more complete. (they said it, not me ๐Ÿ˜ญ)

further bugs can be found or reported at http://nfs.sf.net/. ๐Ÿ“ฎ


โœจ AUTHOR โœจ

Olaf Kirch, <okir@suse.de> โ€” legend behavior, we love to see it. ๐Ÿ‘‘


okay that's the whole thing, bestie, you're officially nfsstat-literate ๐Ÿ’– this manual page is nfsstat(8) from the System Manager's Manual, dated 7 Aug 2007 โ€” and that's the whole footer, so consider this your cute sign-off. mwah. ๐Ÿ’…โœจ๐ŸŽ€

๐Ÿ“ฆ where this page comes from