-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTODO
More file actions
20 lines (18 loc) · 732 Bytes
/
Copy pathTODO
File metadata and controls
20 lines (18 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1.
Figure out what stats currently being recorded aren't being recorded properly
2.
Determine number of RAM sticks:
`sudo dmidecode -t memory | Size:`
If line returns `No Module Installed` don't count it, otherwise count
`--vm #of sticks`
```vm = check_output(['sudo', 'dmidecode', '-t', 'memory', '|', 'grep', \
'-v', 'No', '|', 'wc', '-l']).decode()```
NOTE:perhaps something like this if setup.sh didn't exist
def read_sensors():
try:
output = check_output(['sensors']).decode()
except FileNotFoundError:
print("sensors is not installed, installing...")
check_output(["sudo", "apt-get", "install", "lm-sensors"])
output = check_output(['sensors']).decode()
return output