# $Header: checkCollectionOid.pl 25-jun-2002.10:02:54 xxu Exp $ # # checkCollectionOid.pl # # Copyright (c) 2001, 2002, Oracle Corporation. All rights reserved. # # NAME # checkCollectionOid.pl - # # DESCRIPTION # Checks the status of the oid metric collection # # Usage: getOIDver.pl $ORACLE_HOME # # MODIFIED (MM/DD/YY) # xxu 06/25/02 - remove /usr/local/bin/perl # achoudha 12/07/01 - # achoudha 12/07/01 - # achoudha 12/07/01 - Creation # $ENV{ORACLE_HOME} = $ARGV[0]; print "$ARGV[0]/bin/ldapsearch -h $ARGV[2] -p $ARGV[1] -b \"\" -s base \"objectclass=*\" orclstatsflag|grep orclstatsflag |cut -f2 -d =\n" ; $VAL = `$ARGV[0]/bin/ldapsearch -h $ARGV[2] -p $ARGV[1] -b \"\" -s base \"objectclass=*\" orclstatsflag|grep orclstatsflag |cut -f2 -d =`; print("$VAL"); exit 0;