#!/bin/sh # # checksel # # This script runs showsel, writing any new records to syslog, and # will then clear the SEL if free space is low. # # app=`basename $0` # pdir=`echo $0 |sed -e "s/$app//"` pdir=/usr/sbin $pdir/ipmiutil sel -w |grep "WARNING: free space" if [ $? -eq 0 ] then $pdir/ipmiutil sel -c fi