Managing PASOE log files in the subdirectory of the server {CATALINA_BASE}/logsThe TCMAN utility is not intend to manage the old/previous log files only current PASOE log files. Use Operating System tools/command/scripts to move, archive, compress or delete the archived files/directory content.
Managing PASOE log files:1. Clean log files before starting a PAS instance.
Using
TCMAN clean without -A (archive), will remove current PAS log files:
- When the server is running, clean truncates log files to zero length.
- When the server is not running, clean deletes the log files from the file system.
When using the Archive Option:
TCMAN clean -A :
- Archives all PASOE logs to a subdirectory of the server {CATALINA_BASE}/logs, with the archive folder time-stamp format.
- And follows the same rules as above when the server instance is either running or stopped
Alternatively:
pasman clean -A -I instance-name2. When PASOESTART is used to start instances,current log files are archived as part of it's startup actions:
$ pasman pasoestart -I instance-name [-restart] -archive
3. The archive folder name format can be changed as required in:
<DLC>\servers\pasoe\bin\tcmanager.[ps1 | sh]replace the current archive folder name format:
tcmanager.ps1: $_subdir="$(get-date -f MM-dd-yyyy-ss)"
tcmanager.sh: _subdir="`date +"%m-%d-%Y-%H%M%S"`"
for example, with a Year-month-date format ( compatible with chronological sorting):
tcmanager.ps1: $_subdir="$(get-date -f yyyy-MM-dd-HHmmss)"
tcmanager.sh: _subdir="`date +"%Y-%m-%d-%H%M%S"`"