<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Well what I don't understand is how hobbitdboard one  can return more
that  you  count.<br>
Try the new one when I post it ;  in only counts system with OS: on the
info page.<br>
It  may just  be a  fluke  that they are the same on my system.<br>
<br>
<br>
Root, Paul wrote:
<blockquote
 cite="mid:78BF7DCBD0AB674ABA82FD59EAE98D28052F5FB4@itomae2km08.AD.QINTRA.COM"
 type="cite">
  <pre wrap="">Well, wc on non-comment, non-page, non-titled, etc lines in bb-hosts,
agrees with my count. 


Paul Root         IM/MNS Infrastructure    
-----Original Message-----
From: michael nemeth [<a class="moz-txt-link-freetext" href="mailto:michael.nemeth@lmco.com">mailto:michael.nemeth@lmco.com</a>] 
Sent: Friday, November 21, 2008 9:59 AM
To: <a class="moz-txt-link-abbreviated" href="mailto:hobbit@hswn.dk">hobbit@hswn.dk</a>
Subject: Re: [hobbit] os count

I completed another oscount script this time using wget to get the info
page
Both this one and the hobbitdboard one
return the same total so maybe there are 50  more you are missing.
Ill post new  script on  Monday.
 
Root, Paul wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I wrote a script that does a similar thing. It connects to each
    </pre>
  </blockquote>
  <pre wrap=""><!---->machine
  </pre>
  <blockquote type="cite">
    <pre wrap="">and does a uname. 
Being Solaris centric, I split it up by solaris version (and zone). 

I ran your script on my server, and it gives me 50 more machines than
    </pre>
  </blockquote>
  <pre wrap=""><!---->I
  </pre>
  <blockquote type="cite">
    <pre wrap="">think I have. 
It certainly doesn't add up to the entries in the bb-hosts file. 

I print out a chart of each machine's level then sum it up like this:

Host Count:
    noconn : 29
      zone : 57
       5.7 : 2
       5.8 : 2
       5.9 : 11
      5.10 : 32
     nossh : 44
     Linux : 7
     TOTAL : 184


I haven't had time, but I need/want to graph this. 



Paul Root
Lead Internet Systems Eng
Network Services
 

-----Original Message-----
From: michael nemeth [<a class="moz-txt-link-freetext" href="mailto:michael.nemeth@lmco.com">mailto:michael.nemeth@lmco.com</a>] 
Sent: Thursday, November 20, 2008 7:11 AM
To: <a class="moz-txt-link-abbreviated" href="mailto:hobbit@hswn.dk">hobbit@hswn.dk</a>
Subject: [hobbit] os count

Did did a little perl program that does an os count produces count
    </pre>
  </blockquote>
  <pre wrap=""><!---->like
  </pre>
  <blockquote type="cite">
    <pre wrap="">hp-ux   3
linux      1
sunos    38.

Run as a stand alone did not see the need to run out of hobbit.
But Henrik wouldn't this be easy enough to add in to bbtest?
Here it is:

#!/usr/local/bin/perl
eval 'exec /usr/local/bin/perl -S $0 ${1+"$@"}'
    if $running_under_some_shell;
                        # this emulates #! processing on NIH machines.
                        # (remove #! line above if indigestible)

eval '$'.$1.'$2;' while $ARGV[0] =~ /^([A-Za-z_0-9]+=)(.*)/ && shift;
                        # process any FOO=bar switches

$[ = 1;                 # set array base to 1
$BBHOME="/home/mnemeth/sunhobbit/";
open (HOB, "$BBHOME/server/bin/bb 127.0.0.1 'hobbitdboard
    </pre>
  </blockquote>
  <pre wrap=""><!---->fields=BBH_OS 
  </pre>
  <blockquote type="cite">
    <pre wrap="">test=info' |") ;

while (<HOB>) {
    chomp;      # strip record separator
    @Fld = split(' ', $_, -1);

    for ($i = 1; $i <= $#Fld; $i++) {
        $freq{$Fld[$i]}++;
    }
}

foreach $word (sort keys %freq) {
    printf "%s\t%d\n", $word, $freq{$word};
}


To unsubscribe from the hobbit list, send an e-mail to
<a class="moz-txt-link-abbreviated" href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a>



This communication is the property of Qwest and may contain
    </pre>
  </blockquote>
  <pre wrap=""><!---->confidential or
  </pre>
  <blockquote type="cite">
    <pre wrap="">privileged information. Unauthorized use of this communication is
    </pre>
  </blockquote>
  <pre wrap=""><!---->strictly 
  </pre>
  <blockquote type="cite">
    <pre wrap="">prohibited and may be unlawful.  If you have received this
    </pre>
  </blockquote>
  <pre wrap=""><!---->communication 
  </pre>
  <blockquote type="cite">
    <pre wrap="">in error, please immediately notify the sender by reply e-mail and
    </pre>
  </blockquote>
  <pre wrap=""><!---->destroy 
  </pre>
  <blockquote type="cite">
    <pre wrap="">all copies of the communication and any attachments.

To unsubscribe from the hobbit list, send an e-mail to
<a class="moz-txt-link-abbreviated" href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a>



  
    </pre>
  </blockquote>
  <pre wrap=""><!---->

To unsubscribe from the hobbit list, send an e-mail to
<a class="moz-txt-link-abbreviated" href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a>



To unsubscribe from the hobbit list, send an e-mail to
<a class="moz-txt-link-abbreviated" href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a>



  </pre>
</blockquote>
<br>
</body>
</html>