You could modify the script I uploaded an hour or so ago to pull that. <br><br><br><div class="gmail_quote">On Mon, Jun 2, 2008 at 11:13 AM, Val Polyakov <<a href="mailto:vpolyakov@vmsinfo.com">vpolyakov@vmsinfo.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Is there a way to get a list of all machines in Hobbit sorted by OS?<br>
<br>
as in, here is a full list of Linux boxes, here's a full list of Solaris<br>
boxes, etc.<br>
<br>
The OS details are in the info column, so I'm assuming there's a way<br>
<br>
i'm currently doing this via this:<br>
<br>
(in $HOBBITROOT/data/hostdata)<br>
<br>
for i in `ls`<br>
do<br>
        file=`ls -ltr $i | tail -1 |  awk '{print  $9 }'`<br>
        echo "$i `cat $i/$file | grep -i 'red hat'`"<br>
done<br>
<br>
this is ugly and horrible, though (although functional).<br>
any "correct" ways of doing the same thing?<br>
<br>
To unsubscribe from the hobbit list, send an e-mail to<br>
<a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br>
<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Stewart<br><br>You only lose what you cling to.