/ Published in: Python
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import dmidecode s = dmidecode.system() for k,v in s.iteritems(): if v.has_key('data'): if v['data'].has_key('UUID'): print v['data']['UUID']