Hi there,
To remove an agent from the console, please follow these steps:
- In the Wazuh manager console as super user type:
# /var/ossec/bin/manage_agents
You should see the following menu:
****************************************
* Wazuh v4.4.0 Agent manager. *
* The following options are available: *
****************************************
(A)dd an agent (A).
(E)xtract key for an agent (E).
(L)ist already added agents (L).
(R)emove an agent (R).
(Q)uit.
Choose your action: A,E,L,R or Q:
If you choose the option by pressing R (Remove), you will see the list of registered agents you have in the manager like this:
Available agents:
ID: 001, Name: macos-1200, IP: any
Provide the ID of the agent to be removed (or '\q' to quit):
By typing the ID you can remove the agent you want.
In case you want to list all the registered agents you can do this by typing the following command:
# /var/ossec/bin/agent_control -l
I hope this information can help you
Regards