<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16825" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=299582719-14052009><FONT face=Verdana 
color=#0000ff size=2>Or use the "time" command in front of the command?  
This assumes that you know where Xymon is writing your 
log...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=299582719-14052009><FONT face=Verdana 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=299582719-14052009><FONT face=Verdana 
color=#0000ff size=2>GLH</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> Ralph Mitchell 
  [mailto:ralphmitchell@gmail.com] <BR><B>Sent:</B> Thursday, May 14, 2009 2:09 
  PM<BR><B>To:</B> hobbit@hswn.dk<BR><B>Subject:</B> Re: [hobbit] Duration for 
  one round of server side module<BR></FONT><BR></DIV>
  <DIV></DIV>Maybe I'm missing something, but...  Why not just grab the 
  system date/time at the start, again at the end, then subtract one from the 
  other??  If you just print it out, the numbers should go into the log. 
   Or generate your own log file by appending the start & end values, 
  then process later.
  <DIV>
  <DIV><BR></DIV>
  <DIV>Ralph Mitchell</DIV>
  <DIV><BR><BR>
  <DIV class=gmail_quote>On Thu, May 14, 2009 at 1:41 PM, Asif Iqbal <SPAN 
  dir=ltr><<A href="mailto:vadud3@gmail.com">vadud3@gmail.com</A>></SPAN> 
  wrote:<BR>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><BR>I 
    implemented a server side perl script using this <A 
    href="http://xymonton.trantor.org/doku.php/tutorials:ssmodule" 
    target=_blank>http://xymonton.trantor.org/doku.php/tutorials:ssmodule</A> as 
    the template. <BR><BR>I like to run it only once daily, so I put status+1d 
    for the bb command. <BR><BR>But I need help to find out how long it takes 
    for the script to complete for my ~300 hosts. <BR><BR>Currently I have it 
    setup just like the setup in the above url, like the following. 
    <BR><BR>[pca]<BR>        ENVFILE 
    /export/home/hobbit/server/etc/hobbitserver.cfg<BR>        
    NEEDS hobbitd<BR>        CMD 
    hobbitd_channel --channel=client --log=$BBSERVERLOGS/pca.log 
    $BBHOME<BR>/ext/pca.pl<BR><BR>And it is taking tons of resources since it 
    receives all the patch/pkg info from 300 servers through client channel 
    <BR>and generate a patch report using the tool pca (<A 
    href="http://www.par.univie.ac.at/solaris/pca/" 
    target=_blank>http://www.par.univie.ac.at/solaris/pca/</A>) for each host. 
    It allows us<BR>to find out the patch status for all solaris 
    boxes<BR><BR>Here is an snippet of the top processes sorted by 
    RSS<BR><BR>   PID USERNAME  SIZE   RSS STATE  
    PRI NICE      TIME  CPU 
    PROCESS/NLWP       <BR>  8687 
    hobbit   2248M  581M run     
    39    0   0:02:31 1.1% hobbitd_channel/1<BR>  
    8648 hobbit     58M   56M 
    run     39    0   0:07:42 2.5% 
    hobbitd/1<BR> 10223 hobbit     21M   20M 
    run     20    0   0:00:03  
    15% perl5.8.5/1<BR>  7115 devmon     
    11M   11M sleep   59    0   
    0:00:44 1.5% devmon/1<BR>  8689 hobbit   8816K 6968K 
    sleep   59    0   0:07:52 2.7% 
    pca.pl/1<BR><BR>If I can find out how long it takes to run I can then add an 
    INTERVAL accordingly. I do not need to <BR>process the client data more than 
    once a day<BR><FONT color=#888888><BR clear=all><BR>-- <BR>Asif Iqbal<BR>PGP 
    Key: 0xE62693C5 KeyServer: <A href="http://pgp.mit.edu" 
    target=_blank>pgp.mit.edu</A><BR>A: Because it messes up the order in which 
    people normally read text.<BR>Q: Why is top-posting such a bad 
    thing?<BR><BR><BR></FONT></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></BODY></HTML>