Xymon Mailing List Archive search

Wish for next Hobbit Version

list Stefan Freisler
Thu, 4 Jan 2007 15:31:40 +0100
Message-Id: <user-f2f6606747de@xymon.invalid>

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