Skip to content

Commit

Permalink
make iostat output colorful in watch
Browse files Browse the repository at this point in the history
  • Loading branch information
klaus-tux committed Feb 18, 2023
1 parent 116d979 commit dd9f622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdadm-monitor.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
watch -n 1 'mdadm --detail /dev/md1 | head -n21 | egrep -vi "(total|active|working|spare|failed) devices" ; echo ; ls -l /dev/disk/by-id | grep WD120 | grep -v part | awk "{print \$11}" | sed "s#../../#/dev/#" | xargs iostat --human -xy 1 1'
watch -c -n 1 'mdadm --detail /dev/md1 | head -n21 | egrep -vi "(total|active|working|spare|failed) devices" ; echo ; ls -l /dev/disk/by-id | grep WD120 | grep -v part | awk "{print \$11}" | sed "s#../../#/dev/#" | S_COLORS=always xargs iostat --human -xy 1 1'

0 comments on commit dd9f622

Please sign in to comment.