Posted By

silviud on 05/28/11


Tagged

python unix linux dmidecode


Versions (?)

UUID - of motherboard


 / Published in: Python
 

  1. import dmidecode
  2.  
  3.  
  4. s = dmidecode.system()
  5.  
  6. for k,v in s.iteritems():
  7. if v.has_key('data'):
  8. if v['data'].has_key('UUID'):
  9. print v['data']['UUID']

Report this snippet  

You need to login to post a comment.