Salesforce

PASOE: Cleaning up old/previous log files

« Go Back

Information

 
TitlePASOE: Cleaning up old/previous log files
URL NamePASOE-Cleaning-up-old-previous-log-files
Article Number000141072
EnvironmentProduct: OpenEdge
Version: All supported versions
OS: All supported platforms
Other: PASOE
Question/Problem Description
How to manage the daily PASOE log file archives?
Managing PASOE log file roll over
Managing PASOE log files in the subdirectory of the server {CATALINA_BASE}/logs
Is there a way to remove old PASOE logs ?
Which property controls how many PAS log archives are kept ?
Can PASOE archive folders be rotated ?
Using TCMAN, with or without the archive switch (-A) does not clear previously archived the logs 
What TCMAN or PASMAN switch is needed to delete the subdirectory of the server {CATALINA_BASE}/logs
Archived logs in {CATALINA_HOME}\logs sub-directories start taking up a lot of diskspace
 
Steps to Reproduce
Clarifying Information
{CATALINA_BASE} : <wrk>/oepas1/bin/tcman.sh clean [ -A ]
{CATALINA_HOME} : <DLC>/servers/pasoe/bin/tcman.sh clean -I oepas1 [ -A ]

pasman clean -I oepas1 -A
pasman pasoestart -I instance-name [-restart] [-archive]
Error Message
Defect Number
Enhancement Number
Cause
Resolution
Managing PASOE log files in the subdirectory of the server {CATALINA_BASE}/logs

The 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-name

2.  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"`"

4.  Since OpenEdge 11.7, PAS log files are automatically archived on a daily basis. For further information on how PASOE logfile archiving works, refer to Article:  PASOE log rotation based on file size and age.  

 
Workaround
Notes
References to Other Documentation:

PAS for OpenEdge Administration Tools Reference > TCMAN Reference > Server actions  
https://docs.progress.com/bundle/pas-for-openedge-reference/page/Clean-up-or-archive-server-log-files-clean.html

Manage Progress Application Server (PAS) for OpenEdge > Learn about PAS for OpenEdge administration > About the PAS for OpenEdge configuration tools > PASOESTART
https://docs.progress.com/bundle/pas-for-openedge-management/page/PASOESTART.html
 
Keyword Phrase
Last Modified Date12/30/2020 12:53 PM

Powered by