LENOVO服务器批量升级BMC固件
https://www.cnblogs.com/zhangxinglong/p/5923826.html
需求:通过服务器远程管理IP批量升级IMM、UEFI固件
工具:asu64、ipmitool、iflash64、cdc_interface.sh
下载:http://pan.baidu.com/s/1pL1uOaB
第一步,将要更新BMC IP写入 ip.conf
10.17.2.34
10.17.6.54
10.17.22.80
10.17.5.74
10.17.5.3
第二步,验证当前BMC帐号 userlist.sh
#!/bin/bash
true > userlist.txt
while read line;
do
ip=echo $line|awk '{print $1}'
ipmitool -H ip−Ilanplus−Uuserid−Ppassworduserlist>/dev/nullret=ip -I lanplus -U userid -P password user list >/dev/null ret=ip−Ilanplus−Uuserid−Ppassworduserlist>/dev/nullret=?
if [ ret−eq0]thenprintf"ret -eq 0 ] then printf "ret−eq0]thenprintf"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/nullret=ip>/dev/null ret=ip>/dev/nullret=?
if [ ret−eq0]thenprintf"ret -eq 0 ] then printf "ret−eq0]thenprintf"ip OK\n">>out.txt
else printf “$ip ERR\n”>>out.txt
fi
done < ./ip.conf
第四步,编辑批量关机脚步 power_off.sh
#!/bin/bash
user=userid
password=password
while read ip; do
ipmitool -H $ip -I lanplus -U $user -P $password power off
done < ./ip.conf
第五步,编写批量升级uefi脚本 iflash.sh
#!/bin/bash
user=userid
password=password
while read ip; do
./iflash64 --package ibm_fw_uefi_d7e154b-2.21_anyos_32-64.uxz --host $ip --user $user --password $password --force
done < ./ip.conf
第六步,执行批量ping 查看结果全部ok
[root@asu64]# sh server_ping.sh
[root@asu64]# cat out.txt
10.17.2.34 OK
10.17.6.54 OK
10.17.22.80 OK
10.17.5.74 OK
10.17.5.33 OK
第七步,执行power_off.sh 批量关机
[root@asu64]# sh power_off.sh
Chassis Power Control: Down/Off
Chassis Power Control: Down/Off
Chassis Power Control: Down/Off
Chassis Power Control: Down/Off
Chassis Power Control: Down/Off
第八步,执行批量升级脚本
[root@asu64]# sh iflash.sh
第九步,升级完成提示需要重启服务器
IBM Command Line IMM Flash Update Utility v1.12.24
Licensed Materials - Property of IBM
© Copyright IBM Corp. 2009 - 2013 All Rights Reserved.
Pinging IMM IP address 10.17.5.33 …OK
Connected to IMM at IP address 10.17.5.33.
Update package firmware type: uEFI
Update package build level: D7E154B
Target’s current build level: D7E136A
The IMM is preparing to receive the update.
Transferring image: 98%
Transfer complete.
Validating image.
Updating firmware: 100%
Update complete.
Firmware flashed successfully
Following the UEFI flash update, allow the system to reboot to the F1 prompt to complete the update process.
Fail to take down the LAN-over-USB interface.
第十步,批量重启服务器,升级完成。
[root@asu64]# sh power_on.sh
Chassis Power Control: Down/On
Chassis Power Control: Down/On
Chassis Power Control: Down/On
Chassis Power Control: Down/On
Chassis Power Control: Down/On
登陆BMC界面验证升级是否成功
LENOVO服务器批量升级BMC固件相关推荐
- 华为服务器批量BMC修改密码,华为服务器批量修改bmc地址
华为服务器批量修改bmc地址 内容精选 换一换 域名转入时,出现"域名已存在"的提示,导致域名无法导入.如果出现这种情况,其可能原因是,在域名转入华为云之前,已经将该域名托管至华为 ...
- 华为服务器批量修改bmc地址,华为服务器批量修改bmc地址
华为服务器批量修改bmc地址 内容精选 换一换 域名转入时,出现"域名已存在"的提示,导致域名无法导入.如果出现这种情况,其可能原因是,在域名转入华为云之前,已经将该域名托管至华为 ...
- 联想服务器SR650升级网卡固件微码
联想服务器阵列卡,BMC,UEFI可以在带外web界面升级. [场景]:esxi虚拟化升级网卡固件,服务器带外升级不了网卡的固件,esxi系统不支持.bin格式的固件包 [解决方法] 百度到下面第一点 ...
- python应用如何实现升级_一种基于Python实现BMC批量升级的方法与流程
本发明涉及BMC批量升级,尤其涉及一种基于Python实现BMC批量升级的方法. 背景技术: 随着现代服务器主板技术的发展,主板设计形态复杂多变.无论是设计成本还是后期使用过程中的维护成本都很高.如何 ...
- openssh-9.3p1、openssl-3.0.8 x86_64升级包及批量升级
升级包 openssh-9.3p1-1.el7_8.x86_64.tar.gz 适用于redhat7 8 centos7 8 deepin16 neokylin7,所有内核在3.10以上的x86_64 ...
- 服务器BIOS和BMC等知识详解
一个执着于技术的公众号 引言:以BIOS为核心的固件产业,是信创产业链的重要组成部分,可被誉为信创产业的"山海关".在计算机体系中,BIOS 有着比操作系统更为底层和基础性的作用, ...
- 锐捷2126G部分基础配置(升级系统固件、telnet、vlan)
接到通知,要对手头的锐捷STAR 2126G交换机做一些基础的配置,包括升级系统固件.配置Telnet登录用户.管理Vlan.以下为所做工作的整理和总结: 1.升级Flash系统软件: 首先是在电脑上 ...
- linux运维之批量升级
linux运维之批量升级 经常给各办事处客户现场打补丁或升级,面对十几上百台服务器,人工一台台替换肯定行不通,只能批量升级,将过程记录下来. 批量升级要解决的两个主要问题就是: 1.将补丁文件(安装包 ...
- DELL R630升级BIOS固件和IDARC
新购买的DELL R630服务器BIOS和IDRAC的版本比较老,建议在系统部署前进行升级,方法如下 1.未升级的前的版本 2.升级BIOS 首先访问DELL官方,下载BISO固件包 默认BIN格式, ...
最新文章
- python点到向量的距离,夹角
- Math,random()返回区间内的随机数
- No enclosing instance of type JDStudent is acAcessible. Must qualify the allocation with an enclosin
- jieba库的使用和好看的词元
- c++ string 堆还是栈_5 个刁钻的 String 面试题!你都遇到过哪些?
- P1983 车站分级
- TreeSet的null值与元素类型的约束
- 【BZOJ 1597】 [Usaco2008 Mar]土地购买 (斜率优化)
- query登录linux命令,在Linux系统中使用sqlcmd命令连接与查询SQL Server
- 全网最新IDEA项目注释规范设置
- python multiprocessing多进程执行for循环的代码
- arcgis js api前端完成面积测算
- linux svn服务器的权限修改
- Githup高级搜索
- 9277用计算机,【资料】[转]鸿合电子白板学科通用工具使用技巧
- SVN客户端smartsvn详细功能
- IsHitTestVisible=False 的功能
- mtk无线网卡 linux,Linux下安装MT7601U无线网卡驱动
- NCE4 L11 How to grow old
- Android IntentService deprecated|笔记
热门文章
- NaN在js中的意义
- 互联网日报 | 6月24日 星期四 | 快手全球月活已达10亿;HarmonyOS 2首批正式版升级;微软市值突破2万亿美元...
- python检索用人名查电话_ldap3 python搜索组成员并检索其sAMAcountName(Active Directory)...
- 解析低压差线性稳压器(LDO)在摄像头应用中的创新设计
- HTML行内元素、块级元素和行内块元素
- Mircrosoft Visual C++ Runtime Library提示窗口为何黏着桌面
- python 因子分析_因子分析在python上的实现
- 解决spring coud打包报Singleton bean creation not allowed while singletons of this factory are in destruct
- X86实模式与保护模式简介
- C++扬帆远航——4(百钱百鸡)