Quantcast
Channel: OKWAVE 最新質問(OS(技術者向け)/233)【本日】
Viewing all articles
Browse latest Browse all 9758

【Linux運用】 iowait値のみ取得する方法

$
0
0
Linux有識者の皆様 [ec2-user@ip-172-31-31-141 ~]$ vmstat procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 0 0 0 140708 40932 294144 0 0 18 13 16 40 0 1 99 1 0 vmstatでwa(iowait)列の値だけを取得したいと思います。(上記の場合1だけ取得したい。) 次のコマンドで取得できましたが、ほかに良い方法はありますでしょうか。 ■結果 ------------------------------------------------------------------------------ [ec2-user@ip-172-31-31-141 ~]$ vmstat | awk '{print $16}' | grep -v "wa" 1 ------------------------------------------------------------------------------ ご教授のほどよろしくお願い申し上げます。

Viewing all articles
Browse latest Browse all 9758

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>