The JobScheduler since version 1.11 knows two databases.
One for the JobScheduler tables and the other for the Reporting tables. The Reporting tables are used by JOC Cockpit.
The Inventory Plugin writes the information about JobScheduler inventory into some tables in the Reporting database.
If you uninstall a JobScheduler then this inventory will be deleted since version 1.11.2 SET-96 - Script to remove an old JobScheduler instance from the inventory tables Resolved
Before version 1.11.2 the inventory data remain in the Reporting database when you uninstall the JobScheduler. If you modify the JobScheduler Id or HTTP port then a new set of inventory data will be written and and obsolete set of inventory data remains.
In JOC Cockpit you can switch to such a JobScheduler which is not longer active until the obsolete data are removed in the Reporting database.
The JobScheduler installer comes with the script
./bin/cleanup_inventory_tables.(cmd|sh) to remove old inventory data.
Parametrization of ./bin/cleanup_inventory_tables.(sh|cmd)
- This script cleans all INVENTORY_* database tables in the Reporting database
- It expects the database connection setting in ./config/reporting_hibernate.cfg.xml.
- This script has three arguments to identify a specific JobScheduler instance. These are
- JobScheduler Id
- HTTP port
- With the single argument info a list of existing JobScheduler instances from the inventory will be displayed.
- This call is helpful to see the exact values of Id, host and http port.
If this script is called without an argument then you get its usage
Example for an info output