How to determine the version of NFS

Technote (FAQ)


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.


Rate this page:

(0 users)Average rating

Document information


More support for:

Rational Customer Support
Diagnostic Utilities

Software version:

All Versions

Operating system(s):

AIX, HP-UX, Linux, Solaris

Reference #:

1257204

Modified date:

2013-08-15

Translate my page

Machine Translation

Content navigation