cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1286
Views
4
Helpful
3
Replies

command dmgtd -kill will also kill the ssh sessions

ahajivandi
Level 1
Level 1

CiscoWorks upgraded to 2.6 on Solaris 8.

But when a /etc/init.d/dmgtd -kill is used all the ssh sessions will be killed inclusieve the ssh daemon. There is no ssh session possible. Is thid through with LMS 2.6?

Thanks,

-Aryan

3 Replies 3

nhabib
Level 9
Level 9

Does the same happen if you use:

/etc/init.d/dmgtd stop

No, only with -kill!?

dmgtd kill is not recommended in typical use. Why are you using it?

In any event, this is what it does. It does a ps -ef, and fgreps for dmgtd.sol (excluding any fgrep processes). It then pulls the PID from the resulting output. It then uses the Solaris ptree command to get all processes started by that PID (excluding dbsrv processes), and writes the result to /opt/dm_pids. It then reads through /opt/dm_pids sending a kill -9 to all PIDs in that file. Finally, it cleanly stops all database processes using the dbstop utility.

I have ssh running on my servers, and I have never seen dmgtd kill terminate those processes. Given the above algorithm, if you were starting sshd via dmgtd, then that would kill them. Alternatively, a bug in the ptree command could be exposing more PIDs. You could do:

sh -x /etc/init.d/dmgtd kill

To get an idea of what is happening during the dmgtd script execution.