#!/bin/sh
#* ----------------------------------------------------------------------
#*               Proprietary and Confidential Information
#*
#* This material contains, and is part of a computer software program
#* which is, proprietary and confidential information owned by COMPUTER
#* ASSOCIATES INTERNATIONAL, INC.  The program, including this material,
#* may not be duplicated, disclosed or reproduced in whole or in part for
#* any purpose without the express written authorization of COMPUTER
#* ASSOCIATES. All authorized reproductions must be marked with this
#* legend.
#*
#*                          Copyright (c) 1992-2005
#*             Computer Associates International, Incorporated
#*                          All rights reserved
#*
#* ----------------------------------------------------------------------
#*  SCCS Module Control Stamp
#* ----------------------------------------------------------------------
#
#* "@(#)global_vars	1.48  03/01/05 11:39:02"
#* "Copyright (C) 1992-2005 Computer Associates International, Inc.  All rights reserved."
#
#
 
if [ "$CAIGLBL0000" = "" -o "$CASHCOMP" = "" ]; then

	return 0
fi

if [ -x "$CASHCOMP/bin/casystyp" ];then
        SYSTYPE="`$CASHCOMP/bin/casystyp`"
else
        SYSTYPE="`uname -s`"
fi

test -r "$CASHCOMP/csutils/scripts/calocale" && . "$CASHCOMP/csutils/scripts/calocale"

this_node=`$CASHCOMP/bin/ca_uname`


# Define the name of the CA-UNICENTER/Unix Admin database
# Note: Some components have their own database
CAIUNIDB=mdb
export CAIUNIDB
 
# Defines the directory holding the CA-Reporter report 
# definition modules used by CA-UNICENTER/Unix
CA_REPORT=$CAIGLBL0000/report/
export CA_REPORT
 
# Add CA-UNICENTER/Unix binary directories to the PATH 
# environment variable
. $CASHCOMP/csutils/scripts/addpath
if [ $SYSTYPE = NCR -a -d /usr/ucb ]; then
  ca_add_path /usr/ucb
fi
for dir in $CAIGLBL0000/bin $CA_DB/system $CAIGLBL0000/gui/bin
do
if [ -d $dir ]; then
ca_add_path $dir
fi
done
export PATH
 
# Define Criteria Manager CCI application id 
CAIGLBL0002=CACRITMON
export CAIGLBL0002
 
# Define CA-SNMP Trap Manager CCI application id 
CAIGLBL0006=CASNMPMGR
export CAIGLBL0006

# Define node name to receive "write to operator with reply" msgs.
# If this file is not present, then the default is the current node.
tfn=$CAIGLBL0000/opr/config/$this_node/cai_wtor_node
if [ -f $tfn ]; then
        CAI_WTOR_NODE=`cat $tfn`
	export CAI_WTOR_NODE
fi
 
# run secu/scripts/envusr to set CA_CAIDATEFMT
if [ -f $CAIGLBL0000/secu/scripts/envusr ]; then
. $CAIGLBL0000/secu/scripts/envusr
fi

# Determine whether CAmsgf messages go directly to OPR
if [ -f $CAIGLBL0000/opr/config/$this_node/camsgf_oprdirect ]; then
   CAI_CAMSGF_OPRDIRECT=YES
else
   CAI_CAMSGF_OPRDIRECT=
fi
export CAI_CAMSGF_OPRDIRECT

