[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [hobbit] Raw number reports
- To: <hobbit (at) hswn.dk>
- Subject: RE: [hobbit] Raw number reports
- From: "Aiello, Steve \(GE, Corporate, consultant\)" <steve.aiello (at) ge.com>
- Date: Thu, 8 Mar 2007 11:11:20 -0500
- Thread-index: Acdhl24XvUYWiaXHQgykOVWE9C4L1wABPaHQ
- Thread-topic: [hobbit] Raw number reports
here is a quick bash shell script/command line. Set qtest to the test
you want to know about.
qtest="http"; bbout=`bin/bb 127.0.0.1 "hobbitdbord test=$qtest
fields=color"`; printf "Report Sumary: %s\n Green: %5s\nYellow: %5s\n
Red: %5s\n Clear: %5s\nPurple: %5s\n Blue: %5s\n--------------\n Total:
%5s\n", $qtest `echo "$bbout" | grep green | wc -l` `echo "$bbout" |
grep yellow | wc -l` `echo "$bbout" | grep red | wc -l` `echo "$bbout" |
grep clear | wc -l` `echo "$bbout" | grep purple | wc -l` `echo "$bbout"
| grep blue | wc -l` `echo "$bbout" | wc -l`
> -----Original Message-----
> From: Stewart_Larsen (at) doh.state.fl.us
> [mailto:Stewart_Larsen (at) doh.state.fl.us]
> Sent: Thursday, March 08, 2007 10:36 AM
> To: hobbit (at) hswn.dk
> Subject: [hobbit] Raw number reports
>
>
> Can I get a report of
>
> 1) How many hosts I have with a particular test
> 2) What number of them (or percentage) are green, yellow, red, etc.
>
> --
> Stewart
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
>