| Server IP : 217.113.158.245 / Your IP : 216.73.217.83 Web Server : Apache/2.4.41 (Ubuntu) System : Linux bg-hoster 5.4.0-200-generic #220-Ubuntu SMP Fri Sep 27 13:19:16 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.27 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /etc/cron.daily/ |
Upload File : |
#!/bin/sh
#
# checksel
#
# This script runs ipmiutil sel, writing any new records to syslog,
# and will then clear the SEL if free space is low.
#
# The IPMI SEL should not normally be cleared, because the history
# of the events is important, but if the IPMI SEL fills up, no new
# events are logged, so saving the previous SEL events and clearing
# the SEL must be done occasionally, as needed.
#
# app=`basename $0`
# pdir=`echo $0 |sed -e "s/$app//"`
pdir=/usr/bin
ddir=/var/lib/ipmiutil
# First check to see if the IPMI SEL is enabled on this system.
# If not, do nothing else.
$pdir/ipmiutil sel -v >/dev/null 2>&1
if [ $? -eq 0 ]; then
# Write new SEL events to syslog, and check if free space is low
$pdir/ipmiutil sel -w |grep "WARNING: free space"
if [ $? -eq 0 ]; then
today=`date +%y%m%d`
# The old SEL records are in syslog, but save a copy in $ddir also.
$pdir/ipmiutil sel -e >$ddir/ipmisel_${today}.txt
# Clear the IPMI SEL
$pdir/ipmiutil sel -d
fi
fi