The find should be pretty easy I think, something like: Find "%hostname%" all_client.keys > host_client.keys
Then copy the host_client.keys file up to the host as client.keys. I never did get around to writing the batch file, since I use Bigfix instead to do deployments. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of GeorgeY Sent: Thursday, May 12, 2011 3:11 AM To: ossec-list Subject: [ossec-list] Re: Mass Deployment Did you ever get this to work? I am trying to go about doing this based on the steps Shawn had in his reply - Write a batch file to read computer names from a text file (already have this) - extract the client key for your computer with a simple find command (this is where I am stuck. If I had a .txt file with all the hostnames and keys, how do i use the find command to extract the key for each client copy that as a client.keys file to every client?) - copy the installer/client key up to the computer - use psexec to do a silent install Also for this link http://www.google.com/url?sa=D&q=http://dcid.me/2011/01/automatically-creating-and-setting-up-the-agent-keys/, i am guessing it only works for Unix/Linux hosts correct? Thanks all. On Mar 21, 9:19 pm, ash kumar <[email protected]> wrote: > This way you get all hosts whether attached to AD or not.
