New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grab baseboard info #96
Comments
Hi @stdatiks, The issue with Can you tell me what specifically you are trying to determine about the motherboard? Is there a particular piece of the information listed above that you are looking for? Perhaps the vendor/product information only? Or is your application simply trying to inventory as much detailed information as possible about the systems under your control? Or something entirely different? If you don't mind requiring execution as root, I think it would be relatively simple to have your application do an |
ping. @stdatiks did you have any more information for me? Wondered what your thoughts are on my questions above? |
Ok, I see. I need something like I thought your library was using something like https://github.com/digitalocean/go-smbios (see at https://blog.gopheracademy.com/advent-2017/accessing-smbios-information-with-go/). But I looked at the source and realized that I was wrong. |
From the digitalocean/go-smbios library README, you'll note the following: "Note that retrieving SMBIOS information is a privileged operation. On Linux, you may invoke the binary as root directly, or apply the CAP_DAC_OVERRIDE capability to enable reading the information without superuser access." At this time, ghw tries very hard to do things without needing superuser privileges, and that means we don't attempt to access filesystem locations like If in the future I decide to relax that architectural design constraint in For now, though, I'm afraid you'll need to have your application use the |
Need some baseboard info, like in
dmidecode --type baseboard
output:The text was updated successfully, but these errors were encountered: