On Wed, 28 Jan 2015, Michael Jerger wrote:
Hi,
I currently try to write an automated ossec agent deplyment and am struggeling
over setting the
agents key. I try on agent system:
/var/ossec/bin/manage_agents -i somekey
but get sth. like:
<== Agent information:
<== ID:14
<== Name:xxx.xxxx.xxxx
<== IP Address:xxx.xxx.xxx.xxx
<== Confirm adding it?(y/n):
interactive input is dificult for my config management. So my question is:
Is there a way to set agents-key non-interactive?
what I do is create a file containing ip,hostname and then do
/var/ossec/bin/manage_agents -f file
David Lang