<div dir="ltr"><div><div>Hi,<br></div>thanks for the reply. However, -p option with -n is not helping i.e. <br><br>tracejob -n 6 -p /archive 25829<br>/archive/server_priv/accounting/20131024: No such file or directory such file or directory<br>
/archive/server_logs/20131024: No such file or directory such file or directory                                                                                 <br>/archive/mom_logs/20131024: No such file or directory such file or directory                                                                                    <br>
/archive/sched_logs/20131024: No such file or directory such file or directory                                                                                  <br>/archive/server_priv/accounting/20131023: No such file or directory such file or directory                                                                      <br>
/archive/server_logs/20131023: No such file or directory such file or directory                                                                                 <br>/archive/mom_logs/20131023: No such file or directory such file or directory                                                                                    <br>
/archive/sched_logs/20131023: No such file or directory such file or directory                                                                                  <br>/archive/server_priv/accounting/20131022: No such file or directory such file or directory                                                                      <br>
/archive/server_logs/20131022: No such file or directory such file or directory                                                                                 <br>/archive/mom_logs/20131022: No such file or directory such file or directory                                                                                    <br>
/archive/sched_logs/20131022: No such file or directory such file or directory                                                                                  <br>/archive/server_priv/accounting/20131021: No such file or directory such file or directory                                                                      <br>
/archive/server_logs/20131021: No such file or directory such file or directory                                                                                 <br>/archive/mom_logs/20131021: No such file or directory such file or directory                                                                                    <br>
/archive/server_priv/accounting/20131020: No such file or directory such file or directory                                                                      <br>/archive/server_logs/20131020: No such file or directory such file or directory                                                                                 <br>
/archive/mom_logs/20131020: No such file or directory such file or directory                                                                                    <br>/archive/sched_logs/20131020: No such file or directory such file or directory                                                                                  <br>
/archive/server_priv/accounting/20131019: No such file or directory such file or directory                                                                      <br>/archive/server_logs/20131019: No such file or directory such file or directory                                                                                 <br>
/archive/mom_logs/20131019: No such file or directory such file or directory                                                                                    <br>/archive/sched_logs/20131019: No such file or directory such file or directory             <br>
<br>Job: 25829.pbs.server<br><br>10/21/2013 03:56:17  L    Exit_status=-10 resources_used.cput=202:47:37 resources_used.mem=1809384kb resources_used.vmem=4702624kb resources_used.walltime=48:30:57<br>10/21/2013 04:01:17  L    dequeuing from TESTq, state COMPLETE<br>
<br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 23, 2013 at 11:40 PM, Andrus, Brian Contractor <span dir="ltr">&lt;<a href="mailto:bdandrus@nps.edu" target="_blank">bdandrus@nps.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Carles,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I think what we are saying is that you can use the -p WITH the -n options.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">That way you can go back for instance 300 days, but it will only look at such files in the path that contains the first 90 of those 300 days.<u></u><u></u></span></p>
<div class="im">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Brian Andrus<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">ITACS/Research Computing<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Naval Postgraduate School<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Monterey, California<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">voice: 831-656-6238<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
</div><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:torqueusers-bounces@supercluster.org" target="_blank">torqueusers-bounces@supercluster.org</a> [mailto:<a href="mailto:torqueusers-bounces@supercluster.org" target="_blank">torqueusers-bounces@supercluster.org</a>]
<b>On Behalf Of </b>Pankaj Dorlikar<br>
<b>Sent:</b> Wednesday, October 23, 2013 6:15 AM<br>
<b>To:</b> Carles Acosta<br>
<b>Cc:</b> Torque Users Mailing List<br>
<b>Subject:</b> Re: [torqueusers] regarding tracejob command<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">Dear Carles,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">thanks for the reply.<u></u><u></u></p>
</div>
<p class="MsoNormal">yes, we are aware of the flag, but if we were to trace 200 days old job, then tracejob -n 200 &lt;job-id&gt; will trace all 200 days files which we dont want. and we are having start and end date/time of the job . so we are trying to find out,
 how to provide that day&#39;s pbs_server log file as argument to tracejob directly instedof tracejob itself scanning all the files.<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Wed, Oct 23, 2013 at 1:32 PM, Carles Acosta &lt;<a href="mailto:cacosta@pic.es" target="_blank">cacosta@pic.es</a>&gt; wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Dear Pankaj,<br>
<br>
To search older jobs, you have to use &quot;-n&quot; option. For instance: &quot;tracejob -n 3 $job_id&quot; should search the job in the log files of the last three days.
<br>
<br>
You can find more information here:<br>
<br>
<a href="http://www.clusterresources.com/torquedocs21/11.1troubleshooting.shtml#tracejob" target="_blank">http://www.clusterresources.com/torquedocs21/11.1troubleshooting.shtml#tracejob</a><br>
<br>
Regards,<br>
<br>
Carles<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><br>
<br>
On 10/23/2013 09:44 AM, Pankaj Dorlikar wrote:<u></u><u></u></p>
</div>
</div>
</div>
<div>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">thanks a lot sir, for the reply. it is very useful. however, -p flag of tracejob always try to look in the current day&#39;s log file only.<u></u><u></u></p>
</div>
<p class="MsoNormal">e.g. job with id 258295 was started on 19 th oct 13 and ended on 21 st Oct 13. I have included both files in the /archive/sched_logs/ directory, but it always look for the current days file only.
<u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
tracejob -p /archive/sched_logs/oct13 258295<br>
<br>
/archive/sched_logs/oct13/server_priv/accounting/20131023: No such file or directory<br>
/archive/sched_logs/oct13/server_logs/20131023: No such file or directory<br>
/archive/sched_logs/oct13/mom_logs/20131023: No such file or directory<br>
/archive/sched_logs/oct13/sched_logs/20131023: No such file or directory<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">thanks for help once again.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Wed, Oct 23, 2013 at 2:28 AM, Andrus, Brian Contractor &lt;<a href="mailto:bdandrus@nps.edu" target="_blank">bdandrus@nps.edu</a>&gt; wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">You may want to move logs to an archived area.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Then you could use the -p option to specify where they are.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Eg: tracejob -p /archive/torque/Jan2013 &lt;jobid&gt;</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Then it would look at /archive/torque/Jan2013/*logs</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">This doesn’t cover the corner case of a job the spans the dividing period, but it may work for you.</span><u></u><u></u></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Otherwise, create an alias to a script that will grep as you need.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Brian Andrus</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">ITACS/Research Computing</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Naval Postgraduate School</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Monterey, California</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">voice: 831-656-6238</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
<a href="mailto:torqueusers-bounces@supercluster.org" target="_blank">torqueusers-bounces@supercluster.org</a> [mailto:<a href="mailto:torqueusers-bounces@supercluster.org" target="_blank">torqueusers-bounces@supercluster.org</a>]
<b>On Behalf Of </b>Pankaj Dorlikar<br>
<b>Sent:</b> Monday, October 21, 2013 10:19 PM<br>
<b>To:</b> torqueusers<br>
<b>Subject:</b> [torqueusers] regarding tracejob command</span><u></u><u></u></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"> We have torque version : 2.5.8. How can we specify the pbs server log file as argument ot tracejob command?
<br>
<br>
To see the job details of the old jobs using tracejob command, -n &lt;no. fo days&gt; needs to be provided, which traces through all the previous logs till it reaches that day. THis takes very long time if the job is very old.<u></u><u></u></p>

</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">To avoid this, and if we know the job start date, can&#39;t we specify that day&#39;s log file as the argument to tracejob, to see the job details.
<u></u><u></u></p>
</div>
<p class="MsoNormal">Or is there any solution to this issue?<span style="color:#888888"><br clear="all">
</span><u></u><u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="color:#888888"> </span><u></u><u></u></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><br clear="all">
<br>
-- <br>
Pankaj V. Dorlikar <u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
torqueusers mailing list<br>
<a href="mailto:torqueusers@supercluster.org" target="_blank">torqueusers@supercluster.org</a><br>
<a href="http://www.supercluster.org/mailman/listinfo/torqueusers" target="_blank">http://www.supercluster.org/mailman/listinfo/torqueusers</a><u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <br>
Pankaj V. Dorlikar <u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<pre>_______________________________________________<u></u><u></u></pre>
<pre>torqueusers mailing list<u></u><u></u></pre>
<pre><a href="mailto:torqueusers@supercluster.org" target="_blank">torqueusers@supercluster.org</a><u></u><u></u></pre>
<pre><a href="http://www.supercluster.org/mailman/listinfo/torqueusers" target="_blank">http://www.supercluster.org/mailman/listinfo/torqueusers</a><u></u><u></u></pre>
</blockquote>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
</div>
</div>
<pre><span style="color:#888888">-- <u></u><u></u></span></pre>
<pre><span style="color:#888888">Carles Acosta i Silva<u></u><u></u></span></pre>
<pre><span style="color:#888888">PIC (Port d&#39;Informació Científica)<u></u><u></u></span></pre>
<pre><span style="color:#888888">Campus UAB, Edifici D<u></u><u></u></span></pre>
<pre><span style="color:#888888">E-08193 Bellaterra, Barcelona<u></u><u></u></span></pre>
<pre><span style="color:#888888">Tel: +34 93 581 33 08<u></u><u></u></span></pre>
<pre><span style="color:#888888">Fax: +34 93 581 41 10<u></u><u></u></span></pre>
<pre><span style="color:#888888"><a href="http://www.pic.es" target="_blank">http://www.pic.es</a> <u></u><u></u></span></pre>
<pre><span style="color:#888888">Avís - Aviso - Legal Notice: <a href="http://www.ifae.es/legal.html" target="_blank">http://www.ifae.es/legal.html</a><u></u><u></u></span></pre>
</div>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <br>
Pankaj V. Dorlikar <u></u><u></u></p>
</div>
</div></div></div>
</div>
</div>

<br>_______________________________________________<br>
torqueusers mailing list<br>
<a href="mailto:torqueusers@supercluster.org">torqueusers@supercluster.org</a><br>
<a href="http://www.supercluster.org/mailman/listinfo/torqueusers" target="_blank">http://www.supercluster.org/mailman/listinfo/torqueusers</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Pankaj V. Dorlikar
</div>