[hobbit] Antwort: Re: [hobbit] Wish for next Hobbit Version

Rich Smrcina rsmrcina at wi.rr.com
Thu Jan 4 15:37:30 CET 2007


OK, I wasn't aware it came out as XML.

stefan.freisler at aspect-online.de wrote:
> 
> yes of cause but when you only use grep hobbitdboard is better i think. 
> In my scripts i parse the XML file with some commands
> 
> e.g.
> HOSTS=`$BBHOME/bin/bb 127.0.0.1 "hobbitdxboard"| $TR -d '\n'| sed 
> 's#\(.*\)<StatusBoard>\(.*\)</StatusBoard>\(.*\)#\2#'|$SED 
> 's#</ServerStatus>#\x0A#g'|$SED 
> 's#\(.*\)<ServerName>\(.*\)</ServerName>\(.*\)#\2#'|$SORT -u`
> 
> with this you get all hostnames only once and sorted.
> 
> If you use it on console you must change the $SED etc to sed or 
> something else.
> 
> by
> Stefan

-- 
Rich Smrcina
VM Assist, Inc.
Phone: 414-491-6001
Ans Service:  360-715-2467
rich.smrcina at vmassist.com

Catch the WAVV!  http://www.wavv.org
WAVV 2007 - Green Bay, WI - May 18-22, 2007



More information about the Xymon mailing list