You can use the following options with the filestats command:
The -g option of the filestats command enables you to generate separate file usage summaries for each group ID. For each group ID, a separate table containing information about file sizes and ages is listed.
The -u option of the filestats command enables you to generate separate file usage summaries for each user ID. For each user ID, a separate table containing information about file sizes and ages is listed.
The ages option of the filestats command enables you to see when files have been accessed. You can specify file ages in seconds, hours, and days, using a comma to separate each value. By default, file ages are broken down by days, in 30-day increments.
To display files with ages under 900 seconds (15 minutes), under 4 hours, and under 7 days, enter the following command:
filestats ages 900,4H,7D volume vol0 snapshot hourly.1
The age section of the output looks like the following:
AGE(ATIME) CUMULATIVE COUNT CUMULATIVE TOTAL KB
900 0 0
4H 0 0
7D 785 21568
MAX 882 146000
For an example of the entire filestats command output, see Example with no options specified.
The timetype option enables you to specify the time types that you want to list in the age comparison.
The following table describes the valid timetype values you can use with the timetype option.
The sizes option enables you to specify the breakdown of sizes, using a comma to separate each value. Default values are in bytes, but you can also use the following suffixes at the end of a number you specify:
Note
Using the * suffix can result in output of several thousands of lines.
To display file sizes in four categories--files with less than 500 kilobytes, files with less than 2 megabytes, files with less than 1 gigabyte, and all other files-- enter the following command:
filestats sizes 500K,2M,1G volume vol0 snapshot hourly.1
The file size section of the output looks like the following:
FILE SIZE CUMULATIVE COUNT CUMULATIVE TOTAL KB
500K 862 4969
2M 866 10748
1G 882 146000
MAX 882 146000
For an example of the entire filestats command output, see Example with no options specified.
The style option controls the output style. The three style option arguments are as follows:
The file option prints the results of the filestats command to the specified output file, rather than the console. The output file is created in the /etc/log directory.
The async option causes the filestats command to run independently of the console. This option is designed for use with the file option.
Note
Running more than one asynchronous filestats command simultaneously can adversely affect system performance.
Copyright © 1994-2005, Network Appliance, Inc. All rights
reserved.
Part No. 210-01077_B0
File: 11stat8.htm
Last updated: 05-Dec-2005 17:16:08