[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] How to remove test ( test column ) from all hosts in hobbit
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] How to remove test ( test column ) from all hosts in hobbit
- From: henrik (at) hswn.dk (Henrik Stoerner)
- Date: Tue, 16 Oct 2007 21:56:21 +0200
- References: <58EF0861D3A1A04182720B3A5231C7C201A6DCE9 (at) usplm205.amer.corp.eds.com> <C839170D12C1FA488B22101CF46F3D3CECC74A (at) sgt-xchange1.sgt-dom.com>
- User-agent: Mutt/1.5.13 (2006-08-11)
On Tue, Oct 16, 2007 at 12:56:07PM -0400, Michael A. Price wrote:
> I found the command to remove a test from a single host.
>
> ~/server/bin/bb 127.0.0.1 "drop HOSTNAME ftp"
>
> That works great, but I have 400+ hosts, so I have to do this for each
> host.
>
> I was wondering if there was a command to remove the single test from
> all the hosts???
How about
bbcmd bbhostgrep ftp | awk '{print $2}' | \
while read H; do bb 127.0.0.1 "drop $H ftp"; done
That should do it ...
Henrik