blob: 01711b0cbff7b6501fc2e5864563ad6bc16d0e9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/usr/bin/env python2.4
import dmidecode
import sys
from pprint import pprint
#. Test reading the dump...
print "*** bios ***\n"; pprint(dmidecode.bios())
print "*** system ***\n"; pprint(dmidecode.system())
print "*** system ***\n"; pprint(dmidecode.system())
print "*** baseboard ***\n"; pprint(dmidecode.baseboard())
print "*** chassis ***\n"; pprint(dmidecode.chassis())
print "*** processor ***\n"; pprint(dmidecode.processor())
print "*** memory ***\n"; pprint(dmidecode.memory())
print "*** cache ***\n"; pprint(dmidecode.cache())
print "*** connector ***\n"; pprint(dmidecode.connector())
print "*** slot ***\n"; pprint(dmidecode.slot())
for v in dmidecode.memory().values():
if type(v) == dict and v['dmi_type'] == 17:
pprint(v['data']['Size']),
pprint(dmidecode.type(3))
|