Windows System Tasks
WSUS Discovery Source Tasks
The systems tasks that are related to WSUS Discovery Source can be triggered by disabling, then reenabling the WSUS discovery source.
WSUS Get Updates
A manual run of WSUS get updates can be forced by appending the following to the JetPatch URL:
Should look like this:
Note - this is a partial scan. In order to pull a full scan of WSUS patches, you 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 collects 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.
- Delete the "/var/cache/JetPatch/scan_result.txt" file on the endpoint itself to get the latest updates states from the endpoint.
- Go to platform configuration
- Go to Servers > Server Actions > Remove from inventory. Note: Removal from inventory doesn't uninstall the connector from the endpoint
- Go to Server Actions > Add Physical Server. Re-add the removed endpoint
- Collect endpoint updates should now run in then next few minutes
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'))
Please sign in to leave a comment.