From 406336c7185b539b5e00532b58146d5b1b73f259 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Wed, 1 Dec 2021 13:53:31 -0800 Subject: [PATCH] add iostat example --- EXAMPLES.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/EXAMPLES.md b/EXAMPLES.md index 5a6e28b3..2ebf448d 100644 --- a/EXAMPLES.md +++ b/EXAMPLES.md @@ -1516,6 +1516,50 @@ cat example.ini | jc --ini -p } } ``` +### iostat +```bash +$ iostat | jc --iostat -p # or: jc -p iostat +``` +```json +[ + { + "percent_user": 0.15, + "percent_nice": 0.0, + "percent_system": 0.18, + "percent_iowait": 0.0, + "percent_steal": 0.0, + "percent_idle": 99.67, + "type": "cpu" + }, + { + "device": "sda", + "tps": 0.29, + "kb_read_s": 7.22, + "kb_wrtn_s": 1.25, + "kb_read": 194341, + "kb_wrtn": 33590, + "type": "device" + }, + { + "device": "dm-0", + "tps": 0.29, + "kb_read_s": 5.99, + "kb_wrtn_s": 1.17, + "kb_read": 161361, + "kb_wrtn": 31522, + "type": "device" + }, + { + "device": "dm-1", + "tps": 0.0, + "kb_read_s": 0.08, + "kb_wrtn_s": 0.0, + "kb_read": 2204, + "kb_wrtn": 0, + "type": "device" + } +] +``` ### iptables ```bash iptables --line-numbers -v -L -t nat | jc --iptables -p # or: jc -p iptables --line-numbers -v -L -t nat