Skip to content
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

Implement --oem-string N #27

Closed
jrgerber opened this issue Mar 25, 2021 · 2 comments · Fixed by #31
Closed

Implement --oem-string N #27

jrgerber opened this issue Mar 25, 2021 · 2 comments · Fixed by #31
Assignees
Labels
enhancement New feature or request

Comments

@jrgerber
Copy link
Owner

       --oem-string N
          Only display the value of the OEM string number N. The first OEM
          string has number 1. With special value "count", return the
          number of OEM strings instead.

Investigate how it is implemented here: https://github.com/mirror/dmidecode/blob/master/dmidecode.c

@jrgerber jrgerber added the enhancement New feature or request label Mar 25, 2021
@jczuluag jczuluag self-assigned this Apr 8, 2021
@jczuluag
Copy link
Collaborator

jczuluag commented Apr 8, 2021

@jrgerber, looking at the spec, this is OEM Strings (Type 11) struct. Wondering if the right approach would be to get this type and then handle whether is N or count?

@jrgerber
Copy link
Owner Author

jrgerber commented Apr 8, 2021

@jrgerber, looking at the spec, this is OEM Strings (Type 11) struct. Wondering if the right approach would be to get this type and then handle whether is N or count?

That sounds correct. I imagine this might be used at large companies, for example they have devices like HP or Dell and then they know what will be at OEM string 3 and they collect from all the devices?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants