WSUS System Tasks
The systems tasks that are related to WSUS (Windows) can be triggered by disabling, then renabling the WSUS discovery source.
Note: to force a manual run the full WSUS get updates task can happen by appending the following to the JetPatch URL: /vmanage-server/rest/experimental/patch-governance/jobs/fetch-wsus/run
Linux System tasks
JetPatch collecting the updates on a Linux endpoint by running the "Collect Endpoint Updates" system task.
1) Remove and re-add the endpoint from the inventory - This is possible if the endpoint did not discover via a Discovery Source.
2) Database Query - If the endpoint is part of a Discovery Source, the trigger should come from deleting some entries in the DB.
- Connect to the JetPatch Database
- Stop tomcat (service tomcat stop)
- Before deleting the entries, let's make sure the deletion will happen for the needed endpoint. Run the following command (Replace the <ENDPOINT_NAME> with the actual name of the endpoint). The result
should have 1 or 2 entries:
select * from bulk_run_task where endpoint_id in (select id from endpoint_server where name like '%<ENDPOINT_NAME>%');
- Delete the entries by running the command (Replace the <ENDPOINT_NAME> with the actual name of the endpoint):
delete from bulk_run_task where endpoint_id in (select id from endpoint_server where name like '%<ENDPOINT_NAME>%');
- JetPatch will trigger the Linux system task on the chosen endpoint almost immediately. This can be seen in the Endpoints -> Activities table (note - mark "System" tasks to show them in the table)
Note: In order to trigger system tasks for all endpoints within a group, use the following example
delete from bulk_run_task brt where brt.endpoint_id in (select pc.endpoint_server_id from pg_computer pc inner join pg_computer_group pgc on pgc.id = pc.group_id where pgc.name in ('SUSE', 'RH'))