#!/bin/ksh #set -x ############################################################################### # # Title : ingres/scripts/get_ingres_snapshot # # Description : Shows all activities for the ingres installation. # # Date : 24 June 1999 # # Author : Mark Ramsay # # History # # When Who What ############################################################################### ############################################################################### # Define variables ############################################################################### #. ~ingres/.profile #. ~/scripts/standard_functions progname=$(basename $0) logfile=/tmp/$progname.$(date +%a%R) LOGDIR=~/workdir/trace TEMPA=${LOGDIR}/servers.$$ exec 2>&1 > ${logfile} # send all output to logfile iinamu <${TEMPA} show ingres quit EOT for SERVER in `cat ${TEMPA} | awk ' /^IINAMU/ { print $4 } /^INGRES / { print $3 } ' ` do SERVER_LOG=${LOGDIR}/${SERVER}_dmf420.`date '+%d%m%H%M'` export II_DBMS_SERVER=${SERVER} `sql iidbdb < /dev/null set trace output '${SERVER_LOG}' \g set trace point dm420 \g \q EOT` done rm -f $TEMPA