From 2291d0994b4e97bc504fa767ec80daef95545e8d Mon Sep 17 00:00:00 2001 From: pedro Date: Thu, 10 Oct 2024 19:10:46 +0200 Subject: [PATCH] add lspci command which was required by legacy server --- workbench-script.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workbench-script.py b/workbench-script.py index d7a823d..f46be36 100644 --- a/workbench-script.py +++ b/workbench-script.py @@ -249,11 +249,13 @@ def get_data(all_disks): lshw = 'sudo lshw -json' hwinfo = 'sudo hwinfo --reallyall' dmidecode = 'sudo dmidecode' + lspci = 'sudo lspci -vv' data = { 'lshw': json.loads(exec_cmd(lshw) or "{}"), 'disks': smartctl(all_disks), 'hwinfo': exec_cmd(hwinfo), - 'dmidecode': exec_cmd(dmidecode) + 'dmidecode': exec_cmd(dmidecode), + 'lspci': exec_cmd(lspci) } return data