Start and Stop the Gateway
This topic describes the correct ways to stop and restart a gateway. You need to stop the Gateway to perform certain maintenance tasks.
gateway91
This topic describes the correct ways to stop and restart a
CA API Gateway
. You need to stop the Gateway to perform certain maintenance tasks.Contents:
IMPORTANT:
(1) Rebooting the Gateway appliance is a common task after installing, upgrading, importing, patching, and so on. To avoid data loss, never power cycle the physical or virtual machine. For example, do not use the power button or the power control functionality in the ILOM for a physical machine, or by using the Reset command in the vSphere Client. (2) CA Support recommends removing Gateway nodes from the load balancer pool before stopping or restarting the Gateway.Appliance Gateway
You can also stop and start the Appliance Gateway with a single command:
service ssg restart
Stopping the Gateway
There are two ways to stop a Gateway node.
When installing a patch, always start and stop the Gateway using the menu method. Using the command line method also stops an internal process that is vital for the patching process.
To stop the Appliance Gateway using the menu:
- Access the Gateway main menu.
- Select option2(Display CA API Gateway configuration menu).
- Select option7(Manage CA API Gateway status). The status of the Gateway is displayed. Press [Enter] to continue.
- Select the option to stop the Gateway. It may take a moment for the Gateway to stop completely. Use option7to monitor the stoppage ("STOPPING" indicates the node is still stopping; "STOPPED" indicates that the node has stopped).
To stop the Appliance Gateway using the command line:
- Open a privileged shell.
- Run the command:# service ssg stop
Starting the Gateway
To start the
Appliance
Gateway using the menu:- Access the Gateway main menu.
- Select option2(Display CA API Gateway configuration menu).
- Select option7(Manage CA API Gateway status). The status of the Gateway is displayed. Press [Enter] to continue.
- Select the option to start the Gateway. It may take a moment for the Gateway to start. Use option7to monitor the startup ("STARTING" indicates the node is still starting; "RUNNING" indicates that the node is up and running normally).
To start the
Appliance
Gateway using the command line:- Open a privileged shell.
- Run the command:# service ssg start
Configuring Autostart on Reboot
The Gateway normally starts automatically after the appliance is rebooted.
To disable autostart on reboot:
- Access the Gateway main menu.
- Select option2(Display CA API Gateway configuration menu).
- Select option3(Configure the CA API Gateway).
- Select option4(Change node configuration).
- Enternoto disable the node. The Gateway does not start automatically upon reboot.
To enable autostart on reboot:
- Repeat the steps above, enteringyesin step 5. The Gateway automatically starts upon reboot.
Troubleshoot Gateway Start
If you are attempting to debug Gateway start issues, use the “run” mode to log each step of the startup sequence. This log helps CA Support troubleshoot your issue.
Use the following “run” option only while troubleshooting; it is not intended for production use.
To start the
Appliance
Gateway in debug mode:- Open a privileged shell.
- Enter the command:# ./runtime/bin/gateway.sh runYou see messages similar to this:[gateway@ssg Gateway]$ ./runtime/bin/gateway.sh run <date> 3:42:24 PM com.l7tech.server.ServerConfig <init>INFO: Couldn't find serverconfig_override.properties; continuing with no overrides <date> 3:42:26 PM com.l7tech.server.boot.GatewayBoot startThese messages are output to the console and recorded in the log file.
- To stop the Gateway and exit the debug mode, press [Ctrl]-C.
Software Gateway
The
gateway.sh
script described below can only be run by gateway
or root
users.Starting the Software Gateway
To start the Software Gateway:
- Log in as thegatewayorrootuser.
- Run the following command:# /opt/SecureSpan/Gateway/runtime/bin/gateway.sh start
You can monitor the Gateway startup process by using the "tail" command to echo the log information to the screen:
tail -f /opt/SecureSpan/Gateway/node/default/var/logs/ssg_0_0.log
What to watch for: Messages containing "Warning" or a "stack trace" indicate a problem with the Gateway and require immediate attention. When you see "Ready for messages", the Gateway has started successfully.
Troubleshooting Gateway Start
If you are attempting to debug Gateway start issues, you can use the "run" mode to log each step of the startup sequence. This log helps CA Technical Support troubleshoot your issue.
Use the "run" mode only for troubleshooting; it is not intended for production use.
To start the Gateway in debug mode:
- Log in as thegatewayorrootuser.
- Enter the command:# ./runtime/bin/gateway.sh runYou see messages similar to:[gateway@ssg Gateway]$ ./runtime/bin/gateway.sh run <date> 3:42:24 PM com.l7tech.server.ServerConfig <init>INFO: Couldn't find serverconfig_override.properties; continuing with no overrides <date> 3:42:26 PM com.l7tech.server.boot.GatewayBoot startThese messages are output to the console and recorded in the log file.
- To stop the Gateway, press [Ctrl]-C.
Stopping the Software Gateway
To stop the Software Gateway:
- Log in as thegatewayorrootuser.
- Run the following command:# /opt/SecureSpan/Gateway/runtime/bin/gateway.sh stop