Get Agent IP From shell

18 views
Skip to first unread message

serano...@gmail.com

unread,
Aug 22, 2023, 3:56:46 PM8/22/23
to Wazuh mailing list
Hi All.
I've regisered a bunch of agent and i see that from Kibana interface for wazuh i could see the ip address for each agent, but when i try to see the ip address from cli using manage-agent or agent-control i see only "any" as information for ip address.
How could i retrieve that ifno from cli? i need it to build a custom script with third part tools.

Have a nice day.

Gustavo Choquevilca

unread,
Aug 22, 2023, 4:41:58 PM8/22/23
to Wazuh mailing list
Hello,
In this case, you can use the Wazuh API to get and retrieve information from agents. You can use the GET /agents endpoint to get a list of all registered agents along with their IP addresses.


I hope I can help you, let me know for anything.
Regards.
Reply all
Reply to author
Forward
0 new messages