Discovery Scan - How to verify a scan job is in progress and not stuck
Symptom
When you perform a large entire domain scan, you might see discovery scan process stay running for few days and you want to check whether it is still running or not.
Environment
14.6 Privilege Cloud Discovery and Accounts Feed
PCloud ISPSS Discovery Scan
Cause
Discovery run for long time and want to check status of job running or not.
Resolution
By default, 7 day timeout for running jobs.
Login to connector server where Management Agent is running.
Go to Program Files\CyberArk\Management Agent\workspace
If the job is running, you will see a folder DiscoveryManagementEngine-operation-task-xxxx folder.
Take a look of job_launcher_operation-task-xxx.txt file to see details.
You will see DS_console.log and DS_trace_xxx.log along with machine specific logs (DS_<hostname>.log) while job is running under bin\Results folder for what we found.
When the job completes, the workspace log(s) will be deleted automatically - meaning you won't see this DiscoveryManagentEngine-operation-task-xxx folder.
Note:
1. If you have multiple connectors using same network, same pool without any distinguished identifier, the discovery scan can be picked up by any one of the connector.
2. To identify which connector that is been used by the process (besides go to each connector look for job status), you download the logs after the scan finished running you can find the connector id in the json file.
3. If you on version 1.0.643.0, the scan will fail due to the restart of management agent server.