Node hardware information

rumart

New Member
Nov 7, 2024
3
0
1
Hello
I've been searching for a way to read more information about the hardware for a host/node. I.e. the Hardware model, serial number, nic model etc.

I know there's a way to get the CPU model with it's speed, sockets and cores. But I would like to get similar information for the actual server hardware. Like the manufacturer, model name and the serial number. And for Network interfaces I would like to get the manufacturer, speed, etc

Anyone know if it's possible and if so, how to retrieve this programatically through the Proxmox APIs?
 
  • lscpu
  • dmidecode
  • lshw (needs to be installed via apt get install lshw first; it gives me 822 lines of output by default)
  • ...
 
Thanks @UdoB
I have this as a plan B, but would like to use the PVE API to retrieve at least a subset of the information..
 
The endpoint
Code:
/api2/json/nodes/{node}/report
seems to dump a whole lot, but a bit clunky to read.. And even there I can't seem to find e.g. the serial number of the host