strclean Command
Purpose
Cleans up the STREAMS error logger.
Syntax
Description
The strclean command is used to clean up the STREAMS error-logger directory on a regular basis: for example, by using the cron daemon. By default, all files with names matching error.* in the /var/adm/streams directory that have not been modified in the last three days are removed.
Note: The strclean command is typically run using the cron deamon on a daily or weekly basis.
Flags
Item | Description |
---|---|
-a Age | Specifies the maximum age, in days, for a log file. |
-d | Specifies a directory other than the default directory. |
Security
Attention RBAC users: This command can
perform privileged operations. Only privileged users can run privileged operations. For more
information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the
authorizations that are associated with this command, see the lssecattr
command or the getcmdattr subcommand.
Examples
The following example has the same result as running the strclean command with no parameters.
strclean -d /var/adm/streams -a 3
Files
Item | Description |
---|---|
/var/adm/streams/error.* | Contains the STREAMS error log. |