ipmitool.exe -I lanplus -H 192.168.99.2 -U root -P Huawei12#$ lan print     //打印接口配置,可用 lan print 1或lan print 2试试实际接口。
ipmitool.exe -I lanplus -H 192.168.99.2 -U root -P Huawei12#$  fru | findstr "Product Serial" |findstr 21023  //获取序列号,进行了两次过滤。不同厂商需改关键字段 
ipmitool -I lanplus -H 10.114.0.207 -U Administrator -P Admin@9000 lan set 2 ipaddr 10.118.21.189 //设置IP地址，根据不同厂商，部分厂商改IP立马生效，该场景建议先改网关。 set 2是接口地址，需通过lan print先查看
ipmitool -I lanplus -H 10.114.0.207 -U Administrator -P Admin@9000  lan set 2  defgw ipaddr 10.118.21.1  //设置默认网关
ipmitool.exe  -I lanplus -H 10.114.0.207 -U Administrator -P Admin@9000 mc reset cold //重启mc模块，HP需要。


#DELL经验
ipmitool.exe -I lanplus -H 10.18.5.63 -U root -P HMYNFNX34HFK lan set 1 ipsrc static
ipmitool.exe -I lanplus -H 192.168.99.2 -U root -P calvin lan set 1 ipaddr 10.0.0.100
ipmitool.exe -I lanplus -H 192.168.99.2 -U root -P calvin lan set 1 netmask 255.255.255.0
ipmitool.exe -I lanplus -H 192.168.99.2 -U root -P calvin lan set 1 defgw ipaddr 10.0.0.1
ipmitool.exe -I lanplus -H 192.168.99.2 -U root -P calvin mc reset warm
ipmitool.exe -I lanplus -H 192.168.99.2 -U root -P calvin  user list 2   //先查看
ipmitool.exe -I lanplus -H 192.168.99.2 -U root -P calvin user set password 2 Corem@2022
ipmitool.exe -I lanplus -H 192.168.99.2 -U root -P calvin chassis power off/reset/on/status 控制上下电
ipmitool.exe -I lanplus -H 192.168.99.2 -U root -P calvin chassis bootdev pxe/disk/cdrom  //控制下次引导方式
ipmitool.exe -I lanplus -H 10.18.4.11 -U root -P Dell@2022 chassis bootdev pxe
ipmitool.exe -I lanplus -H 10.18.4.11 -U root -P Dell@2022 chassis  power reset



ipmitool.exe -I lanplus -H 192.168.170.50-U Administrator -P Huawei@2023 chassis bootdev pxe options=efiboot  //efipxe
ipmitool.exe -I lanplus -H 192.168.170.50 -U Administrator -P Huawei@2023 chassis  power reset