#!/bin/ksh # $Id: ovo,v 1.10 2008/10/26 18:53:16 ksb Exp $ # We're a netlint plugin that checks which OVO server we report to. (petef,ksb) #****p* netlint/ovo # NAME # ovo # DESCRIPTION # Nodes that run the OVO daemon report the name of their management server. #*** PROGNAME=`basename $0` : ${CARP:=echo} if [ _"$1" = _"-V" ]; then echo "$PROGNAME: "'$Id: ovo,v 1.10 2008/10/26 18:53:16 ksb Exp $' exit 0 fi export CARP OS=`uname -s` OVODIR="/opt/OV/bin" PSARGS="auwx" case "_$OS" in _SunOS|_HP-UX) PSARGS="-ef" ;; _AIX) OVODIR="/usr/lpp/OV" ;; esac RUNNING=`ps $PSARGS | egrep [o]pc_op` [ -z "$RUNNING" ] && exit if [ -f $OVODIR/ovconfget ]; then MGMTSVR=`$OVODIR/ovconfget | grep ^MANAGER= | awk -F"=" '{ print $2 }'` elif [ -f $OVODIR/OpC/install/opcinfo ]; then MGMTSVR=`sed -n -e 's,^OPC_MGMT_SERVER \(.*\),\1,p' $OVODIR/OpC/install/opcinfo` elif [ -s /var/opt/OV/conf/OpC/primmgr ]; then MGMTSVR=`head -1 /var/opt/OV/conf/OpC/primmgr | awk '{print $2}'` fi #****a* ovo/OVO_MGMTSVR # NAME # OVO_MGMTSVR # FORMAT # OVO_MGMTSVR: nodename # DESCRIPTION # The name of the OVO management node we report to. # # The reporter integrates the list of managed nodes with the list of clients, # any missing nodes, nodes reporting to the wrong server, or extra nodes are # noted. # IMPACT # Messages sent to the wrong OVO server are lost. Reports of full file # systems, down applications, or hardware errors will be dropped, which could # result in a major issue impact to production. # REMEDIATION # Tune OVO, which is beyond the scope of this document. #*** $CARP "OVO_MGMTSVR: $MGMTSVR" exit 0