Windows System Tasks
WSUS Discovery Source Tasks
WSUS Get Updates
A manual run of WSUS get updates can be forced by appending the following to the JetPatch URL: /vmanage-server/rest/experimental/patch-governance/jobs/fetch-wsus/run
Should look like this:
Note - This will probably bring the latest updates from WSUS and won't trigger a full scan.
To pull the whole WSUS patches, need to run a query on the JetPatch DB:
delete from configurations where key='wsus.update.full.last.run';
This query will delete the last time that JetPatch pulled the full patches list from WSUS and in the next time the "WSUS Get Updates" script will run - it will pull all of the updates.
Linux System tasks
Collect Endpoint Updates
JetPatch collecting the updates on a Linux endpoint by running the "Collect Endpoint Updates" system task.
Note - it is recommended to delete the "/tmp/scan_result.txt" file on the endpoint itself to get the latest updates states from the endpoint.
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'))