Content Cleaner Usage For EMSS

Version 5

    Purpose

    Content Cleaner is used to reduce the size of the Content directory. Content Cleaner removes the downloaded or cached packages used for deployments.

     

    **Special Note: Usage of the extended options below will remove all previously downloaded content for those specific content types. Make sure you understand, removed content will need to be cached again after purging.

     

    Permissions

     

    Ensure that the user account you are running the Content Cleaner executable from has permissions to the PLUS database. You can verify this by opening SQL Management Studio and logging in with the user account. If you can log in run the query: use Plus if this is successful you should be able to use this user account to run Content Cleaner.

     

    Location

    ContentCleaner.exe is located on EMSS application server in <InstallDir>:\Program Files (x86)\HEAT Software\EMSS\Replication Services\Utilities

     

    *Heat Software folder could also be called Lumension.

     

    Options:

    -A Performs analysis only; no option to purge is provided.

    -F Only removes orphaned files. Directories remain intact.

    -L Enables logging to ContentCleaner.log. Which is located in the same folder above.

    -L2 Enables -L and logs purged files/folders.

    -M Validate metadata; checks cached file existence on disk.

    -N Uses SQL statement for metadata collection (pre-7.1 Server).

    -R Refresh cache for missing files on disk. Activates -M.

    -S Silent mode.

     

    -X Scan the non-Windows repository cache.

    WARNING: This option removes all non-Windows binaries.

    Binaries removed will be re-cached next time they are deployed.

     

    -T= Increase SQL timeout in seconds (override 300 second default)

    Example: -T=600

     

    -V Verbose output. Logs all modules and directories found.

    -O Creates random orphaned files in the Content Directory

    to test cleanup mechanism.

     

    Execution example:

     

    1. Perform Initial space-reclaiming information check:

    ContentCleaner.exe -A -L

     

    2. Perform basic orphaned content clean up:

    ContentCleaner.exe -L -V

     

    3. This will check for missing content, re-cache any content that is missing, run silently (no console display), purge any orphaned content, and log all results to ContentCleaner.log with maximum verbosity:

     

    ContentCleaner.exe -L -R -S -V

     

          4. Remove all Critical -05 downloaded packages:

    ContentCleaner.exe -L  -R -S -V -PurgeCritical05 -T=600

     

    **Extended Options

     

        -PurgeCritical                  Deletes all non-custom Critical content. (Purges New Critical patches)

        -PurgeCritical01              Deletes all non-custom Critical-01 content. (Purges Critical patches not superseded)

        -PurgeCritical05              Deletes all non-custom Critical-05 content. (Purges Superseded Critical patches)

        -PurgeSoftware               Deletes all non-custom Software content. (This option purges full software installers for third party programs)

        -PurgeRecommended    Deletes all non-custom Recommended content. (Purges all recommended patches)

        -PurgeVirus                    Deletes all non-custom Virus content. (Purges all virus definition patches)

        -PurgeAll                        Sets all purge arguments above to true.