Changeset 282 for trunk


Ignore:
Timestamp:
05/01/12 14:53:13 (12 years ago)
Author:
bas
Message:

renamed some file and added documentation

Location:
trunk
Files:
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/CHANGES

    r279 r282  
    44
    55   Author: Willem Vermin (SARA) & Bas van der Vlies
     6
     7 * added an example: pbs_jobmonitor shows the output of top
     8   -u user on the node
     9    - one cycle of top
     10    - user: the user the job belongs to
     11
     12   renamed as pbs_joblogin logs in to the node as the user
     13   who invokes this script (os.getenv('USER'))
     14
     15   Author: Willem Vermin (SARA)
    616 
    717=========== 4.3.3
  • trunk/README

    r255 r282  
    11the latest stable pbs_python interface is available from:
    2         ftp://ftp.sara.nl/pub/outgoing/pbs_python.tar.gz
     2    ftp://ftp.sara.nl/pub/outgoing/pbs_python.tar.gz
    33
    44Information, documentation and reporting bugs for the package:
    5         https://subtrac.sara.nl/oss/pbs_python
     5    https://subtrac.sara.nl/oss/pbs_python
    66
    77bug resport:
    8         pbs_python add sara dot nl
     8    pbs_python@sara.nl
    99
    1010=============== Brief description =============================
     
    5858sara_nodes.py    - We use this program to set the nodes offline/online. when
    5959                   there are no command line arguments. It will list the
    60                    nodes that are down/oflline. For more info see:
    61                     - https://subtrac.sara.nl/oss/pbs_python/wiki/TorqueExamples
     60                   nodes that are down/oflline. For more info see:
     61                    - https://subtrac.sara.nl/oss/pbs_python/wiki/TorqueExamples
     62
     63pbs_jobmonitor   - Shows the output of top -u user on the node:
     64                     * one cycle of top
     65                     * user: the user the job belongs to
     66
     67pbs_joblogin     - logs in to the node as the user who invokes this script
     68                   (os.getenv('USER'))
    6269
    6370For more info about SARA see:
    64         http://www.sara.nl/index_eng.html
    65        
     71    http://www.sara.nl/index_eng.html
    6672
     73--
    6774********************************************************************
    6875*                                                                  *
  • trunk/debian/changelog

    r279 r282  
    22
    33  * See CHANGES
     4  * install pbs_jobmonitor and pbs_joblogin in /usr/bin
    45
    56 -- Bas van der Vlies <basv@sara.nl>  Fri, 27 Apr 2012 09:54:54 +0200
  • trunk/debian/rules

    r252 r282  
    1818        install -D examples/new_rack_pbsmon.py debian/pbs-python/usr/bin/pbsmon
    1919        install -D examples/sara_nodes.py debian/pbs-python/usr/bin/sara_nodes
     20        install -D examples/pbs_jobmonitor debian/pbs-python/usr/bin/pbs_jobmonitor
     21        install -D examples/pbs_jobmonitor debian/pbs-python/usr/bin/pbs_joblogin
  • trunk/examples/README

    r37 r282  
    11To test these utilities set the environment variabele PYTHONPATH:
    22for sh-shells:
    3         PYTHONPATH=../src; export PYTHONPATH
     3    PYTHONPATH=../src; export PYTHONPATH
    44
    55for csh-shells:
    6         setenv PYTHONPATH ../src
     6    setenv PYTHONPATH ../src
  • trunk/examples/pbs_jobmonitor

    r281 r282  
    88#   $URL$
    99#
    10 # topjob, gojob jobnr [nodenr]
    11 #               jobnr: the number of the job
    12 #               nodenr: the rank of the node in the job
     10# pbs_jobmonitor, pbs_joblogin <jobnr> [nodenr]
     11#    jobnr: the number of the job
     12#    nodenr: the rank of the node in the job
     13#
    1314# depending on the name with this script is called it performs the
    1415# following:
    1516
    16 # called as topjob:
     17# called as pbs_jobmonitor:
    1718#       shows the output of top -u user on the node
    1819#       - one cycle of top
    1920#       - user: the user the job belongs to
    2021#
    21 # called as gojob:
     22# called as pbs_joblogin:
    2223#       logs in to the node as the user who invokes this script
    2324#            (os.getenv('USER'))
     
    4041
    4142def usage(a):
    42   if a == 'gojob':
     43  if a == 'pbs_jobmonitor':
     44    print a,'shows the system usage of a node where a job is running'
     45  if a == 'pbs_joblogin':
    4346    print a,'logs you in to a node where a job is running'
    44   if a == 'topjob':
    45     print a,'shows the system usage of a node where a job is running'
    4647   
    4748  print 'Usage:'
    48   print a,'jobnumber [nodenumber]'
    49   print 'where jobnumber is the number of the job'
     49  print a,'<jobnumber> [nodenumber]'
     50  print 'where <jobnumber> is the number of the job'
    5051  print '      nodenumber is the rank number of the node allocated to the job'
    5152  print '      (default 0)'
     
    106107  sys.exit(1)
    107108
    108 if me == 'topjob':
     109if me == 'pbs_jobmonitor':
    109110  user=job['Job_Owner'][0].split('@')[0]
    110111  print 'top for node #',num,':',nodes[num],'user:',user
     
    112113  os.system('ssh '+nodes[num]+' top -n1 -b -u ' + user)
    113114
    114 if me == 'gojob':
     115if me == 'pbs_joblogin':
    115116  user = os.getenv('USER')
    116117  print 'logging in to node #',num,':',nodes[num],'user:',user
Note: See TracChangeset for help on using the changeset viewer.