Bug 3353 - nfsstat does not work
Summary: nfsstat does not work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: nfs-utils
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Steve Dickson
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-06-09 02:08 UTC by Bill Chatfield
Modified: 2007-04-18 16:23 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-01-08 18:10:24 UTC
Embargoed:


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

Description Bill Chatfield 1999-06-09 02:08:30 UTC
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 10:56:59 UTC
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 12:47:59 UTC
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.

Thanks.

Comment 3 Jeff Johnson 1999-06-09 14:01:59 UTC
And that's a bug. Thanks for reopening.

Comment 4 Cristian Gafton 2000-08-09 02:34:55 UTC
assigned to johnsonm

Comment 5 Steve Dickson 2003-01-07 21:51:38 UTC
Created attachment 89193 [details]
Fix unnecessary warning messages

Comment 6 Steve Dickson 2003-01-08 18:10:24 UTC
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.