HCL Workload Automation, Version 9.4

Permanently removing nodes by activity status

Use the RemoveHANode command's --active parameter to permanently remove nodes from a cluster, based on their activity status.

About this task

Use the optional --active parameter with the RemoveHANode command, to remove nodes that are active, inactive, or unreachable. The --active parameter is useful for cleanup purposes. Its options are true, false, and unreachable.

Procedure

  1. Stop and restart the server.
    1. In the JazzSM_WAS_Profile/bin directory, for a server named server1, run the following command:
      On Windows
      stopServer.bat server1
      On UNIX
      stopServer.sh server1
      Note: You are prompted to provide an administrator username and password.
    2. In the JazzSM_WAS_Profile/bin directory, for a server named server1, run the following command:
      On Windows
      startServer.bat server1
      On UNIX
      startServer.sh server1
  2. At the command line, on one node, change to the following directory:

    DASH_HOME/bin/

  3. Optional: Run the ListHANodes command to list the current cluster nodes and their statuses:
    • consolecli.sh ListHANodes --username console_admin_user_ID --password console_admin_password
    • consolecli.sh ListHANodes --username console_admin_user_ID --password console_admin_password

    Where:

    console_adsmin_user_ID
    Specifies the console administrator user ID.
    console_admin_password
    Specifies the password associated with the administrator user ID.
  4. Run the following command, one or more times, specifying the relevant --active option, to remove some or all of the listed nodes, based on their activity status:
    • consolecli.sh RemoveHANode --username console_admin_user_ID --password console_admin_password --active true|false|unreachable
    • consolecli.sh RemoveHANode --username console_admin_user_ID --password console_admin_password --active true|false|unreachable

    Where:

    console_adsmin_user_ID
    Specifies the console administrator user ID.
    console_admin_password
    Specifies the password associated with the administrator user ID.
    --active true|false|unreachable
    Specifies whether you want to remove active, inactive, or unreachable nodes. If true is specified, then all the active nodes in the database with status of active are deleted. If false is specified, then all the inactive nodes in the database are deleted. If unreachable is specified, then all the nodes that are unreachable from that node are deleted. Refer to the nodes returned by the ListHANodes command in 2 to ensure that you know the activity status of each node in the cluster.
  5. Remove the WebSphere Application Server data source that was created when the nodes were joined to the cluster.
  6. Stop and restart the server.

Results

The nodes that have an activity status matching the option that you specified for the --active parameter are removed from the load balanced cluster.