Xymon Mailing List Archive search

Wish for next Hobbit Version

list Rich Smrcina
Thu, 04 Jan 2007 08:37:30 -0600
Message-Id: <user-d712d7c31d91@xymon.invalid>

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

user-75055581652a@xymon.invalid 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: XXX-XXX-XXXX
Ans Service:  XXX-XXX-XXXX
user-61add9955ef9@xymon.invalid

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