watch -n1 snmptable -v2c -c public localhost diskIOTable

Show simple disk IO table using snmp

Show a simple table with disk IO for the specified host. you monitor a LOT of different thing. Mostly used for MRTG and similar, but this is nice for a quick look, which disk is busy. "public" is your SNMP community ensure that snmpd is running on the host which you intend to monitor
Sample Output
SNMP table: UCD-DISKIO-MIB::diskIOTable

 diskIOIndex diskIODevice diskIONRead diskIONWritten diskIOReads diskIOWrites diskIOLA1 diskIOLA5 diskIOLA15 diskIONReadX diskIONWrittenX
          17          sda   584613888     1428402176    13914979    267963215         ?         ?          ? 357066899456    667148333056
          18         sda1   280805376       21175296        6642         3423         ?         ?          ?    280805376        21175296
          19         sda2    25480192              0        1310            0         ?         ?          ?     25480192               0
          20         sda3   253158400     1407226880    13905929    267959792         ?         ?          ? 356735443968    667127157760
          21         sda4    24928256              0        1079            0         ?         ?          ?     24928256               0
          22          sdb  3615167488     1063622656    25348119    316090884         ?         ?          ? 622090458112   1521482045440
          23         sdb1   441298944       53754880       10517        11985         ?         ?          ?    441298944        53754880
          24         sdb2   197819392      125833216       17929         1246         ?         ?          ?    197819392       125833216
          25         sdb3  2009035776     1397529600    16372147    305225907         ?         ?          ? 556059816960   1036484647936
          26         sdb4   966726656     3781464064     8947501     10851744         ?         ?          ?  65391236096    484817801216

4
By: oernii2
2010-03-19 11:31:52

These Might Interest You

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: