Skip to content

Install Agent

How to run the Install command to deploy a specific agent version on a target box.

2 min read Updated SS MR

Install Agent#

Install an agent with the required version on a target box using the install command below:

./agent-maintenance-tool.sh SupervisorId:<Sup_ID> AgentType:<type> AgentId:<Agent_ID>
UserDetailsId:<user_ID> Command:Install CommandType:MaintenanceCmds CommandTimeout:<time_out>
SupervisorCtrlTTL:<sup_ctrl_ttl> Metadata:"OS=<os>;OSVER=<ver>;
BIT=<bit>;MD5SUM=<checksum>;version=<ver>;ARCH=<arch>;config_file1=
<filename>;config_file1_opt1=<<attribute>=<value>>;
config_file1_opt2=<<attribute>=<value>>" Args:"JAVA_HOME=<jdk/jre path>"

Note: Stop the agent using Control Center UI before executing the command.
If the agent type is 'Supervisor ' for the 'Install' command, it is a self-upgrade of Supervisor with the version you mention.

For example:

./agent-maintenance-tool.sh SupervisorId:c8a66bb6-704b-4331-8b4e-d6d8aba6bca9
AgentId:e570de02-c585-4917-bbb7-5c97b35e-54-physical-146 UserDetailsId:7640123a-fbde-4fe5-9812-581cd1e3a9c1
Command:Install AgentType:LogForwarder Metadata:"version=5.8.13-bin;MD5SUM=1d4effc92c7a544625c0315e6e825b1a"
Args:"JAVA_HOME=/usr"

Expected Output:

2020-09-11 14:08:18.241 [main] INFO c.a.a.common.util.ConfProperties:44 - successfully loaded conf.properties file
2020-09-11 14:08:18.249 [main] INFO c.a.a.common.util.ConfProperties:44 - successfully loaded conf.properties file
2020-09-11 14:08:18.324 [main] INFO com.appnomic.healutil.QueueHandler:113 - Command request queue haproxy.example:5672/tls:enabled, name: command-messages
2020-09-11 14:08:19.039 [main] WARN c.r.c.TrustEverythingTrustManager:33 - SECURITY ALERT: this trust manager trusts every certificate, effectively disabling peer verification. This
is convenient for local development but offers no protection against man-in-the-middle attacks. Please see https://www.rabbitmq.com/ssl.html to learn more about peer certificate verification.
2020-09-11 14:08:19.604 [main] INFO com.appnomic.healutil.QueueHandler:150 - Command response queue haproxy.example:5672/tls:enabled, name: agent-maintenance-response-messages
2020-09-11 14:08:19.656 [main] INFO com.appnomic.healutil.CommandHandler:12 - Sending Command: Install SupervisorId: c8a66bb6-704b-4331-8b4e-d6d8aba6bca9 AgentType: LogForwarder
AgentId: e570de02-c585-4917-bbb7-5c97b35e-54-physical-146 CommandJobId: 0c15cf14-d26b-4ded-bd0a-ff3ff40cf2ae to Queue: command-messages queue
2020-09-11 14:08:19.782 [main] INFO com.appnomic.healutil.CommandHandler:14 - Command is sent to queue, response wait time 300s
2020-09-11 14:08:51.843 [main] INFO com.appnomic.healutil.CommandHandler:60 - Response Command: Install SupervisorId: c8a66bb6-704b-4331-8b4e-d6d8aba6bca9 AgentType: LogForwarder
AgentId: e570de02-c585-4917-bbb7-5c97b35e-54-physical-146 CommandJobId: 0c15cf14-d26b-4ded-bd0a-ff3ff40cf2ae ExitCode: 0[Success] CommandStartTime: 1599813788557 CommandCompleteTime:
1599813788625 received for Command: Install SupervisorId: c8a66bb6-704b-4331-8b4e-d6d8aba6bca9 AgentType: LogForwarder AgentId: e570de02-c585-4917-bbb7-5c97b35e-54-physical-146 CommandJobId: 0c15cf14-d26b-4ded-bd0a-ff3ff40cf2ae
2020-09-11 14:08:51.854 [main] INFO com.appnomic.healutil.CommandHandler:129 - Command: Install of Agent: LogForwarder with AgentId: e570de02-c585-4917-bbb7-5c97b35e-54-physical-146 on target with SupervisorId: c8a66bb6-704b-4331-8b4e-d6d8aba6bca9 Status: Success Info: Installation of LogForwarder 5.8.13-bin 0c15cf14-d26b-4ded-bd0a-ff3ff40cf2ae Successful

Start the agent using the Control Center UI post-command execution.

Installation of LogScanAgent#

Install, uninstall, and upgrade LogScanAgent on the Windows platform by executing the below command:

agent-maintenance-tool.sh SupervisorId:<Sup_ID> AgentId:<Agent_ID> UserDetailsId:<user_ID>
Command:Install AgentType:LogScanAgent Metadata:"OS=<os>;version=<ver>;
MD5SUM=<checksum>" Args:"LogType=Both"

You can provide one of the following in Args:

  • "LogType=Both", "LogType=AppLog", "LogType=WinLog"
  • 'Both' – This installs the A1Filebeat and A1WinLogbeat services.
  • 'AppLog' - This installs only the A1Filebeat service.
  • 'WinLog' – This installs only the A1WinLogbeat service.

A1Filebeat and A1WinLogbeat are the two services of LogScanAgent for Windows.

To update the self-heal thresholds of agents that are already installed, see Self-HEAL Configuration in Agent Configuration.