tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: sysinfo crate
On Tue, 18 Nov 2025, pin wrote:
Now with text ...
Hi,
The sysinfo crate just added support for NetBSD, got this from the main dev about one hour ago.
https://github.com/GuillaumeGomez/sysinfo/issues/631#issuecomment-3546953354
Any comments on his questions?
Not done in this PR:
- Product/Motherboard information seems to not work and is incomplete
- Temperature information is not retrieved
- Process::open_files
For 3, I belive we need xdg-open from the xdg-utils package. At least that's what I usually use.
For 2, I got the suggestion from @wiz to point him at
https://github.com/0-wiz-0/rust-envsys/blob/main/README.md
For 1, I'm aware of:
~> sysctl hw.machine_arch hw.model hw.ncpu hw.usermem64
hw.machine_arch = x86_64
hw.model = Intel 686-class
hw.ncpu = 4
hw.usermem64 = 9703772160
But that doesn't give product/motherboard.
Any other suggestions/ideas?
On x86 try machdep.dmi:
# sysctl machdep.dmi
machdep.dmi.system-vendor = Lenovo
machdep.dmi.system-product = ThinkSystem SR530 -[7X08CTO1WW]-
machdep.dmi.system-version = 08
machdep.dmi.system-serial = XXXXXXX
machdep.dmi.system-uuid = 9964d746-85d1-11e8-b364-xxxxxxxxxxxx
machdep.dmi.bios-vendor = Lenovo
machdep.dmi.bios-version = -[TEE186H-4.21]-
machdep.dmi.bios-date = 20250428
machdep.dmi.board-vendor = Lenovo
machdep.dmi.board-product = -[7X08CTO1WW]-
machdep.dmi.board-version = 08
machdep.dmi.board-serial = XXXXXXXXXXXXXXXXX
machdep.dmi.board-asset-tag = none
machdep.dmi.chassis-vendor = Lenovo
machdep.dmi.chassis-version = none
machdep.dmi.chassis-serial = XXXXXXX
machdep.dmi.chassis-asset-tag = none
machdep.dmi.processor-vendor = Intel(R) Corporation
machdep.dmi.processor-version = Intel(R) Xeon(R) Bronze 3104 CPU @ 1.70GHz
machdep.dmi.processor-frequency = 1700 MHz
--
Stephen
Home |
Main Index |
Thread Index |
Old Index