#!/usr/bin/env python import json import optparse from validate import validate, elementExists if __name__ == "__main__": doc = validate() elementExists("ComputingManager",doc) elementExists("ComputingService",doc) elementExists("ExecutionEnvironment",doc) elementExists("Location",doc) elementExists("ComputingShare",doc) print("run 'qstat' or similar to verify that the following information is correct:") shares = doc["ComputingShare"] print(" %d computing shares" % len(shares)) print("compare the information in the JSON file to the detailed job information from 'qstat -Q -f' and 'pbsnodes' or similar")
#!/usr/bin/env python import json import optparse from validate import validate, elementExists if __name__ == "__main__": doc = validate() elementExists("ComputingManager", doc) elementExists("ComputingService", doc) elementExists("ExecutionEnvironment", doc) elementExists("Location", doc) elementExists("ComputingShare", doc) print( "run 'qstat' or similar to verify that the following information is correct:" ) shares = doc["ComputingShare"] print(" %d computing shares" % len(shares)) print( "compare the information in the JSON file to the detailed job information from 'qstat -Q -f' and 'pbsnodes' or similar" )
#!/usr/bin/env python import json import optparse from validate import validate, elementExists if __name__ == "__main__": doc = validate() elementExists("ApplicationEnvironment",doc) elementExists("ApplicationHandle",doc) print("run 'module avail' or similar and verify that the following information is correct:") environments = doc["ApplicationEnvironment"] print(" %d application environments" % len(environments)) print("compare the information in the JSON file to the detailed job information from 'module avail' and 'module show'")
#!/usr/bin/env python import json import optparse from validate import validate, elementExists if __name__ == "__main__": doc = validate() elementExists("ComputingActivity", doc) print("run 'qstat' or similar to verify that the following information is correct:") activities = doc["ComputingActivity"] print(" %d computing activities" % len(activities)) running = filter(lambda act: "ipf:running" in act["State"], activities) print(" %d of them are running" % len(running)) pending = filter(lambda act: "ipf:pending" in act["State"], activities) print(" %d of them are pending" % len(pending)) held = filter(lambda act: "ipf:held" in act["State"], activities) print(" %d of them are held" % len(held)) print("compare the job descriptions in the JSON file to the detailed job information from 'qstat -f' or similar")