title: how to get motherboard serial number when /sys/class/dmi is not available on linux?
body: <p>I need to bind the software key with the motherboard. </p>
  
  <p>Everything seems ok on systems like Slackware, Debian and Arch which run as virtual machines in VirtualBox. (<code>/sys/class/dmi/id/product_uuid</code>)</p>
  
  <p>Now we have industry pcs, which have Arch linux and when i try to find the information about motherboard it seems to be absent. There is no folder /sys/class/dmi. I then installed <code>dmidecode</code> and it failed to retrieve information with error <code>No SMBIOS nor DMI entry point found, sorry.</code></p>
  
  <p>Is there another way of getting the information i need?</p>
  
  <p>If you know another, alternate or better, way of binding SW to HW then please do tell, but our goal is to let clients upgrade RAM, HDD, NIC or VGA without having us generate software serial for the new PC layout.</p>
  
  <p>EDIT1: The software is created using c++, at this point i was only thinking of how to get the information using the bash script, as i can easily run the commands from my c++ program and get the output needed, but maybe there is another way using some c++ functions?</p>