diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-06 18:04:32 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-06 18:04:32 +0200 |
commit | a7f89980e5b3f4b9a74c70dbc5ffe8aabd28be28 (patch) | |
tree | 41c4deec1fdfbafd7821b4ca7a9772ac0abd92f5 /scripts/checksel.cmd |
Imported Upstream version 2.9.3upstream/2.9.3
Diffstat (limited to 'scripts/checksel.cmd')
-rw-r--r-- | scripts/checksel.cmd | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/checksel.cmd b/scripts/checksel.cmd new file mode 100644 index 0000000..2897b76 --- /dev/null +++ b/scripts/checksel.cmd @@ -0,0 +1,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
+
|