#!/usr/bin/ksh ############################################################################### # # Module: log_full.sh # Author: Peter R. Schmidt # Description: Backup the Informix logical log when one is full # # Note: this script is intended to be called by alarmprog1.sh # if the EVENT_CLASS = 23 (log full) and you are using onbar for backups. # # Change Log # # Date Name Description................. # 09/25/00 Peter R. Schmidt Start Program # ############################################################################### PROG=`basename $0` USER_LIST=informix BACKUP_CMD="onbar -l" EXIT_STATUS=0 INFXBSA_SERVER=boa1 INFXBSA_SCHEDULED=1 INFXBSA_USER_INITIATED=1 INFXBSA_FULL=0 INFXBSA_INCR=0 INFXBSA_CLASS=infx_logs INFXBSA_LOGICAL_CLASS=infx_logs INFXBSA_LOGICAL_SCHED=Default-Policy export INFXBSA_SERVER export INFXBSA_SCHEDULED export INFXBSA_USER_INITIATED export INFXBSA_FULL export INFXBSA_INCR export INFXBSA_CLASS export INFXBSA_LOGICAL_CLASS export INFXBSA_LOGICAL_SCHED EVENT_SEVERITY=$1 EVENT_CLASS=$2 EVENT_MSG="$3" EVENT_ADD_TEXT="$4" EVENT_FILE="$5" case "$EVENT_CLASS" in 23) # onbar assumes no operator is present, # so all messages are written to the activity # log and there shouldn't be any output, but # send everything to /dev/null just in case $BACKUP_CMD 2>&1 >> /dev/null EXIT_STATUS=$? ;; # One program is shared by all event alarms. If this ever gets expanded to # handle more than just archive events, uncomment the following: *) # EXIT_STATUS=1 ;; esac exit $EXIT_STATUS