STREAMS-UX Programmer's Guide (February 2007)
STREAMS Commands
strclean
Appendix G
295
strclean
strclean cleans the STREAMS error logger directory of log files (error.mm-dd) that contain error messages
sent by the STREAMS log driver strlog(7). If the -d option is not used to specify another directory,
strclean removes the error log files in the /var/adm/streams directory. If the -a option is not used to
specify another age, strclean removes the error log files that have not been modified over the last three days.
The syntax for the strclean command is as follows:
strclean [-d logdir] [-a age]
strclean recognizes the following options and command-line arguments:
-d logdir Specifies a directory for the location of the STREAMS error log files to be removed, if the
default directory /var/adm/streams is not specified.
-a age Specifies a maximum age in days for the STREAMS error log files, if the default age of 3 is
not specified. The value of age must be an integer greater than or less than 3.
Example
The following command will remove error messages that are one day old, from the /tmp/streams directory:
strclean -d /tmp/streams -a 1