• 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 0 ]
    then printf "$ip OK
    ">>userlist.txt
    else printf "$ip ERR
    ">>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
    ">>out.txt
    else printf "$ip ERR
    ">>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 1 -d /pub/firmimg.d7
    done < ip.conf

    第七步,批量升级IDRAC固件

    [root@host]# 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.
  • 相关阅读:
    csu 1547(01背包)
    csu 1592(区间DP)
    Funny Car Racing(最短路变形)
    csu 1329 一行盒子(链表操作)
    poj 2828(线段树单点更新)
    软件开发文档模板 (学习)
    C 语言高效编程与代码优化
    【整理】uclibc,eglibc,glibc之间的区别和联系
    查找openssl内存泄漏(代码)
    openssl内存分配,查看内存泄露
  • 原文地址:https://www.cnblogs.com/zhangxinglong/p/5996252.html
Copyright © 2020-2023  润新知