aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAldo Sotolongo <aldenso@gmail.com>2017-09-19 13:15:49 -0400
committerBryn M. Reeves <bmr@redhat.com>2018-04-04 16:31:38 +0100
commit55be6b63c7a5df82a39571ff36479f6278e89ff1 (patch)
tree6abf2247cc9732a446dd05919b91f821f0850b07
parent0be652d6a69dfcdb7859209f110d465d67959b54 (diff)
downloadsos-55be6b63c7a5df82a39571ff36479f6278e89ff1.tar.gz
[zfs] Get zpool properties
Get properties output for all zpools. Closes: #1104 Signed-off-by: Aldo Sotolongo <aldenso@gmail.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/zfs.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/sos/plugins/zfs.py b/sos/plugins/zfs.py
index 5a406ffb..143087cf 100644
--- a/sos/plugins/zfs.py
+++ b/sos/plugins/zfs.py
@@ -33,4 +33,10 @@ class Zfs(Plugin, UbuntuPlugin, DebianPlugin):
"zpool status -x"
])
+ zpools = self.call_ext_prog("zpool list -H -o name")
+ if zpools['status'] == 0:
+ zpools_list = zpools['output'].splitlines()
+ for zpool in zpools_list:
+ self.add_cmd_output("zpool get all %s" % zpool)
+
# vim: set et ts=4 sw=4 :