nfsstatnfsstat

一个命令行实用程序,显示有关网络文件系统 (NFS) 和远程过程调用 (RPC) 调用的统计信息。A command-line utility that displays statistical info about the Network File System (NFS) and Remote Procedure Call (RPC) calls. 在不使用参数的情况下,此命令将显示所有统计数据,而不重置任何内容。Used without parameters, this command displays all of the statistical data without resetting anything.

语法Syntax

nfsstat [-c][-s][-n][-r][-z][-m]

参数Parameters

参数Parameter 说明Description
-c-c 显示客户端发送和拒绝的客户端 NFS 和 RPC 调用。Displays only the client-side NFS and RPC and NFS calls sent and rejected by the client. 若要仅显示 NFS 或 RPC 信息,请将此标志与 -n-r 参数结合。To display NFS or RPC information only, combine this flag with the -n or -r parameter.
-S-s 仅显示服务器端 NFS 和服务器发送和拒绝的 RPC 调用。Displays only the server-side NFS and RPC and NFS calls sent and rejected by the server. 若要仅显示 NFS 或 RPC 信息,请将此标志与 -n-r 参数结合。To display NFS or RPC information only, combine this flag with the -n or -r parameter.
-M-m 显示有关装载选项设置的装载标志、系统内部装载标志以及其他装载信息的信息。Displays information about mount flags set by mount options, mount flags internal to the system, and other mount information.
-n-n 显示客户端和服务器的 NFS 信息。Displays NFS information for both the client and server. 若要仅显示 NFS 客户端或服务器信息,请将此标志与 -c-s 参数组合在一起。To display only the NFS client or server information, combine this flag with the -c or -s parameter.
-r-r 显示客户端和服务器的 RPC 信息。Displays RPC information for both the client and server. 若要仅显示 RPC 客户端或服务器信息,请将此标志与 -c-s 参数组合在一起。To display only the RPC client or server information, combine this flag with the -c or -s parameter.
-Z-z 重置呼叫统计信息。Resets the call statistics. 此标志仅对根用户可用,并可与任何其他参数组合使用,以在显示后重置特定的统计信息集。This flag is only available to the root user and can be combined with any of the other parameters to reset particular sets of statistics after displaying them.

示例Examples

若要显示有关客户端发送和拒绝的 RPC 和 NFS 调用数的信息,请键入:To display information about the number of RPC and NFS calls sent and rejected by the client, type:

nfsstat -c

若要显示和打印客户端 NFS 调用相关信息,请键入:To display and print the client NFS call-related information, type:

nfsstat -cn

若要显示客户端和服务器的 RPC 调用相关信息,请键入:To display RPC call-related information for both the client and server, type:

nfsstat -r

若要显示有关服务器接收和拒绝的 RPC 和 NFS 调用数的信息,请键入:To display information about the number of RPC and NFS calls received and rejected by the server, type:

nfsstat -s

若要在客户端和服务器上将所有调用相关信息重置为零,请键入:To reset all call-related information to zero on the client and server, type:

nfsstat -z

其他参考Additional References