标签:erro lang bmc stop ever span cloud ftp服务 _id
需求:通过服务器远程管理IP批量升级戴尔IDRAC固件
工具:racadm、ipmitool、Remote Access Configuration Tool
下载:
第一步,将要更新BMC IP写入 ip.conf
10.22.170.80 10.22.182.97 10.22.163.74 10.22.183.12
第二步,验证当前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 0 ] 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 1 -c 1 $ip>/dev/null ret=$? if [ $ret -eq 0 ] 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=root password=calvin while read ip; do racadm -r $ip -u $user -p $password fwupdate -f 172.28.69.75 anonymous 1 -d /pub/firmimg.d7 done < ip.conf
第七步,批量升级IDRAC固件
[root@mjq_cloud racadm]# sh update_idrac_2.40.40.sh /sbin/racadm: line 13: 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.
标签:erro lang bmc stop ever span cloud ftp服务 _id
原文地址:http://www.cnblogs.com/zhangxinglong/p/5996252.html