(SM) Support Tip: Stop, Restart or Quiesce servlets in one host or all hosts
Stop, Restart and Quiesce servlets in one host or all hosts
Administrators can encounter different situations when it’s required to stop all servlets in one host for a horizontal scaled implementation (also vertical) or all hosts and/or it’s required to quiesce the servlets for users access.
In order to stop all servlets in one host please run the following command from SM Server/RUN folder:
sm -quiesce:2 -host:<host name>
Note: 2 will restrict access to all users, 1 will restrict access to non-System Administrator users.
Note 2: A quiesced system restricts new login attempts only. Currently logged on users can continue working until they log off.
To restore access to servlets run this command:
sm -quiesce:0 -host:<host name>
To quiesce all servlets in the horizontal environment group run this command:
sm -quiesce:2 -group
To restore access run this command:
sm -quiesce:0 -group
When require to stop all servlets in one host run this command:
sm -shutdown -host:<host name>
If it’s required to stop all servlets in the current horizontal group run this command:
sm -shutdown -group
To shut down a specific process/servlet by PID use this command:
sm -shutdown -pid:<pid number>
If it’s required to restart one specific process/servlet by PID in a N number of minutes use this command:
sm -restart:N -pid:<pid number>
Also it’s possible to do this same action for a complete host, use this command:
sm -restart:N -host:<host name>
Note 3: Use n=-1 to cancel a pending restart.
Hopefully these commands can make some of your administrator activities easier.
Thank you for using the Micro Focus Community. If you find that this or any post resolves your issue, please be sure to mark it as an "accept as solution".