[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] getting a list of all machines of a specific OS
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] getting a list of all machines of a specific OS
- From: "Stewart L" <stewartl42 (at) gmail.com>
- Date: Mon, 2 Jun 2008 11:55:07 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=tbC+NM1ok8tz1rCdNASE7HJdIhOGcGcubBE6WJWuhUo=; b=C0SDImUOELrYfJv+4hTupQHn1weclbxNwiq+djRSzs8UtKe0UOOZyNRHtneL0FMRI+NP2O907jJYzS1Lal2Xp8eLIaQa92Ux1FXPpitlBD4zrIVVYrdrgaIixWwxEQml14fqMh1dNs+3dQNmgkosckYLdD3wRZclXPqi0+mLW5k=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=BWU2dzK6JGPb/hFddRKZZKjESBF0hYHfLCZwZ8Nlbn0CjACivhE/lUY+3Hwt8zEJoYUhgp+fgRQNjdk0WEj4pi8WH3mBcPdgl/c0AWDSeFd+g/tYxzpOpnVYn62vCEJGcUCPQoZrP0jat9FsHQZHRV6TltoMtfv5qkKDIzbHXeE=
- References: <200806021113.45928.vpolyakov (at) vmsinfo.com>
You could modify the script I uploaded an hour or so ago to pull that.
On Mon, Jun 2, 2008 at 11:13 AM, Val Polyakov <vpolyakov (at) vmsinfo.com> wrote:
> Is there a way to get a list of all machines in Hobbit sorted by OS?
>
> as in, here is a full list of Linux boxes, here's a full list of Solaris
> boxes, etc.
>
> The OS details are in the info column, so I'm assuming there's a way
>
> i'm currently doing this via this:
>
> (in $HOBBITROOT/data/hostdata)
>
> for i in `ls`
> do
> file=`ls -ltr $i | tail -1 | awk '{print $9 }'`
> echo "$i `cat $i/$file | grep -i 'red hat'`"
> done
>
> this is ugly and horrible, though (although functional).
> any "correct" ways of doing the same thing?
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
>
--
Stewart
You only lose what you cling to.