 <p>I can obtain this information from <code>qstat -j &lt;job_id&gt;</code>. </p> <p>For example, submit some array jobs:</p> <pre><code>echo "sleep 60" | qsub -t 1-200 </code></pre> <p>Use qstat to extract total tasks:</p> <pre><code>qstat -j &lt;job_id&gt; | grep tasks </code></pre> <p><code>grep</code> returns the following:</p> <pre><code>job-array tasks: 1-200:1 </code></pre>