Skip to main content
Trailblazer
Aug 22, 2025 5:31 PM UTC

How to Stop running Scan jobs from background

Hello All,

 

We have one discovery scan job running from long time. We are looking for option from background (possibly from DB query) to stop running scan job.

We tried to stop from UI but it seems it's still running.

Any help will be appreciated.

 

Thanks,

Prasad

5 replies

jacek.krecisz
Rising Star
Aug 25, 2025 7:52 AM UTC

Hi Prasad,

 

Below is an SQL query that updates the scan status in the database. First, of course, it's best to perform a select * from the pmm.PmmSMSession table, where the status is 1.

UPDATE pmm.PmmSMSession SET status = 2 WHERE startdate BETWEEN '2024-12-22 00:01' AND '2025-02-24 23:55' AND status = 1

Jack
prasadp87Author
Trailblazer
Aug 25, 2025 8:52 PM UTC

Hi Jack,

 

With select * from the pmm.PmmSMSession I am not able to find that problematic scan job, though it's still showing up on UI that its running.

 

Thanks,

Prasad

 

jacek.krecisz
Rising Star
Aug 28, 2025 5:33 AM UTC

Hi Prasad,

Sorry, I forgot to add that you need to search for sessions with status 1 (pending scan job) and then change this status to 2 so that the job is not visible in the web console. Below you have the correct select, which should show you only active jobs.

select * from pmm.PmmSMSession where status = 1;

 

Jack
frank.colvin
Veteran
Sep 2, 2025 8:10 PM UTC

Jack, I would open up a support ticket, messing in the database can have unforeseen consequences and BT will not help you sort those out. I have been having the same issues for years and BT support is aware of them. 

Frank Colvin, Senior IT Administrator - PAM Intact Insurance Specialty Solutions
prasadp87Author
Trailblazer
Sep 3, 2025 2:15 PM UTC

Hey Frank and Jack,

 

I was able to resolve this issue with help of BeyondTrust Engineer. As Frank mentioned in previous reply, I raised support ticket, and they helped me with all troubleshooting and then DB query execution.

Thanks for replies.

 

Regards,

Prasad