- 积分
- 16840
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
方法1:1. ssh 进BMC; 2.执行: ipmcset -d reset;" f! E( {' N! Y Z7 j. `6 n4 V, l
' r; T4 j! N5 A8 l
' d, @" ~6 r8 _( `/ o解决方法/ p$ u7 E8 t, Z% T
问题1解决:7 k0 @- F' G" q* M% F, a4 |
ipmitool -H (BMC的管理IP地址) -I lan -U (BMC登录用户名) -P (BMC 登录用户名的密码) mc reset warm
0 r# Y4 T x, C9 C: L
: B5 B) q& i; w3 C#lan参数 为接口连接的模式之一,远程通过网络执行的一般用lan 或lanplus,如果在本地ssh登录操作 可用open 参数' C9 z2 I2 G" _# v
) f- s8 Z! H; o7 R1 c. T% x问题2解决:
" c# [: u3 t }4 @8 \安装ipmitool
& d4 Z; Q0 Y4 z. p, X/ V4 g# `5 z5 Q
#yum install ipmitool –y
3 H# A* O# x6 J8 A( q1 h复制
# C K+ E5 O: V8 X$ d登录该服务器linux系统后执行:
1 f, h$ s2 }# q' m9 ^, T6 E" t2 p% ] Q) @8 u' W& F
ipmitool raw 0x32 0x66 #恢复默认值
1 T. \$ r/ b8 e" N( o7 T" G/ q+ K, `& r1 S1 s! j: o
ipmitool lan set 1 ipsrc static (设置ipmi ip非DHCP)
0 R+ G! H3 x/ Y; x" I4 t" r, P
5 g- h, f* L: W- gipmitool lan set 1 ipaddr 192.168.0.1(设置IPMI 地址) ; i6 E7 z/ y2 g7 p8 L" ]& z2 X4 h
3 t1 b: Z# \; t. a7 b. {& t
ipmitool lan set 1 netmask 255.255.255.0 (设置ipmi 子网掩码)
/ s9 Z$ `: o- P3 S# g. p8 `; T* I0 d* g
7 E6 r: F! }7 n' g6 iipmitool lan set 1 defgw ipaddr 192.168.0.1 (设置ipmi 网关)
7 A r- n4 \+ H, \" N' g. J1 w ~" j0 K0 `3 d
ipmitool user list (列出ipmi 用户)
2 \8 ~1 V3 o8 a. d. L8 q, I# ?6 } i) n/ S [
ipmitool user enable/disable <user id> (启用/禁用用户)
& |! P B5 I1 |) \8 q0 U0 y, x% m5 r* N
ipmitool user set password 1 abcdefg (修改ipmi 用户名1的密码)#root 修改后默认密码abcdefg
- P( V: y% c/ f% c* _( p/ {
4 _; x# i7 D8 wipmitool user set password 2 abcdefg (修改ipmi 用户名2的密码)#admin 修改后默认密码abcdefg
$ l1 g1 g( u! y2 x4 O
. t4 [5 I" J- L( d! U& E9 iipmitool lan print (查看现在ipmi地址)
- f. w, E) ?; V/ y) ^. b& {: x% Q- V6 u
ipmitool mc reset cold (重启本地BMC)
: Y: ~6 j7 |- o/ k! a& ^4 W复制
) k) e4 s3 u3 x" i4 H如果报错内容:Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory3 K# D3 t' J6 c/ l2 x% `, c, q
1 D6 H' _5 l% g& v, d
解决方法 ~0 M/ U& \2 Q6 d
需要加载相关模块: e) V! ]& T: P( ^
modprobe ipmi_watchdog# G. U, u, ?0 X2 X- C
modprobe ipmi_poweroff7 O5 T% f! M# j7 G: {1 X0 g- N1 x; [0 }
modprobe ipmi_devintf
# ~' y. M" x3 x modprobe ipmi_si5 O& x8 B1 @, q
modprobe ipmi_msghandlerquot;
* Z1 A' Z& M3 u7 {3 k) v8 e9 Q) {% m W; z& |$ Y, L" B& G
|
|