At the moment I'm usinge the encoded keys. 
I think you talk abaout reading the line from servers agent config?

Bdw. I use pallet here :-)

Am Mittwoch, 28. Januar 2015, 14:39:59 schrieb Ryan Schulze:
> If you have the data for the agents client.keys you can just write it
> directly to the file
> echo 'key data' > /var/ossec/etc/client.keys
> 
> It will be the same line as on the master. Works fine here (we use
> ansible for deployment and the client.keys is built on each host from a
> template)
> 
> On 1/28/2015 7:57 AM, 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?
> > 
> > Best regards,
> > 
> > Michael

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"ossec-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to