<br><div class="gmail_quote">On Thu, May 14, 2009 at 8:46 PM, T.J. Yang <span dir="ltr"><<a href="mailto:tj_yang@hotmail.com">tj_yang@hotmail.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 style="padding-right: 10px; padding-left: 10px; padding-top: 15px;" bgcolor="#ffffff" name="Compose message area">
<div><font size="2" face="Arial">Hi Asif</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">There are a few questions need to be addressed for 
non-home deployment.</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">1.  Do we  want to have  xymon 
clients to query Sun's patch database file ?</font></div>
<div><font size="2" face="Arial">    The answer should be No for a 
site have big xymon client installations.</font></div>
<div><font size="2" face="Arial">2. the pca xymon client module should query 
internal solaris patch database server(on xymon server).</font></div>
<div><font size="2" face="Arial">3. the pca xymon server 
side EXT module should in sync with Sun's patch database 
server</font> <font size="2" face="Arial">and download the zip files for 
internal installation.</font></div>
<div><font size="2" face="Arial">4. pca rely on wget and wget rely on other software 
also, be prepared to deal with pca xymon module for solaris 2.6 and above that doesn't come with wget.</font></div>
<div><font size="2" face="Arial"></font></div></div></blockquote><div><br>I discussed w/ pca community and server side module works better<br>Here is the thread.<br><br>    <a href="http://www.mail-archive.com/pca@lists.univie.ac.at/msg00939.html">http://www.mail-archive.com/pca@lists.univie.ac.at/msg00939.html</a><br>
<br>Most of the servers are between sol 8 and sol 10 but that is not a problem since I am doing it<br>on the server side and my hobbit server is sol 9<br><br>I updated the hobbitclient-sunos.sh file and pushed using clientupdate method to all the clients.<br>
only the following lines needed to add to the hobbitclient-sunos.sh. That was enough data <br>to generate the pca report<br><br>echo "[showrev]"<br>showrev -p<br>echo "[pkginfo]"<br>pkginfo -x<br><br>right below [ps] section<br>
<br>Also whenever new version pca comes I just need to update the pca on hobbit server to get my patch report<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 style="padding-right: 10px; padding-left: 10px; padding-top: 15px;" bgcolor="#ffffff" name="Compose message area"><div> </div>
<div><font size="2" face="Arial"></font> </div>
<div>
<div><font size="2" face="Arial">I don't quite understand why you design pca work as 
server side module</font></div>
<div> <br></div></div></div></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="padding-right: 10px; padding-left: 10px; padding-top: 15px;" bgcolor="#ffffff" name="Compose message area">
<div><div> </div>
<div><font size="2" face="Arial">For me, I did it as a client side module and create 
another column (pca) for each xymon client.</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">Here is an example of what it looks like so 
far</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial"><a title="http://xymon.dlinkddns.com/hobbit-cgi/bb-hostsvc.sh?HOST=netinstall.test.net&SERVICE=pca
CTRL + Click to follow link" href="http://xymon.dlinkddns.com/hobbit-cgi/bb-hostsvc.sh?HOST=netinstall.test.net&SERVICE=pca" target="_blank">http://xymon.dlinkddns.com/hobbit-cgi/bb-hostsvc.sh?HOST=netinstall.test.net&SERVICE=pca</a></font></div>

<div><font size="2" face="Arial"></font> </div></div>
<div><font size="2" face="Arial">P.S. I interacted with pca author but failed to 
convince him we (xymon community) can have a "-M" option to send out xymon 
needed html format.</font></div>
<div><font size="2" face="Arial"></font> </div></div></blockquote><div><br>You use the `-L ' switch to get html report.<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 style="padding-right: 10px; padding-left: 10px; padding-top: 15px;" bgcolor="#ffffff" name="Compose message area"><div></div>
<div><font size="2" face="Arial">tj</font></div>
<div><font size="2" face="Arial"></font> </div>
<div style="font-family: Tahoma; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<div><br></div>
<div style="background: rgb(245, 245, 245) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">
<div><b>From:</b> <a title="mailto:vadud3@gmail.com
CTRL + Click to follow link" href="mailto:vadud3@gmail.com" target="_blank">Asif Iqbal</a> </div>
<div><b>Sent:</b> Thursday, May 14, 2009 1:41 PM</div>
<div><b>To:</b> <a title="hobbit@hswn.dk" href="mailto:hobbit@hswn.dk" target="_blank">hobbit@hswn.dk</a> </div>
<div><b>Subject:</b> [hobbit] Duration for one round of server side 
module</div></div></div><div><div></div><div class="h5">
<div><br></div><br>I implemented a server side perl script using this <a title="http://xymonton.trantor.org/doku.php/tutorials:ssmodule
CTRL + Click to follow link" 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><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></div></div></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>