#!/bin/bash
#
. /export/osg/grid/setup.sh
cat > GCclassad.txt <<EOF
MyType = "Machine"
Name = "fngp-osg.fnal.gov:2119/jobmanager-condor"
gatekeeper_url = "fngp-osg.fnal.gov:2119/jobmanager-condor"
TargetType = "Job"
Requirements = TRUE
Rank = 0.000000
CurrentRank = 0.000000
WantAdRevaluate = TRUE
CurMatches = 0
UpdateSequenceNumber = $TIME
gluehostapplicationsoftwareruntimeenvironment = "VO-atlas-release-9.0.3 VO-atlas-lcg-release-0.0.2"
glueceinfohostname = "fnal.gov"
gluesubclustername = "fnal.gov"
gluecestatestatus = "Production"
gluecepolicymaxcputime = 2880
gluecepolicymaxwallclocktime = 2880
glueceaccesscontrolbaserule = "VO:*"
GlueCEStateTotalCPUs = 27
gluecestatefreecpus = 0 
GlueCEStateRunningJobs = $RUNNING
GlueCEStateWaitingJobs = $QUEUED
gluecestateestimatedresponsetime = $EST
EOF

condor_advertise -pool fermigrid1.fnal.gov UPDATE_STARTD_AD GCclassad.txt

