-
Notifications
You must be signed in to change notification settings - Fork 1
/
compstats.sh
executable file
·69 lines (45 loc) · 1.27 KB
/
compstats.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash
# Script Name compstats.sh
# Author Bill Kachersky
# Date of last revision 08/03/2021
# Description of purpose CUSTOM HARDWARE LIST AND BIOS REPORT
# REPORT INTIALIZE MSG
echo
echo "CURRENT STATE OF CPU AND RAM PERFORMANCE REPORT WITH BIOS INFO"
sleep 2
echo "STAND BY... GENERATING REPORT"
echo
sleep 3
# SYSTEM STATS
echo "Name and Model of Host Computer:"
lshw | grep -B 1 -Em1 'description:'
echo
# CPU STATS
echo "CPU Info:"
lshw -C cpu | grep -E 'product:|vendor|physical id|bus info|width'
echo
# RAM STATS
echo "Memory:"
lshw -c memory | grep -A 2 -Em1 'System memory'
echo
# DISPLAY ADAPTER STATS
echo "Display Adapter:"
lshw -C display | grep -E 'description:|product|vendor|physical id|bus info|width|clock|capabilities|configuration|resources'
echo
# NETWORK ADAPTER STATS
echo "Network Adapter:"
lshw -c network | grep -E 'description:|product|vendor|physical id|bus info|logical name|version|serial|size|capacity|width|clock|capabilities|configuration|resources'
sleep 3
echo
echo
# REPORT STATUS UPDATE
echo "STAND BY, GENERATING BIOS STATUS REPORT"
echo
sleep 5
# BIOS STATS
dmidecode -t bios
sleep 2
# REPORT STATUS UPDATE
echo "REPORTING COMPLETE!"
echo
# END