Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The usage of the Linux basic command nfsstat

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report