VyOS appears to be able to pull basic SCSI data, which is great, but I think it needs more. Commonly we run systems with SSDs or NVMe drives, and being able to use smartctl and nvme is important in checking for signs of failure such as pending sectors and SMART errors. I would like to propose that a basic operational mode command is added to show the information for both.
For the output of nvme list
trae@cr01a-vyos:~$ show hardware nvme Node SN Model Namespace Usage Format FW Rev ---------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- -------- /dev/nvme0n1 SNREMOVED Samsung SSD 980 PRO 2TB 1 1.87 TB / 2.00 TB 512 B + 0 B 2B2QGXA7 /dev/nvme1n1 SNREMOVED Samsung SSD 980 PRO 2TB 1 1.87 TB / 2.00 TB 512 B + 0 B 2B2QGXA7
and for the output of smartctl -a /dev/<device>
trae@cr01a-vyos:~$ show hardware smart <device> smartctl 7.1 2020-04-05 r5049 [x86_64-linux-4.18.0-240.22.1.el8_3.x86_64] (local build) Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Number: Samsung SSD 980 PRO 2TB Serial Number: REMOVED Firmware Version: 2B2QGXA7 PCI Vendor/Subsystem ID: 0x144d IEEE OUI Identifier: 0x002538 Total NVM Capacity: 2,000,398,934,016 [2.00 TB] Unallocated NVM Capacity: 0 ......removed for brevity...... Error Information (NVMe Log 0x01, max 64 entries) No Errors Logged