参考:http://www.360doc.com/content/12/0131/16/2660674_183157204.shtml
>>> import commands
>>> (status,output)=commands.getstatusoutput("dmidecode |grep 'UUID' | awk '{print $2}'")
>>> print status,output
0 2556189C-E200-4D62-95F2-457B3359FBE1
>>>
参考:http://www.360doc.com/content/12/0131/16/2660674_183157204.shtml
>>> import commands
>>> (status,output)=commands.getstatusoutput("dmidecode |grep 'UUID' | awk '{print $2}'")
>>> print status,output
0 2556189C-E200-4D62-95F2-457B3359FBE1
>>>