[PIM] Limit the amount of dumps created by seoswd

Idea created by Simon_Naunton Employee on Apr 6, 2016
    Wish-Listed
    Score28

    If the registry key HKEY_LOCAL_MACHINE\SOFTWARE\ComputerAssociates\AccessControl\AccessControl\GenerateMemDump is set to 1 it will create a dump when seoswd restarts seosd (if set to 0 it will not create a dump).

     

    The customer would like to be able to limit the number of dumps created. For example, keep only the last five dumps.

     

    It is possible to schedule a batch file like the below (where the dumps meet a filespec specified by <filespec>) to run every hour/day/whatever to do this, however they would like PIM to be able to do this automatically.

     

    @echo off REM ***************************************************************************** REM Set keep_nfiles to the number of dump files you want to keep SET keep_nfiles=28 REM *****************************************************************************  set count=0 for /F %%A in ('dir /O-S /B ') do (CALL :do_file "%%A") GOTO:EOF  :do_file if %count% GEQ %keep_nfiles% del %1 set /a count+=1