From 86f951b2b821c24e07a434e8d62eb7d0f6e061ca Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 23 May 2021 10:35:20 +0200 Subject: op-mode: storage: T3572: add S.M.A.R.T. status support vyos@vyos:~$ show hardware storage nvme Node SN Model Namespace Usage Format FW Rev ---------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- -------- /dev/nvme0n1 S437Nxxxxxxxxx SAMSUNG MZQLB960HAJR-00007 1 25.17 GB / 960.20 GB 512 B + 0 B EDA5202Q /dev/nvme1n1 S437Nxxxxxxxxx SAMSUNG MZQLB960HAJR-00007 1 38.36 GB / 960.20 GB 512 B + 0 B EDA5202Q vyos@vyos:~$ show hardware storage smart nvme0n1 === START OF INFORMATION SECTION === Model Number: SAMSUNG MZQLB960HAJR-00007 Serial Number: S437Nxxxxxxxxx ... (cherry picked from commit 2e44365dad5f8dd6a495070d36c590319a421c28) --- op-mode-definitions/show-hardware.xml.in | 34 ++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/show-hardware.xml.in b/op-mode-definitions/show-hardware.xml.in index 0df2e4404..20fdd753d 100644 --- a/op-mode-definitions/show-hardware.xml.in +++ b/op-mode-definitions/show-hardware.xml.in @@ -53,18 +53,40 @@ - + - Show SCSI device information + Show system storage information - lsscsi - + + + Show NVMe device information + + sudo nvme list + + - Show detailed SCSI device information + Show SCSI device information - lsscsi -vvv + lsscsi + + + + Show detailed SCSI device information + + lsscsi -vvv + + + + + Show S.M.A.R.T. device information + + + + + sudo smartctl -a "/dev/$5" | sed 1,3d + -- cgit v1.2.3