SUMMARY: log NFS requests

SunManagers at lycos.co.uk SunManagers at lycos.co.uk
Thu Sep 16 07:20:51 EDT 2004


 Hi Managers,

Late Summary due to childbirth   :-)

Problem:-
> I have an application that is making an extremely large number of file
> reads to an NFS server. I would like to log (probably only for a brief
> period of time) which files/directories it is accessing. OS is Solaris 8.

Thanks to:

the man pages for truss and System Calls; Casper Dik; Rich Teer; Chris Pinnock.

Solution:
man nfs_share (suggested by many; I couldn't get this to work)

truss -t open,read,lseek -p $PID_OF_RUNNING_PROCESS (suggested by Chris). I found that 
truss -t open -o /tmp/trussoutput -p $PID_OF_RUNNING_PROCESS was sufficient to get the information required and keep it in a useable form.

Thanks all
_______________________________________________
sunmanagers mailing list
sunmanagers at sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



More information about the summaries mailing list