davy@itstd.sri.com (09/02/90)
NFSWATCH Version 2.0 is now available for anonymous FTP from spam.itstd.sri.com and icarus.riacs.edu in the file "pub/nfswatch.tar.Z", and from titan.rice.edu in the directory "sun-source/nfswatch.tar.Z". It has also been sent to the comp.sources.unix newsgroup. NFSWATCH allows you to monitor all NFS request traffic (the stuff generated by clients) to a given host, or all NFS request traffic on the local network. This latter feature is useful for tracking how much NFS traffic is being send through gateways, etc. Aside from some bug fixes and performance improvements, there are several new features in NFSWATCH due to Jeff Mogul at DECWRL: - Support added for Ultrix 4.0 with the PFILT packet filter. - New option "-all" allows you to watch all NFS requests on the local network. Prints remote server file systems as major/minor numbers. - Now "learns" about new file systems as it sees them go by. - You can sort the file system display either alphabetically (as before) or by percent usage. - Now works properly on SPARC systems. - Uses the NIOCSSNAP feature of the NIT on Suns under SunOS 4.1 to reduce the amount of data copied around. This is not done under SunOS 4.0.x, because it seems to be full of bugs, at least on the Sun-3. A similar feature is used under PFILT. NFSWATCH has been tested on the following architectures: Sun 3/80 SunOS 4.1 Sun 3/280 SunOS 4.0.3 Sun 4/20 SunOS 4.1 Sun 4/60 SunOS 4.1 Sun 4/260 SunOS 4.0.3 Sun 4/380 SunOS 4.1 Sun 4/390 SunOS 4.1 DEC VAX Ultrix 4.0 DEC RISC Ultrix 4.0 Porting NFSWATCH to other architectures should be fairly simple; you should only have to add a module to open and initialize your variety of packet filter, modify the packet reading loop in nfswatch.c, and modify the file handle decoding in rpcfilter.c. I would be especially happy if someone who's running 4.3BSD-Reno would port NFSWATCH to that system. Enjoy, Dave Curry SRI International 333 Ravenswood Avenue Menlo Park, CA 94025 davy@itstd.sri.com