Performing housekeeping on log files (Fix Pack 11 and earlier)
Use the logcleaner.sh
script to perform housekeeping on log files for
Fix Pack 11 and earlier versions.
Syntax
./logcleaner.sh compress-after [+]days [delete after [+]days]
Parameters
- compress-after days
-
Compress the contents of the log if it is days old.
- compress-after + days
-
Compress the contents of the log if it is more than days old.
- delete-after days
-
Delete the contents of the log if it is days old.
- delete-after +days
-
Delete the contents of the log if it is more than days old.
Description
The logcleaner.sh
script executes on logs to remove old, unwanted logging
information. This utility is used to free up storage space.
The logcleaner.sh
script resides in
/opt/IBM/tivoli/netcool/ncm/bin/utils. This script can be run as a cron
job.
This should only be executed on the main presentation server.
Note: The logcleaner.sh script file is not functional for Fix Pack 12 and above. However, you can
use
logcleaner.cnf
file to remove old and unwanted logs.