通过ipmi方式重设dell远程控制卡的密码
安装OpenIPMI:
yum install OpenIPMI OpenIPMI-tools
启动服务:
service ipmi start
重设root密码:
ipmitool -I open user set password 2 PASSWORD
dell服务器默认用户为root,密码为:calvin
如果ipmi服务不启动,将会提示一个错误:
[root@localhost ~]# ipmitool -I open user set password 2 shine@2012
Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory
Set User Password command failed (user 2)
另外ipmi还有的一些功能:
配置ipmi网络地址:
/usr/bin/ipmitool -I open lan set 1 ipaddr 192.168.8.213/usr/bin/ipmitool -I open lan set 1 netmask 255.255.255.0/usr/bin/ipmitool -I open lan set 1 access on
如果需要设置网关,则输入以下命令
/usr/bin/ipmitool -I open lan set 1 defgw ipaddr 192.168.8.1
加强BMC安全,这样非授权用户才不会重启服务器。为做到这点,首先是需要修改默认的SNMP通讯串,null用 户密码,以及root用户密码。
/usr/bin/ipmitool -I open lan set 1 snmp COMUNIATION
设置null用户的密码
/usr/bin/ipmitool -I open lan set 1 password PASSWD
设置root用户密码
/usr/bin/ipmitool -I open user set password 2 PASSWD
检查配置(在服务器上本地执行)
ipmitool -I open lan print 1
参考: How to Configure IPMI on a Dell PowerEdge running Red Hat Enterprise Linux