Ignore:
Timestamp:
03/09/15 16:28:14 (8 years ago)
Author:
bas
Message:

some small improvements but no working rm interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/5.X/pbs_node_info

    r324 r327  
    1919    attrs = node.attribs
    2020    for attr in attrs:
    21       print '\t', attr.name, ' = ', attr.value
     21      print '\t  ', attr.name, ' = ', attr.value
    2222
    23     try:
    24       mom_port = socket.getservbyname('pbs_resmom', 'tcp')
    25       mom_id = pbs.openrm(node.name, mom_port)
    26     except socket.error, detail:
    27       mom_id = pbs.openrm(node.name, pbs.PBS_MANAGER_SERVICE_PORT)
     23#    try:
     24#      mom_port = socket.getservbyname('pbs_resmom', 'tcp')
     25#      mom_id = pbs.openrm(node.name, mom_port)
     26#    except socket.error, detail:
     27#      mom_id = pbs.openrm(node.name, pbs.PBS_MANAGER_SERVICE_PORT)
     28
     29    err = 0
     30    mom_id = pbs.openrm(node.name, pbs.PBS_MANAGER_SERVICE_PORT)
     31    e, e_txt = pbs.error()
     32    print "openrm", e, e_txt
     33    print node.name, mom_id, pbs.PBS_MANAGER_SERVICE_PORT
     34    pbs.flushreq()
     35    #pbs.fullresp(1)
     36    e, e_txt = pbs.error()
     37    print "flush", e, e_txt
     38
     39    #pbs.addreq_err(mom_id, err, "arch")
     40    pbs.addreq(mom_id, "arch")
     41    e, e_txt = pbs.error()
     42    print "addreq:", e, e_txt
     43
     44    print pbs.activereq()
     45    e, e_txt = pbs.error()
     46    print "addreq:", e, e_txt
     47
     48    #resp = pbs.getreq_err(err, mom_id)
     49    resp = pbs.getreq(mom_id)
     50    e, e_txt = pbs.error()
     51    print e, e_txt
     52    print err, resp
     53
     54    sys.exit(1)
     55    print 'rm interface'
    2856
    2957    mom_keys = pbs.get_mom_values(mom_id)
    3058    for key in mom_keys.keys():
    31       print '\t %s = %s' %(key, mom_keys[key])
     59      print '\t mom %s = %s' %(key, mom_keys[key])
    3260
    3361    print 'Testing list with user supplied keywords'
Note: See TracChangeset for help on using the changeset viewer.