How to Maintain the System Agent Spool Files?
search cancel

How to Maintain the System Agent Spool Files?

book

Article ID: 44187

calendar_today

Updated On:

Products

CA 7 Workload Automation Workload Automation Agent

Issue/Introduction

To maintain storage space, it is important to clear spool files regularly, because the agent does not clear them by default.

Environment

Release: Any
Component: Workload Automation System Agent

Cause

It is important to clear spool files regularly.  The WA Agent can be configured to clear spool files automatically.

 

Resolution

Spool files are kept under the spool directory that is specified in the agentparm.txt file, which, by default is in the installation directory:

spooldir=<agent_install_dir>/spool

Add the following parameters in agentparm.txt to enable automatic cleanup of spool

runnerplugin.spool.clean.enable=true

runnerplugin.spool.expire=7D

runnerplugin.spool.sleep=24

The first setting enables automatic cleanup. The second setting allows the agent to retain a spool for up to seven days.  The last setting tells the agent to clean the spool once every 24 hours.

Additional Information

The spool directory location can be outside of WA Agent install directory.   The spool can be put in a remote file-share, such as NFS and Windows file-share.  The remote path must be accessible and writeable by  the agent.