Issue
There is no interface to the piece of hardware that I'm trying to access the Serial number of, which makes it rather difficult to install new libararies. Also, memory is limited.
Any help is appreciated on how to extract serial number, thanks.
Solution
This looks like what you are querying is from the BIOS. The BIOS would contain a table of information about your hardware, serial numbers, etc.. this can be queried according to the SMBIOS standard. dmidecode reads this information from the table using this standard.
So alternatively, you may want to look into the standard and write code for reading the required information or serial numbers etc. or ask your hardware/firmware vendor if they have any libraries or hooks available for this purpose.
Answered By - askb Answer Checked By - David Marino (WPSolving Volunteer)