#!/usr/local/bin/perl
# 
# $Header: emdb/sysman/admin/scripts/db/ob/ob_version.pl /st_emdbsa_11.2/1 2009/02/03 18:27:47 swbalasu Exp $
#
# ob_version.pl
# 
# Copyright (c) 2007, 2008, Oracle and/or its affiliates.All rights reserved. 
#
#    NAME
#      ob_version.pl - <one-line expansion of the name>
#
#    DESCRIPTION
#      <short description of component this file declares/defines>
#
#    NOTES
#      <other useful comments, qualifications, etc.>
#
#    MODIFIED   (MM/DD/YY)
#    swbalasu    09/09/08 - 
#    pfgavin     05/13/08 - 
#    swbalasu    10/30/07 - Creation
# 
require "$ENV{EMDROOT}/sysman/admin/scripts/db/ob/ob_common.pl";
init();

$ob_command="$OBTOOL --version";
OBrunOb();

if (rindex($rbug, "version") > -1)
{
   my @words = split(" ", $rbug);
   print "em_result=$words[2]";
}
else
{
   print "em_result=n/a";
   print "em_warning=$rbug";
}
exit 0;

