Can I change the the retention on workfiles in BES?
Workfiles are stored on the BES server in /var/spool/ISS/POWERpack/Integration ($PPWORK/Integrations)
Alert data is written to the workfiles in xml format. The workfiles are then read by BES integrations and daemons to perform tasks such as writing to the database and sending alerts to ASI.
By default, workfiles are cleared away every night at midnight. A program called ISSrmwf is ran on the ppadmin crontab. Below is the following default entry:
00 00 * * * csh -c '$PPHOME/bin/issrmwf'
To change the retention on workfiles, we need to amend the crontab entry for ppadmin.
1. Change to the ppadmin user
2. Open the crontab for ppadmin: crontab -e
3. If you are unfamilar with how crontab times work the following website may be useful: https://crontab.guru/
The following is an example of a 7 day retention on workfiles. This will clear workfiles every Sunday at midnight :
0 0 * * 0 csh -c $PPHOME/bin/ISSrmwf