- 定义 static 静态协议
ipmitool lan set 1 ipsrc static
- 配置 IPMI 地址
ipmitool lan set 1 ipaddress <x.x.x.x>
- 配置子网掩码
ipmitool lan set 1 netmask <netmask>
- 配置网关
ipmitool lan set 1 defgw ipaddr <x.x.x.x>
- 配置 IPMI 用户
ipmitool user set name <user_id> <username>
- 配置 IPMI 密码
ipmitool user set password <user_id> <password>
- 配置 IPMI 通道
ipmitool channel setaccess 1 <user_id> link=on ipmi=on callin=on privilege=4
- 激活 IPMI 用户
ipmitool user enable <user_id>
- 查询ipmi地址
ipmitool lan print 1 | grep -i “IP Address”
- 设置临时从磁盘引导
ipmitool chassis bootdev disk
- 设置DHCP
racadm set idrac.ipv4.DHCPEnable enabled
- 查询DHCP信息
racadm get idrac.ipv4
- 查询IPMILan信息
racadm get idrac.IPMILan
- 查看安装进度
ipmitool -I lanplus -H 192.168.1.36 -U ADMIN -P 12345678 sol activate
- 查看机器状态
ipmitool -I lanplus -H 192.168.1.36 -P 12345678 -U ADMIN power status
ipmitool -H 192.168.1.214 -U ADMIN -P 12345678 power status
ipmitool -I lanplus -H 10.10.100.141 -P calvin -I lanplus -U root power status
- 设置pxe
ipmitool -I lanplus -H 192.168.1.36 -U ADMIN -P 12345678 chassis bootdev pxe options=persistent
- 关机操作
ipmitool -I lanplus -H 192.168.1.36 -P 12345678 -U ADMIN power off
- 开机操作
ipmitool -I lanplus -H 192.168.1.36 -P 12345678 -U ADMIN power on
- 戴尔查询idrac版本
racadm get idrac.Info | grep -i "Version"
- 惠普查询ilo版本
在页面中查询, Information -> Overview -> iLO Firmware Version