IPMI管理

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
# 查看ipmi信息
[root@k205 ~]# ipmitool lan print 1
Set in Progress : Set Complete
Auth Type Support : MD5
Auth Type Enable : Callback : MD5
: User : MD5
: Operator : MD5
: Admin : MD5
: OEM : MD5
IP Address Source : Static Address
IP Address : 111.111.50.14
Subnet Mask : 255.255.255.0
MAC Address : 6c:92:bf:da:18:d8
SNMP Community String : AMI
IP Header : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10
BMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled
Gratituous ARP Intrvl : 0.0 seconds
Default Gateway IP : 111.111.50.1
Default Gateway MAC : 7c:1e:06:27:f3:eb
Backup Gateway IP : 0.0.0.0
Backup Gateway MAC : 00:00:00:00:00:00
802.1q VLAN ID : Disabled
802.1q VLAN Priority : 0
RMCP+ Cipher Suites : 0,1,2,3,6,7,8,11,12,15,16,17
Cipher Suite Priv Max : caaaaaaaaaaaXXX
: X=Cipher Suite Unused
: c=CALLBACK
: u=USER
: o=OPERATOR
: a=ADMIN
: O=OEM
Bad Password Threshold : 3
Invalid password disable: no
Attempt Count Reset Int.: 200
User Lockout Interval : 300

硬件管理

全部信息

1
2
3
4
5
6
7
8
# 查看所有硬件信息
[root@k104 ~]# dmidecode

# 硬件基础信息目录
[root@k104 ~]# ls /sys/devices/virtual/dmi/id/
bios_date board_asset_tag board_vendor chassis_serial chassis_version product_name product_version uevent
bios_vendor board_name board_version chassis_type modalias product_serial subsystem
bios_version board_serial chassis_asset_tag chassis_vendor power product_uuid sys_vendor

自动获取脚本

1
2
3
4
5
6
7
8
9
#!/bin/bash
DMI=/sys/devices/virtual/dmi/id

cd $DMI
for i in $(ls $DMI); do
if [[ -f $DMI/$i ]]; then
echo -e "$i:\t\t$(cat $DMI/$i)"
fi
done

处理器信息

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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# 查看处理器硬件信息
[root@k104 ~]# dmidecode --type processor
# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 3.2 present.

Handle 0x0091, DMI type 4, 48 bytes
Processor Information
Socket Designation: CPU0
Type: Central Processor
Family: Xeon
Manufacturer: Intel(R) Corporation
ID: 57 06 05 00 FF FB EB BF
Signature: Type 0, Family 6, Model 85, Stepping 7
Flags:
FPU (Floating-point unit on-chip)
VME (Virtual mode extension)
DE (Debugging extension)
PSE (Page size extension)
TSC (Time stamp counter)
MSR (Model specific registers)
PAE (Physical address extension)
MCE (Machine check exception)
CX8 (CMPXCHG8 instruction supported)
APIC (On-chip APIC hardware supported)
SEP (Fast system call)
MTRR (Memory type range registers)
PGE (Page global enable)
MCA (Machine check architecture)
CMOV (Conditional move instruction supported)
PAT (Page attribute table)
PSE-36 (36-bit page size extension)
CLFSH (CLFLUSH instruction supported)
DS (Debug store)
ACPI (ACPI supported)
MMX (MMX technology supported)
FXSR (FXSAVE and FXSTOR instructions supported)
SSE (Streaming SIMD extensions)
SSE2 (Streaming SIMD extensions 2)
SS (Self-snoop)
HTT (Multi-threading)
TM (Thermal monitor supported)
PBE (Pending break enabled)
Version: Intel(R) Xeon(R) Silver 4210 CPU @ 2.20GHz
Voltage: 1.6 V
External Clock: 100 MHz
Max Speed: 3200 MHz
Current Speed: 2200 MHz
Status: Populated, Enabled
Upgrade: Socket LGA3647-1
L1 Cache Handle: 0x008E
L2 Cache Handle: 0x008F
L3 Cache Handle: 0x0090
Serial Number: Not Specified
Asset Tag: UNKNOWN
Part Number: Not Specified
Core Count: 10
Core Enabled: 10
Thread Count: 10
Characteristics:
64-bit capable
Multi-Core
Hardware Thread
Execute Protection
Enhanced Virtualization
Power/Performance Control

Handle 0x0095, DMI type 4, 48 bytes
Processor Information
Socket Designation: CPU1
Type: Central Processor
Family: Xeon
Manufacturer: Intel(R) Corporation
ID: 57 06 05 00 FF FB EB BF
Signature: Type 0, Family 6, Model 85, Stepping 7
Flags:
FPU (Floating-point unit on-chip)
VME (Virtual mode extension)
DE (Debugging extension)
PSE (Page size extension)
TSC (Time stamp counter)
MSR (Model specific registers)
PAE (Physical address extension)
MCE (Machine check exception)
CX8 (CMPXCHG8 instruction supported)
APIC (On-chip APIC hardware supported)
SEP (Fast system call)
MTRR (Memory type range registers)
PGE (Page global enable)
MCA (Machine check architecture)
CMOV (Conditional move instruction supported)
PAT (Page attribute table)
PSE-36 (36-bit page size extension)
CLFSH (CLFLUSH instruction supported)
DS (Debug store)
ACPI (ACPI supported)
MMX (MMX technology supported)
FXSR (FXSAVE and FXSTOR instructions supported)
SSE (Streaming SIMD extensions)
SSE2 (Streaming SIMD extensions 2)
SS (Self-snoop)
HTT (Multi-threading)
TM (Thermal monitor supported)
PBE (Pending break enabled)
Version: Intel(R) Xeon(R) Silver 4210 CPU @ 2.20GHz
Voltage: 1.6 V
External Clock: 100 MHz
Max Speed: 3200 MHz
Current Speed: 2200 MHz
Status: Populated, Enabled
Upgrade: Socket LGA3647-1
L1 Cache Handle: 0x0092
L2 Cache Handle: 0x0093
L3 Cache Handle: 0x0094
Serial Number: Not Specified
Asset Tag: UNKNOWN
Part Number: Not Specified
Core Count: 10
Core Enabled: 10
Thread Count: 10
Characteristics:
64-bit capable
Multi-Core
Hardware Thread
Execute Protection
Enhanced Virtualization
Power/Performance Control

内存信息

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
# 查看内存硬件信息
[root@k104 ~]# dmidecode --type memory
# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 3.2 present.

Handle 0x0049, DMI type 16, 23 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: Single-bit ECC
Maximum Capacity: 4 TB
Error Information Handle: Not Provided
Number Of Devices: 24

Handle 0x004A, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x0049
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 32 GB
Form Factor: DIMM
Set: None
Locator: CPU0_C0D0
Bank Locator: NODE 1
Type: DDR4
Type Detail: Synchronous
Speed: 2933 MT/s
Manufacturer: Hynix
Serial Number: 2FBC39EB
Asset Tag: CPU1_DIMM_A1_AssetTag
Part Number: HMA84GR7JJR4N-WM
Rank: 2
Configured Memory Speed: 2400 MT/s
Minimum Voltage: 1.2 V
Maximum Voltage: 1.2 V
Configured Voltage: 1.2 V

Handle 0x004B, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x0049
Error Information Handle: Not Provided
Total Width: Unknown
Data Width: Unknown
Size: No Module Installed
Form Factor: Unknown
Set: None
Locator: CPU0_C0D1
Bank Locator: NODE 1
Type: Unknown
Type Detail: Unknown
Speed: Unknown
Manufacturer: NO DIMM
Serial Number: NO DIMM
Asset Tag: NO DIMM
Part Number: NO DIMM
Rank: Unknown
Configured Memory Speed: Unknown
Minimum Voltage: 1.2 V
Maximum Voltage: 1.2 V
Configured Voltage: 1.2 V
...

序列号

产品序列号

1
2
[root@k104 ~]# cat /sys/devices/virtual/dmi/id/product_serial
220970081

主板序列号

1
2
[root@k104 ~]# cat /sys/devices/virtual/dmi/id/board_serial
MBL828S20171A50

硬盘序列号

1
2
[root@k104 ~]# lsblk -dno serial /dev/sda
2665c9e900d00000