<div dir="ltr"><div>Dear Carles,<br></div><div>thanks for the reply.<br></div>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.<br>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 23, 2013 at 1:32 PM, Carles Acosta <span dir="ltr">&lt;<a href="mailto:cacosta@pic.es" target="_blank">cacosta@pic.es</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>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<div><div class="h5"><br>
      <br>
      On 10/23/2013 09:44 AM, Pankaj Dorlikar wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote type="cite">
      <div dir="ltr">
        <div>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.<br>
          <br>
        </div>
        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. <br>
        <div><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<br>
          <br>
        </div>
        <div>thanks for help once again.<br>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Wed, Oct 23, 2013 at 2:28 AM,
          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">You
                    may want to move logs to an archived area.</span></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></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></p>
                <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></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></p>
                <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></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></p>
                <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></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></p>
                <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></p>
                <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></p>
                <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Brian
                    Andrus</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</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</span></p>
                <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Monterey,
                    California</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</span></p>
                <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></p>
                <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></p>
                <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></p>
                <p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></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></p>
                    </div>
                  </div>
                  <div>
                    <div>
                      <p class="MsoNormal"> </p>
                      <div>
                        <div>
                          <div>
                            <div>
                              <p class="MsoNormal" style="margin-bottom:12.0pt">Hi,</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.</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.
                          </p>
                        </div>
                        <p class="MsoNormal">Or is there any solution to
                          this issue?<span style="color:#888888"><br clear="all">
                          </span></p>
                        <div>
                          <div>
                            <div>
                              <div>
                                <p class="MsoNormal"><span style="color:#888888"> </span></p>
                              </div>
                            </div>
                          </div>
                        </div>
                        <p class="MsoNormal"><br clear="all">
                          <br>
                          -- <br>
                          Pankaj V. Dorlikar </p>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <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><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        Pankaj V. Dorlikar
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
torqueusers mailing list
<a href="mailto:torqueusers@supercluster.org" target="_blank">torqueusers@supercluster.org</a>
<a href="http://www.supercluster.org/mailman/listinfo/torqueusers" target="_blank">http://www.supercluster.org/mailman/listinfo/torqueusers</a>
</pre>
    </blockquote>
    <br>
    <br>
    </div></div><span class="HOEnZb"><font color="#888888"><pre cols="72">-- 
Carles Acosta i Silva
PIC (Port d&#39;Informació Científica)
Campus UAB, Edifici D
E-08193 Bellaterra, Barcelona
Tel: +34 93 581 33 08
Fax: +34 93 581 41 10
<a href="http://www.pic.es" target="_blank">http://www.pic.es</a> 
Avís - Aviso - Legal Notice: <a href="http://www.ifae.es/legal.html" target="_blank">http://www.ifae.es/legal.html</a></pre>
  </font></span></div>

</blockquote></div><br><br clear="all"><br>-- <br>Pankaj V. Dorlikar
</div>