IBM Support

How to determine the version of NFS

Question & Answer


Question

How do you determine the version of NFS being run on a UNIX or Linux host?

Cause

You may be asked what versions of NFS are in use when working on support issues.

Answer

The following command may be run to determine the version of NFS in use:

rpcinfo -p

The NFS service will be listed in the fourth column titled service.
The NFS version will be listed in the second column titled vers.

Example:

%> rpcinfo -p | grep nfs
program vers proto   port  service
100003    2   udp   2049  nfs

 100003    3   udp   2049  nfs
 100003    2   tcp   2049  nfs
 100003    3   tcp   2049  nfs

The above output is showing that version 3 of NFS is running on this UNIX host, and that it supports version 2 clients, for tcp and udp.

Note: You can also, run nfsstat -m to display statistics for each NFS mounted file.


Refer to your vendor documentation for further information about this utility.

[{"Product":{"code":"SSSTY3","label":"Rational Customer Support"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Diagnostic Utilities","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
16 June 2018

UID

swg21257204