AutoSys Log File and Database Housekeeping Best Practices
search cancel

AutoSys Log File and Database Housekeeping Best Practices

book

Article ID: 433614

calendar_today

Updated On:

Products

Autosys Workload Automation

Issue/Introduction

Consolidated guide and reference for managing log files, spool data, database growth, and routine maintenance across AutoSys AE, WCC, System Agents, and EEM components.

Environment

 

  • AutoSys Workload Automation AE

  • Workload Control Center (WCC) / WebUI

  • AutoSys System Agent

  • Embedded Entitlements Manager (EEM) / CA Directory (dxserver)

 

Resolution

1. Database Maintenance (The "DBMaint" Cycle)

The internal database maintenance process is critical to prevent the database from reaching storage limits, which would halt AutoSys operations.

  • Standard DBMaint: AutoSys runs a daily maintenance script configured by the DBMaintCmd and DBMaintTime parameters in the $AUTOUSER/config.$AUTOSERV file.

    • archive_events: Removes processed events and associated alarms (e.g., historical finished jobs).

    • archive_jobs: Deletes obsolete job definitions/versions.

    • dbstatistics: Updates database statistics for the optimizer to maintain fast query performance.

  • Archived File Cleanup: By default, data purged from the database is written to flat text files in $AUTOUSER/archive.

    • Note: There is no automated product cleanup for these flat files. Administrators must manually compress, archive, or delete files in $AUTOUSER/archive periodically.

  • Database Space Monitoring: Use the dbspace command to monitor the space consumed by AutoSys objects in the database and collaborate with your DBA as needed.

  • Best Practice: Schedule DBMaint during low-activity windows. If maintenance windows cause performance impact, consider splitting execution into shorter, multi-time-per-day runs.

2. AutoSys Server-Side Logs (Scheduler & Application Server)

The Scheduler and Application Server generate high-volume activity logs over time.

  • Log Rollover: Configure the LOGROLLOVER setting in $AUTOUSER/config.$AUTOSERV to automatically roll over log files and prevent multi-gigabyte log accumulation.

  • Manual Cleanup: Periodically compress, archive, or purge older log files located in $AUTOSYS/out.

3. Remote Agent & Spool Management

Agent spool files and job output logs (stdout / stderr) can fill up local agent disk space rapidly.

  • Auto-Cleanup for Successful Jobs: Enable automatic deletion of output logs for successful jobs by setting the following parameter in agentparm.txt on all agents:

    oscomponent.joblog.success.autocleanup=true
    
  • Failed Job Log Retention: By default, agents retain spool files and output logs for failed jobs for 7 days to assist in troubleshooting. Adjust retention duration in agentparm.txt using:

    runnerplugin.spool.expire=7d
    

4. Workload Control Center (WCC)

Unmaintained WCC database tables and unused views can degrade user interface performance.

  • Monitoring Views Cleanup: Remove unused or orphaned "private" monitoring views left by former users:

    1. Export monitoring views using wcc_monitor.sh (Linux/Unix) or wcc_monitor.bat (Windows).

    2. Modify the output file, changing insert_ statements to delete_.

    3. Import the file back into WCC using the wcc_monitor utility.

  • Collector & Reporting Cleanup:

    • Collector DB Cleanup: Navigate to WCC UI -> Configuration -> Preferences -> Collector.

    • Reporting DB Cleanup: Navigate to WCC UI -> Configuration -> Preferences -> Reporting -> Database Cleanup.

5. Embedded Entitlements Manager (EEM) & CA Directory

Log file behaviors and database sizing considerations for EEM dependencies:

  • EEM Application Logs:/opt/CA/SharedComponents/EmbeddedEntitlementsManager/logs

    • Logs in this directory are circular by default and do not require manual cleanup.

  • CA Directory Logs:/opt/CA/SharedComponents/CADirectory/dxserver/logs

    • Logs in this directory are non-circular and generate a new file daily. They tend to be small, but should be included in periodic log cleanup checks.

  • iTechnology Logs:/opt/CA/SharedComponents/iTechnology/*.log

    • These logs do not clean up automatically, but usually consume minimal disk space.

  • iTechPoz Data Store Space:

    • Currently, automatic database cleanup and autoextend capabilities are not enabled out-of-the-box for itechpoz.

    • Monitor disk space usage in /opt/CA/SharedComponents/CADirectory/dxserver/logs and manually extend the database files if disk capacity becomes constrained.

Additional Information

To speak with a customer representative or a Support Engineer see Contact Support. Scroll to the bottom of the page and click on the respective region.