Database Cleanup Tool in Shared DB Mode
This tool is prepared for the customers when they want to clean all the scan data from the dead instance of Core in the shared database model.
This tool can be found:
- Windows: C:\Program Files\OPSWAT\MetaDefender Core\ometascan-db-cleaner.exe
- Linux: /usr/sbin/ometascan-db-cleaner
This tool can be used for MetaDefender Core 5.2.1 or above.
How to run
Find the ometascan-db-cleaner.exe(window) or ometascan-db-cleaner(Linux) to the installation folder:
- Default Window path: C:\Program Files\OPSWAT\MetaDefender Core\
- Default Linux path: /usr/sbin/
With Linux, change permission for ometascan-db-cleaner with command:
sudo chmod 755 ometascan-db-cleaner
Run the cmd or Terminal as Administrator or root.
If there is a mistake in the cleaning database process (clean data of a running instance), the user should restart MetaDefender Core service to re-create all its tables of scanned data again.
Otherwise the error will happen, and the error message will be saved on the core.log
Parameters
Parameter | Description | Example |
---|---|---|
-- help
or -h | Display all the options and flags associated with the guides |
|
or
or
| Clean the database (required to indicate the instance’s name concretely). Indicate the instance’s name for cleaning the database or display the list of tables with suffix _<instance_id> Notes: if using the option --keep-instance-name/-k or -dk, this option means only cleaning data but keeping the instance name. Otherwise, the tool will delete the instance name with data. |
|
or | List all instance’s names in database |
|
Troubleshooting
If there is any problem with the tool while using, please collect all the log files in this folder and send us for investigating.
File log: db_cleaner-yyyyMMdd.log
- Windows:
C:\Program Files\OPSWAT\MetaDefender Core\data\logs\
- Linux:
/var/log/ometascan/