You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
name changes
This commit is contained in:
38
oamapps/columnstoreSupport/bulklogReport.sh
Executable file
38
oamapps/columnstoreSupport/bulklogReport.sh
Executable file
@ -0,0 +1,38 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# $Id: logReport.sh 421 2007-04-05 15:46:55Z dhill $
|
||||
#
|
||||
if [ $1 ] ; then
|
||||
MODULE=$1
|
||||
else
|
||||
MODULE="pm1"
|
||||
fi
|
||||
|
||||
if [ $2 ] ; then
|
||||
INSTALLDIR=$2
|
||||
else
|
||||
INSTALLDIR="/usr/local/MariaDB/Columnstore"
|
||||
fi
|
||||
|
||||
if [ $USER = "root" ]; then
|
||||
SUDO=" "
|
||||
else
|
||||
SUDO="sudo"
|
||||
fi
|
||||
|
||||
$SUDO rm -f /tmp/${MODULE}_bulklogReport.txt
|
||||
|
||||
{
|
||||
|
||||
if test -d $INSTALLDIR/data/bulk ; then
|
||||
echo " "
|
||||
echo "-- Check for Errors in Bulk Logs --"
|
||||
echo " "
|
||||
echo "################# egrep '(ERR|CRIT)' $INSTALLDIR/data/bulk/log/*.err #################"
|
||||
echo " "
|
||||
egrep '(ERR|CRIT)' $INSTALLDIR/data/bulk/log/*.err 2>/dev/null
|
||||
fi
|
||||
|
||||
} > /tmp/${MODULE}_bulklogReport.txt
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user