#!/bin/sh # # $Header: has/crfutl/oclumon.sbs /main/9 2010/05/12 21:28:26 jchandar Exp $ # # oclumon.sh # # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. # # NAME # oclumon.sh - Wrapper around cmdline tool. # # DESCRIPTION # This just provides a wrapper around the cmdline based tool which can # used to interact with the loggerd server. You can access trail data # visually using this tool. # # NOTES # Placeholder for now. # # MODIFIED (MM/DD/YY) # jchandar 05/12/10 - fix backtick problem # shullur 03/22/10 - For fixing brace issue for solaris # sujkumar 11/26/08 - remove double quoting of args # sujkumar 10/13/08 - shell chops double quote # sujkumar 08/14/08 - linux nt port # sukumar 06/18/08 - Fallback path for CRFHOME. # mprasant 03/31/08 - rename oclumon executable to oclumon.bin # anutripa 01/23/08 - quoting of arguments # srisanka 12/07/07 - Creation # ECHO=/bin/echo CRF_HOME=%CRFHOME% if [ ! -d "$CRF_HOME" ] then # this can happen if oclumon is called outside of ADE # e.g. to get master key. We don't really invoke ADE # and hence SRCHOME won't be set. # # or if someone forgot to run finalize on istall. CRF_HOME=`dirname \`dirname $0\`` SRCHOME=`dirname $CRF_HOME` fi if [ ! -d "$CRF_HOME" ] then $ECHO "" $ECHO "Invalid CRFHOME. Did you miss the crfinst.pl -finish under 'root'?" $ECHO "" exit 1 fi perl $CRF_HOME/bin/oclumon.pl "$@"