<div dir="ltr"><div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif">This is not on Linux, but on Solaris/Unix.</div><div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif">
</div><div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif">I have a few servers on which I am running a few commands via cron.</div><div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif">
Examples commands: date, uptime, sar, netstat, dladm, prstat, ping.</div><div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif"> </div><div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif">
Here is the command sequence I am having the issue:</div><font size="1"><p class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif">ldavg=`uptime | cut -d":" -f4`</p><div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif">
</div><p class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif"> DDATE1=`date +'%Y.%d.%h.%H.%M.%S'`</p><div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif">
</div><p class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif"> echo "$DDATE1 >>> $ldavg" >> /var/adm/save/2ping/load.avg.log 2>&1</p><div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif">
</div></font><div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif">In the log file, on some servers, once every hour, it will miss output of the variable $ldavg. So the entried will look like this :</div>
<div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif"> </div><div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif"><font size="1"><p>2013.04.Jun.07.23.24 >>> 1.12, 1.23, 1.25</p>
<p>2013.04.Jun.07.24.29 >>> 1.03, 1.18, 1.23</p>
<p>2013.04.Jun.07.25.35 >>> 1.10, 1.18, 1.22</p>
<p>2013.04.Jun.07.26.40 >>> 1.45, 1.30, 1.26</p>
<p>2013.04.Jun.07.27.45 >>></p>
<p>2013.04.Jun.07.28.50 >>> 1.10, 1.23, 1.24</p>
<p>2013.04.Jun.07.29.55 >>> 1.08, 1.20, 1.23</p>
<p>2013.04.Jun.07.31.01 >>> 1.66, 1.29, 1.26</p>
<p>2013.04.Jun.07.32.06 >>> 1.27, 1.25, 1.25</p></font></div><div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif"> </div><div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif">
I have no explanation as to why this would miss and that too at exactly that time every hour. My script runs these commands once a minute, every hour. </div><div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif">
</div><div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif">(Don't throw up your hands, I am trying to find what is causing slowness and sometimes, makes the server go out of the network).</div>
<div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif"> </div><div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif">I have seen load average reach 577, at which point, even the /var/adm/messages, sulog does not get updated.<br clear="all">
</div><div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif">How can I debug this issue? Please advise.</div><div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif">
Thanks</div><div><div dir="ltr"><div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif"> </div><div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif">-GG</div>
<div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif">Rajiv G Gunja</div><div><span style="color:rgb(51,51,255);font-family:verdana,sans-serif"><div class="gmail_default" style="color:rgb(51,51,255);font-family:verdana,sans-serif;display:inline">
</div></span></div></div></div>
</div>