How to stop a running NCM Global Sync Task
search cancel

How to stop a running NCM Global Sync Task

book

Article ID: 188812

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction


The Global Sync Task running on several thousand devices. I want to stop this task from running and make some adjustments. How do I stop this task from running? 

Environment

Release : 20.2, 21.2, 22.2

Component : Spectrum Core / SpectroSERVER

Cause

An NCM Sync Task should run to completion. Spectrum will log devices that timed out or did not succeed in the task request. In some cases,
  if the task is known to complete in a long time and needs to be stopped, you can try these methods. Note there is no specific trigger to stop
  the task from running. 

Resolution


Make sure you are logged in as spectrum install user:

1. check for any running perl.exe processes and kill/stop these
        a. if the sync task is running on models that exist on multiple landscapes, check each LS for running perl.exe and stop them

2. try setting the ncm_task_state to "stopped - incomplete"
       a. go to attributes tab on the Global Sync Task and edit ncm_task_state attribute

3. if necessary you can also try to bounce sradmin.exe process: 
       - kill sradmin.exe
       - restart sradmin by navigating to the following directory: 
            <SPECROOT>/Install-Tools/sdic/nt
       - run the following command:  ./sradmin.exe --start

4. last option is to try bouncing SpectroSERVER and processd:
       - stop/start SS via Control Panel
       - processd is in <SPECROOT>/lib/SDPM
       - run ./processd.pl --stop
       - wait 1 minute
       - run ./processd.pl --start