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

--

Michael Jerger, Geschäftsführer

meissa GmbH

Telefon:

        

+49-178-818 98 78

Sitz d. Gesellschaft:

        

72770 Reutlingen, Zeppelinstr. 13

Geschäftsführer:

        

Michael Jerger

Registergericht:

        

AG Stuttgart, HRB746775

UstID:

        

DE292015368

--

---
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] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--

--- 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: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to