Get the App
SLTechnology News&Howtos  ›  Servers  › 

The usage of the Linux basic command nfsstat

Shulou Source: shulou.com Published: 2022-06-01 12:36:41 10月01日 Update

This article mainly explains "the usage of the Linux basic command nfsstat". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "the usage of the Linux basic command nfsstat".

Nfsstat

The nfsstat directive is used to display the activity information of the nfs client and server.

The scope of application of this command: RedHat, RHEL, Ubuntu, CentOS, Fedora.

1. Grammar

Nfsstat [options]

2. Parameter list

Option

Description

-s |-- server

Only server information is displayed, and client information is also displayed by default

-c |-- client

Only client information is displayed

-n |-- nfs

Only nfs information is displayed, and rpc information is also displayed by default

-m |-- mounts

Display the information of the loaded nfs file

-r |-- rpc

Display only rpc information

-l |-- list

Display the nfs information of the list

-s |-- since

Display nfs information from a file

-o

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

-v |-- verbose

Equivalent "- o all"

3. Examples

1) display client nfs information

[root@localhost ~] # nfsstat-cn

Client nfs v4:

Null read write commit open open_conf

0 0% 0 0 0%

Open_noat open_dgrd close setattr fsinfo renew

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

Setclntid confirm lock lockt locku access

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

Getattr lookup lookup_root remove rename link

58 52% 7 6% 1 0 0 0%

Symlink create pathconf statfs readlink readdir

0 0% 0 0 0 2% 0 0 0% 43%

Server_caps delegreturn getacl setacl fs_locations rel_lkowner

5% 0 0 0%

Secinfo exchange_id create_ses destroy_ses sequence get_lease_t

0 0% 0 0 0%

Reclaim_comp layoutget getdevinfo layoutcommit layoutreturn getdevlist

0 0% 0 0 0%

(null)

0 0%

2) display the information of the mounted 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 ~] #

Thank you for your reading, the above is the content of "the usage of the Linux basic command nfsstat". After the study of this article, I believe you have a deeper understanding of the usage of the Linux basic command nfsstat, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Information commands fundamentals clients clients files servers learning services content caches parameters instances that is general ideas situations instructions articles more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Technology MariaDB Docker MySQL