<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<BR>> Date: Thu, 20 Nov 2008 16:40:45 +0100<BR>> From: Padraig.Lennon@pioneerinvestments.com<BR>> To: hobbit@hswn.dk<BR>> Subject: RE: [hobbit] os count<BR>> <BR>> This does not catch Windows servers though..<BR>> Either does the script below..<BR>
 <BR>
The problem is on bbwin side, bbwin need to provide equvilant of "uname -a" like all other Unix xymon client do.<BR>
<BR>tj<BR><BR>> <BR>> <BR>> <BR>> Padraig Lennon<BR>> Senior Systems Engineer<BR>> Production Services<BR>> Pioneer Global Investments (Dublin)<BR>> 5th Floor Georges Quay Plaza, Dublin 2<BR>> ext: 2081<BR>> Direct dial: 00353 1 480 2081<BR>> <BR>> -----Original Message-----<BR>> From: michael nemeth [mailto:michael.nemeth@lmco.com] <BR>> Sent: 20 November 2008 15:06<BR>> To: hobbit@hswn.dk<BR>> Subject: Re: [hobbit] os count<BR>> <BR>> Henrik suggest this awhile ago:<BR>> $BBHOME/server/bin/bb 127.0.0.1 'hobbitdboard fields=BBH_OS <BR>> test=info' <BR>> <BR>> So I'm not sure were hobbit gets the BBH_OS<BR>> Root, Paul wrote:<BR>> > I wrote a script that does a similar thing. It connects to each<BR>> machine<BR>> > and does a uname. <BR>> > Being Solaris centric, I split it up by solaris version (and zone). <BR>> ><BR>> > I ran your script on my server, and it gives me 50 more machines than<BR>> I<BR>> > think I have. <BR>> > It certainly doesn't add up to the entries in the bb-hosts file. <BR>> ><BR>> > I print out a chart of each machine's level then sum it up like this:<BR>> ><BR>> > Host Count:<BR>> > noconn : 29<BR>> > zone : 57<BR>> > 5.7 : 2<BR>> > 5.8 : 2<BR>> > 5.9 : 11<BR>> > 5.10 : 32<BR>> > nossh : 44<BR>> > Linux : 7<BR>> > TOTAL : 184<BR>> ><BR>> ><BR>> > I haven't had time, but I need/want to graph this. <BR>> ><BR>> ><BR>> ><BR>> > Paul Root<BR>> > Lead Internet Systems Eng<BR>> > Network Services<BR>> > <BR>> ><BR>> > -----Original Message-----<BR>> > From: michael nemeth [mailto:michael.nemeth@lmco.com] <BR>> > Sent: Thursday, November 20, 2008 7:11 AM<BR>> > To: hobbit@hswn.dk<BR>> > Subject: [hobbit] os count<BR>> ><BR>> > Did did a little perl program that does an os count produces count<BR>> like<BR>> > hp-ux 3<BR>> > linux 1<BR>> > sunos 38.<BR>> ><BR>> > Run as a stand alone did not see the need to run out of hobbit.<BR>> > But Henrik wouldn't this be easy enough to add in to bbtest?<BR>> > Here it is:<BR>> ><BR>> > #!/usr/local/bin/perl<BR>> > eval 'exec /usr/local/bin/perl -S $0 ${1+"$@"}'<BR>> > if $running_under_some_shell;<BR>> > # this emulates #! processing on NIH machines.<BR>> > # (remove #! line above if indigestible)<BR>> ><BR>> > eval '$<BR>> <BR>> > '.$1.'$2;' while $ARGV[0] =~ /^([A-Za-z_0-9]+=)(.*)/ && shift;<BR>> > # process any FOO=bar switches<BR>> ><BR>> > $[ = 1; # set array base to 1<BR>> > $BBHOME="/home/mnemeth/sunhobbit/";<BR>> > open (HOB, "$BBHOME/server/bin/bb 127.0.0.1 'hobbitdboard<BR>> fields=BBH_OS <BR>> > test=info' |") ;<BR>> ><BR>> > while (<HOB>) {<BR>> > chomp; # strip record separator<BR>> > @Fld = split(' ', $_, -1);<BR>> ><BR>> > for ($i = 1; $i <= $#Fld; $i++) {<BR>> > $freq{$Fld[$i]}++;<BR>> > }<BR>> > }<BR>> ><BR>> > foreach $word (sort keys %freq) {<BR>> > printf "%s\t%d\n", $word, $freq{$word};<BR>> > }<BR>> ><BR>> ><BR>> > To unsubscribe from the hobbit list, send an e-mail to<BR>> > hobbit-unsubscribe@hswn.dk<BR>> ><BR>> ><BR>> ><BR>> > This communication is the property of Qwest and may contain<BR>> confidential or<BR>> > privileged information. Unauthorized use of this communication is<BR>> strictly <BR>> > prohibited and may be unlawful. If you have received this<BR>> communication <BR>> > in error, please immediately notify the sender by reply e-mail and<BR>> destroy <BR>> > all copies of the communication and any attachments.<BR>> ><BR>> > To unsubscribe from the hobbit list, send an e-mail to<BR>> > hobbit-unsubscribe@hswn.dk<BR>> ><BR>> ><BR>> ><BR>> > <BR>> <BR>> <BR>> To unsubscribe from the hobbit list, send an e-mail to<BR>> hobbit-unsubscribe@hswn.dk<BR>> <BR>> <BR>> <BR><BR><br /><hr />Proud to be a PC? Show the world. Download the “I’m a PC” Messenger themepack now. <a href='http://clk.atdmt.com/MRT/go/119642558/direct/01/' target='_new'>Download now.</a></body>
</html>