Linux basic commands --- nfsstat display information nfs

nfsstat

nfsstat instruction to display the event information nfs client and server.

Scope of this command: RedHat, RHEL, Ubuntu, CentOS, Fedora.

1 , grammar

nfsstat [ Options]

 

2 , the parameter list

Options

Explanation

-s | --server

Only display server information, but also to display the default client information

-c | --customer

Only displays client information

-n | --nfs

Nfs show only information, but also to display the default rpc information

-m | --mounts

Display nfs file information is loaded

-r | --rpc

Rpc show only information

-l | --list

nfs information display list

-s | --since

Display information from the file nfs

-O

Display custom message: nfs, display nfs protocol information; rpc, display rpc general information; net, displays the network layer state; fh, display file control cache information; rc, a display request on the server response cache information; all, displays all of the information

-v | --verbose

Equivalent "-o all"

 

3 , examples

1 ) information display client nfs 

[root@localhost ~]# nfsstat -cn

Client nfs v4:

null         read         write        commit       open         open_conf    

0         0% 0         0% 0         0% 0         0% 1         0% 0         0% 

open_noat    open_dgrd    close        setattr      fsinfo       renew        

0         0% 0         0% 0         0% 0         0% 3         2% 20       18% 

setclntid    confirm      lock         lockt        locku        access       

1         0% 1         0% 0         0% 0         0% 0         0% 7         6% 

getattr      lookup       lookup_root  remove      rename       link         

58       52% 7         6% 1         0% 0         0% 0         0% 0         0% 

symlink      create       pathconf     statfs       readlink     readdir      

0         0% 0         0% 2         1% 0         0% 0         0% 4         3% 

server_caps  delegreturn getacl       setacl       fs_locations rel_lkowner  

5         4% 0         0% 0         0% 0         0% 0         0% 0         0% 

secinfo      exchange_id  create_ses  destroy_ses  sequence     get_lease_t  

0         0% 0         0% 0         0% 0         0% 0         0% 0         0% 

reclaim_comp layoutget    getdevinfo   layoutcommit layoutreturn getdevlist   

0         0% 0         0% 0         0% 0         0% 0         0% 0         0% 

(null)       

0         0% 

2 ) information that has been mounted display system

[root@localhost ~]# nfsstat -m

/media/test from 192.168.1.8:/wj/

 Flags:rw,relatime,vers=4,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,

clientaddr=192.168.1.8,minorversion=0,local_lock=none,addr=192.168.1.8

 

[root@localhost ~]# 

 

     

       Made a study of the Linux platform, now came up with a prototype, you can use the reference
      link: https: //pan.baidu.com/s/1GOLVU2CbpBNGtunztVpaCQ Password: n7bk  

081634m8n8t2tmz2te95w5.gif


Guess you like

Origin blog.51cto.com/9888479/2404040