CN107171833B - Method for realizing batch upgrading of BMC and BIOS of server through BMC - Google Patents

Method for realizing batch upgrading of BMC and BIOS of server through BMC Download PDF

Info

Publication number
CN107171833B
CN107171833B CN201710305358.9A CN201710305358A CN107171833B CN 107171833 B CN107171833 B CN 107171833B CN 201710305358 A CN201710305358 A CN 201710305358A CN 107171833 B CN107171833 B CN 107171833B
Authority
CN
China
Prior art keywords
upgrading
bmc
server
firmware
bios
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710305358.9A
Other languages
Chinese (zh)
Other versions
CN107171833A (en
Inventor
吴仲品
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tongtaiyi Information Technology Co ltd
Original Assignee
Shenzhen Tongtaiyi Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tongtaiyi Information Technology Co ltd filed Critical Shenzhen Tongtaiyi Information Technology Co ltd
Priority to CN201710305358.9A priority Critical patent/CN107171833B/en
Publication of CN107171833A publication Critical patent/CN107171833A/en
Application granted granted Critical
Publication of CN107171833B publication Critical patent/CN107171833B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/66Updates of program code stored in read-only memory [ROM]

Abstract

The invention relates to a method for realizing batch upgrading of a BMC and a BIOS of a server through a BMC. The method comprises the following steps in a server BMC with the function of upgrading BMC and BIOS firmware: s1, reading an IP from an IP list of a batch server BMC; s2, reading fru information of the BMC to judge the type of the server; s3, calling a corresponding script according to the type of the server and acquiring current firmware version information; s4, firmware upgrading is carried out on the corresponding machine type; s5, finishing upgrading, acquiring the current firmware version information again, comparing the current firmware version information with the information before upgrading, judging whether the upgrading is successful, if so, repeating the step S1, and if not, executing the step S6; s6, checking the reason, and judging whether the reason is that the upgrading action is not completed or an error is provided by the firmware version. The method is simple to operate and has no requirement on the os network; directly burning firmware, and upgrading thoroughly; large-scale unattended upgrading can be realized; before and after upgrading, version comparison and verification are carried out to ensure that upgrading is finished; can adapt to various complex environments.

Description

Method for realizing batch upgrading of BMC and BIOS of server through BMC
Technical Field
The invention relates to the field of system upgrading, in particular to a method for realizing batch upgrading of a BMC and a BIOS of a server through a BMC.
Background
The demand for large-scale deployment of servers in the internet era is increasing, and centralized operation of large-scale servers has become a very important research topic. Bug repair, new function addition and performance improvement of the server are usually realized by upgrading BMC & BIOS, and often the server needs to be upgraded to meet the requirements of people for various reasons.
At present, most of methods for upgrading the BIOS of the server are remote login through ssh, and then upgrade operation is carried out by using a burning tool. This approach requires the upgraded server os to support the ssh protocol, requiring the network to be opened. Moreover, if the BIOS contains the ME, the ME cannot be directly upgraded. And the method for upgrading the BMC in batches is less.
Disclosure of Invention
The invention provides a method for realizing batch upgrading of a BMC and a BIOS of a server through a BMC, and aims to provide a very simple and safe upgrading mode.
The invention provides a method for realizing batch upgrading of a server BMC and a BIOS (basic input/output System) through a BMC (baseboard management controller), which comprises the following steps of:
s1, reading the IP from the IP list of the batch server BMC;
s2, reading fru information of the BMC to judge the type of the server;
s3, calling a corresponding script according to the server model and acquiring the current firmware version information;
s4, firmware upgrading is carried out on the corresponding machine type;
s5, finishing upgrading, obtaining the current firmware version information again, comparing with the information before upgrading, judging whether the upgrading is successful, if so, repeating the step S1, and if not, executing the step S6;
s6, checking the reason and judging whether the reason is that the upgrading action is not completed or the firmware version provides errors.
As a further improvement of the present invention, the step S2 is to read fru information of the BMC through ipmitool.
As a further improvement of the present invention, before the corresponding script is called in step S3, an upgrade script is written for each version of server, and a version name table is made for the corresponding firmware version.
As a further improvement of the present invention, before the current firmware version information is acquired in step S3, a firmware version is newly established in each server.
As a further improvement of the invention, the step S1 is preceded by a step S0. the web page is automatically operated by a selenium module to python.
As a further improvement of the present invention, the python in the step S0 is replaced by Java or C language.
As a further improvement of the present invention, the selenium module in step S0 is replaced by a spline module.
As a further improvement of the invention, the BIOS firmware is replaced by sas card firmware or expandersfirmware.
The invention has the beneficial effects that: the method is simple to operate, has no requirement on os and has no requirement on an os network; directly burning firmware, and upgrading thoroughly; large-scale unattended upgrading can be realized; before and after upgrading, version comparison and verification are carried out to ensure that upgrading is finished; the method can adapt to various complex environments, and can be completed even if different types of servers need to upgrade different versions of firmware.
Drawings
FIG. 1 is a flowchart of a method for implementing batch upgrade of a server BMC and a BIOS through a BMC according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments.
As shown in fig. 1, the method for realizing batch upgrade of the BMC and the BIOS by the BMC according to the present invention includes the following steps in the BMC with a function of upgrading the BMC and the BIOS firmware:
s1, reading the IP from the IP list of the batch server BMC;
s2, reading fru information of the BMC to judge the type of the server;
s3, calling a corresponding script according to the server model and acquiring the current firmware version information;
s4, firmware upgrading is carried out on the corresponding machine type;
s5, finishing upgrading, obtaining the current firmware version information again, comparing with the information before upgrading, judging whether the upgrading is successful, if so, repeating the step S1, and if not, executing the step S6;
s6, checking the reason and judging whether the reason is that the upgrading action is not completed or the firmware version provides errors.
In step S2, fru information of the BMC is read by ipmitool.
Before calling the corresponding script in step S3, an upgrade script is written for each version of server, and a version name table is made for the corresponding firmware version. Before the current firmware version information is acquired, a firmware version is newly established in each server.
Step S0 is included before step S1. the web page is automated using the selenium module to python. The python in step S0 is replaced with Java or C language and the selenium module is replaced with the spline module.
The BIOS firmware is replaced by sas card firmware or expander firmware.
The invention upgrades the BMC and BIOS of the server in batch through firmware update function under the web page of the BMC. Therefore, the BMC of the upgraded server needs to have the function of upgrading the BMC and BIOS firmware, and the servers with the BMC have the function. Because of the automation of web pages, the selenium module to python is required for web automation operations. And we need to know the IP list of the BMCs of the bulk server.
For servers of different brands, an upgrade script is written for each version server, and a version name table is made for a corresponding firmware version so as to conveniently check whether the upgrade is successful or not after the upgrade.
The invention provides a firmware upgrading method which is very convenient and high in reliability. If other firmware version upgrades are also incorporated into the BMC at the beginning of the design, then the firmware, such as the sas card firmware, the expander firmware, etc., can also be upgraded by the BMC. Meanwhile, batch change of BMC and BIOS settings can be realized through the method, only a firmware version needs to be built, default setting of the version is the setting requirement, and then batch change of configuration is realized through upgrading the firmware. In addition, in order to realize the patent, not only python but also java or C can be used, and the module can be used, such as a spline and the like without being limited to a selenium.
Bmc (baseboard Management controller): baseboard management controller
IPMI (Intelligent Platform Management interface): an Intelligent Platform Management Interface (IPMI) is an open standard hardware management interface specification that defines a specific method for communication of an embedded management subsystem. IPMI information is communicated via a Baseboard Management Controller (BMC) (located on a hardware component of IPMI specification).
Bios is an abbreviation of the English Basic Input Output System, and the Chinese name after the translation is the Basic Input Output System. In fact, it is a set of programs solidified on a ROM chip on the main board of the computer, it stores the most important basic input and output programs of the computer, the self-checking program after power-on and the system self-starting program, it can read and write the specific information set by the system from the CMOS. Its primary function is to provide the lowest level, most direct hardware setup and control for the computer.
Ipmitool is an ipmi platform management tool in a command line mode, which can be used in a linux system, supports ipmi 1.5 specification (the latest specification is ipmi 2.0), and can realize functions of acquiring information of a sensor, displaying system log content, remotely turning on and off a network and the like.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (4)

1. A method for realizing batch upgrading of a server BMC and a BIOS through a BMC is characterized in that the following steps are carried out in the server BMC with a function of upgrading BMC and BIOS firmware:
s0. the web page is automatically operated by using a selenium module of python;
s1, reading an IP from an IP list of a batch server BMC;
s2, reading fru information of the BMC to judge the type of the server; reading fru information of the BMC through ipmitool;
s3, calling a corresponding script according to the type of the server and acquiring current firmware version information; before calling the corresponding script, compiling an upgrading script for the server of each version, and making a version name table for the corresponding firmware version; before acquiring the current firmware version information, a firmware version is newly established in each server;
s4, firmware upgrading is carried out on the corresponding machine type;
s5, finishing upgrading, acquiring the current firmware version information again, comparing the current firmware version information with the information before upgrading, judging whether the upgrading is successful, if so, repeating the step S1, and if not, executing the step S6;
s6, checking the reason, and judging whether the reason is that the upgrading action is not completed or an error is provided by the firmware version.
2. The method of claim 1, wherein python in step S0 is replaced with Java or C language.
3. The method of claim 1, wherein the selenium module of step S0 is replaced with a spline module.
4. The method for realizing batch upgrade of the server BMC and the BIOS through the BMC according to claim 1, wherein the BIOS firmware is replaced with a sas card firmware or an expander firmware.
CN201710305358.9A 2017-05-03 2017-05-03 Method for realizing batch upgrading of BMC and BIOS of server through BMC Active CN107171833B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710305358.9A CN107171833B (en) 2017-05-03 2017-05-03 Method for realizing batch upgrading of BMC and BIOS of server through BMC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710305358.9A CN107171833B (en) 2017-05-03 2017-05-03 Method for realizing batch upgrading of BMC and BIOS of server through BMC

Publications (2)

Publication Number Publication Date
CN107171833A CN107171833A (en) 2017-09-15
CN107171833B true CN107171833B (en) 2020-11-03

Family

ID=59812406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710305358.9A Active CN107171833B (en) 2017-05-03 2017-05-03 Method for realizing batch upgrading of BMC and BIOS of server through BMC

Country Status (1)

Country Link
CN (1) CN107171833B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108427562B (en) * 2018-03-16 2021-06-29 郑州云海信息技术有限公司 Method and system for burning single-machine program and single-machine program burning equipment
CN108595196A (en) * 2018-04-13 2018-09-28 联想(北京)有限公司 a kind of control method and server system
CN108874435A (en) * 2018-05-29 2018-11-23 郑州云海信息技术有限公司 A kind of automatic method for refreshing of server B MC Web
CN108874420B (en) * 2018-06-12 2021-07-23 郑州云海信息技术有限公司 Remote refreshing system and method for batch server FRUs
CN108984226A (en) * 2018-06-29 2018-12-11 深圳市同泰怡信息技术有限公司 Method, the system of batch modification server B IOS configuration
CN109002308A (en) * 2018-07-17 2018-12-14 郑州云海信息技术有限公司 A kind of method and device of BMC upgrading
CN109144539A (en) * 2018-07-26 2019-01-04 郑州云海信息技术有限公司 A kind of BMC FW method for refreshing, system, equipment and computer media
CN109144542A (en) * 2018-08-07 2019-01-04 太仓市同维电子有限公司 Wireless terminal product software automatic updating system and method
CN109254780A (en) * 2018-08-30 2019-01-22 郑州云海信息技术有限公司 A kind of method, apparatus and controlled terminal of batch refresh server node firmware
CN109471646A (en) * 2018-11-01 2019-03-15 郑州云海信息技术有限公司 A kind of upgrade method, device and the storage medium of the BMC version of server
CN109739327B (en) * 2018-12-27 2021-11-02 郑州云海信息技术有限公司 Device and method for batch removal of CMOS (complementary metal oxide semiconductor) by server
CN110427199B (en) * 2019-06-26 2022-08-02 苏州浪潮智能科技有限公司 Method, equipment and readable medium for upgrading BMC and BIOS in matching manner
CN110308921A (en) * 2019-07-04 2019-10-08 深圳市瑞驰信息技术有限公司 A kind of method and system for preventing server updating from losing data
CN111124463B (en) * 2019-12-21 2023-08-08 苏州浪潮智能科技有限公司 Batch upgrading method, system and equipment of BMC
CN111104147A (en) * 2019-12-25 2020-05-05 浪潮商用机器有限公司 BMC upgrading method, device, terminal and storage medium
CN112612500A (en) * 2020-12-30 2021-04-06 锐捷网络股份有限公司 Method and device for upgrading BMC, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779057A (en) * 2012-06-29 2012-11-14 浪潮(北京)电子信息产业有限公司 Base board management controller and automatic upgrade system and method thereof
CN103593211A (en) * 2013-11-01 2014-02-19 浪潮电子信息产业股份有限公司 Method for refreshing and writing firmware programs through out-of-band isolation
CN103984584A (en) * 2014-06-05 2014-08-13 浪潮电子信息产业股份有限公司 Remote out-of-band updating method for BIOS firmware
CN104317617A (en) * 2014-10-23 2015-01-28 浪潮电子信息产业股份有限公司 Batch BMC Firmware refreshing method
CN104834543A (en) * 2015-04-24 2015-08-12 曙光信息产业(北京)有限公司 Method and device for externally refreshing BIOS (basic input/output system) firmware
CN106445580A (en) * 2016-08-27 2017-02-22 浪潮(北京)电子信息产业有限公司 Method and device for BMC (Baseboard Management Controller) with external upgrading

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779057A (en) * 2012-06-29 2012-11-14 浪潮(北京)电子信息产业有限公司 Base board management controller and automatic upgrade system and method thereof
CN103593211A (en) * 2013-11-01 2014-02-19 浪潮电子信息产业股份有限公司 Method for refreshing and writing firmware programs through out-of-band isolation
CN103984584A (en) * 2014-06-05 2014-08-13 浪潮电子信息产业股份有限公司 Remote out-of-band updating method for BIOS firmware
CN104317617A (en) * 2014-10-23 2015-01-28 浪潮电子信息产业股份有限公司 Batch BMC Firmware refreshing method
CN104834543A (en) * 2015-04-24 2015-08-12 曙光信息产业(北京)有限公司 Method and device for externally refreshing BIOS (basic input/output system) firmware
CN106445580A (en) * 2016-08-27 2017-02-22 浪潮(北京)电子信息产业有限公司 Method and device for BMC (Baseboard Management Controller) with external upgrading

Also Published As

Publication number Publication date
CN107171833A (en) 2017-09-15

Similar Documents

Publication Publication Date Title
CN107171833B (en) Method for realizing batch upgrading of BMC and BIOS of server through BMC
EP3152650B1 (en) High-speed application for installation on mobile devices for permitting remote configuration of such mobile devices
US8874953B2 (en) System and method of cloud testing and remote monitoring for integrated circuit components in system validation
KR20210040884A (en) Edge computing test methods, devices, electronic devices and computer-readable media
US10303458B2 (en) Multi-platform installer
CN104185836A (en) Method and system for verifying proper operation of computing device after system change
CN109669873B (en) User interface automatic test method and device, electronic equipment and storage medium
US20070288737A1 (en) Service processor host flash update over LPC
CN107111595B (en) Method, device and system for detecting early boot errors
CN106980493B (en) Firmware management method and device
CN103257922B (en) A kind of method of quick test BIOS and OS interface code reliability
CN106990985A (en) Apparatus and method based on BMC renewals and standby system UEFI firmwares
CN112256505A (en) Server stability testing method and device and related components
US9237071B2 (en) Computer-readable recording medium, verification method, and verification device
CN108932134B (en) Remote updating method for server BIOS
CN106484442B (en) Server system and method for updating startup mapping file
Alkadhim Communicating with raspberry pi via mavlink
CN107222586A (en) A kind of BMC IP method in automatic identification LAN
US20060080636A1 (en) Method of building intelligent platform management interface firmware architecture
CN107870840B (en) IPMI-based server multi-test instruction automatic execution method
CN102243601B (en) Debugging system and relevant method for detecting and controlling state of computer host
CN114253573A (en) PCIe device firmware batch upgrading method, system, terminal and storage medium
CN111694587A (en) Server PNOR firmware upgrading method, device, equipment and storage medium
CN111459525A (en) Application update data processing system, application update data processing method, storage medium, and computer
CN110990181A (en) Method and system for automatically reproducing probabilistic setting failure of options in BIOS (basic input/output System)

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant