cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop/start dispatcher on Linux command line

former_member271665
Discoverer
0 Kudos

Hello,

We have installed IDM8.0 on a Linux envirnoment, now I want to start/stop the dispatchers from command line and automatic via the profiles.

The IDM7.2 syntax doesn't seem to work, and when executing the Dispatcher_Service_xxx scripts there  are only a few options (runonce|checkconfig|test)

I can't find the right syntax in the manuals, pls advice

Best regards,

Rob

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

There is slight difference between Windows and Linux versions, e.g you
can not suspend/resume as it is only when it is running as a windows service, but others should be the same and available in 8.0 are:

test/add/delete/install/uninstall/start/suspend/resume/stop/softstop/list/gui

The command set is listed here:

Using Commands to Create and Manage the Dispatcher(s) - SAP Identity Management Installation and Upd...

Best wishes,

Fedya

former_member271665
Discoverer
0 Kudos

Hello Fedya,

Problem with your solution is that you have to provide the command with a password, this can be solved by sourcing the password in a script, but this is not secure enough for us.

I have found the following solution for the automatic start/stop, which can be executed from the instance profile of the NW JAVA instance in which our IDM is running:

put this syntax in the bottom of your instance profile:

#-----------------------------------------------------------------------

# Start/stop IDM Dispatchers

#-----------------------------------------------------------------------

Execute_10 = local csh -c "$(DIR_INSTANCE)/IDM/identitycenter/Service-Scripts/start_dispatchers.sh"

Stop_Program_00 = local csh -c "$(DIR_INSTANCE)/IDM/identitycenter/Service-Scripts/stop_dispatchers.sh"

cat start_dispatchers.sh

#!/bin/sh

FILE=/usr/sap/XXX/JXX/IDM/identitycenter/Service-Scripts/dispatchers.txt

DIR1=/usr/sap/XXX/JXX/IDM/identitycenter/Service-Scripts

# Bepaal welke dispatchers er zijn gedefinieerd

cd $DIR1

rm $FILE

ls -l Dispatcher_Service_*.sh | awk '{print $9}' >> $FILE

# Start dispatchers

cat $FILE | while read regel

do

  sh ./$regel &

done

cat stop_dispatchers.sh

#!/bin/sh

ps -ef | grep Dispatcher_Service | grep .prop | awk '{print $2}' | while read regel; do kill -9 $regel; done

Answers (0)