Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

command dmgtd -kill will also kill the ssh sessions

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
Red

Re: command dmgtd -kill will also kill the ssh sessions

Does the same happen if you use:

/etc/init.d/dmgtd stop

New Member

Re: command dmgtd -kill will also kill the ssh sessions

No, only with -kill!?

Cisco Employee

Re: command dmgtd -kill will also kill the ssh sessions

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.

292
Views
4
Helpful
3
Replies
CreatePlease to create content