Managing HCL UnO agent using scripts in Windows 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 script to accomplish specific results.
Before you begin
- You must have configured the agent to create the scripts. For more information, see Installing 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.ps1: Starts the agent. After the agent has started, the agent.pid file that contains the process ID of the running agent is created.
- stop.ps1: Stops the running instance of the agent, if any. The agent stops after all the tasks are completed. You can also use the -f option with the script to forcefully stop the agent, although it is not recommended.
- upgrade.ps1: Updates the agent to the specified
version. The agent is updated to a new version with zero downtime.Note: You must know the path to the new agent jar file.
- data-gather: Gathers all the data associated to the agent in a zip file.
Procedure
- Open the command prompt.
-
Type the name of any script, and then press Enter.
Example:
start.ps1Important: 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.ps1 [path to the new agent jar file]