I use Status^JOURNAL in a shell script like this, to check the journaling status and generate an alert.
#!/bin/ksh
ccontrol list | grep -i running > $DB_STATUS_DET4
if [[ -s $DB_STATUS_DET4 ]] then
csession cache "Status^JOURNAL" > $DB_JRN_DET
cat $DB_JRN_DET | grep -i enabled > $DB_JRN_DET1
if [[ -s $DB_JRN_DET1 ]] then RC=0
else RC=1
fi
else exit
fi
if (( $RC > 0 )) then
echo "Artiva alert: JOURNALING is disabled at $(date +%x_%r)" >> $DB_JRN_MSG
exit $RC
else
exit $RC
fi
I want run a shell script for updating database max size, but not seeing any command shortcuts like Status^JOURNAL for getting database details.
- Log in to post comments