Before sending the WPK installer, the manager locks the agent to prevent it from restarting due to a shared configuration change (merged.mg).
/var/ossec/log/upgrade.log
--
You received this message because you are subscribed to the Google Groups "Wazuh | Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/50fe0349-2031-421e-ba38-2fd46f31840cn%40googlegroups.com.
/var/ossec/bin/wazuh-control restart
/var/ossec/bin/wazuh-control info
/var/ossec/bin/agent-control -i 001
/var/ossec/bin/wazuh-control info
/var/ossec/bin/wazuh-control status
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/b678dfa9-db65-4f1a-a981-d75d19b2ffdbn%40googlegroups.com.


To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/fb3e193c-3e9d-4b93-93ed-bd7a073c962bn%40googlegroups.com.

TOKEN=$(curl -u wazuh:wazuh -k -X POST "https://localhost:55000/security/user/authenticate?raw=true")
curl -k -X GET "https://localhost:55000/agents/outdated?pretty=true" -H "Authorization: Bearer $TOKEN"
curl -k -X PUT "https://localhost:55000/agents/upgrade?agents_list=287&pretty=true" -H "Authorization: Bearer $TOKEN"
curl -k -X GET "https://localhost:55000/agents/upgrade_result?agents_list=287&pretty=true" -H "Authorization: Bearer $TOKEN"
"status": "Updating",
"status": "Updated"
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/ede4fcac-32c6-4913-8344-bddb7f89c076n%40googlegroups.com.

Use the cURL command to log in. The Wazuh API will provide a JWT token upon success. Replace <user> and <password> with yours. By default, the user is wazuh, and the password is wazuh. If SSL (HTTPS) is enabled in the API and it is using the default self-signed certificates, it will be necessary to add the parameter -k
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/9bf57f93-409a-4906-ab82-f7538efefbd8n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/bc734607-b5bc-4a48-8b50-4623187e7e15n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/4d2f8298-9e3c-4b67-bd14-709004cf59ebn%40googlegroups.com.