The lmagent-win64-cli.exe allows a Windows service to be created and controlled entirely from the command line. This is beneficial because it enables you to easily manage agents from the CLI environment.
For these instructions to work, the lm_agent_cli.exe file must be downloaded from the website and you must be an administrator for the machine, on which the agent is installed.
We recommend that you save the executable in a safe location where it won't be deleted. We also highly recommended that you save the executable file on the local disk rather than on a network.
Note: Once the service is installed, it will point to the SFD in-place, so if you have it stored in C:\rtda and run it, the service will point to it in C:\rtda. If you move the binary from that location after installing the service, you must delete the previous installation and rerun it from the new location.
To install the Windows service, which allows you to manage and install agents from the CLI, perform the following steps:
% C:\>.\path\to\lmagent-win64-cli.exe -h
To run the file solely to install the service, run the following:
% C:\>.\path\to\lmagent-win64-cli.exe -host <hostname> -instance <licmon_project> -port <LM-Port> -account <service_account_name> -password <account_password> -install-service
The following should be output:
Service installed.
% C:\>.\path\to\lmagent-win64-cli.exe -host <hostname> -instance <licmon_project> -port <LM-Port> -account <service_account_name> -password <account_password> -install-service -start-service
Note. When using special characters for passwords, before each character that is sensitive to the shell, such as ; and %, place a ^. For example: my;pass% = my^;pass^%
If this is not done, you will receive the following error:
Error 1069: The service did not start due to a logon failure