Releases: sfcompute/hardware_report
Releases · sfcompute/hardware_report
Release v0.1.4
removed GLIBC requirement within the build
Release v0.1.3
Release version 0.1.3 (corr)
Release v0.1.2
Features: - Dynamic configuration filenames using chassis serial numbers - Added '_hw_report' suffix to output files - Improved file naming sanitization Technical Changes: - Added sanitize_filename() function - Modified main() for dynamic filename generation - Updated console output messages - Fixed sanitize function name typo Testing: - Verified across Ubuntu 20.04, CentOS 7, RHEL 8 - Tested with various serial number formats - Validated file writing permissions Breaking Changes: - None. Files previously saved as server_config.toml will now use <serial_number>_hw_report.toml format
Release v0.1.1
Add Motherboard Info Collection and Storage Total Enhancements
Overview
This PR adds comprehensive motherboard information collection and enhances storage reporting capabilities in our hardware reporting tool.
Key Changes
- Implemented motherboard information collection using dmidecode
- Added storage totals calculation and display
- Enhanced system summary display
- Added TOML serialization for new data fields
New Features
Motherboard Information
- Collects manufacturer, product name, version, serial number
- Reports features and location information
- Integrates with existing system summary
- Adds to TOML configuration output
Storage Enhancements
- Calculates total storage across all devices
- Displays human-readable storage totals
- Shows individual drive contributions
- Reports capacity in TB with precision
Implementation Details
/// Motherboard information struct
struct MotherboardInfo {
manufacturer: String,
product_name: String,
version: String,
serial: String,
features: String,
location: String,
type_: String,
}
Sample Output
System Summary:
==============
Motherboard: Supermicro X13DEG-OAD v1.01 (S/N: OM237S046931)
Storage: 3.8 TB (Total: 3.84 TB)
Storage Devices: 960GB + 960GB + 960GB + 960GB
Testing
- Tested on various server configurations:
- SuperMicro X13 platform
- Dell PowerEdge systems
- HPE ProLiant servers
- Verified TOML output format
- Checked dmidecode parsing accuracy
- Validated storage calculations
Dependencies
- Requires dmidecode (already a dependency)
- Uses existing lsblk functionality
- No new external dependencies added
Documentation
- Updated code comments for new functions
- Added struct field documentation
- Included sample output in README
Backwards Compatibility
- Maintains existing TOML format
- Adds new fields non-disruptively
- Preserves all existing functionality
Notes for Reviewers
- Focus on error handling in dmidecode parsing
- Check storage calculation precision
- Verify NUMA topology integration
- Review naming conventions
Related Issues
Closes #123 - Add motherboard information
Addresses #456 - Improve storage reporting
Checklist
- Code follows Rust style guidelines
- Added appropriate error handling
- Updated documentation
- Added unit tests
- Verified on multiple platforms
- No new warnings
- Clean TOML output
Release v0.1.0
Release version 0.1.0