On Tue, Jun 17, 2008 at 01:26:46PM -0500, Piyush Shivam wrote: > I noticed that all the statistics that nfsstat outputs are maintained as > kstat statistics in the kernel (unless I am missing something). Since > the kstat utility provides access to all the kstats from the command > line, I was wondering if there was any specific reason for implementing > nfsstat in C and not as a script that leverages the kstat utility. Is > there some history or just a matter of preference?
One reason may well be that nfsstat doesn't just print statistics. nfsstat -m, for example, prints information about NFS mounts that can hardly be called "statistics" :)