6 # $Id: test_cm.py,v 1.2 2011/02/10 21:35:30 parag Exp $
11 condorMonitor
.set_path("/home/sfiligoi/condor/dist/bin")
12 c
=condorMonitor
.CondorQ(schedd_name
="schedd_glideins@cms-xen6.fnal.gov")
16 s
=condorMonitor
.CondorStatus()
17 s
.load("GLIDEIN_CLUSTER=!=Undefined")
20 def group_unclaimed(c_list
):
21 out
={"nr_els":0,"TotalDisk":0,"MyAddress":""}
24 out
["TotalDisk"]+=c
["TotalDisk"]
25 out
["MyAddress"]+=c
["MyAddress"]
28 sg
=condorMonitor
.Group(s
,lambda el
:el
["GLIDEIN_CLUSTER"],group_unclaimed
)