Hello Arby,
It is possible to upgrade agents from the Wazuh dashboard using the API Console.
Kindly navigate to
Tools > API Console paste the API command
PUT /agents/upgrade?agents_list=all&pretty=true and click the play button (screenshot attached).
If you want to check the upgrade status, paste the API command
GET /agents/upgrade_result and click on the play button.
When upgrading more than 3000 agents at the same time, it's highly recommended to use the parameter
wait_for_complete set to
true to avoid a possible API timeout.
Example:
PUT /agents/upgrade?agents_list=all&wait_for_complete=true&pretty=trueYou can also try to upgrade specific agents by using their agent IDs separated with a comma.
Example:
PUT /agents/upgrade?agents_list=005,007&pretty=trueNote: This number of agents from which
wait_for_complete=true is recommended, has been set after testing the endpoint in a Wazuh environment whose manager was installed in a host with specifications: 2.5 GHz AMD EPYC 7000 series processor and 4 GiB of memory.
Using an agents list with a size less than or equal to 3000 and a host with the same or higher specs guarantees this endpoint to return a response before the API timeout.
You can also check this link for more information and other methods of remotely upgrading agents:
Agent remote upgrade.
I hope you find this helpful!
