Skip to content

Latest commit

 

History

History
19 lines (19 loc) · 538 Bytes

README.md

File metadata and controls

19 lines (19 loc) · 538 Bytes

Linux-HW-Info

Supported HW

chassis, system, cpu, mainboard, dimm, gpu, psu, nic, transceiver

Platform

linux / python3

Requirements

  • one of nvidia-smi or nvflash required to collect gpu meta info
  • lshw required to collect nic meta info

Usage

import module

from hw_info_collector import HWInfoCollector
hw_info_collector = HWInfoCollector()
hw_info = hw_info_collector.get_hw_meta_info()  # json object returned

run directly

python hw_info_collector.py # display the result of json object