On a Domain Manager, the directory <DSM PATH>\SD\ASM\LIBRARY\output is used to stored the job output files for every SD Job. Unless configuration policy settings for this are done correctly, these items may never be deleted and can build up to dangerous volumes.
After some months this directory could contain several thousand directories <uuid.app>.
This could take a lot of disk space and affect OS performance (Windows will take long time to create a new directory under the output directory if it contains several thousand directories or more).
Client Automation - All versions
By default the parameter (locally Managed) DSM/Software Delivery/Manager/Maintenance: Job history cleanup time is set to 4320 (=180 days)
Every day, some SD jobs older than 180 days are deleted. The associated job output directory under output is deleted too.
But some SD jobs (like installation job in status OK) are never deleted.
This means that associated job output directories are never deleted on DOMAIN.
If the job output files for SD jobs are not needed after 180 days, we could delete them automatically by setting this parameter in the configuration policy applied on the DSM DOMAIN :
DSM/Software Delivery/Manager/Maintenance: Job history output file cleanup time = 180
So every day, all SD Job output files older than 180 days will be deleted automatically.
When this parameter is set, the first execution of "History output file" cleanup job may have to delete a lot of directories (potentially 10s of thousands or more).
It is possible to manually do the cleanup in order to avoid a very long time to execute the first execution by running this DOS command (or similar based on your particular installation paths):
forfiles /P "C:\Program Files\CA\DSM\SD\ASM\LIBRARY\output" /D -180 /C "cmd /c rd /S /Q @file"
If you are not comfortable with that or would like to purge the entire directory and start fresh, you can do the following instead:
1. Browse to "C:\Program Files\CA\DSM\SD\ASM\LIBRARY\" via command line (cmd.exe)
2. Run 'rd "C:\Program Files\CA\DSM\SD\ASM\LIBRARY\output" /s /q' (if you receive any error, try stopping CAF first)
3. 'md "C:\Program Files\CA\DSM\SD\ASM\LIBRARY\output" '
4. Now start CAF if you previously stopped it.
Remark: Adapt the path for output directory based on your environment's install path
Besides the command suggested, in order to automate it, just need to create an AM Job of type Command with the following script to run only on the DMs:
FOR /F "Tokens=*" %%I IN ('ccnfcmda -cmd GetParameterValue -ps itrm/usd/shared -pn ARCHIVE') DO set SDLIB=%%I
set joboutput=%SDLIB%\output
forfiles /P "%joboutput%" /D -180 /C "cmd /c rd /S /Q @file"
Just change the parameter "/D -180" in the last line with the number of days to keep the files. For example, "/D -45" to keep files up to 45 days and remove the older ones.