[pbs-devel] [PATCH proxmox-backup v2] report: better hardware and system utilization overview.
Hannes Duerr
h.duerr at proxmox.com
Fri Oct 24 14:18:30 CEST 2025
instead of `ls -l /dev/disk/by-id /dev/disk/by-path` the command
`bash -c ls -l /dev/disk/by-*` is beeing used which displays the discs not only
by-id and by-path, but also by-diskseq, by-label, by-uuid, and
by-partuuid, which can be very helpful when assigning iSCSI and
multipath devices.
The execution in bash allows the use of asterisks.
`dmidecode -t bios` outputs the current BIOS version and which allows to
determine whether certain fixes have already been implemented in the
version or not.
`lscpu` provides a good overview of the CPU being used, its flags, and
existing/non-existing mitigations.
`lspci -nnk` displays all PCI devices and the drivers used, which is often
helpful when troubleshooting.
`ip -details -statistics a` provides a detailed overview of the
available interfaces and statistics since the last boot. This
information is often helpful in addressing performance issues and
assessments.
Suggested-by: Sviatoslav Brylenko <s.brylenko at proxmox.com>
Signed-off-by: Hannes Duerr <h.duerr at proxmox.com>
---
Notes:
changes since V1:
* add bash -c to enable the usage of the asterics
src/server/report.rs | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/server/report.rs b/src/server/report.rs
index ca5f04fc..546555fb 100644
--- a/src/server/report.rs
+++ b/src/server/report.rs
@@ -82,10 +82,14 @@ fn commands() -> Vec<(&'static str, Vec<&'static str>)> {
"+HOTPLUG,ROTA,PHY-SEC,FSTYPE,MODEL,TRAN",
],
),
- ("ls", vec!["-l", "/dev/disk/by-id", "/dev/disk/by-path"]),
+ ("bash", vec!["-c", "ls -l /dev/disk/by-*/"]),
("zpool", vec!["status"]),
("zfs", vec!["list"]),
("arcstat", vec![]),
+ ("dmidecode", vec!["-t", "bios"]),
+ ("lscpu", vec![]),
+ ("lspci", vec!["-nnk"]),
+ ("ip", vec!["-details", "-statistics", "a"]),
]
}
--
2.47.3
More information about the pbs-devel
mailing list