projects
/
dell-switch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7693e79
)
track /dev/shm/fans in git
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 17 Aug 2022 14:55:37 +0000
(16:55 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 17 Aug 2022 14:55:37 +0000
(16:55 +0200)
fans
patch
|
blob
|
history
diff --git
a/fans
b/fans
index
2bac565
..
fefc43b
100755
(executable)
--- a/
fans
+++ b/
fans
@@
-1,6
+1,9
@@
+(
echo "All fans breakdown by status:"
grep Fan log/*system* | cut -d: -f3 | sort | uniq -c
echo
echo "Failing fans:"
grep -B 15 'NOT' log/*system* | egrep '(NOT|Description|Type)' | grep -v -- '-Type: *Ethernet Switch' | sed -e 's/^[^_]*_//' -e 's/_[^-:]*[-:]/ /'
-
+) | tee /dev/shm/fans
+git -C /dev/shm add fans
+git -C /dev/shm commit -m fans