Bug 3353 - nfsstat does not work
nfsstat does not work
Product: Red Hat Linux
Classification: Retired
Component: nfs-utils (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Steve Dickson
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 1999-06-08 22:08 EDT by Bill Chatfield
Modified: 2007-04-18 12:23 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-01-08 13:10:24 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Fix unnecessary warning messages (1.30 KB, patch)
2003-01-07 16:51 EST, Steve Dickson
no flags Details | Diff

  None (edit)
Description Bill Chatfield 1999-06-08 22:08:30 EDT
nfsstat is looking for /proc/net/rpc/nfs.  That is not the
right file the correct file is /proc/net/rpc/nfsd.  I don't
know how to fix this.  The result is that nfsstat prints
only an error.
Comment 1 Jeff Johnson 1999-06-09 06:56:59 EDT
Both nfs and nfsd can be present in /proc/net/rpc, one for the
client statistics, the other for the server statistics. Perhaps
your machine is not an NFS client ...

BTW you may want to try knfsd-1.3.3 from Raw Hide ...
Comment 2 Bill Chatfield 1999-06-09 08:47:59 EDT
You are right.  The machine was not a client.  It appears that both
/proc/net/rpc/nfs and /proc/net/rpc/nfsd have to be present for
nfsstat to work.  This means that the machine has to be both an nfs
client and server to get any statistics.  It would be nice if nfsstat
just printed statistics for whatever files it finds and didn't require
both of them to be there to get anything.

Comment 3 Jeff Johnson 1999-06-09 10:01:59 EDT
And that's a bug. Thanks for reopening.
Comment 4 Cristian Gafton 2000-08-08 22:34:55 EDT
assigned to johnsonm
Comment 5 Steve Dickson 2003-01-07 16:51:38 EST
Created attachment 89193 [details]
Fix unnecessary warning messages
Comment 6 Steve Dickson 2003-01-08 13:10:24 EST
Reworked the diagnostics of nfsstat so annoying warnings 
are not displayed for statistics that are not asked for
and don't exist.

Note You need to log in before you can comment on or make changes to this bug.