From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Shaun.Racine@intier.com Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: how to capture output from nfsstat ? Date: Wed, 23 Oct 2002 12:29:33 +0100 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035372606 6316 80.91.224.249 (23 Oct 2002 11:30:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 11:30:06 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 184Ji5-0001cz-00 for ; Wed, 23 Oct 2002 13:30:01 +0200 Original-Received: (qmail 8461 invoked by uid 5); 23 Oct 2002 11:30:51 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 8452 invoked by uid 49493); 23 Oct 2002 11:30:50 -0000 Original-Received: from Shaun.Racine@intier.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(-3.9/5.0):. Processed in 0.482446 secs); 23 Oct 2002 11:30:50 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 23 Oct 2002 11:30:50 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H4F0040IMNDKD@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 23 Oct 2002 07:30:50 -0400 (EDT) Original-Received: from mail.magna-europa.com (mail.magna-europa.com [212.184.111.38]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H4F00CD6MN134@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 23 Oct 2002 07:30:43 -0400 (EDT) Original-Received: from mail.MIS.Magna-Europa.com ([172.28.32.9] verified) by mail.magna-europa.com (CommuniGate Pro SMTP 3.5.7) with ESMTP id 16425024 for tru64-unix-managers@ornl.gov; Wed, 23 Oct 2002 13:20:39 +0200 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Lotus Notes Release 5.0.7 March 21, 2001 X-MIMETrack: Serialize by Router on MISGROUP01DS/SVR/MISGroup(Release 5.0.4 |June 8, 2000) at 10/23/2002 12:29:35 PM Xref: main.gmane.org gmane.os.tru64.managers:2168 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2168 I knew it had to be simple. Answer from Nagaraj S; > If I have understood your querry following will script > solve your problem > > -----start > #!/bin/sh > while true; > do > nfsstat -s >> nfs.out > sleep 60 > done > > -------End > run this with & > > tail -f nfs.out > > for your VIEW Thanks to Yogesh Bhanu, not what I originally asked but provided me with further analysis ideas; > Try using "collect" which is better and If you have some problems with nfs .. > Well easiest way out is to check if all your NFSD daemons are being used . > Try lsof |grep nfsd . Also try upping the value under NFSIOD under /etc/rc.config from default 8 to > higher (better in muliples of 8 ). Check also using nettstat if your NIC is not throwing up errors . > Also try and look under /var/adm/syslog/ there are lot of log files which can throw some light. > Maybe the problem is somehwere else . > > If you have compaq analyze you can analyze binary.errorlog. Thanks also auto replies from people letting me know they are out-of-office ;-) Original question follows; ----- Forwarded by Shaun Racine/MISGroup on 23/10/2002 12:12 ----- Shaun Racine To: tru64-unix-managers@ornl.gov 23/10/2002 cc: 10:06 Subject: how to capture output from nfsstat ? 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