how to capture output from nfsstat ?

From: Shaun.Racine@intier.com
Date: Wed Oct 23 2002 - 05:06:00 EDT


Hi Managers,

This seems so simple but its driving me nuts. I want to record the output
from nfsstat in a file.

We have a regular system panic on our ES40 (v5.1A), Compaq support have
suggested it may be overload of NFS service, which I doubt.

I can use nfsstat to monitor this online, but I want to record output in a
file to view after system crash. The commands I have tried are;
nfsstat -s -i 60 > nfs.log 2>&1
echo 'nfsstat -s -i 60 > nfs.log 2>&1'|at now
nohup nfsstat -s -i 60 > nfs.log 2>&1 &

But in each case the logfile always remains 0 length with no data in it!

One that sort of works is;
echo 'nfsstat -s -i 60'|at now

and the output is captured in mail after the process is terminated, but I
can't guarantee the mail would appear in the event of a crash.

I welcome all suggestions.

Regards,
Shaun Racine
Systems Development Manager

email: shaun.racine@intier.com



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:57 EDT