Audit Trail Cleaner

From RiceFamily Wiki
Jump to: navigation, search
Command Line Arguments

Optional Arguments:
-h : Displays this help message
-? : Displays this help message
-help : Displays help message for installing this tool as a service.
-f : Runs in silent mode.  No standard output and script runs automatically to completion.
-l : Sends standard out to logfile created in the directory of this application with name BESAuditTrailCleaner-3.0.10.95.log
-L <Folder> : Specify a folder to create logs in. Do not include a file name.
-d <BigFix DSN> : Used to specify a DSN to connect to the BigFix Database with.  Defaults to bes_bfenterprise if not specified
-u <username> : Used to specify a username for SQL authentication to the database.
-p <password> : Used to specify a password for SQL authentication to the database.
-c : Do NOT count rows prior to deletion.
-S : Remove All Audit Trail data.
-v : Remove Older Versions of Custom Authored Content.
-V : Remove Older Versions of Actions.
-R : Remove Older Versions of Relay.dat
-o : Remove Deleted Custom Authored Content.
-O : Remove Deleted Actions.
-t : Remove Useless Action Results.
-r : Remove Orphaned Sub Actions.
-g : Remove Hidden Manual Computer Group Actions.
-G <Days> : Hidden Manual Computer Group Actions expired over this many days will be deleted. (Default 180)
-s : Synchronize BigFix Consoles
-b <batch size> : Performs database deletion operations in batches of this size. The tool will pause between batches until the user presses a key (unless run in silent mode with -f).
-M : Removes Deleted Mailbox Files.
-D : Specify a date in MM-DD-YYYY format to have old data removed prior to this date.
 
Sample calls:
BESAuditTrailCleaner-3.0.10.95.exe -h
BESAuditTrailCleaner-3.0.10.95.exe -l
BESAuditTrailCleaner-3.0.10.95.exe -l -L "C:\Temp"
BESAuditTrailCleaner-3.0.10.95.exe -d database_dsn -u database_user -p database_password
BESAuditTrailCleaner-3.0.10.95.exe -S 
BESAuditTrailCleaner-3.0.10.95.exe -S -b 1000000 -f


besaudittrailcleaner-3.0.10.95 -S -b 1000 -c -L . -D 06-14-2015