10-13-2006 05:05 AM
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
10-13-2006 05:16 AM
Does the same happen if you use:
/etc/init.d/dmgtd stop
10-13-2006 06:51 AM
No, only with -kill!?
10-13-2006 09:24 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide