Changeset 282
- Timestamp:
- 05/01/12 14:53:13 (12 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/CHANGES
r279 r282 4 4 5 5 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) 6 16 7 17 =========== 4.3.3 -
trunk/README
r255 r282 1 1 the latest stable pbs_python interface is available from: 2 2 ftp://ftp.sara.nl/pub/outgoing/pbs_python.tar.gz 3 3 4 4 Information, documentation and reporting bugs for the package: 5 5 https://subtrac.sara.nl/oss/pbs_python 6 6 7 7 bug resport: 8 pbs_python add sara dotnl8 pbs_python@sara.nl 9 9 10 10 =============== Brief description ============================= … … 58 58 sara_nodes.py - We use this program to set the nodes offline/online. when 59 59 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 63 pbs_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 67 pbs_joblogin - logs in to the node as the user who invokes this script 68 (os.getenv('USER')) 62 69 63 70 For more info about SARA see: 64 http://www.sara.nl/index_eng.html 65 71 http://www.sara.nl/index_eng.html 66 72 73 -- 67 74 ******************************************************************** 68 75 * * -
trunk/debian/changelog
r279 r282 2 2 3 3 * See CHANGES 4 * install pbs_jobmonitor and pbs_joblogin in /usr/bin 4 5 5 6 -- Bas van der Vlies <basv@sara.nl> Fri, 27 Apr 2012 09:54:54 +0200 -
trunk/debian/rules
r252 r282 18 18 install -D examples/new_rack_pbsmon.py debian/pbs-python/usr/bin/pbsmon 19 19 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 1 1 To test these utilities set the environment variabele PYTHONPATH: 2 2 for sh-shells: 3 3 PYTHONPATH=../src; export PYTHONPATH 4 4 5 5 for csh-shells: 6 6 setenv PYTHONPATH ../src -
trunk/examples/pbs_jobmonitor
r281 r282 8 8 # $URL$ 9 9 # 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 # 13 14 # depending on the name with this script is called it performs the 14 15 # following: 15 16 16 # called as topjob:17 # called as pbs_jobmonitor: 17 18 # shows the output of top -u user on the node 18 19 # - one cycle of top 19 20 # - user: the user the job belongs to 20 21 # 21 # called as gojob:22 # called as pbs_joblogin: 22 23 # logs in to the node as the user who invokes this script 23 24 # (os.getenv('USER')) … … 40 41 41 42 def 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': 43 46 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'46 47 47 48 print 'Usage:' 48 print a,' jobnumber[nodenumber]'49 print 'where jobnumberis the number of the job'49 print a,'<jobnumber> [nodenumber]' 50 print 'where <jobnumber> is the number of the job' 50 51 print ' nodenumber is the rank number of the node allocated to the job' 51 52 print ' (default 0)' … … 106 107 sys.exit(1) 107 108 108 if me == ' topjob':109 if me == 'pbs_jobmonitor': 109 110 user=job['Job_Owner'][0].split('@')[0] 110 111 print 'top for node #',num,':',nodes[num],'user:',user … … 112 113 os.system('ssh '+nodes[num]+' top -n1 -b -u ' + user) 113 114 114 if me == ' gojob':115 if me == 'pbs_joblogin': 115 116 user = os.getenv('USER') 116 117 print 'logging in to node #',num,':',nodes[num],'user:',user
Note: See TracChangeset
for help on using the changeset viewer.