Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature: Hardware View
Show a summary of the notable hardware of the currently connected system.
- System identification
- What type of system is this? (Make & Model #)
- What is the CPU and its clockspeed?
- Hardware upgrades
- How much RAM is in use?
- What type of module is needed to add more RAM? (Based on currently used type.)
- Are there free slots or will the RAM need replacing?
- What model of disk is in use?
- Is there a GPU?
- Is the GPU model appropriate for running AI related tasks?
- How fast is the card? (Ex.: Does the network card support gigabit?)
- Available slots (PCI, DIMMs, etc.)
This should be on the /system page, possibly a link behind "Hardware".
Assinging hardware to a VM has a completely different scope, use case, location, and design. This is an independent piece of work._
Source of data
Grabbing the data from a system uses the
lshw tool, called like so:
sudo lshw -sanitize -html > hardware-`hostname`.html
Then, pass the data into a script called
devices2yaml.rb located in the
cockpit-mockweb repo. It needs certain gems to run; checking out mockweb and running
bundle install will set up dependencies. (Requires Ruby and Bundler.)