Created
January 14, 2015 10:25
-
-
Save gl-works/7422a855d7dc9e83d695 to your computer and use it in GitHub Desktop.
iostat, awk, disk activity, 活动磁盘监测
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| iostat -d 3 1000 -x | awk '{if($12 > 1.00) printf "%s %3d %5d %5d\n",$1,$12,$6,$7}' | |
| Sample output | |
| sdi 100 59880 76938 | |
| sdi 99 76296 77264 | |
| sdi 99 70120 60621 | |
| sdi 99 52450 58949 | |
| sdb 1 31 2790 | |
| sdi 99 40138 42854 | |
| sdf 1 90 3485 | |
| sdi 100 67120 56194 | |
| sdl 1 32 2762 | |
| sdi 99 65648 64712 | |
| sdi 91 66709 97341 | |
| sdc 1 16 2762 | |
| sdi 50 834 682 | |
| sdi 94 1248 541 | |
| sdj 2 1626 709 | |
| sdi 33 509 3037 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment