Skip to main content

How to Stop running Scan jobs from background

  • August 22, 2025
  • 5 replies
  • 109 views

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
Forum|alt.badge.img+10
  • Rising Star
  • August 25, 2025

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


  • Author
  • Trailblazer
  • August 25, 2025

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
Forum|alt.badge.img+10
  • Rising Star
  • August 28, 2025

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;

 


frank.colvin
Forum|alt.badge.img+1
  • Veteran
  • September 2, 2025

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. 


  • Author
  • Trailblazer
  • September 3, 2025

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