Wiki

Clone wiki

iMonDB / CollectorScheduling

Scheduling the iMonDB Collector

By making use of the CLI functionality (as detailed here) the iMonDB Collector can be scheduled to run on a fixed basis. By running the iMonDB Collector on a regular basis, e.g. daily, the information in the iMonDB will be updated incrementally and be kept completely up to date.

The iMonDB Collector doesn't include native scheduling functionality, however, it is straightforward to use the built-in Windows functionality to schedule the iMonDB Collector. Please find the official Windows Task Scheduler documentation here.

The recommended approach is to create a simple batch file that runs the iMonDB Collector in command-line mode and schedule this batch file through the Windows Task Scheduler. The content of an example batch file is shown below:

cd C:\path\to\imondb-collector
java -Xmx8000m -jar imondb-collector-x.x.x.jar -c

The above batch file first navigates to the iMonDB Collector directory. Next, it starts the iMonDB Collector in command-line mode, and allows the usage of 8 GB working memory (useful when using a high number of threads for simultaneous analysis).

Based on your user privilege configuration and the iMonDB Collector directory location, possibly the created task in the Task Scheduler might have to be run with administrator privileges to ensure the configuration and log files are readable and writable.

Scheduling privileges

Other properties can be set based on your own preferences, e.g. how often to run the scheduled iMonDB Collector.

Updated