strclean(8) — Maintenance
OSF
NAME
strclean − Cleans up STREAMS error log files
SYNOPSIS
/usr/sbin/strclean [-d logdir] [-a age]
PARAMETERS
-d logdirSpecifies a directory, other than /var/adm/streams, for the location of the STREAMS error log files that must be removed.
-a ageSpecifies the age, in days, after which STREAMS error log files may be removed. The default is 3 days. The value of age must be a positive integer.
DESCRIPTION
Typically, the strclean command removes STREAMS error log files from /var/adm/streams, the default directory. The strclean command searches for the files called error.∗ that have not been modified for three days.
The log files are created by the strlog interface. Use the -a age parameter to change the default number of days after which error log files should be removed. If messages are stored in a directory other than the default, specify the -d logdir parameter to remove these log files.
Like many administrative commands, strclean can be run by the cron daemon on a periodic basis.
EXAMPLES
To remove error log files that are 1 day old from a directory called /usr/error, enter:
# strclean -d /usr/error/streams -a 1
FILES
/var/adm/error.mm-dd
One or more error log files on which strclean operates. The mm.dd in the filename indicates the month and day of the messages contained in the file.
RELATED INFORMATION
Interfaces: strlog(7)