From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ole Holm Nielsen Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: nfswatch outputs all zeroes Date: Thu, 24 Nov 2005 13:41:20 +0100 Message-ID: <4385B4F0.5000606@fysik.dtu.dk> References: <63508.80.198.11.14.1132785271.squirrel@webmail.fysik.dtu.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1132836252 15005 80.91.229.2 (24 Nov 2005 12:44:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 24 Nov 2005 12:44:12 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Nov 24 13:44:04 2005 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1EfGQO-0007M8-24 for gotm-tru64-unix-managers@gmane.org; Thu, 24 Nov 2005 13:42:04 +0100 Original-Received: (qmail 11283 invoked by uid 49509); 24 Nov 2005 12:41:44 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 11268 invoked by uid 49501); 24 Nov 2005 12:41:44 -0000 Original-Received: from 160.91.4.110 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.4.110):SA:0(-2.4/5.0):. Processed in 0.495406 secs); 24 Nov 2005 12:41:44 -0000 X-Spam-Status: No, hits=-2.4 required=5.0 Original-Received: from emroute3.ornl.gov (160.91.4.110) by sws1.ornl.gov with SMTP; 24 Nov 2005 12:41:43 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0IQG007E3LXINU@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 24 Nov 2005 07:41:43 -0500 (EST) Original-Received: from VIRUSCAN-DAEMON.emroute3.ornl.gov by emroute3.ornl.gov (PMDF V6.2-1x9 #31038) id <0IQG00A02LWZRX@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 24 Nov 2005 07:41:42 -0500 (EST) Original-Received: from servfys.fysik.dtu.dk (servfys.fysik.dtu.dk [130.225.86.25]) by emroute3.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTPS id <0IQG0089FLWXH7@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 24 Nov 2005 07:41:23 -0500 (EST) Original-Received: from [130.225.86.55] (dirac.fysik.dtu.dk [130.225.86.55]) by servfys.fysik.dtu.dk (8.13.1/8.13.1/CanIt+Blacklists+accessDB) with ESMTP id jAOCfKMs016842; Thu, 24 Nov 2005 13:41:20 +0100 In-reply-to: <63508.80.198.11.14.1132785271.squirrel@webmail.fysik.dtu.dk> Original-To: tru64-unix-managers@ornl.gov X-Envelope-from: Ole.H.Nielsen@fysik.dtu.dk X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.7-1.4.1.centos4 (X11/20051007) X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on email.cind.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.1.0 X-Canit-Stats-ID: 139516 - 66e067ee5f63 X-Antispam-Training: Train as spam: https://canit.fysik.dtu.dk/b.php?c=s&i=139516&m=66e067ee5f63 X-Antispam-Training: Train as non-spam: https://canit.fysik.dtu.dk/b.php?c=n&i=139516&m=66e067ee5f63 X-Antispam-Training: Cancel training: https://canit.fysik.dtu.dk/b.php?c=f&i=139516&m=66e067ee5f63 X-CanItPRO-Stream: 00_Normal X-Scanned-By: CanIt (www . roaringpenguin . com) on 130.225.86.25 Xref: news.gmane.org gmane.os.tru64.managers:8664 Archived-At: I received helpful answers from a number of people regarding the non-working nfswatch utility: 1. It is necessary to enable promiscuous mode on the network interface using "pfconfig +p +c interface". The "nfswatch" manual is misleading, since the pfconfig is required also for the "root" superuser to use nfswatch. 2. The packetfilter devices must be created if they don't exist: cd /dev; MAKEDEV pfilt 3. The Tru64 UNIX nfswatch utility is outdated (useless ?) since it only handles NFSv2 traffic. This nfswatch cannot handle NFS over TCP nor NFSv3. There is an nfswatch project on SourceForge at http://sourceforge.net/projects/nfswatch/ but it doesn't seem to support Tru64 UNIX. 4. Since nfswatch is broken, only tcpdump can give you some information. Eric Werme sent me a tcpdump command to try, and this finally allowed me to get the information about NFS clients that I needed. I've turned this into a little script "nfsdump" (see below) which may be used as a "poor man's nfswatch". Original question: > We have an NFS overload situation of our Tru64 v5.1B server, and we > need to run the "nfswatch" utility to identify the misbehaving NFS > clients. > > Unfortunately, "nfswatch --allif" shows almost exclusively zero > NFS traffic, although the server in reality is being killed by > NFS traffic (the disk subsystem does 800 SCSI transfers/sec). > > Question: Does anyone which special tricks are required in order > to make "nfswatch" behave correctly (the way it does on other > UNIXes) ? I do have "options PACKETFILTER" defined in the kernel > config file. Thanks to: allan@physics.umn.edu werme@zk3.dec.com farrell@pangea.Stanford.EDU bard.tesaker@nt.ntnu.no -- Ole Holm Nielsen Department of Physics, Technical University of Denmark The script nfsdump: ------------------- #!/bin/sh # Dumping NFS client packets as a replacement for broken nfswatch if test $# -ne 2 then echo Usage: $0 interface-name number-of-packets exit 1 fi INTERFACE=$1 COUNT=$2 # Minimum number of calls which we bother to list MINCALLS=10 TCPDUMP="/usr/sbin/tcpdump" TCPDUMP_ARGS="-ts300 port 2049" echo "Doing tcpdump of $COUNT packets on interface $INTERFACE and listing NFS calls (over $MINCALLS)" $TCPDUMP -i $INTERFACE -c$COUNT $TCPDUMP_ARGS | grep call | \ awk '{ match($1, "[.][^.]+$"); print substr($1, 1, RSTART-1) }' | \ sort | uniq -c | sort -n +1 | \ awk -v MINCALLS=$MINCALLS '{if($1>=MINCALLS) print $0}'