search cancel

How to archive the log directory for Applications Manager

book

Article ID: 90089

calendar_today

Updated On:

Products

CA Automic Applications Manager (AM)

Issue/Introduction

How to archive the log directory for Applications Manager

Environment

Release: AAMOS499000-8.0-Automic Applications Manager-OS400 Agent
Component:

Resolution

Question:

While troubleshooting AM issues, there are times when Support will request the entirety of the 'log' directory to be provided following a clean restart of the processes.

Solution: 

The first thing is to make sure that the AM environment has been set using $AW_HOME/site/sosite.

. sosite (or . ./sosite)

Linux:

tar -cPf - $AW_HOME/log | gzip > AM_logs_`date '+%m%d%Y'`.tar.gz


Unix (HP-UX, Solaris, AIX):

tar -cf - $AW_HOME/log | gzip > AM_logs_`date '+%m%d%Y'`.tar.gz


The file name created in this case, is still AM_logs_<date>.tar.gz in the $AW_HOME directory. At this time, please forward the logs to the Support team for investigation. Alternatively, this command can also used to back up the log directory on a daily basis.

The steps above can also be used to make a backup