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