show type if not Ethernet switch
[dell-switch] / fans
1 echo "All fans breakdown by status:"
2 grep Fan log/*system* | cut -d: -f3 | sort | uniq -c
3 echo
4 echo "Failing fans:"
5 grep -B 15 'NOT' log/*system* | egrep '(NOT|Description|Type)' | grep -v -- '-Type: *Ethernet Switch' | sed -e 's/^[^_]*_//' -e 's/_[^-:]*[-:]/ /'
6