summaryrefslogtreecommitdiff
path: root/scripts/checksel.cmd
blob: 2897b76449afde39cea31767da54de7d9ad1decc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@echo off
REM  checksel.cmd
REM  This at script runs ipmiutil sel, writing any new records to syslog, 
REM  and will then clear the SEL if free space is low.

REM  Get path from arg 0
set ipmiutildir=%~d0%~p0

cd %ipmiutildir%
cmd /c %ipmiutildir%\ipmiutil sel -w | findstr /c:"WARNING: free space" 
if errorlevel 1 goto done
cmd /c %ipmiutildir%\ipmiutil sel -d

:done