[pve-devel] [PATCH manager 5/5] Report: add info about PCI devices

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Mar 2 09:39:00 CET 2018


Good to have when a NIC or other peripheral devices does not works.

Flags used:
-k  Show kernel drivers handling each device and also kernel modules
    capable of handling it.
-nn Show PCI vendor and device codes as both numbers and names.

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 PVE/Report.pm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/PVE/Report.pm b/PVE/Report.pm
index fa943bea..375c5aa3 100644
--- a/PVE/Report.pm
+++ b/PVE/Report.pm
@@ -51,6 +51,9 @@ my $report_def = {
     bios => [
 	'dmidecode -t bios',
     ],
+    pci => [
+	'lspci -nnk',
+    ],
     disks => [
 	'lsblk --ascii',
     ],
@@ -61,7 +64,7 @@ my $report_def = {
 };
 
 my @report_order = ('general', 'storage', 'virtual guests', 'network',
-'firewall', 'cluster', 'bios', 'disks', 'volumes');
+'firewall', 'cluster', 'bios', 'pci', 'disks', 'volumes');
 
 push @{$report_def->{volumes}}, 'zpool status', 'zfs list' if cmd_exists('zfs');
 
-- 
2.14.2





More information about the pve-devel mailing list