aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkshay Gaikwad <akgaikwad001@gmail.com>2021-03-01 13:49:22 +0530
committerJake Hunsaker <jhunsake@redhat.com>2021-03-04 10:17:46 -0500
commitbe7917f64a26041973d78094af5ab88472177514 (patch)
treeab5e69a02c91c0ca8e952786c6ae8c8873f3b4c7
parent41d07aef93af3fed0453d178cf1cdf470e3260d3 (diff)
downloadsos-be7917f64a26041973d78094af5ab88472177514.tar.gz
[ata] Add "smartcl -l scterc dev-name- command
"-l scterc" prints values and description of the SCT Error Recovery Control settings. Resolves: #2426 Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com> Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/report/plugins/ata.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/report/plugins/ata.py b/sos/report/plugins/ata.py
index 9063a845..6e1b7641 100644
--- a/sos/report/plugins/ata.py
+++ b/sos/report/plugins/ata.py
@@ -29,7 +29,8 @@ class Ata(Plugin, IndependentPlugin):
disk_path = os.path.join(dev_path, disk)
self.add_cmd_output([
"hdparm %s" % disk_path,
- "smartctl -a %s" % disk_path
+ "smartctl -a %s" % disk_path,
+ "smartctl -l scterc %s" % disk_path,
])