Managing HCL UnO agent using scripts in Unix operating systems

When you configure the agent for the first time, the process creates multiple scripts that can be used to manage HCL UnO agent afterward. You can run each scripts to accomplish specific results.

Before you begin

  • You must have configured the agent to create the scripts. For more information, see Configuring HCL UnO agent.
  • Navigate to the bin folder under the --dataDir, where all the scripts to manage the agent are available.

About this task

When you configure the agent for the first time, the following scripts are created:
  • start.sh: To start the agent and the running instance creates the agent.pid file that contains the process ID of the running agent. If no configuration file is found, running the script displays an error.
  • stop.sh: Stops the running instance of the agent, if any. If the agent is not running or unavailable, running the script results in an error. The agent stops after all the jobs are completed. You can also use the -f option with the script to forcefully stop the agent, although it is not recommended.
  • upgrade.sh: Update the agent to the specified version. The agent is updated to a new version with zero downtime. You must know the path to the new agent jar file.
  • data-gather: The scripts gathers all the associated data with the agent in a zip file.
You can run these scripts using the command prompt to ensure automation of tasks and consistency in operations.

Procedure

  1. Open the command line.
  2. Type the name of any script, and then press Enter.
    Example:
    start.sh
    Important: Specify the path to the new agent jar file also if you want to use the upgrade script to update the agent to a new version.
    For example,
    upgrade.sh [path to the new agent jar file]

Results

You have successfully run the required command.