Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1425956

Summary: nfsstat --mounts is unrecognized option
Product: Red Hat Enterprise Linux 7 Reporter: Thom Carlin <tcarlin>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED ERRATA QA Contact: ChunYu Wang <chunwang>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: eguan, yoyang
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nfs-utils-1.3.0-0.40.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1594097 (view as bug list) Environment:
Last Closed: 2017-08-01 19:48:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Thom Carlin 2017-02-22 20:54:13 UTC
Description of problem:

Long form of "nfsstat -m" is documented in "nfsstat --help" and "man nfsstat" as --mounts.  However, it actually appears to be "nfsstat --mount" (singluar)

Version-Release number of selected component (if applicable):

1.3.0-0.33.el7.x86_64

How reproducible:

100%

Steps to Reproduce:
1. yum install nfs-utils
2. nfsstat --help
3. nfsstat --mounts

Actual results:

nfsstat --help
Usage: nfsstat [OPTION]...

  -m, --mounts		Show statistics on mounted NFS filesystems
  -c, --client		Show NFS client statistics
  -s, --server		Show NFS server statistics
  -2			Show NFS version 2 statistics
  -3			Show NFS version 3 statistics
  -4			Show NFS version 4 statistics
  -o [facility]		Show statistics on particular facilities.
     nfs		NFS protocol information
     rpc		General RPC information
     net		Network layer statistics
     fh			Usage information on the server's file handle cache
     rc			Usage information on the server's request reply cache
     all		Select all of the above
  -v, --verbose, --all	Same as '-o all'
  -r, --rpc		Show RPC statistics
  -n, --nfs		Show NFS statistics
  -Z[#], --sleep[=#]	Collects stats until interrupted.
			    Cumulative stats are then printed
          		    If # is provided, stats will be output every
			    # seconds.
  -S, --since file	Shows difference between current stats and those in 'file'
  -l, --list		Prints stats in list format
  --version		Show program version
  --help		What you just did

# nfsstat --mounts
nfsstat: unrecognized option '--mounts'
# nfsstat --mount
# 

Expected results:

nfsstat --mounts to work

Additional info:

Please either make the option work or fix the help text and the man page

Comment 2 Steve Dickson 2017-04-08 13:29:39 UTC
commit b587496ba83ac7da31a33a0e1fd533773f3240ce
Author: Steinar H. Gunderson <sgunderson>
Date:   Mon Mar 10 14:55:47 2008 -0400

    Fixed a couple typos that effected the '--mounts' nfsstat option
    
    Signed-off-by: Steinar H. Gunderson <sgunderson>
    Signed-off-by: Steve Dickson <steved>

Comment 5 ChunYu Wang 2017-04-12 04:13:48 UTC
By comparing test results among previous and current nfs-utils versions, this issue has been resolved on target version (nfs-utils-1.3.0-0.40.el7):

- Previous - nfs-utils-1.3.0-0.38.el7.x86_64

[23:55:49 root@ ~~]# nfsstat --mounts
nfsstat: unrecognized option '--mounts'
Try `nfsstat --help' for more information.
[23:56:58 root@ ~~]# echo $?
255

- Current - nfs-utils-1.3.0-0.40.el7.x86_64

[23:56:56 root@ ~~]# nfsstat --mounts
<--snip-->
[23:56:58 root@ ~~]# echo $?
0

Comment 7 ChunYu Wang 2017-04-12 04:21:55 UTC
Moved to VERIFIED according to comment 5/6, will expand test coverage on "equivalent command options" and include this case in future RHEL-7.4 tests.

Thanks,
ChunYu Wang

Comment 9 errata-xmlrpc 2017-08-01 19:48:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2233