Managing HCL UnO agent using the daemon script in Windows operating systems
When you install the agent for the first time, the process creates a
daemon-install script that can be used to manage HCL UnO agent
afterward.
Before you begin
About this task
When you configure the agent, the daemon-install.ps1 scripts is created with HCL_agent_name.service and osh.exe files.
Procedure
- Navigate to the folder that contains the daemon-install.ps1 script.
-
Open PowerShell as Administrator, and then run the
daemon-install.ps1 script:
daemon-install.ps1 - Press Enter.
Results
What to do next
The HCL_agent_name.service file defines the
properties of the daemon script that runs the agent. The
osh.exe is a command line program that parses the command
line arguments and calls the appropriate method described in the
HCL_agent_name.service file. This command line tool reads
and parse the HCL_agent_name.service file structure that holds
the configuration for the service. It then provides the following commands to manage
the service that runs the agent on a Windows environment. The supported commands to
efficiently manage the agent are:
- install: installs HCL UnO agent as a daemon script.
- start: starts HCL UnO agent as a daemon script.
- stop: stops HCL UnO agent.
- remove: removes HCL UnO agent.Note: Before using the
removecommand, you must perform thestopcommand.
- Navigate to the folder that contains the osh.exe file.
- Run the osh.exe using PowerShell as Administrator.
- Enter the required command with path to the
HCL_agent_name.service file
as follows:
.\osh.exe [stop | remove | install | start] [path to the HCL_agent_name.service file] - Press Enter.
You have successfully run the required commands.