Somehow didn't think to check there. On VPS it works, uuid is there and again matches the hwinfo data. While there are small errors in the code, fields are creeping away. Will fix it later today. Newbies wait to test for now.
2021.03.2317:57:50.344 Test SMBIOS (EURUSD,M1) System Management BIOS Version: 2.42021.03.2317:57:50.344 Test SMBIOS (EURUSD,M1) System BIOS Version: 1.02021.03.2317:57:50.344 Test SMBIOS (EURUSD,M1) BIOS Vendor: Seabios
2021.03.2317:57:50.344 Test SMBIOS (EURUSD,M1) BIOS Version: 0.5.12021.03.2317:57:50.344 Test SMBIOS (EURUSD,M1) BIOS Release Date: 01/01/20072021.03.2317:57:50.344 Test SMBIOS (EURUSD,M1) UUID: {1 b037b14-66 a9-8894-dc89-e5ec77223c29}
2021.03.2317:57:50.344 Test SMBIOS (EURUSD,M1) System Manufacturer: Red Hat
2021.03.2317:57:50.344 Test SMBIOS (EURUSD,M1) Product Name: KVM
2021.03.2317:57:50.344 Test SMBIOS (EURUSD,M1) Product Version: RHEL 6.6.0 PC
2021.03.2317:57:50.344 Test SMBIOS (EURUSD,M1) Product Serial Number: Red Hat Enterprise Linux
2021.03.2317:57:50.344 Test SMBIOS (EURUSD,M1) SKU Number: Red Hat
2021.03.2317:57:50.344 Test SMBIOS (EURUSD,M1) Family: CPU 12021.03.2317:57:50.344 Test SMBIOS (EURUSD,M1) Mainboard Manufacturer: Bochs
2021.03.2317:57:50.344 Test SMBIOS (EURUSD,M1) Mainboard Version: DIMM 02021.03.2317:57:50.344 Test SMBIOS (EURUSD,M1)
2021.03.2317:57:50.344 Test SMBIOS (EURUSD,M1) UUID: {1 b037b14-66 a9-8894-dc89-e5ec77223c29}
2021.03.2317:57:50.344 Test SMBIOS (EURUSD,M1) Product Serial Number: Red Hat Enterprise Linux
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
The uuid on my computer matches the hwinfo data exactly. The conversion code is taken from the c++ example.
In hwinfo which one do you have?
I have Wine
But in the /etc/libvirt/qemu/u18.04-MTr.xml file of the host where this VM is spinning:
Can't find the uuid anywhere
I have Wine
But in the /etc/libvirt/qemu/u18.04-MTr.xml file of the host where this VM is spinning:
It turns out that in wine SMBIOS does not return an emulated value, but a hardware value. And that's a good thing. Try running hwinfo.
My code took the uuid exactly from the block:
which is listed in dmidecode.
Can't find the uuid anywhere
How will it work on UPU and Vine?
Somehow didn't think to check there. On VPS it works, uuid is there and again matches the hwinfo data. While there are small errors in the code, fields are creeping away. Will fix it later today. Newbies wait to test for now.
From the command line
From a script
Try running hwinfo.
I don't want to drag unnecessary software onto a combat system, especially not a Windows program.
All that remains is to remove all unnecessary stuff from the mqh, leaving only the lines for getting the uuid
Ideally, move a few lines into the script itself
On a VPS:
On a VPS:
I wish someone had checked the VPS.