add lspci command
which was required by legacy server
This commit is contained in:
parent
3f4a23645d
commit
8c9b7983fe
|
@ -249,11 +249,13 @@ def get_data(all_disks):
|
||||||
lshw = 'sudo lshw -json'
|
lshw = 'sudo lshw -json'
|
||||||
hwinfo = 'sudo hwinfo --reallyall'
|
hwinfo = 'sudo hwinfo --reallyall'
|
||||||
dmidecode = 'sudo dmidecode'
|
dmidecode = 'sudo dmidecode'
|
||||||
|
lspci = 'sudo lspci -vv'
|
||||||
data = {
|
data = {
|
||||||
'lshw': json.loads(exec_cmd(lshw) or "{}"),
|
'lshw': json.loads(exec_cmd(lshw) or "{}"),
|
||||||
'disks': smartctl(all_disks),
|
'disks': smartctl(all_disks),
|
||||||
'hwinfo': exec_cmd(hwinfo),
|
'hwinfo': exec_cmd(hwinfo),
|
||||||
'dmidecode': exec_cmd(dmidecode)
|
'dmidecode': exec_cmd(dmidecode),
|
||||||
|
'lspci': exec_cmd(lspci)
|
||||||
}
|
}
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
Loading…
Reference in a new issue