- Timestamp:
- Aug 20, 2013, 6:17:32 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippm/FilesMonitoring/Supervision/cluster_status.py
r35945 r35984 9 9 toGigs = 1024.**3 10 10 toGigsFromK = 1024.**2 11 12 bin_directory = "%s/%s/bin" % (os.environ['PSCONFDIR'], os.environ['PSCONFIG']) 13 share_directory = "%s/%s/share/filemon/" % (os.environ['PSCONFDIR'], os.environ['PSCONFIG']) 11 14 12 15 def usage(): … … 47 50 sql_check = True 48 51 elif argv[1] == 'mhpcc': 49 nodesFilename = ' /home/panstarrs/schastel/local/share/ippMhpccStorageNodes'52 nodesFilename = '%s/ippMhpccStorageNodes' % share_directory 50 53 nodesFile = open(nodesFilename) 51 54 nodes = [] … … 86 89 "stsci07.0", "stsci07.1", "stsci07.2", 87 90 "stsci08.0", "stsci08.1", "stsci08.2", 88 "stsci09.0", "stsci09.1", "stsci09.2", ] 91 "stsci09.0", "stsci09.1", "stsci09.2", 92 "stsci10.0", "stsci10.1", "stsci10.2", 93 "stsci11.0", "stsci11.1", "stsci11.2", 94 "stsci12.0", "stsci12.1", "stsci12.2", 95 "stsci13.0", "stsci13.1", "stsci13.2", 96 "stsci14.0", "stsci14.1", "stsci14.2", 97 "stsci15.0", "stsci15.1", "stsci15.2", 98 "stsci16.0", "stsci16.1", "stsci16.2", 99 "stsci17.0", "stsci17.1", "stsci17.2", 100 "stsci18.0", "stsci18.1", "stsci18.2", 101 "stsci19.0", "stsci19.1", "stsci19.2", ] 89 102 elif argv[1] == 'all': 90 nodesFilename = ' /home/panstarrs/schastel/local/share/ippMhpccStorageNodes'103 nodesFilename = '%s/ippMhpccStorageNodes' % share_directory 91 104 nodesFile = open(nodesFilename) 92 105 nodes = [] … … 106 119 "stsci07.0", "stsci07.1", "stsci07.2", 107 120 "stsci08.0", "stsci08.1", "stsci08.2", 108 "stsci09.0", "stsci09.1", "stsci09.2", ]) 121 "stsci09.0", "stsci09.1", "stsci09.2", 122 "stsci10.0", "stsci10.1", "stsci10.2", 123 "stsci11.0", "stsci11.1", "stsci11.2", 124 "stsci12.0", "stsci12.1", "stsci12.2", 125 "stsci13.0", "stsci13.1", "stsci13.2", 126 "stsci14.0", "stsci14.1", "stsci14.2", 127 "stsci15.0", "stsci15.1", "stsci15.2", 128 "stsci16.0", "stsci16.1", "stsci16.2", 129 "stsci17.0", "stsci17.1", "stsci17.2", 130 "stsci18.0", "stsci18.1", "stsci18.2", 131 "stsci19.0", "stsci19.1", "stsci19.2", ] 109 132 else: 110 133 nodes = [ ] … … 138 161 139 162 def is_update_running(node): 140 p = subprocess.Popen( [' /home/panstarrs/schastel/dev/FilesMonitoring/Supervision/node_status.py', node],163 p = subprocess.Popen( ['%s/node_status.py' % bin_directory, node], 141 164 stderr = subprocess.PIPE, 142 165 stdout = subprocess.PIPE)
Note:
See TracChangeset
for help on using the changeset viewer.
