Packages and Binaries:

nfs-common

Use this package on any machine that uses NFS, either as client or server. Programs included: lockd, statd, showmount, nfsstat, gssd, idmapd and mount.nfs.

Installed size: 768 KB
How to install: sudo apt install nfs-common

  • adduser
  • keyutils
  • libc6
  • libcap2
  • libcom-err2
  • libdevmapper1.02.1
  • libevent-2.1-7
  • libgssapi-krb5-2
  • libkeyutils1
  • libkrb5-3
  • libmount1
  • libnfsidmap2
  • libtirpc3
  • libwrap0
  • lsb-base
  • rpcbind
  • ucf
blkmapd

PNFS block layout mapping daemon

root@kali:~# blkmapd -h
Usage: blkmapd [-hdf]

mount.nfs

Mount a Network File System

root@kali:~# mount.nfs -h
usage: mount.nfs remotetarget dir [-rvVwfnsh] [-o nfsoptions]
options:
	-r		Mount file system readonly
	-v		Verbose
	-V		Print version
	-w		Mount file system read-write
	-f		Fake mount, do not actually mount
	-n		Do not update /etc/mtab
	-s		Tolerate sloppy mount options rather than fail
	-h		Print this help
	nfsoptions	Refer to mount.nfs(8) or nfs(5)


mount.nfs4

Mount.nfs (8) - mount a Network File System

root@kali:~# mount.nfs4 -h
usage: mount.nfs4 remotetarget dir [-rvVwfnsh] [-o nfsoptions]
options:
	-r		Mount file system readonly
	-v		Verbose
	-V		Print version
	-w		Mount file system read-write
	-f		Fake mount, do not actually mount
	-n		Do not update /etc/mtab
	-s		Tolerate sloppy mount options rather than fail
	-h		Print this help
	nfsoptions	Refer to mount.nfs(8) or nfs(5)


mountstats

Displays various NFS client per-mount statistics

root@kali:~# mountstats -h
usage: mountstats [-h] {mountstats,nfsstat,iostat} ...

positional arguments:
  {mountstats,nfsstat,iostat}
                        sub-command help
    mountstats          Display a combination of per-op RPC statistics, NFS
                        event counts, and NFS byte counts. This is the default
                        sub-command if no sub-command is given.
    nfsstat             Display nfsstat-like statistics.
    iostat              Display iostat-like statistics.

optional arguments:
  -h, --help            show this help message and exit

For specific sub-command help, run 'mountstats SUB-COMMAND -h|--help'

nfsidmap

The NFS idmapper upcall program

root@kali:~# nfsidmap -h
nfsidmap: Usage: nfsidmap [-vh] [-c || [-u|-g|-r key] || -d || -l || [-t timeout] key desc]

nfsiostat

Emulate iostat for NFS mount points using /proc/self/mountstats

root@kali:~# nfsiostat -h
Usage: nfsiostat [ <interval> [ <count> ] ] [ <options> ] [ <mount point> ]

 Sample iostat-like program to display NFS client per-mount' statistics.  The
<interval> parameter specifies the amount of time in seconds between each
report.  The first report contains statistics for the time since each file
system was mounted.  Each subsequent report contains statistics collected
during the interval since the previous report.  If the <count> parameter is
specified, the value of <count> determines the number of reports generated at
<interval> seconds apart.  If the interval parameter is specified without the
<count> parameter, the command generates reports continuously. If one or more
<mount point> names are specified, statistics for only these mount points will
be displayed.  Otherwise, all NFS mount points on the client are listed.

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit

  Statistics Options:
    File I/O is displayed unless one of the following is specified:

    -a, --attr          displays statistics related to the attribute cache
    -d, --dir           displays statistics related to directory operations
    -p, --page          displays statistics related to the page cache

  Display Options:
    Options affecting display format:

    -s, --sort          Sort NFS mount points by ops/second
    -l LIST, --list=LIST
                        only print stats for first LIST mount points

nfsstat

List NFS statistics

root@kali:~# nfsstat --help
Usage: nfsstat [OPTION]...

  -m, --mounts		Show statistics on mounted NFS filesystems
  -c, --client		Show NFS client statistics
  -s, --server		Show NFS server statistics
  -2			Show NFS version 2 statistics
  -3			Show NFS version 3 statistics
  -4			Show NFS version 4 statistics
  -o [facility]		Show statistics on particular facilities.
     nfs		NFS protocol information
     rpc		General RPC information
     net		Network layer statistics
     fh			Usage information on the server's file handle cache
     io			Usage information on the server's io statistics
     ra			Usage information on the server's read ahead cache
     rc			Usage information on the server's request reply cache
     all		Select all of the above
  -v, --verbose, --all	Same as '-o all'
  -r, --rpc		Show RPC statistics
  -n, --nfs		Show NFS statistics
  -Z[#], --sleep[=#]	Collects stats until interrupted.
			    Cumulative stats are then printed
          		    If # is provided, stats will be output every
			    # seconds.
  -S, --since file	Shows difference between current stats and those in 'file'
  -l, --list		Prints stats in list format
  --version		Show program version
  --help		What you just did


osd_login
root@kali:~# osd_login -h
============= osd_login =========
progname : /usr/sbin/osd_login
Usage: /usr/sbin/osd_login -u <URI> -o <OSDNAME> -s <SYSTEMID>
Options:
-u		target uri e.g. iscsi://<ip>:<port>
-o		osdname of the target OSD
-s		systemid of the target OSD

rpc.gssd

RPCSEC_GSS daemon

root@kali:~# rpc.gssd -h
rpc.gssd: invalid option -- 'h'
usage: rpc.gssd [-f] [-l] [-M] [-n] [-v] [-r] [-p pipefsdir] [-k keytab] [-d ccachedir] [-t timeout] [-R preferred realm] [-D]

rpc.idmapd

NFSv4 ID <-> Name Mapper

root@kali:~# rpc.idmapd -h
Usage: rpc.idmapd [-hfvCS] [-p path] [-c path]

rpc.statd

NSM service daemon

root@kali:~# rpc.statd -h
usage: rpc.statd [options]
      -h, -?, --help       Print this help screen.
      -F, --foreground     Foreground (no-daemon mode)
      -d, --no-syslog      Verbose logging to stderr.  Foreground mode only.
      -p, --port           Port to listen on
      -o, --outgoing-port  Port for outgoing connections
      -V, -v, --version    Display version information and exit.
      -n, --name           Specify a local hostname.
      -P                   State directory path.
      -N                   Run in notify only mode.
      -L, --no-notify      Do not perform any notification.
      -H                   Specify a high-availability callout program.

rpc.svcgssd

Server-side rpcsec_gss daemon

root@kali:~# rpc.svcgssd -h
rpc.svcgssd: invalid option -- 'h'
usage: rpc.svcgssd [-n] [-f] [-v] [-r] [-i] [-p principal]

rpcdebug

Set and clear NFS and RPC kernel debug flags

root@kali:~# rpcdebug -h
usage: rpcdebug [-v] [-h] [-m module] [-s flags...|-c flags...]
       set or cancel debug flags.
       (use rpcdebug -vh to get a list of modules and valid flags)

showmount

Show mount information for an NFS server

root@kali:~# showmount -h
Usage: showmount [-adehv]
       [--all] [--directories] [--exports]
       [--no-headers] [--help] [--version] [host]

sm-notify

Send reboot notifications to NFS peers

root@kali:~# sm-notify -h
sm-notify: invalid option -- 'h'
Usage: sm-notify -notify [-dfq] [-m max-retry-minutes] [-p srcport]
            [-P /path/to/state/directory] [-v my_host_name]

start-statd

umount.nfs

Unmount a Network File System

root@kali:~# umount.nfs -h
usage: umount.nfs dir [-fvnrlh]
options:
	-f	force unmount
	-v	verbose
	-n	Do not update /etc/mtab
	-r	remount
	-l	lazy unmount
	-h	print this help


umount.nfs4

Umount.nfs (8) - unmount a Network File System

root@kali:~# umount.nfs4 -h
usage: umount.nfs4 dir [-fvnrlh]
options:
	-f	force unmount
	-v	verbose
	-n	Do not update /etc/mtab
	-r	remount
	-l	lazy unmount
	-h	print this help


nfs-kernel-server

The NFS kernel server is currently the recommended NFS server for use with Linux, featuring features such as NFSv3 and NFSv4, Kerberos support via GSS, and much more. It is also significantly faster and usually more reliable than the user-space NFS servers (from the unfs3 and nfs-user-server packages). However, it is more difficult to debug than the user-space servers, and has a slightly different feature set.

This package contains the user-space support needed to use the NFS kernel server. Most administrators wishing to set up an NFS server would want to install this package.

Installed size: 342 KB
How to install: sudo apt install nfs-kernel-server

  • keyutils
  • libblkid1
  • libc6
  • libcap2
  • libsqlite3-0
  • libtirpc3
  • libwrap0
  • lsb-base
  • netbase
  • nfs-common
  • ucf
exportfs

Maintain table of exported NFS file systems

root@kali:~# exportfs -h
usage: exportfs [-adfhioruvs] [host:/path]

nfsdcltrack

NFSv4 Client Tracking Callout Program

root@kali:~# nfsdcltrack -h
nfsdcltrack [ -hfd ] [ -s dir ] < cmd > < arg >
Where < cmd > is one of the following and takes the following < arg >:
    init
    create <nfs_client_id4>
    remove <nfs_client_id4>
    check  <nfs_client_id4>
    gracedone <epoch time>

rpc.mountd

NFS mount daemon

root@kali:~# rpc.mountd -h
Usage: rpc.mountd [-F|--foreground] [-h|--help] [-v|--version] [-d kind|--debug kind]
	[-o num|--descriptors num]
	[-p|--port port] [-V version|--nfs-version version]
	[-N version|--no-nfs-version version] [-n|--no-tcp]
	[-H prog |--ha-callout prog] [-r |--reverse-lookup]
	[-s|--state-directory-path path] [-g|--manage-gids]
	[-t num|--num-threads=num] [-u|--no-udp]

rpc.nfsd

NFS server process

root@kali:~# rpc.nfsd -h
Usage:
rpc.nfsd [-d|--debug] [-H hostname] [-p|-P|--port port]
     [-N|--no-nfs-version version] [-V|--nfs-version version]
     [-s|--syslog] [-T|--no-tcp] [-U|--no-udp] [-r|--rdma=]
     [-G|--grace-time secs] [-L|--leasetime secs] nrservs

Updated on: 2021-Sep-16