|
Configuring Automation Clean-up Rules
To save the time and effort involved in cleaning up the unwanted files/folders from the drives, eG Enterprise offers an easy-to-use auto-configure option in the form of an encircled plus icon that is given against the AUTOMATION CONFIGURATION RULES parameter. Note that this parameter will appear only if you set the AUTOMATION flag to Yes.
To configure the automation clean-up rules, do the following:
Click on the encircled plus icon given against the AUTOMATION CONFIGURATION RULES PARAMETER
The CONFIGURATION OF AUTOMATION CLEAN-UP RULES window will then appear
In CONFIGURATION OF AUTOMATION CLEAN-UP RULES window, specify the following for defining rules for one or more drives:
Choose the drive for which you wish to define clean-up rules from the Drive name drop-down list.
Next, enter the utilization percentage of the specified drive in the Drive utilization percentage text box. When the drive utilization reaches/exceeds the value specified in this text box, the clean-up process will be triggered for the chosen drive.
If you select a drive in which the operating system files are stored from the Drive name drop-down list, then the Configured default files and folder to be cleaned text box will appear. This text box will display a recommended list of files and folders to be cleaned from the system drive. This list is pre-configured in the eg_tests.ini file. However, you can edit this list, if required, as follows:
Edit the eg_tests.ini file in the <EG_INSTALL_DIR>\manager\config directory.
In the [Automation_Default_Values] section of the file, absolute paths to files and folders in the root drive of the Windows operating system will be given as a semi-colon separated list against the DiskSpaceTest.Windows.path parameter as shown below:
DiskSpaceTest.Windows.path=%allusersprofile%\Adobe\Setup\*.*;%allusersprofile%\Microsoft\WindowsDefender\Definition Updates\*.*;%allusersprofile%\Microsoft\Windows Defender\Scans\*.*;;%allusersprofile%\Microsoft\Windows\WER\*;%systemdrive%\MSOCache\Users;%systemdrive%\Temp\*.*;%systemdrive%\Windows.old;%systemroot%\Downloaded Program Files\*.*;%SystemRoot%\memory.dmp;%SystemRoot%\Minidump.dmp;%systemroot%\Temp\*.*;
You can also predefine the list of files and folders for non-Windows operating systems by specifying your list against the DiskSpaceTest.Non_Windows.path parameter
Save the file after making the required changes.
Note that this text box will not appear if you choose a non-system drive from the Drive Name drop-down list.
Next, specify full path to a file/folder or a list of files and folders that are not included in the predefined list in the Files and folders to be cleaned text box . This text box is common for all drives on the target host. For non-system drives, you can configure the list of files/folders to be cleaned-up by specifying full path to the same in the Files and folders to be cleaned text box. You can clean-up more than one file/folder by configuring the full path to the files/folders in a semi-colon separated list. The full path to the files/folders should be specified as follows based on your requirement:
To clean-up a specific file from the chosen drive or its folders/subfolders, specify the full path as <drive>/<folder&sub-folders>/<fileToBeDeleted>. For example, E/test.doc, E/misc/sample.txt, E/test.doc;E/misc/sample.txt.
To clean-up a specific folder and its content from the chosen drive, specify the full path as <drive>/<folders&subfolders>/<folderToBeCleaned>. For example, E/misc/old.
To clean-up all contents of specific folder, specify the full path as <drive>/<folders&subfolders>/<contentsOfTheFolderToBeCleaned>/*. For example, E/misc/old/*. In the process, the contents of the specified folder will be cleaned up but the folder will exist in the drive.
To clean-up all files available in a specific folder, specify the full path as <drive>/<folders&subfolders>/<contentsOfTheFolderToBeCleaned>/*.*. For example, E/misc/old/*.*. In the process, all files available in the specified folder will be cleaned up but the folder and its sub-solders (if any) will exist in the drive.
To clean-up files with specific pattern/name, specify the full path as <drive>/<folders&subfolders>/log*.*.
You can add more rules for different drives in the AUTOMATION CONFIGURATION RULES page by clicking on the Add more button. Note that you cannot add the system drive for more than one time. However, you can add more than one rule for non-system drives. To remove a specification that pre-exists, just click on the encircled minus icon that corresponds to it. Upon clicking the Clear button, you can remove all the specifications that you configured.
Finally, click the Update button to save the configurations.
|