Can I restart and enroll wazuh agents remotely?

1,201 views
Skip to first unread message

sau sau

unread,
Aug 8, 2023, 3:02:11 AM8/8/23
to Wazuh mailing list
Dear team,

Is there a way i can restart, generate auth keys and enroll agents remotely via wazuh manager?

Harshal Paliwal

unread,
Aug 8, 2023, 4:54:29 AM8/8/23
to Wazuh mailing list
Hi Team,
Thanks for using the Wazuh.

Yes, you can restart the Wazuh agent from the Manager server. For that, you can use the below command and get more information from here

/var/ossec/bin/agent_control -R -u 014

You can restart using Wazuh API also. https://documentation.wazuh.com/4.4/user-manual/api/reference.html#operation/api.controllers.agent_controller.restart_agent
To get the information regarding the auth key you can follow the below documentation.
We can't enroll a Wazuh agent remotely from a Wazuh manager.

Reference:

I hope this information helps you. Please feel free to contact us if you have any questions.
Regards,
Reply all
Reply to author
Forward
0 new messages