Skip to content

Uninstall Agent

Remove the currently installed agent from the target box with the Uninstall command.

1 min read Updated SS MR

Stop the agent in Classic Control Center before running the uninstall command.

Uninstall Agent#

Uninstall the currently installed version of the agent using the Uninstall command below:

Note: Ensure to stop the agent using Control Center UI before executing the command.

./agent-maintenance-tool.sh SupervisorId:<Sup_ID> AgentType:<type> AgentId:<Agent_ID>
UserDetailsId:<user_ID> Command:Uninstall CommandType:MaintenanceCmds CommandTimeout:<time_out>
SupervisorCtrlTTL:<sup_ctrl_ttl> 
Metadata:"OS=<os>;OSVER=<ver>;BIT=<bit>;MD5SUM=<checksum>;version=<ver>;ARCH=<arch>"

For example:

./agent-maintenance-tool.sh SupervisorId:68fae2b8-e7cf-45cb-a141-0bb6ed0b5799
AgentType:LogForwarder AgentId:f570de02-c585-5c97b35e-LFA-98 UserDetailsId:7640123a-fbde-4fe5-9812-581cd1e3a9c1 Command:Uninstall CommandType:MaintenanceCmds CommandTimeout:3000
SupervisorCtrlTTL:3000
Metadata:"OS=Linux;OSVER=7.4;BIT=64;MD5SUM=3209e5528db9fbf128a7ec6358b400eb;version=5.8.13;ARCH=x86_64;"

Expected Output:

2020-08-26 06:43:54.326 [main] INFO com.appnomic.healutil.CommandHandler:12 - Sending
Command: Uninstall SupervisorId: 68fae2b8-e7cf-45cb-a141-0bb6ed0b5799 AgentType:
LogForwarder AgentId: f570de02-c585-5c97b35e-LFA-98 CommandJobId: 7cde481b-bc44-4349-8180-efe2a836de32 to Queue: command-messages queue
2020-08-26 06:43:54.485 [main] INFO com.appnomic.healutil.CommandHandler:14 - Command is sent to queue, response wait time 600s
2020-08-26 06:44:19.834 [main] INFO com.appnomic.healutil.CommandHandler:53 - Response
Command: Uninstall SupervisorId: 68fae2b8-e7cf-45cb-a141-0bb6ed0b5799 AgentType:
LogForwarder AgentId: f570de02-c585-5c97b35e-LFA-98 CommandJobId: 7cde481b-bc44-4349-8180-efe2a836de32 ExitCode: 0[Success] CommandStartTime: 1598404540534 CommandCompleteTime:
1598404540611 received for Command: Uninstall SupervisorId: 68fae2b8-e7cf-45cb-a141-0bb6ed0b5799 AgentType: LogForwarder AgentId: f570de02-c585-5c97b35e-LFA-98 CommandJobId:
7cde481b-bc44-4349-8180-efe2a836de32
2020-08-26 06:44:19.840 [main] INFO com.appnomic.healutil.CommandHandler:167 - Command:
Uninstall of Agent: LogForwarder with AgentId: f570de02-c585-5c97b35e-LFA-98 on target with SupervisorId: 68fae2b8-e7cf-45cb-a141-0bb6ed0b5799 Status: Success Info: UnInstallation of LogForwarder 5.8.13 7cde481b-bc44-4349-8180-efe2a836de32 Successful

For the codes that the Supervisor and the tool return, see Command Response Codes in Agent Maintenance Tool: Command Structure.

Next — Return to Agent Status for day-to-day agent workflows, or confirm your changes with Verify the HEAL Agent Deployment.