I do something similar for reporting, this could be easily changed to handle
restarting:

#!/bin/sh
cd /var/ossec/bin
for i in `./syscheck_control -l | grep "ID:" | awk '{print $2}' | sed s/.$//`
 do ./syscheck_control -i $i
 done



On Fri, Sep 17, 2010 at 11:34 AM, dan (ddp) <[email protected]> wrote:

> Nope, but it's pretty easy with a loop.
>
> On Fri, Sep 17, 2010 at 2:32 PM, Jeremy Lee <[email protected]> wrote:
> > BTW: I don't suppose there's a way to 'restart all' agents is there? I
> > suppose I could come up with something (iterating loop) via command
> line...
> >
>



-- 
-Bill

Reply via email to