The agent-auth program is the client application used with ossec-authd to automatically add agents to an OSSEC manager.
Display the help message
IP address of the manager.
Port ossec-authd is running on. Default 1515
Agent name to be used. Default hostname
Directory where OSSEC is installed. Default /var/ossec
# /var/ossec/bin/agent-auth -m 192.168.1.1 -p 1515 -A example-agent
INFO: Connected to 192.168.1.1:1515
INFO: Using agent name as: melancia
INFO: Send request to manager. Waiting for reply.
INFO: Received response with agent key
INFO: Valid key created. Finished.
INFO: Connection closed.