Question & Answer
Question
Is there an ITM 6.x command to manage the number of log files and the log file sizes in the
Cause
Since ITM log files grow in size over time, it would be helpful to have a command to manage the log files in the <ITMHome>/logs directory.
Answer
On UNIX IBM Tivoli Monitoring systems the ITM administrator can use the
`itmcmd audit -l age [logdays]` command to remove the log files in the <ITMHome>/logs directory older than the specified number of days.
age [logdays]
Removes all log files that are older than a specified number of days.
The age is determined by the last modification date.
The default age is 30 days.
There are log files in the <ITMHome>/logs directory to which
information is appended and the log files do not age over time.
These files can be trimmed to reduce the size of the log files.
The files listed below are install and config-start-stop tools related. It
was pointed out, that the only issue with removing any or all of the
listed files is that operational history is lost which could be useful
to problem diagnosis. Beside this issue, it is safe to remove these
files if needed.
The files listed are touched (opened and closed) each time an itmcmd
command is run. This will keep the files from being removed by date.
itm_config.log
itm_config.trc
itm_synclock.log
itm_synclock.trc
itm_install.log and itm_install.trc are updated only when install.sh is
run. There should not be an issue removing these by date.
itm_install.log
itm_install.trc
Use `itmcmd audit -l size [logsize]` to trim the size of the log files which
are not removed by the log file age because they never age?
size [logsize]
Trims log files to a specified number of bytes. The oldest entries are
removed first. The default size is 1024 bytes.
Files like candle_installation.log, itm_config.log and itm_config.trc
are actively open and being written to by the itmcmd audit process.
This may cause a problem when attempting to trim for size, so it may be
necessary to trim these logs when the ITM processes are shutdown.
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21469359