test_done
fi
- printf "Checking Glue 2.0 root entry... "
+ printf "Checking Glue 1 root entry... "
$SYS_LDAPSEARCH -x -H ldap://${server}:2170 -b 'o=grid' > ldap.$$.out
if [ $? -gt 0 ]; then
test_failed
test_done
fi
+ printf "Checking ServiceStatus... "
+ health=`$SYS_GREP GlueServiceStatus: ldap.$$.out | $SYS_SED 's/^[^:]*: *//'`
+ if [ "$health" == "" ]; then
+ print_error "GlueServiceStatus not specified"
+ test_failed
+ else
+ printf "$health"
+ if [ "$health" == "OK" ]; then
+ test_done
+ else
+ test_failed
+ fi
+ fi
+
printf "Checking Glue 2.0 entry with 'o=glue'... "
$SYS_LDAPSEARCH -x -H ldap://${server}:2170 -b 'o=glue' > ldap.$$.out
if [ $? -gt 0 ]; then
test_done
fi
+ printf "Checking GLUE2 HealthStatus... "
+ health=`$SYS_GREP GLUE2EndpointHealthState: ldap.$$.out | $SYS_SED 's/^[^:]*: *//'`
+ if [ "$health" == "" ]; then
+ print_error "GLUE2EndpointHealthState not specified"
+ test_failed
+ else
+ printf "$health"
+ if [ "$health" == "ok" ]; then
+ test_done
+ else
+ test_failed
+ fi
+ fi
+
printf "Checking GlueServiceVersion... "
glservver=`$SYS_GREP GLUE2EndpointImplementationVersion ldap.$$.out | $SYS_SED 's/^.*GLUE2EndpointImplementationVersion:\s*//'`
if [ "$glservver" == "" ]; then
fi
fi
- printf "Checking HealthStatus... "
- health=`$SYS_GREP GLUE2EndpointHealthState: ldap.$$.out | $SYS_SED 's/^[^:]*: *//'`
- if [ "$health" == "" ]; then
- print_error "GLUE2EndpointHealthState not specified"
- test_failed
- else
- printf "$health"
- if [ "$health" == "ok" ]; then
- test_done
- else
- test_failed
- fi
- fi
-
rm ldap.$$.out
fi