<br><br><div class="gmail_quote">On Thu, May 14, 2009 at 3:28 PM, Hubbard, Greg L <span dir="ltr"><<a href="mailto:greg.hubbard@eds.com">greg.hubbard@eds.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><span><font face="Verdana" size="2" color="#0000ff">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><font face="Verdana" size="2" color="#0000ff"></font></span> </div></div></blockquote><div><br>It is getting called like this <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><br>The log is going to /var/log/hobbit/pca.log <br><br>Where do I put the time here and how do I know when the first round of hobbit client data have been received in hobbitd_channel<br>
and close the time so I don't count same host twice?<br><br><br><br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div dir="ltr" align="left">
</div>
<div dir="ltr" align="left"><span><font face="Verdana" size="2" color="#0000ff">GLH</font></span></div><br>
<blockquote dir="ltr" style="margin-right: 0px;">
<div dir="ltr" lang="en-us" align="left">
<hr>
<font face="Tahoma" size="2"><b>From:</b> Ralph Mitchell
[mailto:<a href="mailto:ralphmitchell@gmail.com" target="_blank">ralphmitchell@gmail.com</a>] <br><b>Sent:</b> Thursday, May 14, 2009 2:09
PM<br><b>To:</b> <a href="mailto:hobbit@hswn.dk" target="_blank">hobbit@hswn.dk</a><br><b>Subject:</b> Re: [hobbit] Duration for
one round of server side module<br></font><br></div><div><div></div><div class="h5">
<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" target="_blank">vadud3@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"><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></div></div></blockquote></div>
</blockquote></div><br><br clear="all"><br>-- <br>Asif Iqbal<br>PGP Key: 0xE62693C5 KeyServer: <a href="http://pgp.mit.edu">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>