Changes between Version 1 and Version 2 of qcg_usage_examples

Show
Ignore:
Timestamp:
09/06/11 13:02:39 (14 years ago)
Author:
piontek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • qcg_usage_examples

    v1 v2  
    4444}}} 
    4545}}} 
     46 
     47= submit_job = 
     48* `submit_job <job_profile>` - submits job. `<job_profile>` must be the path to the file containing the Job Profile. 
     49{{{ 
     50#!div style="font-size: 90%" 
     51{{{#!sh 
     52qcg-client submit_job ../examples/usecase8.xml 
     53Your identity: C=PL,O=GRID,O=PSNC,CN=Tomasz Piontek 
     54Creating proxy, please wait... 
     55Proxy verify OK 
     56Your proxy is valid until Tue May 17 02:55:47 CEST 2011 
     57UserDN = /C=PL/O=GRID/O=PSNC/CN=Tomasz Piontek 
     58ProxyLifetime = 0 Days 11 Hours 59 Minutes 57 Seconds 
     59 
     60jobId = 1305550554579_calendar_example_5366 
     61}}} 
     62}}} 
     63 
     64= list_jobs = 
     65* `list_jobs [status] [limit]` - lists jobs. Optionally it is possible to specify status or limits the output to some number of recent jobs. 
     66{{{ 
     67#!div style="font-size: 90%" 
     68{{{#!sh 
     69qcg-client list_jobs 5 
     70UserDN = /C=PL/O=GRID/O=PSNC/CN=Tomasz Piontek 
     71ProxyLifetime = 0 Days 11 Hours 58 Minutes 47 Seconds 
     72 
     73Number of jobs: 5 
     74List of jobs:  
     751301904727887_calendar_example_1403 
     761304020897352_calendar_example_4252 
     771304065465905_calendar_example_9526 
     781305287977790_calendar_example_4779 
     791305550554579_calendar_example_5366 
     80}}} 
     81}}} 
     82 
     83= job_info = 
     84* `job_info <jobId> <showJobProfile>` - displays information about the given job. The `<showJobProfile>` argument of boolean type specifies whether the Job Profile should be displayed or not. 
     85{{{ 
     86#!div style="font-size: 90%" 
     87{{{#!sh 
     88qcg-client job_info 1305550554579_calendar_example_5366 false 
     89UserDN = /C=PL/O=GRID/O=PSNC/CN=Tomasz Piontek 
     90ProxyLifetime = 0 Days 11 Hours 58 Minutes 18 Seconds 
     91 
     92UserDN: /C=PL/O=GRID/O=PSNC/CN=Tomasz Piontek 
     93Project:  
     94Status: FINISHED 
     95StatusDesc:  
     96SubmissionTime: Mon May 16 14:55:54 CEST 2011 
     97FinishTime: Mon May 16 14:56:42 CEST 2011 
     98Number of tasks: 10 
     99Tasks: calendar_PSit0 calendar_PSit1 calendar_PSit2 calendar_PSit3 calendar_PSit4 calendar_PSit5 calendar_PSit6 calendar_PSit7 calendar_PSit8 calendar_PSit9  
     100}}} 
     101{{{#!sh 
     102$ qcg-client job_info 1305550554579_calendar_example_5366 
     103UserDN = /C=PL/O=GRID/O=PSNC/CN=Tomasz Piontek 
     104ProxyLifetime = 0 Days 11 Hours 58 Minutes 6 Seconds 
     105 
     106UserDN: /C=PL/O=GRID/O=PSNC/CN=Tomasz Piontek 
     107Project:  
     108Status: FINISHED 
     109StatusDesc:  
     110SubmissionTime: Mon May 16 14:55:54 CEST 2011 
     111FinishTime: Mon May 16 14:56:42 CEST 2011 
     112Number of tasks: 10 
     113Tasks: calendar_PSit0 calendar_PSit1 calendar_PSit2 calendar_PSit3 calendar_PSit4 calendar_PSit5 calendar_PSit6 calendar_PSit7 calendar_PSit8 calendar_PSit9  
     114DescriptionType: GRMS 
     115UserDescription:  
     116<qcgJob appId="calendar_example"> 
     117  <task persistent="true" taskId="calendar"> 
     118    <execution type="single"> 
     119      <executable> 
     120        <execFile> 
     121          <file> 
     122            <location type="URL">file:////usr/bin/cal</location> 
     123          </file> 
     124        </execFile> 
     125      </executable> 
     126      <arguments> 
     127        <value>${PS_month}</value> 
     128        <value>2010</value> 
     129      </arguments> 
     130      <stdout> 
     131        <file> 
     132          <location type="URL">${TASK_DIR}/stdout.txt</location> 
     133        </file> 
     134      </stdout> 
     135    </execution> 
     136    <parametersSweep> 
     137      <parameter> 
     138        <name>month</name> 
     139        <value> 
     140          <loop> 
     141            <start>1</start> 
     142            <end>12</end> 
     143            <step>1</step> 
     144            <except> 
     145              <value>3</value> 
     146              <value>6</value> 
     147            </except> 
     148          </loop> 
     149        </value> 
     150      </parameter> 
     151    </parametersSweep> 
     152  </task> 
     153</qcgJob> 
     154 
     155QCGDescription:  
     156<grmsJob appId="calendar_example"> 
     157  <task persistent="true" taskId="calendar_PSit0"> 
     158    <execution type="single"> 
     159      <executable> 
     160        <execFile> 
     161          <file> 
     162            <location type="URL">file:////usr/bin/cal</location> 
     163          </file> 
     164        </execFile> 
     165      </executable> 
     166      <arguments> 
     167        <value>1.0</value> 
     168        <value>2010</value> 
     169      </arguments> 
     170      <stdout> 
     171        <file> 
     172          <location type="URL">${TASK_DIR}/stdout.txt</location> 
     173        </file> 
     174      </stdout> 
     175    </execution> 
     176  </task> 
     177  <task persistent="true" taskId="calendar_PSit1"> 
     178    <execution type="single"> 
     179      <executable> 
     180        <execFile> 
     181          <file> 
     182            <location type="URL">file:////usr/bin/cal</location> 
     183          </file> 
     184        </execFile> 
     185      </executable> 
     186      <arguments> 
     187        <value>2.0</value> 
     188        <value>2010</value> 
     189      </arguments> 
     190      <stdout> 
     191        <file> 
     192          <location type="URL">${TASK_DIR}/stdout.txt</location> 
     193        </file> 
     194      </stdout> 
     195    </execution> 
     196  </task> 
     197  <task persistent="true" taskId="calendar_PSit2"> 
     198    <execution type="single"> 
     199      <executable> 
     200        <execFile> 
     201          <file> 
     202            <location type="URL">file:////usr/bin/cal</location> 
     203          </file> 
     204        </execFile> 
     205      </executable> 
     206      <arguments> 
     207        <value>4.0</value> 
     208        <value>2010</value> 
     209      </arguments> 
     210      <stdout> 
     211        <file> 
     212          <location type="URL">${TASK_DIR}/stdout.txt</location> 
     213        </file> 
     214      </stdout> 
     215    </execution> 
     216  </task> 
     217  <task persistent="true" taskId="calendar_PSit3"> 
     218    <execution type="single"> 
     219      <executable> 
     220        <execFile> 
     221          <file> 
     222            <location type="URL">file:////usr/bin/cal</location> 
     223          </file> 
     224        </execFile> 
     225      </executable> 
     226      <arguments> 
     227        <value>5.0</value> 
     228        <value>2010</value> 
     229      </arguments> 
     230      <stdout> 
     231        <file> 
     232          <location type="URL">${TASK_DIR}/stdout.txt</location> 
     233        </file> 
     234      </stdout> 
     235    </execution> 
     236  </task> 
     237  <task persistent="true" taskId="calendar_PSit4"> 
     238    <execution type="single"> 
     239      <executable> 
     240        <execFile> 
     241          <file> 
     242            <location type="URL">file:////usr/bin/cal</location> 
     243          </file> 
     244        </execFile> 
     245      </executable> 
     246      <arguments> 
     247        <value>7.0</value> 
     248        <value>2010</value> 
     249      </arguments> 
     250      <stdout> 
     251        <file> 
     252          <location type="URL">${TASK_DIR}/stdout.txt</location> 
     253        </file> 
     254      </stdout> 
     255    </execution> 
     256  </task> 
     257  <task persistent="true" taskId="calendar_PSit5"> 
     258    <execution type="single"> 
     259      <executable> 
     260        <execFile> 
     261          <file> 
     262            <location type="URL">file:////usr/bin/cal</location> 
     263          </file> 
     264        </execFile> 
     265      </executable> 
     266      <arguments> 
     267        <value>8.0</value> 
     268        <value>2010</value> 
     269      </arguments> 
     270      <stdout> 
     271        <file> 
     272          <location type="URL">${TASK_DIR}/stdout.txt</location> 
     273        </file> 
     274      </stdout> 
     275    </execution> 
     276  </task> 
     277  <task persistent="true" taskId="calendar_PSit6"> 
     278    <execution type="single"> 
     279      <executable> 
     280        <execFile> 
     281          <file> 
     282            <location type="URL">file:////usr/bin/cal</location> 
     283          </file> 
     284        </execFile> 
     285      </executable> 
     286      <arguments> 
     287        <value>9.0</value> 
     288        <value>2010</value> 
     289      </arguments> 
     290      <stdout> 
     291        <file> 
     292          <location type="URL">${TASK_DIR}/stdout.txt</location> 
     293        </file> 
     294      </stdout> 
     295    </execution> 
     296  </task> 
     297  <task persistent="true" taskId="calendar_PSit7"> 
     298    <execution type="single"> 
     299      <executable> 
     300        <execFile> 
     301          <file> 
     302            <location type="URL">file:////usr/bin/cal</location> 
     303          </file> 
     304        </execFile> 
     305      </executable> 
     306      <arguments> 
     307        <value>10.0</value> 
     308        <value>2010</value> 
     309      </arguments> 
     310      <stdout> 
     311        <file> 
     312          <location type="URL">${TASK_DIR}/stdout.txt</location> 
     313        </file> 
     314      </stdout> 
     315    </execution> 
     316  </task> 
     317  <task persistent="true" taskId="calendar_PSit8"> 
     318    <execution type="single"> 
     319      <executable> 
     320        <execFile> 
     321          <file> 
     322            <location type="URL">file:////usr/bin/cal</location> 
     323          </file> 
     324        </execFile> 
     325      </executable> 
     326      <arguments> 
     327        <value>11.0</value> 
     328        <value>2010</value> 
     329      </arguments> 
     330      <stdout> 
     331        <file> 
     332          <location type="URL">${TASK_DIR}/stdout.txt</location> 
     333        </file> 
     334      </stdout> 
     335    </execution> 
     336  </task> 
     337  <task persistent="true" taskId="calendar_PSit9"> 
     338    <execution type="single"> 
     339      <executable> 
     340        <execFile> 
     341          <file> 
     342            <location type="URL">file:////usr/bin/cal</location> 
     343          </file> 
     344        </execFile> 
     345      </executable> 
     346      <arguments> 
     347        <value>12.0</value> 
     348        <value>2010</value> 
     349      </arguments> 
     350      <stdout> 
     351        <file> 
     352          <location type="URL">${TASK_DIR}/stdout.txt</location> 
     353        </file> 
     354      </stdout> 
     355    </execution> 
     356  </task> 
     357</qcgJob> 
     358}}} 
     359}}} 
     360= tasks_statuses = 
     361* `tasks_statuses <jobId>` - lists tasks constituting the given job with their statuses. 
     362{{{ 
     363#!div style="font-size: 90%" 
     364{{{#!sh 
     365qcg-client tasks_statuses 1305550554579_calendar_example_5366 
     366UserDN = /C=PL/O=GRID/O=PSNC/CN=Tomasz Piontek 
     367ProxyLifetime = 0 Days 11 Hours 41 Minutes 30 Seconds 
     368 
     369Number of tasks: 10 
     370Tasks statuses:  
     371calendar_PSit7  : FINISHED 
     372calendar_PSit6  : FINISHED 
     373calendar_PSit5  : FINISHED 
     374calendar_PSit4  : FINISHED 
     375calendar_PSit3  : FINISHED 
     376calendar_PSit2  : FINISHED 
     377calendar_PSit1  : FINISHED 
     378calendar_PSit0  : FINISHED 
     379calendar_PSit9  : FINISHED 
     380calendar_PSit8  : FINISHED 
     381------ SUMMARY -------- 
     382Number of tasks: 10 
     383FINISHED        : 10 
     384}}} 
     385}}} 
     386 
     387= task_info = 
     388* `task_info <jobId> <taskId>` - displays information about the given job 
     389{{{ 
     390#!div style="font-size: 90%" 
     391{{{#!sh 
     392qcg-client task_info 1305550554579_calendar_example_5366 calendar_PSit0 
     393UserDN = /C=PL/O=GRID/O=PSNC/CN=Tomasz Piontek 
     394ProxyLifetime = 0 Days 11 Hours 40 Minutes 11 Seconds 
     395 
     396TaskType: SINGLE 
     397SubmissionTime: Mon May 16 14:55:57 CEST 2011 
     398FinishTime: Mon May 16 14:56:27 CEST 2011 
     399ProxyLifetime: PT0S 
     400Status: FINISHED 
     401StatusDesc:  
     402StartTime: Mon May 16 14:56:04 CEST 2011 
     403DescriptionType: <task persistent="true" taskId="calendar_PSit0"> 
     404  <execution type="single"> 
     405    <executable> 
     406      <execFile> 
     407        <file> 
     408          <location type="URL">file:////usr/bin/cal</location> 
     409        </file> 
     410      </execFile> 
     411    </executable> 
     412    <arguments> 
     413      <value>1.0</value> 
     414      <value>2010</value> 
     415    </arguments> 
     416    <stdout> 
     417      <file> 
     418        <location type="URL">${TASK_DIR}/stdout.txt</location> 
     419      </file> 
     420    </stdout> 
     421  </execution> 
     422</task> 
     423 
     424 
     425Coallocation:  
     426UserDN: /C=PL/O=GRID/O=PSNC/CN=Tomasz Piontek 
     427HostName: grass1.man.poznan.pl 
     428ProcessesCount: 1 
     429ProcessesGroupId:  
     430Status: FINISHED 
     431StatusDescription:  
     432SubmissionTime: Mon May 16 14:56:04 CEST 2011 
     433FinishTime: Mon May 16 14:56:21 CEST 2011 
     434LocalSubmissionTime: Mon May 16 14:56:06 CEST 2011 
     435LocalStartTime: Mon May 16 14:56:10 CEST 2011 
     436LocalFinishTime: Mon May 16 14:56:10 CEST 2011 
     437}}} 
     438}}}