Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1748706pxb; Wed, 9 Feb 2022 03:47:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwkVE3yzXxxW8t/i8QLsCZU5ZbZ7k4qB4CYgjTI2/COI/m72qJjR7K+6XK3Yz04GVLt29df X-Received: by 2002:a17:902:eb4d:: with SMTP id i13mr1759779pli.111.1644407221905; Wed, 09 Feb 2022 03:47:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644407221; cv=none; d=google.com; s=arc-20160816; b=iciWbhm+zGS0+y+1Yd6QUSspykNQ+DGCljuj1m7Ngg5InMLApIpyl/49MONQdtTv5j 9l6Dro1T3sd992bMiA9fG+sJ0uXD5GYATJex61fY6bGoWC6XWmXlU2Kcsu7Kp64VUfYn aqogVY7bZgP8mvuyIs1KBDVyA6PtFk+y+V7djqYPO02lMG1pigyBToWCt7iihNvyzUng ky+sD6f268jV20dra9glay3y0uGPj0WCAMd28tWqUsESS8vNo+pjZHa19bnoz9oi26Z3 YC32L77VphhyB57m8iWqL6qc4sfQUvO4lSmc/1p4v1pdA2PfNtpwwsRLDoYz2W8U1uUL EnYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=QiSzydt75vpeh+kbY5uWezRho2t2WW2R3OefLp4T3NY=; b=PLlFW42SodhostryqCsPVX628aMSIh9rpU1I4lJWdTV3QqeG3Wl6GJDDtY93fvWmTM gAc+wHXqfp0UL9wlNrTBE5aSRLnvpYTMDjMheTF82SCvd0CBt2EsBIBVZ3RaTWdTm6iH xJZnd4RRgIX3ToAZTWZDbMjUPcGMOvi/hrBWo8UP0VYz5jjSdVnJwVEJV8dElr7oFFSO wQM9F1iN3jtDKBA3JH45Tm2dQgV0ggP1agMngFgRUawfxw/uDxhTRRtd/pgDvQcMwcr7 fL2BFY+lzNQ3DFm0H/hLRyJXbPh6IaETIs9EJb55RK30jFClGB7QjP3Drilo9E/pYfHZ v3iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GnawVETP; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 128si5309721pgc.166.2022.02.09.03.47.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 03:47:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GnawVETP; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BE765E0DF471; Wed, 9 Feb 2022 01:58:33 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233967AbiBGUr6 (ORCPT + 99 others); Mon, 7 Feb 2022 15:47:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241998AbiBGUdB (ORCPT ); Mon, 7 Feb 2022 15:33:01 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 776FEC0401DA for ; Mon, 7 Feb 2022 12:33:00 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id l35-20020a05600c1d2300b0034d477271c1so169711wms.3 for ; Mon, 07 Feb 2022 12:33:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QiSzydt75vpeh+kbY5uWezRho2t2WW2R3OefLp4T3NY=; b=GnawVETPWfG/XCCH4ikk+sLZ9H2/RK3zpZ88k+tPiahA+g8JCGA1BbdPXjsYl5bmcB ILxYaIyBE1XPXUv9h4YqkL3mFqSt/kyGSXYHcoXIzuTsEBlE2FU0sSCEE+vt6H6VmNlT XcnbRuhWy1DLi3Oqb5zb5ZpCnUf6oiQRO28yQ51FYyosTDXbv3wfmnx7esQTG9hi7HBJ b7J6JwdNFQgC6323zIP+AnCCOHZZuo4sCAKL27ND5XcVfaJiddHsONUENm1zKHVG/T35 Whx6vT63OAeDJ8y8aTFdU6183YsnEGzszDh0ZGB9ORctnBZ9fvKnDu6OARqYedfE0O8d sL5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QiSzydt75vpeh+kbY5uWezRho2t2WW2R3OefLp4T3NY=; b=R8rMfc7WAdwDYlxCQwcsPNwvfA/XIZYIvoANyG8y36I6Ae5KLdV87G3UFkVIdt3h1y CDU5YDR9mYy56+WjBTj5kThLqJcevq1Vj0oCXE1iM+73Eb6kN1LPz3ZdcBq9xKVswhAR a2A0kW+wzihLJJiZzY7CHxcV6Ld1UK+QiZVmk/xFqwauOZgNFD2KxZToNQ7Ufummm1Wx EKiU5VUmXkxih9e/v9XW010ahGzMrL+kJCXkoBfMMqcZ6RHYFYODDZ3wh7KGCT3nkZXW eabUnr9N2woK0GxGMrjZ0+A7f1aWLHjRPwk7oNUrHKR+WZslFm3z1PYUSf43NmVdIH4J pktw== X-Gm-Message-State: AOAM530aj8y+x5japeEicjEnKJBWPt7gLwjBfSoNYlRNXhtOkbDUougQ dDcbjZCNXSyF0NLhv0M5lCyM/u5rq73VctTzWWc= X-Received: by 2002:a1c:a595:: with SMTP id o143mr364305wme.78.1644265978793; Mon, 07 Feb 2022 12:32:58 -0800 (PST) MIME-Version: 1.0 References: <20220127194952.63033-1-Anna.Schumaker@Netapp.com> <20220127194952.63033-9-Anna.Schumaker@Netapp.com> In-Reply-To: From: Anna Schumaker Date: Mon, 7 Feb 2022 15:32:42 -0500 Message-ID: Subject: Re: [PATCH v7 8/9] rpcctl: Add a man page To: Steve Dickson Cc: Linux NFS Mailing List , Schumaker Anna Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Feb 7, 2022 at 2:58 PM Steve Dickson wrote: > > Hey Anna! > > On 1/27/22 2:49 PM, schumaker.anna@gmail.com wrote: > > From: Anna Schumaker > > > > Signed-off-by: Anna Schumaker > > --- > > tools/rpcctl/rpcctl.man | 88 +++++++++++++++++++++++++++++++++++++++++ > > 1 file changed, 88 insertions(+) > > create mode 100644 tools/rpcctl/rpcctl.man > > > > diff --git a/tools/rpcctl/rpcctl.man b/tools/rpcctl/rpcctl.man > > new file mode 100644 > > index 000000000000..e4dd53ac8531 > > --- /dev/null > > +++ b/tools/rpcctl/rpcctl.man > > @@ -0,0 +1,88 @@ > > +.\" > > +.\" rpcctl(8) > > +.\" > > +.TH rpcctl 8 "25 Jan 2022" > > +.SH NAME > > +rpcctl \- Displays SunRPC connection information > > +.SH SYNOPSIS > > +.B rpcctl > > +.RB [ \-h | \-\-help ] > > +.P > > +.B rpcctl client > > +.RB [ \-h | \-\-help ] > > +.RB [ \--id > > +.IR ID ] > > +.P > > +.B rpcctl switch > > +.RB [ \-h | \-\-help ] > > +.RB [ \--id > > +.IR ID ] > > +.P > > +.B rpcctl switch set > > +.RB [ \-h | \-\-help ] > > +.RB [ \--id > > +.IR ID ] > > +.RB [ \--dstaddr > > +.IR dstaddr] > > +.P > > +.B rpcctl xprt > > +.RB [ \-h | \-\-help ] > > +.RB [ \--id > > +.IR ID ] > > +.P > > +.B rpcctl xprt set > > +.RB [ \-h | \-\-help ] > > +.RB [ \--id > > +.IR ID ] > > +.RB [ \--dstaddr > > +.IR dstaddr] > > +.RB [ --offline ] > > +.RB [ --online ] > > +.RB [ --remove ] > > +.P > > +.SH DESCRIPTION > > +.RB "The " rpcctl " command displays information collected in the SunRPC sysfs files about the system's SunRPC objects. > > +.P > > +.SS Objects > > +Valid > > +.BR rpcctl (8) > > +objects are: > > +.IP "\fBclient\fP" > > +Display information about this system's RPC clients. > > +.IP "\fBswitch\fP" > > +Display information about groups of transports. > > +.IP "\fBxprt\fP" > > +Display detailed information about each transport that exists on the system. > > +.SH OPTIONS > > +.SS Options valid for all objects > > +.TP > > +.B \-h, \-\-help > > +Show the help message and exit > > +.TP > > +.B \-\-id \fIID > > +Set or display properties for the object with the given > > +.IR ID. > > +This option is mandatory for setting properties. > > +.SS Options specific to the `switch set` sub-command > > +.TP > > +.B \-\-dstaddr \fIdstaddr > > +Change the destination address of all transports in the switch to > > +.IR dstaddr > > +.SS Options specific to the `xprt set` sub-command > > +.TP > > +.B \-\-dstaddr \fIdstaddr > > +Change the destination address of this specific transport to > > +.TP > > +.B \-\-offline > > +Change the transport state from online to offline > > +.TP > > +.B \-\-online > > +Change the transport state from offline to online > > +.TP > > +.B \-\-remove > > +Removes the transport from the switch. Note that "main" transports cannot be removed. > I got some feed back on this manpage.... > > They said would be useful to have examples on how to use > the objects... esp the switch set and xprt set ones. > I kinda agree... Okay, I can add that. I'll send out a new version with that and anything Rahul finds once he checks back in after trying the tool with the sysfs kernel fixes. Anna > > steved. > > +.SH DIRECTORY > > +.TP > > +.B /sys/kernel/sunrpc/ > > +.SH AUTHOR > > +Anna Schumaker >