-
Notifications
You must be signed in to change notification settings - Fork 0
/
performance_statistic.sh
27 lines (23 loc) · 1.1 KB
/
performance_statistic.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
#!/bin/bash
cpu_info_lscpu=`lscpu`
cpu_info_dmidecode=`dmidecode -t processor`
memory_info=`free -m`
disk_info=`df -h`
cat <<!
=============================================================================
--------------------CPU_INFO(lscpu)------------------------------------------
$cpu_info_lscpu
-----------------------------------------------------------------------------
--------------------CPU_INFO(dmidecode)--------------------------------------
$cpu_info_dmidecode
-----------------------------------------------------------------------------
=============================================================================
--------------------MEMORY_INFO[MB]------------------------------------------
$memory_info
-----------------------------------------------------------------------------
=============================================================================
--------------------DISK_INFO------------------------------------------------
$disk_info
-----------------------------------------------------------------------------
=============================================================================
!