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
|
#1. 查看设备信息
/usr/bin/ipmitool -I lanplus -H 192.168.0.8 -U sysadmin -P admin chassis status
#2. 查看服务器的传感器状态
#所有传感器状态详细信息:
/usr/bin/ipmitool -I lanplus -H 192.168.0.8 -U sysadmin -P admin sensor list
#传感器SDR summary信息:
/usr/bin/ipmitool -I lanplus -H 192.168.0.8 -U sysadmin -P admin sdr info
#传感器SDR 列表信息:
/usr/bin/ipmitool -I lanplus -H 192.168.0.8 -U sysadmin -P admin sdr list
#FRU传感器SDR 列表信息:
/usr/bin/ipmitool -I lanplus -H 192.168.0.8 -U sysadmin -P admin sdr list fru
#下载RAW SDR信息到文件:
/usr/bin/ipmitool -I lanplus -H 192.168.0.8 -U sysadmin -P admin sdr dump sdr.raw
#3. 查看用户
/usr/bin/ipmitool -I lanplus -H 192.168.0.8 -U sysadmin -P admin user list
#4. 增加用户
/usr/bin/ipmitool -I lanplus -H 192.168.0.8 -U sysadmin -P admin user set name 3 test1
#5. disable/enable用户
/usr/bin/ipmitool -I lanplus -H 192.168.0.8 -U sysadmin -P admin user disable 3
#6. 查看服务器当前开电状态
/usr/bin/ipmitool -I lanplus -H 192.168.0.8 -U sysadmin -P admin power status
#7. 服务器的开机,关机,reset和power cycle.cycle断电到上电有1秒间隔,reset是立即上电
/usr/bin/ipmitool -I lanplus -H 192.168.0.8 -U sysadmin -P admin power on
/usr/bin/ipmitool -I lanplus -H 192.168.0.8 -U sysadmin -P admin power off
/usr/bin/ipmitool -I lanplus -H 192.168.0.8 -U sysadmin -P admin power cycle
/usr/bin/ipmitool -I lanplus -H 192.168.0.8 -U sysadmin -P admin power reset
#8. 查看服务器的80 Port当前状态
/usr/bin/ipmitool -I lanplus -H 192.168.0.8 -U sysadmin -P admin raw 0x30 0xB2
#9. 查看服务器的FRU信息
/usr/bin/ipmitool -I lanplus -H 192.168.0.8 -U sysadmin -P admin fru
/usr/bin/ipmitool -I lanplus -H 192.168.0.8 -U sysadmin -P admin fru print
|