The manage_agents program is available in both a version for server and agent installations.
The purpose of manage_agents is to provide an easy-to-use interface to handle authentication keys for Wazuh agents. These authentication keys are required for secure (encrypted and authenticated) communication between the Wazuh server and its affiliated agent instances.
manage_agents -[VhljL] [-a <ip> -n <name>] [-F sec] [-e id] [-r id] [-i id] [-f file]
|-V||Version and license message.|
|-h||This help message.|
|-j||Use JSON output.|
|-l||List available agents.|
|-L||Disables the agents registration limit.|
|-a <ip>||Add new agent.|
|-n <name>||Name for new agent. Only valid along with -a.|
|-e <id>||Extracts key for an agent.|
|-r <id>||Remove an agent.|
|-i <id>||Import authentication key.|
Remove agents with duplicated IP if disconnected since <sec> seconds.
Bulk generate client keys from file.