DELL RACADM 批量升级戴尔IDRAC固件

需求:通过服务器远程管理IP批量升级戴尔IDRAC固件

工具:racadm、ipmitool、Remote Access Configuration Tool

下载:

第一步,将要更新BMC IP写入 ip.conf

192.168.100.80
192.168.100.81
192.168.100.82
192.168.100.83

第二步,验证当前BMC帐号 userlist.sh

#!/bin/bash
true > userlist.txt
while read line;
do
ip=`echo $line|awk '{print $1}'`
ipmitool -H $ip -I lanplus -U userid -P password user list >/dev/null
ret=$?
if [ $ret -eq ]
then printf "$ip OK\n">>userlist.txt
else printf "$ip ERR\n">>userlist.txt
fi
done < ./ip.conf

第三步,编辑批量ping脚本 server_ping.sh

#!/bin/bash
true > out.txt
while read line;
do
ip=`echo $line|awk '{print $1}'`
ping -w -c $ip>/dev/null
ret=$?
if [ $ret -eq ]
then printf "$ip OK\n">>out.txt
else printf "$ip ERR\n">>out.txt
fi
done < ./ip.conf

第四步,通过Remote Access Configuration Tool 查看当前戴尔设备的RDRAC版本

下载地址:http://www.dell.com/support/home/cn/zh/cndhs1/Drivers/DriversDetails?driverId=5T1PD

第五步,下载IDRAC固件版本和搭建FTP服务器

固件下载:http://www.dell.com/support/home/cn/zh/cndhs1/Drivers/DriversDetails?driverId=2091K&fileId=3576056388&osCode=W12R2&productCode=poweredge-r630&languageCode=cs&categoryId=LC

安装ftp服务

yum install ftp

第六步,编写批量升级IDRAC脚本 update_idrac_2.40.40.sh

#!/bin/bash
user=user
password=password while read ip; do
racadm -r $ip -u $user -p $password fwupdate -f $ip anonymous -d /pub/firmimg.d7
done < ip.conf

第七步,批量升级IDRAC固件

[root@host]# sh update_idrac_2.40.40.sh
/sbin/racadm: line : printf: 0xError: invalid hex number
Security Alert: Certificate is invalid - self signed certificate
Continuing execution. Use -S option for racadm to stop execution on certificate-related errors.
FTP firmware update has been initiated. This update process
may take several minutes to complete. Please check the update status
using fwupdate -s command.
上一篇:戴尔灵越15-5000/3558等系列修改BIOS设置U盘启动


下一篇:Spring容器中获取bean实例的方法