Automatically shutting down and restarting Guardium Insights

Automate the process of shutting down and restarting the Guardium Insights pods.

Before you begin

  • This task requires the use of Guardium Insights support scripts. To learn how to access these scripts, see this topic.
  • Log in to your Guardium Insights cluster.
  • Verify that the "jq" command-line tool is installed.
  • Run the commands under the "utils" folder.

About this task

Use the launch-fullStoporStartGuardiumInsights.sh support script to automatically shut down or restart Guardium Insights.

Procedure

  1. Copy launch-fullStoporStartGuardiumInsights.sh as your own script name.
    For example, mylaunch-fullStoporStartGuardiumInsights.sh.
  2. Verify that you have the execute and write permissions for the script.
  3. Edit the following sections for your Guardium Insights instance:
    
    export NAMESPACE= [ namespace for cloudctl login, e.g. gi ]
    export ICP_ADDR= [ Cloudpak ICP address, e.g. cp-console.apps.guardium-insights.ibm.com ]   
    export ICP_USER= [ Cloudpak ICP account, e.g. admin ] 
    export ICP_PASSWD= [ Cloudpak ICP account password ]
    Important: After this script is saved, you can reuse it without logging in to your Guardium Insights system. The namespace is identified automatically each time. However, if you're using a new instance, you must update the script.
  4. Run the script by using the following command. Use stop or start depending on whether you are stopping or restarting Guardium Insights services.
    ./mylaunch-fullStoporStartGuardiumInsights.sh [stop|start]