Quick NFS question

Hello,
I have a quick question. How do you know which protocol version of NFS is setup on your Solaris 10 servers?
Example 2, 3 or 4

Check:

cat /etc/default/nfs

also,

 rpcinfo -p localhost

should list out the version information in the second column. By default since NFS version 4 will answer to lower version clients, so in rpcinfo -p localhost, you will see version 2 and 3 running as well.

Another good command to run is:

nfsstat -s 

which will break down your NFS server stats by version

I new about the /etc/default/nfs but I didn't see a version note in there.

The rpcinfo command doesn't show nfs

The nfsstat -s shows

Server nfs:
Version 2: (0 calls)
Version 3: (0 calls)
Version 4: (o calls)
Version 4: (o operations)

Server nfs_acl:
Version 2: (0 calls)
 Version 3: (0 calls)

So what does this mean?

Does not look like you have a nfs server running. I am assuming you have a nfsserver running and you want to find what version?

Post output from:

svcs -a | grep nfs