Start/Stop Remote PPM Services

If you want to use the Cygwin client locally to start/stop application services hosted on a remote server.

There are more than one way depend on some parameters(systems, security etc):

1.) Run the build-in windows command sc from the local command line. (What is sc? SC is a command line program used for communicating with the Service Control Manager and services.)

e.g. in a request type command:
ksc_local_exec sc \\ stop

Notes:
* The user running this command must be member of the admin group of the remote server.
* No ssh is needed but both ppm server must be on windows.

2.) Using SSH (Secure but hard to configure SSHD)
* Install sshd on the remote server as windows service using the local system account. It has the sshd listening on port 22.
* Need a ssh client on the PC;
– Cygwin includes a ssh client: Copy the cygwin dir to your computer and add the path to the PATH environment variable. Open a command line and run ssh
– You can also use putty or winscp (If you have the requirement for transfering files from/to this server)
* Logon as administrator
* You can start/stop PPM more than one way:
– run the windows command net stop
– run the cygwin tool cygrunsrv
– change to /bin directory then run sh kStop.sh

Notes:
* Depending on the scripts you want to run, the user must be member of the local admin group or not. For PPM scripts admin rights should not be needed but the user must have full rights on the PPM_HOME and all subdirs.
* You can configure the cygwin SSHD to logon with domain users. When even possible use local users rather than domain users.
* If you connect remote bash system, with PPM commands, more than one, bash processes are remaining alive. For this issue please check “Not closing bash processes (CYGWIN)

3.) If your security requirements are low:
Install the build-in telnet server of windows instead of the ssh server
(Please check “Remote Execution from PPM” )

Leave a Reply

Skip to toolbar