/*
* nfswizard.d - nfs client activity wizard.
* Written using DTrace (Solaris 10 3/05).
*
* This examines activity caused by NFS client processes on the same server
* that you are running this script on. A detailed report is generated
* to explain various details of NFS client activity, including response
* times and file access.
*
* $Id: nfswizard.d 3 2007-08-01 10:50:08Z brendan $
*
* USAGE: nfswizard.d # hit Ctrl-C to end sample
*
* COPYRIGHT: Copyright (c) 2005, 2006 Brendan Gregg.
*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* See the License for the specific language governing permissions
* and limitations under the License.
*
* CDDL HEADER END
*
* 02-Dec-2005 Brendan Gregg Created this.
* 20-Apr-2006 " " Last update.
*/
{
printf("Tracing... Hit Ctrl-C to end.\n");
}
{
/* tally file sizes */
/* time response */
/* overall stats */
}
{
/* calculate and save response time stats */
}
{
/* print header */
/* print throughput stats */
/* print time stats */
/* print file stats */
printf("Top 25 files accessed (bytes):\n");
}