projects
/
dell-switch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04acc48
)
nicer output of failing fans
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 6 Apr 2022 15:53:55 +0000
(17:53 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 6 Apr 2022 15:53:55 +0000
(17:53 +0200)
fans
patch
|
blob
|
history
diff --git
a/fans
b/fans
index
9125c73
..
31af2a4
100755
(executable)
--- a/
fans
+++ b/
fans
@@
-2,5
+2,5
@@
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 -B 15 'NOT' log/*system* | egrep '(NOT|Description|Type)'
| grep -v -- -Type: | sed -e 's/^[^_]*_//' -e 's/_[^-:]*[-:]/ /'