CN115016822A - BMC (baseboard management controller) firmware updating method, device, equipment and computer readable storage medium - Google Patents

BMC (baseboard management controller) firmware updating method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN115016822A
CN115016822A CN202210868272.8A CN202210868272A CN115016822A CN 115016822 A CN115016822 A CN 115016822A CN 202210868272 A CN202210868272 A CN 202210868272A CN 115016822 A CN115016822 A CN 115016822A
Authority
CN
China
Prior art keywords
bmc
original
test
flashing
information stored
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.)
Pending
Application number
CN202210868272.8A
Other languages
Chinese (zh)
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.)
Inspur Power Commercial Systems Co Ltd
Original Assignee
Inspur Power Commercial Systems 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 Inspur Power Commercial Systems Co Ltd filed Critical Inspur Power Commercial Systems Co Ltd
Priority to CN202210868272.8A priority Critical patent/CN115016822A/en
Publication of CN115016822A publication Critical patent/CN115016822A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a BMC firmware updating method, which is applied to the field of server maintenance and comprises the following steps: monitoring the original BMC; judging whether the original BMC has a fault according to a monitoring result; when the original BMC fails, the information stored in the test BMC is flashed into the original BMC. According to the method, the original BMC is monitored, the running state of the original BMC is determined, when the original BMC fails, information stored in the tested BMC is written into the original BMC in time, and compared with the prior art that a system OS needs to be logged in to be updated through system software, or Flash is detached to be placed in a specific burner through a burner to be burned, the BMC firmware updating method provided by the application can directly recover the BMC firmware without manual intervention and is completely independent of the damage condition of the BMC firmware, so that the method for updating the BMC firmware is more convenient and flexible. The invention also provides a BMC firmware updating system, equipment and a computer readable storage medium.

Description

一种BMC固件更新方法、装置、设备及计算机可读存储介质A kind of BMC firmware update method, apparatus, equipment and computer readable storage medium

技术领域technical field

本发明涉及服务器维护领域,特别涉及一种BMC固件更新方法、装置、设备及计算机可读存储介质。The present invention relates to the field of server maintenance, and in particular, to a BMC firmware update method, apparatus, device and computer-readable storage medium.

背景技术Background technique

BMC(Baseboard Management Controller)即基板管理控制器,是IPMI(Intelligent Platform Management Interface)协议即智能平台管理接口所定义的服务器管理体系中的核心组件,是一个独立于系统的管理软件,基于行业标准的IPMI规范,用于对服务器远程管理、固件升级、系统监控等一些操作。BMC (Baseboard Management Controller) is the baseboard management controller. It is the core component of the server management system defined by the IPMI (Intelligent Platform Management Interface) protocol, that is, the intelligent platform management interface. It is a system-independent management software based on industry standards. The IPMI specification is used for some operations such as remote management of servers, firmware upgrades, and system monitoring.

随着计算机技术的快速发展,BMC(基板管理控制器)在服务器中的监控管理服务作用也越来越大,在服务器行业中的地位越来越高,针对BMC固件的攻击层出不穷,各种各样的攻击会导致BMC固件出现故障。因此,在服务器的使用过程中,不管是运行维护还是研发过程,无法避免遇到BMC无法启动的情况。近几年,由于疫情影响,远程办公也成为常态化,此时当遇到BMC固件崩溃无法恢复的状况时,传统的恢复方法是登录系统操作系统通过系统软件进行更新,或者通过烧录器把Flash(存储芯片)拆卸下来放到特定的烧录器进行烧录。传统的这两种方法局限性太强,依赖操作系统并且操作系统有登录权限和读写权限,在运维时间段,由于系统和数据安全的考量,客户往往不允许运维进入操作系统,更不可能再去操作系统里装烧录软件,而开发阶段机器往往是没有安装操作系统的,即便安装了操作系统,在BMC崩溃的时候操作系统可能是关机状态,无法远程开机,把Flash拆卸下来烧录又很难符合远程办公的主基调,太依赖人的干预。或者提前在BMC或者机器内部存储备份镜像,备份的镜像不够灵活。With the rapid development of computer technology, BMC (Baseboard Management Controller) plays an increasingly important role in monitoring and management services in servers, and its status in the server industry is getting higher and higher. Attacks against BMC firmware emerge in an endless stream, and various Such an attack would cause the BMC firmware to malfunction. Therefore, in the process of using the server, whether it is operation maintenance or R&D process, it is unavoidable to encounter the situation that the BMC cannot be started. In recent years, due to the impact of the epidemic, telecommuting has also become the norm. At this time, when the BMC firmware crashes and cannot be recovered, the traditional recovery method is to log in to the system operating system to update the system software, or use the burner to update the system software. The Flash (memory chip) is disassembled and put into a specific burner for burning. These two traditional methods are too limited, relying on the operating system and the operating system has login permissions and read and write permissions. During the operation and maintenance period, due to the consideration of system and data security, customers often do not allow the operation and maintenance to enter the operating system. It is impossible to install the programming software in the operating system, and the machine often does not have the operating system installed in the development stage. Even if the operating system is installed, the operating system may be shut down when the BMC crashes, and it cannot be remotely turned on. Remove the Flash. It is difficult for programming to meet the main tone of remote office, and it relies too much on human intervention. Or store the backup image in the BMC or the machine in advance. The backup image is not flexible enough.

因此,为了弥补现有技术无法远程升级、快速恢复BMC固件的不足,提供一种快速、简单、灵活恢复BMC固件的方法就显得尤为重要。Therefore, in order to make up for the inability to remotely upgrade and quickly restore the BMC firmware in the prior art, it is particularly important to provide a fast, simple and flexible method for restoring the BMC firmware.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明的目的在于提供一种BMC固件更新方法、装置、设备及计算机可读存储介质,解决了现有技术中BMC固件更新不灵活、不简单、不快速的问题。In view of this, the purpose of the present invention is to provide a BMC firmware update method, apparatus, device and computer-readable storage medium, which solve the problems of inflexibility, simplicity and speed of BMC firmware update in the prior art.

为解决上述技术问题,本发明提供了一种BMC固件更新方法,包括:In order to solve the above-mentioned technical problems, the present invention provides a BMC firmware update method, comprising:

监控原始BMC;monitor raw BMC;

根据监控结果判断所述原始BMC是否出现故障;Determine whether the original BMC is faulty according to the monitoring result;

当所述原始BMC出现故障时,将测试BMC中存储的信息刷写到所述原始BMC中。When the original BMC fails, the information stored in the test BMC is written to the original BMC.

可选的,当所述原始BMC出现故障时,还包括:Optionally, when the original BMC is faulty, the method further includes:

读取并存储所述原始BMC的存储信息。The storage information of the original BMC is read and stored.

可选的,所述将测试BMC中存储的信息刷写到所述原始BMC中之后,还包括:Optionally, after the information stored in the test BMC is written to the original BMC, the method further includes:

获取刷写完成后的持续时间;Get the duration after flashing is completed;

当所述持续时间超过预设时间阈值,且刷写后的所述原始BMC不能正常运行时;When the duration exceeds a preset time threshold, and the original BMC after flashing cannot operate normally;

再次执行所述将测试BMC中存储的信息刷写到所述原始BMC中的步骤。The step of flashing the information stored in the test BMC into the original BMC is performed again.

可选的,所述BMC固件更新方法,还包括:Optionally, the BMC firmware update method further includes:

统计将测试BMC中存储的信息刷写到所述原始BMC中的次数;Count the number of times that the information stored in the test BMC is written to the original BMC;

当所述次数超过预设刷写次数时,暂停执行所述将测试BMC中存储的信息刷写到所述原始BMC中的步骤,并输出无法正常刷写的提示信息。When the number of times exceeds the preset number of flashing and writing, execution of the step of flashing the information stored in the test BMC to the original BMC is suspended, and a prompt message that cannot be flashed normally is output.

可选的,所述监控原始BMC,包括:Optionally, the monitoring of the original BMC includes:

通过指示灯来监控原始BMC;Monitor the original BMC through indicator lights;

当所述指示灯闪烁时,所述原始BMC没有出现故障;When the indicator light flashes, the original BMC is not faulty;

当所述指示灯常亮时,所述原始BMC出现故障。When the indicator light is always on, the original BMC is faulty.

可选的,所述监控原始BMC之前,还包括:Optionally, before the monitoring of the original BMC, the method further includes:

当接收到读取指令时,读取所述原始BMC;When receiving the read instruction, read the original BMC;

将所述原始BMC中的内容刷写到所述测试BMC中。Flash the content in the original BMC into the test BMC.

可选的,所述监控原始BMC,包括:Optionally, the monitoring of the original BMC includes:

按预设周期监控所述原始BMC。The raw BMC is monitored on a preset cycle.

本发明还提供一种BMC固件更新装置,包括:The present invention also provides a BMC firmware update device, comprising:

监控模块,用于监控原始BMC;Monitoring module for monitoring the original BMC;

判断模块,用于根据监控结果判断所述原始BMC是否出现故障;a judgment module, used for judging whether the original BMC is faulty according to the monitoring result;

更新模块,用于当所述原始BMC出现故障时,将测试BMC中存储的信息刷写到所述原始BMC中。An update module, configured to flash the information stored in the test BMC into the original BMC when the original BMC is faulty.

本发明还提供一种BMC固件更新设备,包括:The present invention also provides a BMC firmware update device, comprising:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序实现上述任一项所述的BMC固件更新方法的步骤。The processor is configured to execute the computer program to implement the steps of any one of the above-mentioned BMC firmware updating methods.

本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述任一项所述BMC固件更新方法的步骤。The present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of any one of the above-mentioned BMC firmware updating methods are implemented.

可见,通过本方法监控原始BMC;根据监控结果判断所述原始BMC是否出现故障;当所述原始BMC出现故障时,将测试BMC中存储的信息刷写到所述原始BMC中。与现有技术需要登录系统OS通过系统软件进行更新,或者通过烧录器把Flash拆卸下来放到特定的烧录器进行烧录相比,现有技术过多依赖操作系统,在运维时间段,由于系统和数据安全的考量,客户往往不允许运维进入操作系统,更不可能再去操作系统里装烧录软件,而开发阶段机器往往是没有安装操作系统的,即便安装了操作系统,在BMC崩溃的时候操作系统可能是关机状态,无法远程开机,把Flash拆卸下来烧录又很难符合远程办公的主基调,太依赖人的干预。而本申请所提供的BMC固件更新方法可以不需要人工干预直接回复,并且完全不依赖于BMC固件的损坏情况,只要监控原始BMC,当发现原始BMC出现故障时,直接将测试BMC中存储的信息直接刷写到原始BMC中。因此,本申请提供的更新BMC固件的方法更加方便且灵活。It can be seen that the original BMC is monitored by this method; whether the original BMC is faulty is judged according to the monitoring result; when the original BMC is faulty, the information stored in the test BMC is written into the original BMC. Compared with the prior art, which requires logging in to the system OS to update through the system software, or disassembling the Flash through the burner and placing it in a specific burner for burning, the prior art relies too much on the operating system, and during the operation and maintenance period , Due to the consideration of system and data security, customers often do not allow operation and maintenance to enter the operating system, and it is even more impossible to install programming software in the operating system, and the machine in the development stage often does not have an operating system installed, even if the operating system is installed, When the BMC crashes, the operating system may be in a shutdown state and cannot be powered on remotely. It is difficult to disassemble the Flash for programming and it is difficult to meet the main tone of remote office, and it relies too much on human intervention. The BMC firmware update method provided by this application can directly reply without manual intervention, and is completely independent of the damage of the BMC firmware. As long as the original BMC is monitored, when the original BMC is found to be faulty, the information stored in the BMC will be directly tested. Flash directly into the original BMC. Therefore, the method for updating the BMC firmware provided by the present application is more convenient and flexible.

此外,本发明还提供了一种BMC固件更新装置、设备及计算机可读存储介质,同样具有上述有益效果。In addition, the present invention also provides a BMC firmware update apparatus, device and computer-readable storage medium, which also have the above beneficial effects.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to the provided drawings without creative work.

图1为本发明实施例提供的一种BMC固件更新方法的流程图;1 is a flowchart of a method for updating BMC firmware provided by an embodiment of the present invention;

图2为本发明实施例提供的一种BMC固件更新装置的结构示意图;2 is a schematic structural diagram of a BMC firmware update device provided by an embodiment of the present invention;

图3为本发明实施例提供的一种BMC固件更新设备的结构示意图。FIG. 3 is a schematic structural diagram of a BMC firmware update device according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments It is only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

请参考图1,图1为本发明实施例提供的一种BMC固件更新方法的流程图。该方法可以包括:Please refer to FIG. 1. FIG. 1 is a flowchart of a method for updating BMC firmware according to an embodiment of the present invention. The method can include:

S100,监控原始BMC;S100, monitor the original BMC;

该实施例并不限定监控原始BMC的具体方法,只要可以监控原始BMC的运行状态即可。例如,通过监控主机中Host-CPU(主机中央处理器)反馈的BMC运行状态来监控原始BMC;或者通过监控原始BMC的心跳来监控原始BMC的运行状态,即通过指示灯来监控原始BMC,当指示灯闪烁时代表有心跳,此时原始BMC没有出现故障,当指示灯常亮时,代表没有检测到心跳,此时原始BMC出现故障。This embodiment does not limit the specific method of monitoring the original BMC, as long as the running state of the original BMC can be monitored. For example, monitor the original BMC by monitoring the running state of the BMC fed back by the Host-CPU (host central processing unit) in the host; or monitor the running state of the original BMC by monitoring the heartbeat of the original BMC, that is, monitor the original BMC through the indicator lights. When the indicator is flashing, it means that there is a heartbeat, and the original BMC is not faulty. When the indicator is on, it means that no heartbeat is detected, and the original BMC is faulty.

S101,根据监控结果判断所述原始BMC是否出现故障;S101, judge whether the original BMC is faulty according to the monitoring result;

该实施例中并不限定根据监控的结果对原始BMC是否出现故障进行判断的具体手段,只要可以根据监控结果判断原始BMC是否出现故障即可。例如,若发送喂狗消息之后,未接收到原始BMC发送的反馈消息,则Host-CPU(主机中央处理器)确定原始BMC出现故障,进而通过监控Host-CPU(主机中央处理器)确定的结果来判断原始BMC是否出现故障。或者通过监控指示灯的状态来监控原始BMC,当监控到指示灯的状态为指示灯闪烁时,确定原始BMC没有出现故障,当监控到指示灯的状态为指示灯常亮时,确定原始BMC出现故障;例如当监控到指示灯的状态为绿灯闪烁时,确定原始BMC没有出现故障,当监控到指示灯的状态为绿灯常亮时,确定原始BMC出现故障,当监控到指示灯的状态为红灯时,确定原始BMC正在刷写。This embodiment does not limit the specific means of judging whether the original BMC is faulty according to the monitoring result, as long as it can be judged whether the original BMC is faulty according to the monitoring result. For example, if the feedback message sent by the original BMC is not received after sending the dog feeding message, the Host-CPU (host central processing unit) determines that the original BMC is faulty, and then monitors the result determined by the Host-CPU (host central processing unit). to determine whether the original BMC is faulty. Or monitor the original BMC by monitoring the status of the indicator. When the status of the monitoring indicator is that the indicator is flashing, it is determined that the original BMC is not faulty. When the status of the monitoring indicator is that the indicator is always on, it is determined that the original BMC is present. Fault; for example, when the status of the monitoring indicator is green and flashing, it is determined that the original BMC is not faulty; when the status of the monitoring indicator is green and steady on, it is determined that the original BMC is faulty, and when the status of the monitoring indicator is red When the light is on, make sure the original BMC is being flashed.

S102,当所述原始BMC出现故障时,将测试BMC中存储的信息刷写到所述原始BMC中。S102, when the original BMC is faulty, flush the information stored in the test BMC into the original BMC.

该实施例并不限定测试BMC中存储的信息类型,只要可以刷写到原始BMC中即可。例如,测试BMC中存储的信息可以是原始BMC未发生故障前的信息;或者测试BMC中未存储任何信息,此时将空白的信息刷写到原始BMC中,即通过空白的测试BMC擦除原始BMC中存储的信息;或者测试BMC中存储的信息是可以运行与原始BMC对应监控管理服务所需的信息,进而刷写到空白的原始BMC中,即测试BMC可以在空白的原始BMC中进行刷写。该实施例也不限定将测试BMC中存储的信息刷写到原始BMC中的时机,例如当原始BMC出现故障时,自动切换到将测试BMC中存储的信息刷写到原始BMC中的状态,例如,接收到刷写指令时,将测试BMC中存储的信息刷写到原始BMC中。该实施例并不限定当原始BMC未出现故障时,应该执行什么操作。例如,当原始BMC未出现故障时,禁止执行将测试BMC中存储的信息刷写到所述原始BMC中;或者当原始BMC未出现故障时,执行原始BMC对服务器远程管理、固件升级、系统监控等一些操作。该实施中将测试BMC中存储的信息刷写到所述原始BMC中后,可以实现原始BMC的自动复位,即自动切换到原始BMC运行的状态。This embodiment does not limit the type of information stored in the test BMC, as long as it can be flashed to the original BMC. For example, the information stored in the test BMC can be the information before the original BMC fails; or no information is stored in the test BMC, at this time, the blank information is written to the original BMC, that is, the original BMC is erased through the blank test BMC. The information stored in the BMC; or the information stored in the test BMC is the information required to run the monitoring management service corresponding to the original BMC, and then flash to the blank original BMC, that is, the test BMC can be flashed in the blank original BMC Write. This embodiment also does not limit the timing of flashing the information stored in the test BMC to the original BMC. For example, when the original BMC fails, it automatically switches to the state of flashing the information stored in the test BMC to the original BMC, for example , when receiving a flash command, flash the information stored in the test BMC to the original BMC. This embodiment does not limit what operation should be performed when the original BMC is not faulty. For example, when the original BMC is not faulty, it is forbidden to perform the flashing of the information stored in the test BMC to the original BMC; or when the original BMC is not faulty, perform the original BMC remote management of the server, firmware upgrade, system monitoring Wait for some action. In this implementation, after the information stored in the test BMC is flashed into the original BMC, automatic reset of the original BMC can be realized, that is, automatic switching to the running state of the original BMC can be realized.

基于上述实施方案,本发明实施例通过监控原始BMC;根据监控结果判断所述原始BMC是否出现故障;当所述原始BMC出现故障时,将测试BMC中存储的信息刷写到所述原始BMC中。由于本发明实施例和现有技术需要通过烧录器把Flash拆卸下来放到特定的烧录器进行烧录的技术方案相比,本实施例仅仅通过监控到原始BMC,当发现原始BMC出现故障时,将测试BMC中的存储信息刷写到原始BMC中,使得原始BMC得以尽快恢复正常状态。可见,本发明实施例提供的技术方案可以及时地对损坏的原始BMC固件进行快速恢复,并且不需要人工干预。Based on the above implementation, the embodiment of the present invention monitors the original BMC; determines whether the original BMC is faulty according to the monitoring result; when the original BMC fails, flashes the information stored in the test BMC to the original BMC . Since the embodiment of the present invention is compared with the technical solution in the prior art in which the Flash needs to be disassembled through a burner and placed in a specific burner for burning, this embodiment only monitors the original BMC, and when it is found that the original BMC is faulty , flash the storage information in the test BMC to the original BMC, so that the original BMC can return to the normal state as soon as possible. It can be seen that the technical solutions provided by the embodiments of the present invention can quickly restore the damaged original BMC firmware in a timely manner without manual intervention.

基于上述实施例,进一步为了方便后续对原始BMC固件出现故障的原因进行分析,当所述原始BMC出现故障时,还可以包括:Based on the above-mentioned embodiment, in order to further facilitate the subsequent analysis of the reason for the failure of the original BMC firmware, when the original BMC fails, it may also include:

读取并存储所述原始BMC的存储信息。The storage information of the original BMC is read and stored.

该实施例并不限定读取和存储原始BMC的存储信息的位置,只要可以读取和存储原始BMC的存储信息即可。例如存储到MCU(Single Chip Microcomputer,单片微型计算机中,或者存储到测试BMC的Flash中。该实施例在原始BMC出现故障时,对原始BMC的存储信息进行读取和存储,是为了方便后续对原始BMC出现故障的原因进行分析,该实施例可以方便问题分析定位和方便开发运维,进而尽量避免原始BMC再次出现此类故障。This embodiment does not limit the location where the storage information of the original BMC is read and stored, as long as the storage information of the original BMC can be read and stored. For example, it is stored in the MCU (Single Chip Microcomputer, single-chip microcomputer, or stored in the Flash of the test BMC. This embodiment reads and stores the storage information of the original BMC when the original BMC fails, in order to facilitate the follow-up. The reason for the failure of the original BMC is analyzed, and this embodiment can facilitate problem analysis and location, and facilitate development, operation and maintenance, so as to avoid such failures in the original BMC as much as possible.

基于上述实施例,进一步为了提高刷写的成功率,所述将测试BMC中存储的信息刷写到所述原始BMC中之后,还可以包括:Based on the above embodiment, in order to further improve the success rate of flashing, after the information stored in the test BMC is flashed to the original BMC, it may further include:

获取刷写完成后的持续时间;Get the duration after flashing is completed;

当所述持续时间超过预设时间阈值,且刷写后的所述原始BMC不能正常运行时;When the duration exceeds a preset time threshold, and the original BMC after flashing cannot operate normally;

再次执行所述将测试BMC中存储的信息刷写到所述原始BMC中的步骤。The step of flashing the information stored in the test BMC into the original BMC is performed again.

该实施例中刷写完成后的持续时间是指将测试BMC在存储的信息完全刷写到原始BMC后所持续的时间。该实施例并不限定预设时间阈值的具体数值,可以根据原始BMC重启所需时间进行限制。例如可以是4分钟、5分钟、6分钟、7分钟等。该实施例中并不限定在预设时间阈值后判断刷写后原始BMC运行状态的具体时机。例如在刷写完成5分钟后发现刷写后的原始BMC不能正常运行,则需要继续执行将测试BMC中存储的信息刷写到原始BMC中的步骤;或者在刷写完成4分钟后发现刷写后的原始BMC不能正常运行,则需要继续执行将测试BMC中存储的信息刷写到原始BMC中的步骤;或者当刷写完成后接收到复位信号时,在预设时间阈值后检测刷写后的原始BMC是否可以正常运行,当不能正常运行,说明刷写未成功,需要再次执行将测试BMC中存储的信息刷写到原始BMC中的步骤;或者当刷写完成后,自动复位,进而在预设时间阈值内检测刷写后的原始BMC是否可以正常运行,当不能正常运行,说明刷写未成功,需要再次执行将测试BMC中存储的信息刷写到原始BMC中的步骤。该实施例并不限定当超过预设时间阈值后刷写后的原始BMC可以正常运行后所需执行的操作。例如当超过预设时间阈值后刷写后的原始BMC可以正常运行时,发送提示信息,提示用户刷写后的原始BMC已经可以正常使用,或者不发送任何信息,直接执行原始BMC未发生故障时执行的相应操作即可。In this embodiment, the duration after the flashing is completed refers to the duration after the information stored in the test BMC is completely flashed to the original BMC. This embodiment does not limit the specific value of the preset time threshold, which may be limited according to the time required for restarting the original BMC. For example, it can be 4 minutes, 5 minutes, 6 minutes, 7 minutes, etc. This embodiment does not limit the specific timing for judging the original BMC running state after flashing after the preset time threshold. For example, if it is found that the original BMC after the flashing cannot run normally 5 minutes after the flashing is completed, you need to continue to perform the steps of flashing the information stored in the test BMC to the original BMC; or if the flashing is found 4 minutes after the flashing is completed If the original BMC cannot run normally, it is necessary to continue to perform the steps of flashing the information stored in the test BMC to the original BMC; or when the reset signal is received after the flashing is completed, after the flashing is detected after a preset time threshold Whether the original BMC of the test BMC can run normally, if it cannot run normally, it means that the flashing is unsuccessful, and you need to perform the steps of flashing the information stored in the test BMC to the original BMC again; or when the flashing is completed, it will automatically reset, and then in Check whether the original BMC after flashing can run normally within the preset time threshold. If it cannot run normally, it means that the flashing is unsuccessful, and you need to perform the steps of flashing the information stored in the test BMC to the original BMC again. This embodiment does not limit the operations that need to be performed after the original BMC after flashing and writing can run normally when the preset time threshold is exceeded. For example, when the flashed original BMC can run normally after the preset time threshold is exceeded, a prompt message is sent to remind the user that the flashed original BMC can be used normally, or no information is sent and the original BMC is directly executed without failure. Perform the appropriate action.

基于上述实施例,进一步为了防止原始BMC出现不可通过刷写进行恢复的问题,导致一直进行刷写,影响恢复原始BMC固件的效率,所述BMC固件更新方法,还可以包括:Based on the above embodiment, in order to prevent the original BMC from being unable to be restored by flashing, the flashing is always performed, which affects the efficiency of restoring the original BMC firmware. The method for updating the BMC firmware may also include:

统计将测试BMC中存储的信息刷写到所述原始BMC中的次数;Count the number of times that the information stored in the test BMC is written to the original BMC;

当所述次数超过预设刷写次数时,暂停执行所述将测试BMC中存储的信息刷写到所述原始BMC中的步骤,并输出无法正常刷写的提示信息。When the number of times exceeds the preset number of flashing and writing, execution of the step of flashing the information stored in the test BMC to the original BMC is suspended, and a prompt message that cannot be flashed normally is output.

该实施例中不限定预设刷写次数的具体数值,例如预设刷写次数是5次,预设刷写次数是3次、预设刷写次数是4次等。该实施例也不限定输出无法正常刷写的提示信息的具体类型,例如可以是通过文字的形式来提示无法正常刷写的提示信息,或者通过震动的形式来提示无法正常刷写的提示信息,或者通过语音的形式来提示无法正常刷写的提示信息。This embodiment does not limit the specific value of the preset number of refreshes, for example, the preset number of times of refresh is 5 times, the number of times of preset refresh is 3 times, the number of times of preset refresh is 4 times, and the like. This embodiment also does not limit the specific type of the prompt information that cannot be written normally, for example, the prompt information that cannot be written normally can be prompted in the form of text, or the prompt information that cannot be written normally can be prompted in the form of vibration. Or the prompt information that cannot be written normally can be prompted in the form of voice.

基于上述实施例,进一步为了方便监控原始BMC的运行状态,及时发现故障,所述监控原始BMC,可以包括:Based on the above embodiment, in order to further facilitate monitoring of the running state of the original BMC and timely discovery of faults, the monitoring of the original BMC may include:

通过指示灯来监控原始BMC;Monitor the original BMC through indicator lights;

当所述指示灯闪烁时,所述原始BMC没有出现故障;When the indicator light flashes, the original BMC is not faulty;

当所述指示灯常亮时,所述原始BMC出现故障。When the indicator light is always on, the original BMC is faulty.

该实施例不限定指示灯的具体类型,例如当绿灯闪烁时,代表原始BMC没有出现故障,当绿灯常亮时,代表原始BMC出现故障。或者当红灯闪烁时,代表原始BMC没有出现故障,当红灯常亮时,代表原始BMC出现故障。This embodiment does not limit the specific type of the indicator light. For example, when the green light is flashing, it means that the original BMC is not faulty, and when the green light is always on, it means that the original BMC is faulty. Or when the red light is flashing, it means that the original BMC is not faulty, and when the red light is always on, it means that the original BMC is faulty.

基于上述实施例,进一步为了加快录用测试BMC对原始BMC进行更新的速率,所述监控原始BMC之前,还可以包括:Based on the above embodiment, further in order to speed up the rate at which the original BMC is updated by the recruiting test BMC, before the monitoring of the original BMC, it may further include:

当接收到读取指令时,读取所述原始BMC;When receiving the read instruction, read the original BMC;

将所述原始BMC中的内容刷写到所述测试BMC中。Flash the content in the original BMC into the test BMC.

该实施例中并不限定刷写到测试BMC中的具体内容,用户可以根据自己的需求将原始BMC中的内容刷写到测试BMC中。In this embodiment, the specific content to be flashed into the test BMC is not limited, and the user can flash the content of the original BMC to the test BMC according to his own needs.

基于上述实施例,进一步为及时、快速地发现原始BMC固件出现问题,所述监控原始BMC,可以包括:Based on the above-mentioned embodiment, in order to find out a problem with the original BMC firmware in time and quickly, the monitoring of the original BMC may include:

按预设周期监控所述原始BMC。The raw BMC is monitored on a preset cycle.

该实施例并不限定预设周期的具体时间。例如1秒、2秒、3秒等。This embodiment does not limit the specific time of the preset period. For example, 1 second, 2 seconds, 3 seconds, etc.

综上,基于上述实施例,本发明实施例提供的BMC固件更新方法可以快速、灵活地对BMC固件进行更新,并且不需要人工干预。并且,本实施例提供您的BMC固件更新方法当原始BMC固件出现故障时,可以读取并存储原始BMC的存储信息,进一步方便了后续对原始BMC固件出现故障的原因进行精确分析;并且还当超过预设时间阈值后刷写后的所述原始BMC不能正常运行时;再次执行所述将测试BMC中存储的信息刷写到所述原始BMC中的步骤。进一步防止一次刷写可能无法成功刷写的情况,通过多次刷写,提高刷写的成功率。进一步该实施例通过统计将测试BMC中存储的信息刷写到所述原始BMC中的次数,当所述次数超过预设刷写次数时,暂停执行所述将测试BMC中存储的信息刷写到所述原始BMC中的步骤,并输出无法正常刷写的提示信息。防止是由于原始BMC的故障无法通过将测试BMC中存储的信息刷写进行解决,导致无休止的刷写,所以本实施例输出无法正常刷写的提示信息;并且,进一步该实施例通过指示灯来监控原始BMC;当所述指示灯闪烁时,所述原始BMC没有出现故障;当所述指示灯常亮时,所述原始BMC出现故障。通过该方法可以快速简单地发现原始BMC出现故障;进一步,该实施例当接收到读取指令时,读取所述原始BMC;将所述原始BMC中的内容刷写到所述测试BMC中。通过在使用测试BMC对原始BMC进行更新之前,将原始BMC中的内容刷写到测试BMC中,使得后续使用测试BMC对原始BMC进行恢复时,更加准确且快速。可见,本发明实施例提供的BMC固件更新方法,可以快速、简单、灵活,并且在无人工干预的情况下对原始BMC进行恢复。To sum up, based on the above embodiments, the BMC firmware update method provided by the embodiments of the present invention can quickly and flexibly update the BMC firmware without manual intervention. In addition, this embodiment provides a method for updating your BMC firmware. When the original BMC firmware fails, the storage information of the original BMC can be read and stored, which further facilitates subsequent accurate analysis of the cause of the original BMC firmware failure; When the flashed original BMC cannot run normally after the preset time threshold is exceeded; the step of flashing the information stored in the test BMC into the original BMC is performed again. To further prevent the situation where one-time flashing may not be successful, and through multiple flashing, the success rate of flashing can be improved. Further in this embodiment, by counting the number of times that the information stored in the test BMC is written to the original BMC, when the number of times exceeds the preset number of times of brushing, the execution of the described brushing of the information stored in the test BMC is suspended. The steps in the original BMC, and output the prompt information that cannot be flashed normally. Prevention is because the failure of the original BMC cannot be solved by flashing the information stored in the test BMC, resulting in endless flashing, so the present embodiment outputs the prompt information that cannot be flashed normally; and, further this embodiment passes the indicator light. to monitor the original BMC; when the indicator light is flashing, the original BMC is not faulty; when the indicator light is always on, the original BMC is faulty. This method can quickly and simply find out that the original BMC is faulty; further, in this embodiment, when a read instruction is received, the original BMC is read; and the content in the original BMC is flashed into the test BMC. By flashing the content in the original BMC to the test BMC before using the test BMC to update the original BMC, the subsequent use of the test BMC to restore the original BMC is more accurate and faster. It can be seen that the BMC firmware update method provided by the embodiment of the present invention can be fast, simple, and flexible, and can restore the original BMC without manual intervention.

下面对本发明实施例提供的BMC固件更新装置进行介绍,下文描述的BMC固件更新装置与上文描述的BMC固件更新方法可相互对应参照。The following describes the BMC firmware updating apparatus provided by the embodiments of the present invention. The BMC firmware updating apparatus described below and the BMC firmware updating method described above may refer to each other correspondingly.

具体请参考图2,图2为本发明实施例提供的一种BMC固件更新装置的结构示意图,可以包括:Please refer to FIG. 2 for details. FIG. 2 is a schematic structural diagram of a BMC firmware update device according to an embodiment of the present invention, which may include:

监控模块100,用于监控原始BMC;a monitoring module 100 for monitoring the original BMC;

判断模块200,用于根据监控结果判断所述原始BMC是否出现故障;Judging module 200, for judging whether the original BMC is faulty according to the monitoring result;

更新模块300,用于当所述原始BMC出现故障时,将测试BMC中存储的信息刷写到所述原始BMC中。The update module 300 is configured to flash the information stored in the test BMC into the original BMC when the original BMC is faulty.

基于上述实施例,所述BMC固件更新装置,还可以包括:Based on the foregoing embodiment, the BMC firmware update apparatus may further include:

存储模块,用于读取并存储所述原始BMC的存储信息。The storage module is used for reading and storing the storage information of the original BMC.

基于上述实施例,所述更新模块300之后,还可以包括:Based on the above embodiment, after the update module 300, it may further include:

持续时间获取模块,用于获取刷写完成后的持续时间;The duration obtaining module is used to obtain the duration after the flashing is completed;

第一判断模块,用于当所述持续时间超过预设时间阈值,且刷写后的所述原始BMC不能正常运行时;a first judgment module, used for when the duration exceeds a preset time threshold and the original BMC after being refreshed cannot run normally;

持续刷写模块,用于再次执行所述将测试BMC中存储的信息刷写到所述原始BMC中的步骤。The continuous flashing module is configured to perform the step of flashing the information stored in the test BMC into the original BMC again.

基于上述实施例,所述BMC固件更新装置,还可以包括:Based on the foregoing embodiment, the BMC firmware update device may further include:

刷写次数统计模块,用于统计将测试BMC中存储的信息刷写到所述原始BMC中的次数;A number of flushing statistics module, used to count the number of flushing the information stored in the test BMC to the original BMC;

提示模块,用于当所述次数超过预设刷写次数时,暂停执行所述将测试BMC中存储的信息刷写到所述原始BMC中的步骤,并输出无法正常刷写的提示信息。The prompt module is configured to suspend the execution of the step of flashing the information stored in the test BMC to the original BMC when the number of times exceeds the preset flashing times, and output prompt information that cannot be flashed normally.

基于上述实施例,所述监控模块100,可以包括:Based on the foregoing embodiment, the monitoring module 100 may include:

指示灯检测单元,用于通过指示灯来监控原始BMC;The indicator light detection unit is used to monitor the original BMC through the indicator light;

指示灯闪烁单元,用于当指示灯闪烁时,所述原始BMC没有出现故障;an indicator light flashing unit, used for when the indicator light is flashing, the original BMC is not faulty;

指示灯常亮单元,用于当指示灯常亮时,所述原始BMC出现故障。The indicator light is always on unit, used when the indicator light is always on, the original BMC is faulty.

基于上述实施例,所述监控模块100之前,还可以包括:Based on the foregoing embodiment, before the monitoring module 100, it may further include:

读取模块,用于当接收到读取指令时,读取所述原始BMC;a reading module for reading the original BMC when receiving a reading instruction;

测试BMC刷写模块,用于将所述原始BMC中的内容刷写到所述测试BMC中。A test BMC flashing module for flashing the content in the original BMC into the test BMC.

基于上述实施例,所述监控模块100,可以包括:Based on the foregoing embodiment, the monitoring module 100 may include:

周期监控单元,用于按预设周期监控所述原始BMC。A period monitoring unit, configured to monitor the original BMC according to a preset period.

本发明实施例,所提供的BMC固件更新装置,包括:监控模块100,用于监控原始BMC;判断模块200,用于根据监控结果判断所述原始BMC是否出现故障;更新模块300,用于当所述原始BMC出现故障时,将测试BMC中存储的信息刷写到所述原始BMC中。该装置通过监控模块100对原始BMC的状态进行检测,当判断模块200,根据检测结果发现BMC固件出现故障时,更新模块300可以及时利用测试BMC对原始BMC进行刷写。可见,本发明实施例所提供的BMC固件更新装置,可以利用监控模块100、判断模块200和更新模块300,及时、方便、灵活地实现对原始BMC固件的无人工干预更新,弥补了现有技术需要依赖人的干预,或者更新不够灵活的技术问题。In the embodiment of the present invention, the provided BMC firmware update device includes: a monitoring module 100 for monitoring the original BMC; a judging module 200 for judging whether the original BMC is faulty according to the monitoring result; and an update module 300 for when When the original BMC fails, the information stored in the test BMC is written to the original BMC. The device detects the state of the original BMC through the monitoring module 100. When the judgment module 200 finds that the BMC firmware is faulty according to the detection result, the update module 300 can use the test BMC to flash the original BMC in time. It can be seen that the BMC firmware update device provided by the embodiment of the present invention can utilize the monitoring module 100, the judgment module 200 and the update module 300 to realize the update of the original BMC firmware without manual intervention in a timely, convenient and flexible manner, which makes up for the prior art. Need to rely on human intervention, or update inflexible technical issues.

下面对本发明实施例提供的BMC固件更新设备进行介绍,下文描述的BMC固件更新设备与上文描述的BMC固件更新方法可相互对应参照。The following describes the BMC firmware updating device provided by the embodiments of the present invention. The BMC firmware updating device described below and the BMC firmware updating method described above may refer to each other correspondingly.

请参考图3,图3为本发明实施例提供的一种BMC固件更新设备的结构示意图,可以包括:Please refer to FIG. 3. FIG. 3 is a schematic structural diagram of a BMC firmware update device provided by an embodiment of the present invention, which may include:

存储器10,用于存储计算机程序;a memory 10 for storing computer programs;

处理器20,用于执行计算机程序,以实现上述的BMC固件更新方法。The processor 20 is configured to execute a computer program to implement the above-mentioned BMC firmware update method.

如图3所示,为BMC固件更新设备的结构示意图,可以包括:存储器10、处理器20、通信接口31和通信总线32。存储器10、处理器20、通信接口31均通过通信总线32完成相互间的通信。As shown in FIG. 3 , it is a schematic structural diagram of a BMC firmware updating device, which may include: a memory 10 , a processor 20 , a communication interface 31 and a communication bus 32 . The memory 10 , the processor 20 , and the communication interface 31 all communicate with each other through the communication bus 32 .

在本发明实施例中,存储器10中用于存放一个或者一个以上程序,程序可以包括程序代码,程序代码包括计算机操作指令,在本申请实施例中,存储器10中可以存储有用于实现以下功能的程序:In the embodiment of the present invention, the memory 10 is used to store one or more programs, the programs may include program codes, and the program codes include computer operation instructions. In the embodiments of the present application, the memory 10 may store the following functions. program:

监控原始BMC;monitor raw BMC;

根据监控结果判断所述原始BMC是否出现故障;Determine whether the original BMC is faulty according to the monitoring result;

当所述原始BMC出现故障时,将测试BMC中存储的信息刷写到所述原始BMC中。When the original BMC fails, the information stored in the test BMC is written to the original BMC.

在一种可能的实现方式中,存储器10可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统,以及至少一个功能所需的应用程序等;存储数据区可存储使用过程中所创建的数据。In a possible implementation manner, the memory 10 may include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function, and the like; created data.

此外,存储器10可以包括只读存储器和随机存取存储器,并向处理器提供指令和数据。存储器的一部分还可以包括NVRAM。存储器存储有操作系统和操作指令、可执行模块或者数据结构,或者它们的子集,或者它们的扩展集,其中,操作指令可包括各种操作指令,用于实现各种操作。操作系统可以包括各种系统程序,用于实现各种基础任务以及处理基于硬件的任务。Additionally, memory 10 may include read only memory and random access memory and provide instructions and data to the processor. A portion of the memory may also include NVRAM. The memory stores an operating system and operating instructions, executable modules or data structures, or a subset thereof, or an extended set thereof, wherein the operating instructions may include various operating instructions for implementing various operations. An operating system may include various system programs for implementing various basic tasks and handling hardware-based tasks.

处理器20可以为中央处理器(CentralProcessing Unit,CPU)、特定应用集成电路、数字信号处理器、现场可编程门阵列或者其他可编程逻辑器件,处理器20可以是微处理器或者也可以是任何常规的处理器等。处理器20可以调用存储器10中存储的程序。在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、DSP、ASIC、FPGA或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 20 may be a central processing unit (Central Processing Unit, CPU), an application-specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic devices, and the processor 20 may be a microprocessor or any conventional processors, etc. The processor 20 may call programs stored in the memory 10 . In the implementation process, each step of the above-mentioned method can be completed by a hardware integrated logic circuit in a processor or an instruction in the form of software. The aforementioned processors may be general purpose processors, DSPs, ASICs, FPGAs or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The methods, steps, and logic block diagrams disclosed in the embodiments of this application can be implemented or executed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

通信接口31可以为通信模块的接口,用于与其他设备或者系统连接。The communication interface 31 may be an interface of a communication module for connecting with other devices or systems.

当然,需要说明的是,图3所示的结构并不构成对本申请实施例中BMC固件更新设备的限定,在实际应用中BMC固件更新设备可以包括比图3所示的更多或更少的部件,或者组合某些部件。Of course, it should be noted that the structure shown in FIG. 3 does not constitute a limitation on the BMC firmware update device in the embodiment of the present application. In practical applications, the BMC firmware update device may include more or less than that shown in FIG. 3 . parts, or a combination of certain parts.

下面对本发明实施例提供的计算机可读存储介质进行介绍,下文描述的计算机可读存储介质与上文描述的BMC固件更新方法可相互对应参照。The computer-readable storage medium provided by the embodiment of the present invention is introduced below, and the computer-readable storage medium described below and the BMC firmware update method described above may refer to each other correspondingly.

本发明还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现上述的BMC固件更新方法的步骤。The present invention also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned BMC firmware update method are implemented.

该计算机可读存储介质可以包括:U盘、移动硬盘、只读存储器(Read-OnlyMemory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The computer-readable storage medium may include: U disk, removable hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments may be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method.

专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应该认为超出本发明的范围。Professionals may further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two, in order to clearly illustrate the possibilities of hardware and software. Interchangeability, the above description has generally described the components and steps of each example in terms of function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系属于仅仅用来将一个实体或者操作与另一个实体或者操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其他任何变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。Finally, it should also be noted that, in this context, relationships such as first and second, etc., are used only to distinguish one entity or operation from another, and do not necessarily require or imply these entities or that there is any such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation are intended to cover a non-exclusive inclusion such that a process, method, article or apparatus that includes a list of elements includes not only those elements, but also not expressly listed Other elements, or elements that are inherent to such a process, method, article or apparatus.

以上对本发明所提供的BMC固件更新方法、装置、设备和计算机可读存储介质进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The BMC firmware update method, device, device and computer-readable storage medium provided by the present invention have been introduced in detail above. Specific examples are used in this paper to illustrate the principles and implementations of the present invention. The description of the above embodiments is only used for In order to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, this specification The contents should not be construed as limiting the present invention.

Claims (10)

1.一种BMC固件更新方法,其特征在于,包括:1. a BMC firmware update method, is characterized in that, comprises: 监控原始BMC;monitor raw BMC; 根据监控结果判断所述原始BMC是否出现故障;Determine whether the original BMC is faulty according to the monitoring result; 当所述原始BMC出现故障时,将测试BMC中存储的信息刷写到所述原始BMC中。When the original BMC fails, the information stored in the test BMC is written to the original BMC. 2.如权利要求1所述的BMC固件更新方法,其特征在于,当所述原始BMC出现故障时,还包括:2. BMC firmware update method as claimed in claim 1, is characterized in that, when described original BMC fails, also comprises: 读取并存储所述原始BMC的存储信息。The storage information of the original BMC is read and stored. 3.如权利要求1所述的BMC固件更新方法,其特征在于,所述将测试BMC中存储的信息刷写到所述原始BMC中之后,还包括:3. BMC firmware update method as claimed in claim 1, is characterized in that, after described the information stored in the test BMC is brushed in the described original BMC, also comprises: 获取刷写完成后的持续时间;Get the duration after flashing is completed; 当所述持续时间超过预设时间阈值,且刷写后的所述原始BMC不能正常运行时;When the duration exceeds a preset time threshold, and the original BMC after flashing cannot operate normally; 再次执行所述将测试BMC中存储的信息刷写到所述原始BMC中的步骤。The step of flashing the information stored in the test BMC into the original BMC is performed again. 4.如权利要求3所述的BMC固件更新方法,其特征在于,还包括:4. BMC firmware update method as claimed in claim 3, is characterized in that, also comprises: 统计将测试BMC中存储的信息刷写到所述原始BMC中的次数;Count the number of times that the information stored in the test BMC is written to the original BMC; 当所述次数超过预设刷写次数时,暂停执行所述将测试BMC中存储的信息刷写到所述原始BMC中的步骤,并输出无法正常刷写的提示信息。When the number of times exceeds the preset number of flashing and writing, execution of the step of flashing the information stored in the test BMC to the original BMC is suspended, and a prompt message that cannot be flashed normally is output. 5.如权利要求1至5任一项所述的BMC固件更新方法,其特征在于,所述监控原始BMC,包括:5. The BMC firmware update method according to any one of claims 1 to 5, wherein the monitoring original BMC comprises: 通过指示灯来监控原始BMC;Monitor the original BMC through indicator lights; 当所述指示灯闪烁时,所述原始BMC没有出现故障;When the indicator light flashes, the original BMC is not faulty; 当所述指示灯常亮时,所述原始BMC出现故障。When the indicator light is always on, the original BMC is faulty. 6.如权利要求1所述的BMC固件更新方法,其特征在于,所述监控原始BMC之前,还包括:6. BMC firmware update method as claimed in claim 1, is characterized in that, before described monitoring original BMC, also comprises: 当接收到读取指令时,读取所述原始BMC;When receiving the read instruction, read the original BMC; 将所述原始BMC中的内容刷写到所述测试BMC中。Flash the content in the original BMC into the test BMC. 7.如权利要求1所述的BMC固件更新方法,其特征在于,所述监控原始BMC,包括:7. BMC firmware update method as claimed in claim 1, is characterized in that, described monitoring original BMC, comprises: 按预设周期监控所述原始BMC。The raw BMC is monitored on a preset cycle. 8.一种BMC固件更新装置,其特征在于,包括:8. a BMC firmware update device, is characterized in that, comprises: 监控模块,用于监控原始BMC;Monitoring module for monitoring the original BMC; 判断模块,用于根据监控结果判断所述原始BMC是否出现故障;a judgment module, used for judging whether the original BMC is faulty according to the monitoring result; 更新模块,用于当所述原始BMC出现故障时,将测试BMC中存储的信息刷写到所述原始BMC中。An update module, configured to flash the information stored in the test BMC into the original BMC when the original BMC is faulty. 9.一种BMC固件更新设备,其特征在于,包括:9. a BMC firmware update equipment, is characterized in that, comprises: 存储器,用于存储计算机程序;memory for storing computer programs; 处理器,用于执行所述计算机程序实现如权利要求1至7任一项所述的BMC固件更新方法的步骤。The processor is configured to execute the computer program to implement the steps of the BMC firmware update method according to any one of claims 1 to 7. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述BMC固件更新方法的步骤。10. A computer-readable storage medium, characterized in that, a computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, the BMC firmware as described in any one of claims 1 to 7 is realized Steps to update the method.
CN202210868272.8A 2022-07-22 2022-07-22 BMC (baseboard management controller) firmware updating method, device, equipment and computer readable storage medium Pending CN115016822A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210868272.8A CN115016822A (en) 2022-07-22 2022-07-22 BMC (baseboard management controller) firmware updating method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210868272.8A CN115016822A (en) 2022-07-22 2022-07-22 BMC (baseboard management controller) firmware updating method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115016822A true CN115016822A (en) 2022-09-06

Family

ID=83080616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210868272.8A Pending CN115016822A (en) 2022-07-22 2022-07-22 BMC (baseboard management controller) firmware updating method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115016822A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589712A (en) * 2015-08-24 2016-05-18 杭州昆海信息技术有限公司 BMC module updating method and apparatus
CN109976949A (en) * 2019-03-28 2019-07-05 苏州浪潮智能科技有限公司 A kind of BMC failure mirror image rollback method for refreshing, device, terminal and storage medium
CN112433769A (en) * 2020-11-05 2021-03-02 苏州浪潮智能科技有限公司 BMC starting method and device, computer equipment and storage medium
CN113778756A (en) * 2021-09-16 2021-12-10 浪潮商用机器有限公司 Fault recovery method, device, equipment and medium for BMC (baseboard management controller) firmware

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589712A (en) * 2015-08-24 2016-05-18 杭州昆海信息技术有限公司 BMC module updating method and apparatus
CN109976949A (en) * 2019-03-28 2019-07-05 苏州浪潮智能科技有限公司 A kind of BMC failure mirror image rollback method for refreshing, device, terminal and storage medium
CN112433769A (en) * 2020-11-05 2021-03-02 苏州浪潮智能科技有限公司 BMC starting method and device, computer equipment and storage medium
CN113778756A (en) * 2021-09-16 2021-12-10 浪潮商用机器有限公司 Fault recovery method, device, equipment and medium for BMC (baseboard management controller) firmware

Similar Documents

Publication Publication Date Title
WO2022160756A1 (en) Server fault positioning method, apparatus and system, and computer-readable storage medium
TWI229796B (en) Method and system to implement a system event log for system manageability
JP6333410B2 (en) Fault processing method, related apparatus, and computer
WO2016202040A1 (en) Pcie-based sub-card hot plugging method and apparatus
CN111538624A (en) A maintenance method, device, equipment and medium for a server power supply
CN113672306B (en) Method, device, system and medium for recovery from abnormal self-checking of server components
CN108255506A (en) A kind of data-updating method of BMC, device, equipment and readable storage medium storing program for executing
WO2024230401A1 (en) Baseboard management controller system operation method and apparatus, device, and non-volatile readable storage medium
CN111488050B (en) Power supply monitoring method, system and server
CN115437819A (en) A server error reporting method, device, computer equipment and storage medium
JP2017091077A (en) Pseudo-fault generation program, generation method, and generator
CN110399264B (en) FRU information management method, device and equipment
CN113742120B (en) A kdump trigger method, system, device and medium
CN118708396B (en) Error information processing method, device, medium and program product
CN105912414A (en) Method and system for server management
CN105955864B (en) Power failure processing method, power module, monitoring management module and server
CN115016822A (en) BMC (baseboard management controller) firmware updating method, device, equipment and computer readable storage medium
WO2010135966A1 (en) Upgrade method and device for components in paired redundancy structure
WO2024119787A1 (en) Method and apparatus for amd server system installation power-off processing, device and medium
CN116974804A (en) Debugging method, device, equipment and storage medium for managing engine suspension
CN114296995B (en) A method, system, equipment and storage medium for a server to autonomously repair BMC
CN114003426B (en) Fault handling method, system and electronic equipment
CN108121614A (en) A kind of IPMI process monitoring methods, system, equipment and computer media
CN113064095A (en) A kind of electronic equipment fault detection method, device and electronic equipment
CN115129569A (en) A method, device, device and readable medium for collecting serial port logs of a server

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