[hobbit] getting a list of all machines of a specific OS

Stewart L stewartl42 at gmail.com
Mon Jun 2 17:55:07 CEST 2008


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080602/d18914d4/attachment.html>


More information about the Xymon mailing list