TAG: ipmi
PMI 是一种开放标准的硬件管理接口,服务器托管在机房时我们可以通过远程管理卡 安装和管理系统。安装相关组件,主要是OpenIPMI,并启动服务:Redhat/Ubuntu yum install OpenIPMI OpenIPMI-devel OpenIPMI-tools OpenIPMI-libs -y service ipmi start chkconfig ipmi on Debian/Ubuntu apt-get install openipmi ipmitool ipmitool
ipmitool lan print 1 #检查网络配置结果
进行IPMI的基本网络配置:网上很多教程都有-I open参数,其实这个参数是默认的。不要统统都抄过来啊。 以下指令分别配置了IP地址、掩码、网关、允许进入开关。IP地址最好与服务器IP在同一网段。 ipmitool lan set 1 ipaddr 10.10.20.170 ipmitool lan set 1 netmask 255.255.255.0 ipmitool lan set 1 defgw ipaddr 10.10.20.254 ipmitool lan set 1 access on 开启默认用户、设置默认密码: ipmitool lan set 1 user ipmitool lan set 1 password 123123 ipmitool user list 1 # 显示当前用户列表 通过查看用户列表。可以看到当前有两个用户,一个是默认匿名用户,一个是ADMIN。而ADMIN的uid = 2。 所以要设置一下root用户的密码,按照提示输入两次密码: ipmitool user list 1 ipmitool user set password 2 #重置用户密码 测试在多台服务器上配置好IPMI后,测试可以ping通设置好的IP地址。 以下为两种检验方法: ping 10.10.20.170 ipmitool -H 10.10.20.170 -U root power status 正常返回结果会是:power is on snmpipmitool -I open lan set 1 snmp public #设置channel 1 上snmp的community为public。 ipmitool -I open lan set 1 access on #设置channel 1允许访问。 开关机ipmitool -H 10.10.20.170 -U root power on #开机 ipmitool -H 10.10.20.170 -U root power off #关机(晴天Online) |