linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steve Dickson <SteveD@RedHat.com>
To: Linux NFS Mailing list <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH V2 2/2] nfsdclnts: add man page for tool nfsdclnts
Date: Mon, 18 May 2020 13:14:53 -0400	[thread overview]
Message-ID: <c2d18166-e364-d1ad-90f1-4cd2cc89117e@RedHat.com> (raw)
In-Reply-To: <20200518141050.74702-2-steved@redhat.com>



On 5/18/20 10:10 AM, Steve Dickson wrote:
> From: Achilles Gaikwad <agaikwad@redhat.com>
> 
> This patch adds man page for the tool nfsdclnts.
> 
> Signed-off-by: Achilles Gaikwad <agaikwad@redhat.com>
> Signed-off-by: Kenneth D'souza <kdsouza@redhat.com>
> Signed-off-by: Steve Dickson <steved@redhat.com>
Committed (tag: nfs-utils-2-4-4-rc5)

steved.
> ---
>  tools/nfsdclnts/Makefile.am   |   4 +
>  tools/nfsdclnts/nfsdclnts.man | 156 ++++++++++++++++++++++++++++++++++
>  2 files changed, 160 insertions(+)
>  create mode 100644 tools/nfsdclnts/nfsdclnts.man
> 
> v2: Renamed command to nfsdclnts
> 
> diff --git a/tools/nfsdclnts/Makefile.am b/tools/nfsdclnts/Makefile.am
> index c1f12a0..d513edb 100644
> --- a/tools/nfsdclnts/Makefile.am
> +++ b/tools/nfsdclnts/Makefile.am
> @@ -1,6 +1,10 @@
>  ## Process this file with automake to produce Makefile.in
>  PYTHON_FILES = nfsdclnts.py
>  
> +man8_MANS       = nfsdclnts.man
> +
> +EXTRA_DIST      = $(man8_MANS) $(PYTHON_FILES)
> +
>  all-local: $(PYTHON_FILES)
>  
>  install-data-hook:
> diff --git a/tools/nfsdclnts/nfsdclnts.man b/tools/nfsdclnts/nfsdclnts.man
> new file mode 100644
> index 0000000..3701de9
> --- /dev/null
> +++ b/tools/nfsdclnts/nfsdclnts.man
> @@ -0,0 +1,156 @@
> +.\"
> +.\" nfsdclnts(8)
> +.\"
> +.TH "NFSDCLTS" "8" "2020-05-09" "nfsdclnts" "nfsdclnts"
> +.ie \n(.g .ds Aq \(aq
> +.el       .ds Aq '
> +.ss \n[.ss] 0
> +.nh
> +.ad l
> +.de URL
> +\fI\\$2\fP <\\$1>\\$3
> +..
> +.als MTO URL
> +.if \n[.g] \{\
> +.  mso www.tmac
> +.  am URL
> +.    ad l
> +.  .
> +.  am MTO
> +.    ad l
> +.  .
> +.  LINKSTYLE blue R < >
> +.\}
> +.SH "NAME"
> +nfsdclnts \- print various nfs client information for knfsd server.
> +.SH "SYNOPSIS"
> +.sp
> +\fBnfsdclnts\fP [\fI\-h\fP] [\fI\-t type\fP] [\fI\-\-clientinfo\fP] [\fI\-\-hostname\fP] [\fI\-q\fP]
> +.SH "DESCRIPTION"
> +.sp
> +The nfsdclnts(8) command parses the content present in /proc/fs/nfsd/clients/ directories. nfsdclnts(8) displays files which are open, locked, delegated by the nfs\-client. It also prints useful client information such as hostname, clientID, NFS version mounted by the nfs\-client.
> +.SH "OPTIONS"
> +.sp
> +\fB\-t, \-\-type\fP=TYPE
> +.RS 4
> +Specify the type of file to be displayed. Takes only one TYPE at a time.
> +.sp
> +\fIopen\fP, \fIlock\fP, \fIdeleg\fP, \fIlayout\fP, or \fIall\fP
> +.sp
> +open: displays the open files by nfs\-client(s).
> +.sp
> +lock: displays the files locked by nfs\-client(s).
> +.sp
> +layout: displays the files for which layout is given.
> +.sp
> +deleg: displays delegated files information and delegation type.
> +.sp
> +all: prints all the above type.
> +.RE
> +.sp
> +\fB\-\-clientinfo\fP
> +.RS 4
> +displays various nfs\-client info fields such as version of nfs mounted at nfs\-client and clientID.
> +.RE
> +.sp
> +\fB\-\-hostname\fP
> +.RS 4
> +Print hostname of nfs\-client instead of ip-address.
> +.RE
> +.sp
> +\fB\-q, \-\-quiet\fP
> +.RS 4
> +Hide the header information.
> +.RE
> +.sp
> +\fB\-h, \-\-help\fP
> +.RS 4
> +Print help explaining the command line options.
> +.SH "EXAMPLES"
> +.sp
> +\fBnfsdclnts \-\-type open\fP
> +.RS 4
> +List all files with open type only.
> +.RE
> +.sp
> +.if n .RS 4
> +.nf
> +Inode number | Type   | Access | Deny | ip address            | Filename
> +33823232     | open   | r\-     | \-\-   | [::1]:757             | testfile
> +.fi
> +.if n .RE
> +.sp
> +\fBnfsdclnts \-\-type deleg\fP
> +.RS 4
> +List all files with deleg type only.
> +.RE
> +.sp
> +.if n .RS 4
> +.nf
> +Inode number | Type   | Access | ip address            | Filename
> +33823232     | deleg  | r      | [::1]:757             | testfile
> +.fi
> +.if n .RE
> +.sp
> +\fBnfsdclnts \-\-hostname\fP
> +.RS 4
> +Print hostname instead of ip\-address.
> +.RE
> +.sp
> +.if n .RS 4
> +.nf
> +Inode number | Type   | Access | Deny | Hostname              | Filename
> +33823232     | open   | r\-     | \-\-   | nfs\-server            | testfile
> +33823232     | deleg  | r      |      | nfs\-server            | testfile
> +.fi
> +.if n .RE
> +.sp
> +\fBnfsdclnts \-\-clientinfo\fP
> +.RS 4
> +Print client information.
> +.RE
> +.sp
> +.if n .RS 4
> +.nf
> +Inode number | Type   | Access | Deny | ip address            | Client ID           | vers | Filename
> +33823232     | open   | r\-     | \-\-   | [::1]:757             | 0xc79a009f5eb65e84  | 4.2  | testfile
> +33823232     | deleg  | r      |      | [::1]:757             | 0xc79a009f5eb65e84  | 4.2  | testfile
> +.fi
> +.if n .RE
> +.sp
> +\fBnfsdclnts.py \-\-quiet \-\-hostname\fP
> +.RS 4
> +Hide the header information.
> +.RE
> +.sp
> +.if n .RS 4
> +.nf
> +33823232     | open   | r\-     | \-\-   | nfs\-server            | testfile
> +33823232     | deleg  | r      |      | nfs\-server            | testfile
> +.fi
> +.if n .RE
> +.SH "FILES"
> +.sp
> +\fB/proc/fs/nfsd/clients/\fP
> +.sp
> +Displays basic information about each NFSv4 client.
> +.sp
> +\fB/proc/fs/nfsd/clients/#/info\fP
> +.sp
> +Displays information about all the opens held by the given client, including open modes, device numbers, inode numbers, and open owners.
> +.sp
> +\fB/proc/fs/nfsd/clients/#/states\fP
> +.SH "NOTES"
> +.sp
> +/proc/fs/nfsd/clients/ support was initially introduced in 5.3 kernel and is only implemented for mount points using NFSv4.
> +.SH "BUGS"
> +Please report any BUGs to \c
> +.MTO "linux\-nfs\(atvger.kernel.org" "" ""
> +.SH SEE ALSO
> +.BR nfsd (8),
> +.BR exportfs (8),
> +.BR idmapd (8),
> +.BR statd (8)
> +.SH "AUTHORS"
> +Achilles Gaikwad <agaikwad@redhat.com> and
> +Kenneth D'souza  <kdsouza@redhat.com>
> 


  reply	other threads:[~2020-05-18 17:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-18 14:10 [PATCH V3 1/2] nfs-utils: add new tool nfsdclts to parse output from proc files Steve Dickson
2020-05-18 14:10 ` [PATCH V2 2/2] nfsdclnts: add man page for tool nfsdclnts Steve Dickson
2020-05-18 17:14   ` Steve Dickson [this message]
2020-05-18 17:14 ` [PATCH V3 1/2] nfs-utils: add new tool nfsdclts to parse output from proc files Steve Dickson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c2d18166-e364-d1ad-90f1-4cd2cc89117e@RedHat.com \
    --to=steved@redhat.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).