CN116089153A - BMC Abnormal Factor Confirmation Method, System, Terminal and Storage Medium - Google Patents
BMC Abnormal Factor Confirmation Method, System, Terminal and Storage Medium Download PDFInfo
- Publication number
- CN116089153A CN116089153A CN202310301166.6A CN202310301166A CN116089153A CN 116089153 A CN116089153 A CN 116089153A CN 202310301166 A CN202310301166 A CN 202310301166A CN 116089153 A CN116089153 A CN 116089153A
- Authority
- CN
- China
- Prior art keywords
- bmc
- image
- boot
- firmware
- task
- 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
Links
- 230000002159 abnormal effect Effects 0.000 title claims abstract description 45
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000012790 confirmation Methods 0.000 title claims abstract description 22
- 230000006870 function Effects 0.000 claims description 29
- 230000015654 memory Effects 0.000 claims description 26
- 238000012795 verification Methods 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 6
- 238000010200 validation analysis Methods 0.000 claims 1
- 230000005856 abnormality Effects 0.000 abstract description 5
- 238000012423 maintenance Methods 0.000 abstract description 2
- 230000008569 process Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 238000012544 monitoring process Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 108010028984 3-isopropylmalate dehydratase Proteins 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000005192 partition Methods 0.000 description 2
- 238000013515 script Methods 0.000 description 2
- 241000700605 Viruses Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/079—Root cause analysis, i.e. error or fault diagnosis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Mathematical Physics (AREA)
- Computer Hardware Design (AREA)
- Stored Programmes (AREA)
Abstract
本发明涉及服务器技术领域,具体提供一种BMC异常因素确认方法、系统、终端及存储介质,包括:对应BMC的固件新旧版本分别生成第一镜像和第二镜像;预先设定第一镜像的优先级高于第二镜像,引导程序按照优先级高低引导镜像文件启动BMC;基于BMC启动执行结果和启动引导的镜像文件确认BMC异常因素。本发明实现对导致BMC异常的因素的确认,当BMC重启后无法恢复正常环境时,使维护人员可以快速的确认是BMC版本功能异常还是实验室网络环境异常,及时对BMC版本或者实验室网络进行维护。
The present invention relates to the technical field of servers, and specifically provides a BMC abnormal factor confirmation method, system, terminal, and storage medium, including: generating a first image and a second image respectively for the new and old versions of firmware corresponding to the BMC; presetting the priority of the first image If the priority is higher than that of the second image, the boot program starts the BMC according to the priority of the image file; the abnormal factors of the BMC are confirmed based on the BMC startup execution result and the boot image file. The present invention realizes the confirmation of the factors causing BMC abnormality. When the BMC fails to restore the normal environment after restarting, the maintenance personnel can quickly confirm whether the BMC version function is abnormal or the laboratory network environment is abnormal, and timely check the BMC version or the laboratory network. maintain.
Description
技术领域technical field
本发明属于服务器技术领域,具体涉及一种BMC异常因素确认方法、系统、终端及存储介质。The invention belongs to the technical field of servers, and in particular relates to a BMC abnormal factor confirmation method, system, terminal and storage medium.
背景技术Background technique
目前,支持固件更新的BMC可以在通过BMCweb、Yafuflash及Restful脚本等方法进行BMC镜像刷新,已保证BMC功能不断完善。当BMC Firmware刷新进度达到100%时,BMC会重启,重启完成后BMC版本会进行rollback,从而实现BMC版本更新。At present, the BMC that supports firmware update can perform BMC image refresh through methods such as BMCweb, Yafuflash, and Restful scripts, which has ensured the continuous improvement of BMC functions. When the BMC Firmware refresh progress reaches 100%, the BMC will restart, and the BMC version will be rolled back after the restart is completed, so as to realize the BMC version update.
若固件版本异常,就会存在BMC在重启后无法恢复正常的环境(如不能登录BMCweb),同时缺少具体故障日志的情况。但是若BMC在实验室网络下进行固件更新,由于实验室网络故障的干扰,有时也会出现BMC在重启后无法恢复正常的环境(如不能登录BMCweb),同时缺少具体故障日志的情况。If the firmware version is abnormal, there will be a situation where the BMC cannot return to normal after restarting (for example, cannot log in to BMCweb), and there will be a lack of specific fault logs. However, if the BMC performs firmware update under the laboratory network, due to the interference of the laboratory network failure, sometimes the BMC cannot restore the normal environment after restarting (for example, cannot log in to BMCweb), and there is a lack of specific fault logs.
因此,在实验室网络环境下进行BMC固件刷新时,在BMC重启后存在异常时,无法区分是BMC版本本身的功能问题造成的BMC环境异常,还是实验室网络故障的干扰。Therefore, when refreshing the BMC firmware in the laboratory network environment, when there is an abnormality after the BMC restarts, it is impossible to distinguish whether the abnormality of the BMC environment is caused by the functional problem of the BMC version itself, or the interference of the laboratory network failure.
发明内容Contents of the invention
针对现有技术的上述不足,本发明提供一种BMC异常因素确认方法、系统、终端及存储介质,以解决上述技术问题。In view of the above-mentioned deficiencies in the prior art, the present invention provides a BMC abnormal factor confirmation method, system, terminal and storage medium to solve the above-mentioned technical problems.
第一方面,本发明提供一种BMC异常因素确认方法,包括:In the first aspect, the present invention provides a method for confirming abnormal BMC factors, including:
对应BMC的固件新旧版本分别生成第一镜像和第二镜像;The new and old versions of firmware corresponding to the BMC generate the first image and the second image respectively;
预先设定第一镜像的优先级高于第二镜像,引导程序按照优先级高低引导镜像文件启动BMC;The priority of the first image is pre-set higher than that of the second image, and the boot program boots the image file according to the priority to start the BMC;
基于BMC启动执行结果和启动引导的镜像文件确认BMC异常因素。Confirm the BMC abnormal factors based on the BMC startup execution result and the boot image file.
在一个可选的实施方式中,对应BMC的固件新旧版本分别生成第一镜像和第二镜像,包括:In an optional implementation manner, the new and old versions of firmware corresponding to the BMC generate a first image and a second image respectively, including:
在BMC执行固件刷新之前,为BMC生成第二镜像;Generate a second image for the BMC before the BMC performs a firmware refresh;
将BMC更新固件版本后上传的镜像文件保存为第一镜像。Save the image file uploaded after the BMC firmware version is updated as the first image.
在一个可选的实施方式中,预先设定第一镜像的优先级高于第二镜像,引导程序按照优先级高低引导镜像文件启动BMC,包括:In an optional embodiment, the priority of the first image is preset to be higher than that of the second image, and the boot program boots the image file according to the priority to start the BMC, including:
在BMC的镜像刷新进度完成后重启BMC;Restart the BMC after the BMC image refresh progress is completed;
在BMC重启阶段,引导程序优先引导第一镜像启动,若启动失败则引导第二镜像启动;In the BMC restart phase, the boot program will first boot the first image to start, and if the startup fails, it will boot the second image to start;
将引导程序引导第一镜像启动的执行结果写入记录日志。Write the execution result of the boot program to boot the first image into the record log.
在一个可选的实施方式中,在BMC重启阶段,引导程序优先引导第一镜像启动,若启动失败则引导第二镜像启动,包括:In an optional embodiment, in the BMC restart phase, the boot program gives priority to booting the first image to start, and if the startup fails, then boots the second image to start, including:
基于引导程序引导第一镜像启动的执行结果生成相应的触发任务,所述触发任务用于触发引导程序切换第二镜像进行BMC启动。A corresponding trigger task is generated based on the execution result of the boot program booting the first image, and the trigger task is used to trigger the boot program to switch the second image to start the BMC.
在一个可选的实施方式中,基于引导程序引导第一镜像启动的执行结果生成相应的触发任务,包括:In an optional implementation manner, a corresponding trigger task is generated based on the execution result of bootstrap booting the first image startup, including:
若引导程序引导第一镜像启动成功,则在后台新增第一任务,所述第一任务用于指示BMC重启并对重启后的BMC进行固件版本校验;If the boot program guides the first image to start successfully, then add the first task in the background, and the first task is used to instruct the BMC to restart and perform firmware version verification to the BMC after the restart;
若引导程序引导第一镜像启动失败,则在后台新增第二任务,所述第二任务用于指示引导程序引导第二镜像启动。If the boot program fails to guide the first image to start, a second task is added in the background, and the second task is used to instruct the boot program to guide the second image to start.
在一个可选的实施方式中,若引导程序引导第一镜像启动成功,则在后台新增第一任务,所述第一任务用于指示BMC重启并对重启后的BMC进行固件版本校验,包括:In an optional embodiment, if the boot program guides the first image to start successfully, then add a first task in the background, and the first task is used to instruct the BMC to restart and check the firmware version of the restarted BMC, include:
重启BMC后获取BMC的当前固件版本,比对当前固件版本与预存的初始固件版本的一致性,将比对结果保存至记录日志;After restarting the BMC, obtain the current firmware version of the BMC, compare the consistency between the current firmware version and the pre-stored initial firmware version, and save the comparison result to the record log;
利用预存的账户信息向BMC网络发送登录请求,将BMC网络基于所述登录请求反馈的提示信息保存至记录日志,所述提示信息用于提示是否成功登录BMC网络。Use the prestored account information to send a login request to the BMC network, and save the prompt information fed back by the BMC network based on the login request to the record log, and the prompt information is used to prompt whether the login to the BMC network is successful.
在一个可选的实施方式中,基于BMC启动执行结果和启动引导的镜像文件确认BMC异常因素,包括:In an optional implementation manner, the BMC abnormal factors are confirmed based on the BMC startup execution result and the boot image file, including:
若BMC正常启动,且记录日志中记录第一镜像启动失败则判定固件刷新后的BMC版本功能异常;If the BMC starts normally, and the first mirror image failed to start is recorded in the log, it is determined that the BMC version after the firmware refresh is not functioning properly;
若BMC正常启动,且当前固件版本与预存的初始固件版本不一致,则判定BMC固件刷新成功;If the BMC starts normally, and the current firmware version is inconsistent with the pre-stored initial firmware version, it is determined that the BMC firmware is refreshed successfully;
若BMC正常启动,且当前固件版本与预存的初始固件版本一致,则判定BMC固件刷新失败;If the BMC starts normally and the current firmware version is consistent with the pre-stored initial firmware version, it is judged that the BMC firmware update failed;
若BMC启动后登录BMC网络失败,则判定网络环境异常。If you fail to log in to the BMC network after the BMC starts, it is determined that the network environment is abnormal.
第二方面,本发明提供一种BMC异常因素确认系统,包括:In a second aspect, the present invention provides a BMC abnormal factor confirmation system, including:
镜像定义模块,用于对应BMC的固件新旧版本分别生成第一镜像和第二镜像;The image definition module is used to generate the first image and the second image respectively for the new and old versions of the firmware corresponding to the BMC;
引导设置模块,用于预先设定第一镜像的优先级高于第二镜像,引导程序按照优先级高低引导镜像文件启动BMC;The boot setting module is used to pre-set the priority of the first mirror image higher than the second mirror image, and the boot program starts the BMC by booting the mirror image file according to the priority;
因素确认模块,用于基于BMC启动执行结果和启动引导的镜像文件确认BMC异常因素。The factor confirmation module is used to confirm the BMC abnormal factor based on the BMC startup execution result and the boot image file.
在一个可选的实施方式中,所述镜像定义模块包括:In an optional implementation manner, the image definition module includes:
镜像生成单元,用于在BMC执行固件刷新之前,为BMC生成第二镜像;The image generation unit is used to generate a second image for the BMC before the BMC performs firmware refresh;
镜像保存单元,用于将BMC更新固件版本后上传的镜像文件保存为第一镜像。The image storage unit is used to save the image file uploaded after the BMC updates the firmware version as the first image.
在一个可选的实施方式中,所述引导设置模块包括:In an optional implementation manner, the boot setting module includes:
进度监控单元,用于在BMC的镜像刷新进度完成后重启BMC;The progress monitoring unit is used to restart the BMC after the image refresh progress of the BMC is completed;
镜像切换单元,用于在BMC重启阶段,引导程序优先引导第一镜像启动,若启动失败则引导第二镜像启动;The image switching unit is used for the boot program to preferentially guide the first image to start during the BMC restart phase, and to guide the second image to start if the start fails;
执行记录单元,用于将引导程序引导第一镜像启动的执行结果写入记录日志。The execution recording unit is used to write the execution result of the boot program to guide the first image to start into the recording log.
在一个可选的实施方式中,所述镜像切换单元具体执行:In an optional implementation manner, the image switching unit specifically performs:
基于引导程序引导第一镜像启动的执行结果生成相应的触发任务,所述触发任务用于触发引导程序切换第二镜像进行BMC启动。A corresponding trigger task is generated based on the execution result of the boot program booting the first image, and the trigger task is used to trigger the boot program to switch the second image to start the BMC.
在一个可选的实施方式中,基于引导程序引导第一镜像启动的执行结果生成相应的触发任务,包括:In an optional implementation manner, a corresponding trigger task is generated based on the execution result of bootstrap booting the first image startup, including:
若引导程序引导第一镜像启动成功,则在后台新增第一任务,所述第一任务用于指示BMC重启并对重启后的BMC进行固件版本校验;If the boot program guides the first image to start successfully, then add the first task in the background, and the first task is used to instruct the BMC to restart and perform firmware version verification to the BMC after the restart;
若引导程序引导第一镜像启动失败,则在后台新增第二任务,所述第二任务用于指示引导程序引导第二镜像启动。If the boot program fails to guide the first image to start, a second task is added in the background, and the second task is used to instruct the boot program to guide the second image to start.
在一个可选的实施方式中,若引导程序引导第一镜像启动成功,则在后台新增第一任务,所述第一任务用于指示BMC重启并对重启后的BMC进行固件版本校验,包括:In an optional embodiment, if the boot program guides the first image to start successfully, then add a first task in the background, and the first task is used to instruct the BMC to restart and check the firmware version of the restarted BMC, include:
重启BMC后获取BMC的当前固件版本,比对当前固件版本与预存的初始固件版本的一致性,将比对结果保存至记录日志;After restarting the BMC, obtain the current firmware version of the BMC, compare the consistency between the current firmware version and the pre-stored initial firmware version, and save the comparison result to the record log;
利用预存的账户信息向BMC网络发送登录请求,将BMC网络基于所述登录请求反馈的提示信息保存至记录日志,所述提示信息用于提示是否成功登录BMC网络。Use the prestored account information to send a login request to the BMC network, and save the prompt information fed back by the BMC network based on the login request to the record log, and the prompt information is used to prompt whether the login to the BMC network is successful.
在一个可选的实施方式中,所述因素确认模块包括:In an optional implementation manner, the factor confirmation module includes:
第一判定单元,用于若BMC正常启动,且记录日志中记录第一镜像启动失败则判定固件刷新后的BMC版本功能异常;The first judging unit is used to determine that the BMC version function after the firmware refresh is abnormal if the BMC starts normally and records that the first image fails to start in the recording log;
第二判定单元,用于若BMC正常启动,且当前固件版本与预存的初始固件版本不一致,则判定BMC固件刷新成功;The second judging unit is used to determine that the BMC firmware refresh is successful if the BMC starts normally and the current firmware version is inconsistent with the pre-stored initial firmware version;
第三判定单元,用于若BMC正常启动,且当前固件版本与预存的初始固件版本一致,则判定BMC固件刷新失败;The third judging unit is used to determine that the BMC firmware refresh fails if the BMC starts normally and the current firmware version is consistent with the pre-stored initial firmware version;
第四判定单元,用于若BMC启动后登录BMC网络失败,则判定网络环境异常。The fourth judging unit is used for judging that the network environment is abnormal if the login to the BMC network fails after the BMC is started.
第三方面,提供一种终端,包括:In a third aspect, a terminal is provided, including:
处理器、存储器,其中,processor, memory, where,
该存储器用于存储计算机程序,The memory is used to store computer programs,
该处理器用于从存储器中调用并运行该计算机程序,使得终端执行上述的终端的方法。The processor is used to call and run the computer program from the memory, so that the terminal executes the above-mentioned terminal method.
第四方面,提供了一种计算机存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。In a fourth aspect, a computer storage medium is provided, and instructions are stored in the computer-readable storage medium, and when run on a computer, the computer is made to execute the methods described in the above aspects.
本发明的有益效果在于,本发明提供的BMC异常因素确认方法、系统、终端及存储介质,通过重新定义BMC启动的引导过程,并记录镜像文件引导执行结果,实现对导致BMC异常的因素的确认,当BMC重启后无法恢复正常环境时,使维护人员可以快速的确认是BMC版本功能异常还是实验室网络环境异常,及时对BMC版本或者实验室网络进行维护。The beneficial effect of the present invention is that, the BMC abnormal factor confirmation method, system, terminal and storage medium provided by the present invention realize the confirmation of the factors leading to BMC abnormality by redefining the boot process of BMC startup and recording the image file boot execution result , when the normal environment cannot be restored after the BMC is restarted, the maintenance personnel can quickly confirm whether the function of the BMC version is abnormal or the laboratory network environment is abnormal, and maintain the BMC version or the laboratory network in time.
此外,本发明设计原理可靠,结构简单,具有非常广泛的应用前景。In addition, the design principle of the present invention is reliable, the structure is simple, and has very wide application prospects.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings on the premise of not paying creative work.
图1是本发明一个实施例的方法的示意性流程图。Fig. 1 is a schematic flowchart of a method according to an embodiment of the present invention.
图2是本发明一个实施例的方法的另一示意性流程图。Fig. 2 is another schematic flowchart of the method of an embodiment of the present invention.
图3是本发明一个实施例的系统的示意性框图。Fig. 3 is a schematic block diagram of a system according to one embodiment of the present invention.
图4为本发明实施例提供的一种终端的结构示意图。FIG. 4 is a schematic structural diagram of a terminal provided by an embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.
除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field of the invention. The terms used herein in the description of the present invention are for the purpose of describing specific embodiments only, and are not intended to limit the present invention.
下面对本发明中出现的关键术语进行解释。Key terms appearing in the present invention are explained below.
BMC,执行伺服器远端管理控制器,英文全称为Baseboard ManagementController.为基板管理控制器。它可以在机器未开机的状态下,对机器进行固件升级、查看机器设备、等一些操作。在BMC中完全实现IPMI功能需要一个功能强大的16位元或32位元微控制器以及用于数据储存的RAM、用于非挥发性数据储存的快闪记忆体和韧体,在安全远程重启、安全重新上电、LAN警告和系统健康监视方面能提供基本的远程可管理性。除了基本的IPMI功能和系统工作监视功能外,通过利用2个快闪记忆体之一储存以前的BIOS,mBMC还能实现BIOS快速元件的选择和保护。例如,在远程BIOS升级後系统不能启动时,远程管理人员可以切换回以前工作的BIOS映像来启动系统。一旦BIOS升级後,BIOS映像还能被锁住,可有效防止病毒对它的侵害。BMC, executive server remote management controller, the English full name is Baseboard Management Controller. It is the base board management controller. It can upgrade the firmware of the machine, check the machine equipment, and other operations when the machine is not powered on. Full implementation of IPMI functionality in the BMC requires a powerful 16-bit or 32-bit microcontroller with RAM for data storage, flash memory and firmware for non-volatile data storage, and secure remote reboot , safe power cycle, LAN alerts and system health monitoring can provide basic remote manageability. In addition to the basic IPMI function and system work monitoring function, mBMC can also realize the selection and protection of BIOS fast components by using one of the two flash memories to store the previous BIOS. For example, when the system cannot be started after the remote BIOS upgrade, the remote administrator can switch back to the previous working BIOS image to start the system. Once the BIOS is upgraded, the BIOS image can also be locked, which can effectively prevent viruses from invading it.
U-Boot是一个主要用于嵌入式系统的引导加载程序,可以支持多种不同的计算机系统结构。U-Boot可支持的主要功能列表:系统引导支持NFS挂载、RAMDISK(压缩或非压缩)形式的根文件系统;支持NFS挂载、从FLASH中引导压缩或非压缩系统内核;基本辅助功能强大的操作系统接口功能;可灵活设置、传递多个关键参数给操作系统,适合系统在不同开发阶段的调试要求与产品发布,尤以Linux支持最为强劲;支持目标板环境参数多种存储方式,如FLASH、NVRAM、EEPROM;CRC32校验可校验FLASH中内核、RAMDISK镜像文件是否完好;设备驱动串口、SDRAM、FLASH、以太网、LCD、NVRAM、EEPROM、键盘、USB、PCMCIA、PCI、RTC等驱动支持;上电自检功能SDRAM、FLASH大小自动检测;SDRAM故障检测;CPU型号;特殊功能XIP内核引导。U-Boot is a boot loader mainly used in embedded systems, which can support many different computer system structures. List of main functions that U-Boot can support: system boot supports NFS mount, RAMDISK (compressed or uncompressed) root file system; supports NFS mount, boots compressed or non-compressed system kernel from FLASH; basic auxiliary functions are powerful The interface function of the operating system; it can flexibly set and transfer multiple key parameters to the operating system, which is suitable for the debugging requirements and product release of the system at different development stages, especially Linux support is the most powerful; it supports multiple storage methods for target board environment parameters, such as FLASH, NVRAM, EEPROM; CRC32 check can verify whether the kernel and RAMDISK image files in FLASH are intact; device drivers such as serial port, SDRAM, FLASH, Ethernet, LCD, NVRAM, EEPROM, keyboard, USB, PCMCIA, PCI, RTC, etc. Support; power-on self-test function SDRAM, FLASH size automatic detection; SDRAM fault detection; CPU model; special function XIP kernel boot.
U-boot依赖于cpu体系结构的代码(如设备初始化代码等)通常都放在stage1且可以用汇编语言来实现,而stage2则通常用C语言来实现,这样可以实现复杂的功能,而且有更好的可读性和移植性。具体启动流程包括:U-boot codes that depend on the cpu architecture (such as device initialization codes, etc.) are usually placed in stage1 and can be implemented in assembly language, while stage2 is usually implemented in C language, so that complex functions can be realized, and there are more Good readability and portability. The specific start-up process includes:
1、stage1(start.s代码结构)1. stage1 (start.s code structure)
U-boot的stage1代码通常放在start.s文件中,它用汇编语言写成,其主要代码部分如下:The stage1 code of U-boot is usually placed in the start.s file, which is written in assembly language, and its main code parts are as follows:
(1)定义入口。由于一个可执行的image必须有一个入口点,并且只能有一个全局入口,通常这个入口放在rom(Flash)的0x0地址,因此,必须通知编译器以使其知道这个入口,该工作可通过修改连接器脚本来完成。(1) Define the entry. Since an executable image must have one entry point, and there can only be one global entry point, usually this entry is placed at address 0x0 of the rom (Flash), therefore, the compiler must be notified to let it know this entry point, and this work can be done through Modify the linker script to do it.
(2)设置异常向量(exception vector)。(2) Set exception vector (exception vector).
(3)设置CPU的速度、时钟频率及中断控制寄存器。(3) Set the CPU speed, clock frequency and interrupt control register.
(4)初始化内存控制器。(4) Initialize the memory controller.
(5)将rom中的程序复制到ram中。(5) Copy the program in rom to ram.
(6)初始化堆栈。(6) Initialize the stack.
(7)转到ram中执行,该工作可使用指令ldrpc来完成。(7) Go to ram for execution, and this work can be done by using the command ldrpc.
2、stage2(C语言代码部分)2. stage2 (C language code part)
lib_arm/board.c中的start armboot是C语言开始的函数,也是整个启动代码中C语言的主函数,同时还是整个u-boot(armboot)的主函数,该函数主要完成如下操作:The start armboot in lib_arm/board.c is the function started by the C language, and it is also the main function of the C language in the entire startup code. It is also the main function of the entire u-boot (armboot). This function mainly completes the following operations:
(1)调用一系列的初始化函数。(1) Call a series of initialization functions.
(2)初始化flash设备。(2) Initialize the flash device.
(3)初始化系统内存分配函数。(3) Initialize the system memory allocation function.
(4)如果目标系统拥有nand设备,则初始化nand设备。(4) If the target system has a nand device, initialize the nand device.
(5)如果目标系统有显示设备,则初始化该类设备。(5) If the target system has a display device, initialize this type of device.
(6)初始化相关网络设备,填写ip,c地址等。(6) Initialize relevant network equipment, fill in ip, c addresses, etc.
(7)进入命令循环(即整个boot的工作循环),接受用户从串口输入的命令,然后进行相应的工作。(7) Enter the command cycle (that is, the working cycle of the entire boot), accept the command input by the user from the serial port, and then perform corresponding work.
镜像文件和rar ZIP压缩包类似,它将特定的一系列文件按照一定的格式制作成单一的文件,以方便用户下载和使用,例如一个操作系统、游戏等。它最重要的特点是可以被特定的软件识别并可直接刻录到光盘上。其实通常意义上的镜像文件可以再扩展一下,在镜像文件中可以包含更多的信息。比如说系统文件、引导文件、分区表信息等,这样镜像文件就可以包含一个分区甚至是一块硬盘的所有信息。而通常意义上的刻录软件都可以直接将支持的镜像文件所包含的内容刻录到光盘上。其实,镜像文件就是光盘的“提取物”。Image files are similar to rar ZIP archives. It makes a series of specific files into a single file in a certain format to facilitate users to download and use, such as an operating system, games, etc. Its most important feature is that it can be recognized by specific software and can be directly burned to a CD. In fact, the image file in the usual sense can be extended, and more information can be included in the image file. For example, system files, boot files, partition table information, etc., so that the image file can contain all the information of a partition or even a hard disk. In general, burning software can directly burn the content contained in the supported image file to the CD. In fact, the image file is the "extract" of the disc.
本发明实施例提供的BMC异常因素确认方法由计算机设备执行,相应地,BMC异常因素确认系统运行于计算机设备中。The BMC abnormal factor confirmation method provided by the embodiment of the present invention is executed by computer equipment, and accordingly, the BMC abnormal factor confirmation system runs in the computer equipment.
图1是本发明一个实施例的方法的示意性流程图。其中,图1执行主体可以为一种BMC异常因素确认系统。根据不同的需求,该流程图中步骤的顺序可以改变,某些可以省略。Fig. 1 is a schematic flowchart of a method according to an embodiment of the present invention. Wherein, the execution subject in Fig. 1 may be a BMC abnormal factor confirmation system. According to different requirements, the order of the steps in the flowchart can be changed, and some can be omitted.
如图1所示,该方法包括:As shown in Figure 1, the method includes:
步骤110,对应BMC的固件新旧版本分别生成第一镜像和第二镜像;
步骤120,预先设定第一镜像的优先级高于第二镜像,引导程序按照优先级高低引导镜像文件启动BMC;
步骤130,基于BMC启动执行结果和启动引导的镜像文件确认BMC异常因素。
本发明通过异步刷新的方式,BMC在上传镜像并在刷新进度完成100%后,获取当前刷新后的BMC版本信息进行校验,具体校验方法可通过以下方式:Uboot引导备用镜像启动,如果备用镜像起不来,转化为引导主镜像启动,并记录一条备用镜像启动失败的日志,并在后台任务新增一条备用镜像启动失败的任务。若备用镜像启动成功,在后台任务新增一条备用镜像启动完成的任务,则BMC重启后就不会出现BMC起不来的情况。若备用镜像启动成功了但是BMC重启后BMCIP仍然执行不通,则检查实验室网络是否异常,从而对BMC版本进行维护。The present invention adopts the method of asynchronous refresh, after the BMC uploads the image and completes 100% of the refresh progress, the BMC version information after the current refresh is obtained for verification. If the mirror cannot be started, it is transformed into booting the main mirror to start, and a log of the backup mirror startup failure is recorded, and a task of the backup mirror startup failure is added to the background task. If the standby image is started successfully, add a task in the background task to complete the start of the standby image, then the BMC will not fail to start after the BMC is restarted. If the backup image is started successfully but the BMCIP still fails after the BMC is restarted, check whether the laboratory network is abnormal, so as to maintain the BMC version.
为了便于对本发明的理解,下面以本发明BMC异常因素确认方法的原理,结合实施例中对BMC异常进行因素确认的过程,对本发明提供的BMC异常因素确认方法做进一步的描述。In order to facilitate the understanding of the present invention, the method for confirming BMC abnormal factors provided by the present invention will be further described below based on the principle of the method for confirming abnormal BMC factors of the present invention, combined with the process of confirming factors for abnormal BMC factors in the embodiments.
具体的,请参考图2,所述BMC异常因素确认方法包括:Specifically, please refer to Figure 2, the BMC abnormal factors confirmation method includes:
S1、对应BMC的固件新旧版本分别生成第一镜像和第二镜像。S1. Generate a first image and a second image respectively for the new and old versions of firmware corresponding to the BMC.
在BMC执行固件刷新之前,为BMC生成第二镜像;将BMC更新固件版本后上传的镜像文件保存为第一镜像。Before the BMC performs firmware refresh, generate a second image for the BMC; save the image file uploaded after the BMC updates the firmware version as the first image.
具体的,在BMC执行固件版本更新之前,将当前版本固件文件压缩为镜像文件,并保存为主镜像。BMC下载新版本固件文件并执行新版本固件文件的刷新,当刷新进度为完成100%后,将当前固件版本保存为备用镜像。Specifically, before the BMC executes the firmware version update, the firmware file of the current version is compressed into a mirror image file and saved as a master mirror image. The BMC downloads the new version of the firmware file and executes the refresh of the new version of the firmware file. When the refresh progress is 100%, save the current firmware version as a backup image.
S2、预先设定第一镜像的优先级高于第二镜像,引导程序按照优先级高低引导镜像文件启动BMC。S2. It is preset that the priority of the first image is higher than that of the second image, and the boot program boots the image files according to the priority to start the BMC.
在BMC的镜像刷新进度完成后重启BMC;在BMC重启阶段,引导程序优先引导第一镜像启动,若启动失败则引导第二镜像启动;将引导程序引导第一镜像启动的执行结果写入记录日志。Restart the BMC after the image refresh progress of the BMC is completed; during the BMC restart phase, the boot program will guide the first image to start first, and if the startup fails, it will boot the second image to start; write the execution result of the boot program to guide the first image to start in the record log .
具体的,设定主镜像和备用镜像的优先级,备用镜像的优先级高于主镜像。Uboot引导备用镜像启动,如果引导备用镜像启动BMC失败,则转化为引导主镜像启动,并记录一条备用镜像启动失败的日志。Specifically, the priorities of the primary image and the backup image are set, and the priority of the backup image is higher than that of the primary image. Uboot boots the standby image to start. If the booting of the standby image fails to start the BMC, it will be transformed into booting the main image to start, and a log indicating that the standby image failed to start is recorded.
在本发明的另一种实施方式中,为了使Uboot在启动BMC失败后及时切换镜像文件,基于引导程序引导第一镜像启动的执行结果生成相应的触发任务,所述触发任务用于触发引导程序切换第二镜像进行BMC启动。In another embodiment of the present invention, in order to make Uboot switch the image file in time after starting BMC failure, based on the execution result of the boot program to guide the first image startup to generate a corresponding trigger task, the trigger task is used to trigger the boot program Switch the second image to start BMC.
具体的,触发任务的构建原则包括:若引导程序引导第一镜像启动成功,则在后台新增第一任务,第一任务用于指示BMC重启并对重启后的BMC进行固件版本校验;若引导程序引导第一镜像启动失败,则在后台新增第二任务,第二任务用于指示引导程序引导第二镜像启动。Specifically, the construction principle of the trigger task includes: if the boot program guides the first image to start successfully, then add the first task in the background, the first task is used to instruct the BMC to restart and perform firmware version verification on the restarted BMC; if If the boot program fails to guide the first image to start, a second task is added in the background, and the second task is used to instruct the boot program to guide the second image to start.
在实际测试过程中,Uboot引导备用镜像启动,如果引导备用镜像启动BMC失败,则记录一条备用镜像启动失败的日志,并在后台任务新增一条备用镜像启动失败的任务,基于该任务Uboot引导主镜像文件启动BMC。若备用镜像启动成功,在后台任务新增一条备用镜像启动完成的任务,则BMC重启后就不会出现BMC启动失败的情况。In the actual test process, Uboot boots the standby image to start. If the booting of the standby image fails to start the BMC, a log of the failure of the standby image to start will be recorded, and a task of the failure of the standby image to start will be added to the background task. Based on this task, Uboot will boot the main The image file starts the BMC. If the standby image is started successfully, add a task in the background task to complete the start of the standby image, and then the BMC will not fail to start after the BMC restarts.
S3、基于BMC启动执行结果和启动引导的镜像文件确认BMC异常因素。S3. Confirm the BMC abnormal factor based on the BMC startup execution result and the boot image file.
重启BMC后获取BMC的当前固件版本,比对当前固件版本与预存的初始固件版本的一致性,将比对结果保存至记录日志;利用预存的账户信息向BMC网络发送登录请求,将BMC网络基于所述登录请求反馈的提示信息保存至记录日志,所述提示信息用于提示是否成功登录BMC网络。After restarting the BMC, obtain the current firmware version of the BMC, compare the consistency between the current firmware version and the pre-stored initial firmware version, and save the comparison result to the record log; use the pre-stored account The prompt information fed back by the login request is saved to the record log, and the prompt information is used to prompt whether the login to the BMC network is successful.
可见,记录日志中记录有Uboot引导备用镜像启动BMC的执行成果(成功或失败)、当前固件版本与预存的初始固件版本的一致性比对结果以及BMC web的登录结果。It can be seen that the record log records the execution result (success or failure) of Uboot booting the backup image to start the BMC, the consistency comparison result between the current firmware version and the pre-stored initial firmware version, and the login result of BMC web.
基于记录日志可做以下判定:Based on the recorded logs, the following judgments can be made:
若BMC正常启动,且记录日志中记录第一镜像启动失败则判定固件刷新后的BMC版本功能异常;If the BMC starts normally, and the first mirror image failed to start is recorded in the log, it is determined that the BMC version after the firmware refresh is not functioning properly;
若BMC正常启动,且当前固件版本与预存的初始固件版本不一致,则判定BMC固件刷新成功;If the BMC starts normally, and the current firmware version is inconsistent with the pre-stored initial firmware version, it is determined that the BMC firmware is refreshed successfully;
若BMC正常启动,且当前固件版本与预存的初始固件版本一致,则判定BMC固件刷新失败;If the BMC starts normally and the current firmware version is consistent with the pre-stored initial firmware version, it is judged that the BMC firmware update failed;
若BMC启动后登录BMC网络失败,则判定网络环境异常。If you fail to log in to the BMC network after the BMC starts, it is determined that the network environment is abnormal.
具体的,若引导备用镜像启动BMC失败则判定BMC版本功能异常,若引导备用镜像启动BMC成功,则在后台任务新增一条状态为备用镜像启动成功的任务,重启BMC,在BMC回滚(Roll back)后检查BMC版本是否为刷新后的版本,并通过BMC IP是否ping通来判断BMC是否能正常登录web,若仍无法登录,则判定实验室网络故障。Specifically, if the BMC fails to boot from the standby image, it is determined that the BMC version function is abnormal. If the BMC is successfully booted from the standby image, a task is added in the background task whose status is that the standby image has started successfully, restarts the BMC, and rolls back the BMC. back) to check whether the BMC version is the refreshed version, and judge whether the BMC can log in to the web normally by checking whether the BMC IP is pinged. If it still fails to log in, it is determined that the laboratory network is faulty.
在一些实施例中,所述BMC异常因素确认系统300可以包括多个由计算机程序段所组成的功能模块。所述BMC异常因素确认系统300中的各个程序段的计算机程序可以存储于计算机设备的存储器中,并由至少一个处理器所执行,以执行(详见图1描述)BMC异常因素确认的功能。In some embodiments, the BMC abnormal factor confirmation system 300 may include a plurality of functional modules composed of computer program segments. The computer program of each program segment in the BMC abnormal factor confirmation system 300 can be stored in the memory of the computer device, and executed by at least one processor to perform the function of BMC abnormal factor confirmation (see FIG. 1 for details).
本实施例中,所述BMC异常因素确认系统300根据其所执行的功能,可以被划分为多个功能模块,如图3所示。所述功能模块可以包括:镜像定义模块310、引导设置模块320、因素确认模块330。本发明所称的模块是指一种能够被至少一个处理器所执行并且能够完成固定功能的一系列计算机程序段,其存储在存储器中。在本实施例中,关于各模块的功能将在后续的实施例中详述。In this embodiment, the BMC abnormal factor confirmation system 300 can be divided into multiple functional modules according to the functions it performs, as shown in FIG. 3 . The functional modules may include: an image definition module 310 , a boot setting module 320 , and a factor confirmation module 330 . The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, and are stored in memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.
镜像定义模块310,用于对应BMC的固件新旧版本分别生成第一镜像和第二镜像;The image definition module 310 is used to generate the first image and the second image respectively for the new and old versions of the firmware corresponding to the BMC;
引导设置模块320,用于预先设定第一镜像的优先级高于第二镜像,引导程序按照优先级高低引导镜像文件启动BMC;The boot setting module 320 is used to pre-set the priority of the first mirror image higher than the second mirror image, and the boot program starts the BMC according to the priority level of the boot mirror image file;
因素确认模块330,用于基于BMC启动执行结果和启动引导的镜像文件确认BMC异常因素。The factor confirming module 330 is configured to confirm BMC abnormal factors based on the BMC boot execution result and the boot image file.
可选地,作为本发明一个实施例,所述镜像定义模块包括:Optionally, as an embodiment of the present invention, the image definition module includes:
镜像生成单元,用于在BMC执行固件刷新之前,为BMC生成第二镜像;The image generation unit is used to generate a second image for the BMC before the BMC performs firmware refresh;
镜像保存单元,用于将BMC更新固件版本后上传的镜像文件保存为第一镜像。The image storage unit is used to save the image file uploaded after the BMC updates the firmware version as the first image.
可选地,作为本发明一个实施例,所述引导设置模块包括:Optionally, as an embodiment of the present invention, the boot setting module includes:
进度监控单元,用于在BMC的镜像刷新进度完成后重启BMC;The progress monitoring unit is used to restart the BMC after the image refresh progress of the BMC is completed;
镜像切换单元,用于在BMC重启阶段,引导程序优先引导第一镜像启动,若启动失败则引导第二镜像启动;The image switching unit is used for the boot program to preferentially guide the first image to start during the BMC restart phase, and to guide the second image to start if the start fails;
执行记录单元,用于将引导程序引导第一镜像启动的执行结果写入记录日志。The execution recording unit is used to write the execution result of the boot program to guide the first image to start into the recording log.
可选地,作为本发明一个实施例,所述镜像切换单元具体执行:Optionally, as an embodiment of the present invention, the image switching unit specifically performs:
基于引导程序引导第一镜像启动的执行结果生成相应的触发任务,所述触发任务用于触发引导程序切换第二镜像进行BMC启动。A corresponding trigger task is generated based on the execution result of the boot program booting the first image, and the trigger task is used to trigger the boot program to switch the second image to start the BMC.
可选地,作为本发明一个实施例,基于引导程序引导第一镜像启动的执行结果生成相应的触发任务,包括:Optionally, as an embodiment of the present invention, a corresponding trigger task is generated based on the execution result of the boot program booting the first image startup, including:
若引导程序引导第一镜像启动成功,则在后台新增第一任务,所述第一任务用于指示BMC重启并对重启后的BMC进行固件版本校验;If the boot program guides the first image to start successfully, then add the first task in the background, and the first task is used to instruct the BMC to restart and perform firmware version verification to the BMC after the restart;
若引导程序引导第一镜像启动失败,则在后台新增第二任务,所述第二任务用于指示引导程序引导第二镜像启动。If the boot program fails to guide the first image to start, a second task is added in the background, and the second task is used to instruct the boot program to guide the second image to start.
可选地,作为本发明一个实施例,若引导程序引导第一镜像启动成功,则在后台新增第一任务,所述第一任务用于指示BMC重启并对重启后的BMC进行固件版本校验,包括:Optionally, as an embodiment of the present invention, if the boot program guides the first image to start successfully, then add a first task in the background, and the first task is used to instruct the BMC to restart and perform firmware version calibration on the restarted BMC. tests, including:
重启BMC后获取BMC的当前固件版本,比对当前固件版本与预存的初始固件版本的一致性,将比对结果保存至记录日志;After restarting the BMC, obtain the current firmware version of the BMC, compare the consistency between the current firmware version and the pre-stored initial firmware version, and save the comparison result to the record log;
利用预存的账户信息向BMC网络发送登录请求,将BMC网络基于所述登录请求反馈的提示信息保存至记录日志,所述提示信息用于提示是否成功登录BMC网络。Use the prestored account information to send a login request to the BMC network, and save the prompt information fed back by the BMC network based on the login request to the record log, and the prompt information is used to prompt whether the login to the BMC network is successful.
可选地,作为本发明一个实施例,所述因素确认模块包括:Optionally, as an embodiment of the present invention, the factor confirmation module includes:
第一判定单元,用于若BMC正常启动,且记录日志中记录第一镜像启动失败则判定固件刷新后的BMC版本功能异常;The first judging unit is used to determine that the BMC version function after the firmware refresh is abnormal if the BMC starts normally and records that the first image fails to start in the recording log;
第二判定单元,用于若BMC正常启动,且当前固件版本与预存的初始固件版本不一致,则判定BMC固件刷新成功;The second judging unit is used to determine that the BMC firmware refresh is successful if the BMC starts normally and the current firmware version is inconsistent with the pre-stored initial firmware version;
第三判定单元,用于若BMC正常启动,且当前固件版本与预存的初始固件版本一致,则判定BMC固件刷新失败;The third judging unit is used to determine that the BMC firmware refresh fails if the BMC starts normally and the current firmware version is consistent with the pre-stored initial firmware version;
第四判定单元,用于若BMC启动后登录BMC网络失败,则判定网络环境异常。The fourth judging unit is used for judging that the network environment is abnormal if the login to the BMC network fails after the BMC is started.
图4为本发明实施例提供的一种终端400的结构示意图,该终端400可以用于执行本发明实施例提供的BMC异常因素确认方法。FIG. 4 is a schematic structural diagram of a terminal 400 provided by an embodiment of the present invention. The terminal 400 can be used to execute the method for confirming abnormal BMC factors provided by the embodiment of the present invention.
其中,该终端400可以包括:处理器410、存储器420及通信模块430。这些组件通过一条或多条总线进行通信,本领域技术人员可以理解,图中示出的服务器的结构并不构成对本发明的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Wherein, the terminal 400 may include: a
其中,该存储器420可以用于存储处理器410的执行指令,存储器420可以由任何类型的易失性或非易失性存储终端或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。当存储器420中的执行指令由处理器410执行时,使得终端400能够执行以下上述方法实施例中的部分或全部步骤。Wherein, the
处理器410为存储终端的控制中心,利用各种接口和线路连接整个电子终端的各个部分,通过运行或执行存储在存储器420内的软件程序和/或模块,以及调用存储在存储器内的数据,以执行电子终端的各种功能和/或处理数据。所述处理器可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器410可以仅包括中央处理器(Central Processing Unit,简称CPU)。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。The
通信模块430,用于建立通信信道,从而使所述存储终端可以与其它终端进行通信。接收其他终端发送的用户数据或者向其他终端发送用户数据。The
本发明还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时可包括本发明提供的各实施例中的部分或全部步骤。所述的存储介质可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include part or all of the steps in the various embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (English: read-only memory, abbreviated: ROM) or a random access memory (English: random access memory, abbreviated: RAM), etc.
因此,本发明通过重新定义BMC启动的引导过程,并记录镜像文件引导执行结果,实现对导致BMC异常的因素的确认,当BMC重启后无法恢复正常环境时,使维护人员可以快速的确认是BMC版本功能异常还是实验室网络环境异常,及时对BMC版本或者实验室网络进行维护,本实施例所能达到的技术效果可以参见上文中的描述,此处不再赘述。Therefore, the present invention realizes the confirmation of the factors causing BMC abnormality by redefining the booting process of BMC startup and recording the result of booting the image file. If the version function is abnormal or the laboratory network environment is abnormal, timely maintain the BMC version or the laboratory network. The technical effect achieved by this embodiment can be referred to the description above, and will not be repeated here.
本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中如U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质,包括若干指令用以使得一台计算机终端(可以是个人计算机,服务器,或者第二终端、网络终端等)执行本发明各个实施例所述方法的全部或部分步骤。Those skilled in the art can clearly understand that the technologies in the embodiments of the present invention can be implemented by means of software plus a necessary general-purpose hardware platform. Based on such an understanding, the technical solutions in the embodiments of the present invention essentially or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium such as a USB flash drive, mobile Hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes, including several instructions to make a computer terminal (It may be a personal computer, a server, or a second terminal, a network terminal, etc.) Execute all or part of the steps of the methods described in the various embodiments of the present invention.
本说明书中各个实施例之间相同相似的部分互相参见即可。尤其,对于终端实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例中的说明即可。For the same and similar parts among the various embodiments in this specification, refer to each other. In particular, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant details, refer to the description in the method embodiment.
在本发明所提供的几个实施例中,应该理解到,所揭露的系统和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,系统或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the system embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of systems or modules may be in electrical, mechanical or other forms.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module.
尽管通过参考附图并结合优选实施例的方式对本发明进行了详细描述,但本发明并不限于此。在不脱离本发明的精神和实质的前提下,本领域普通技术人员可以对本发明的实施例进行各种等效的修改或替换,而这些修改或替换都应在本发明的涵盖范围内/任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。Although the present invention has been described in detail in conjunction with preferred embodiments with reference to the accompanying drawings, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, those skilled in the art can make various equivalent modifications or replacements to the embodiments of the present invention, and these modifications or replacements should be within the scope of the present invention/any Those skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention, and all should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310301166.6A CN116089153A (en) | 2023-03-24 | 2023-03-24 | BMC Abnormal Factor Confirmation Method, System, Terminal and Storage Medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310301166.6A CN116089153A (en) | 2023-03-24 | 2023-03-24 | BMC Abnormal Factor Confirmation Method, System, Terminal and Storage Medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116089153A true CN116089153A (en) | 2023-05-09 |
Family
ID=86210378
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310301166.6A Pending CN116089153A (en) | 2023-03-24 | 2023-03-24 | BMC Abnormal Factor Confirmation Method, System, Terminal and Storage Medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116089153A (en) |
-
2023
- 2023-03-24 CN CN202310301166.6A patent/CN116089153A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112948157B (en) | Server fault location method, device, system and computer-readable storage medium | |
WO2022198972A1 (en) | Method, system and apparatus for fault positioning in starting process of server | |
US9501289B2 (en) | Method of a UEFI firmware and computer system thereof | |
JP6124994B2 (en) | Method and system for restoring from legacy OS environment to Unified Extensible Firmware Interface (UEFI) pre-boot environment, and computer program | |
US12001285B2 (en) | System booting method and apparatus, node device, and computer-readable storage medium | |
CN109947596A (en) | PCIE equipment failure system downtime processing method, device and related components | |
WO2013103335A1 (en) | Backing up firmware during initialization of device | |
CN111736906A (en) | A BIOS-based startup item synchronous storage method, system, terminal and storage medium | |
CN117130672A (en) | Server start flow control method, system, terminal and storage medium | |
TWI764454B (en) | Firmware corruption recovery | |
CN106990985A (en) | Apparatus and method based on BMC renewals and standby system UEFI firmwares | |
CN109032888A (en) | A kind of server start-up course fault detection method, device and controlled terminal | |
CN107220085A (en) | A kind of method of automatic upgrading RAID card firmware | |
CN111324418A (en) | OpenStack-based virtual machine template generation method and device | |
CN104657232A (en) | BIOS automatic recovery system and BIOS automatic recovery method | |
CN113342365A (en) | Operating system deployment method, device, equipment and computer-readable storage medium | |
CN116089153A (en) | BMC Abnormal Factor Confirmation Method, System, Terminal and Storage Medium | |
CN114461286B (en) | A server startup method, device, electronic equipment and readable storage medium | |
CN113900934B (en) | Multi-mirror hybrid refresh test method, system, terminal and storage medium | |
TWI777664B (en) | Booting method of embedded system | |
CN116841629A (en) | A network card function configuration method, device and medium | |
CN104834574B (en) | A kind of method and device solving system partitioning damage | |
CN103186403A (en) | Node replacement processing method and server system using the method | |
CN114153503A (en) | A BIOS control method, device and medium | |
CN114385379B (en) | Method, system, terminal and storage medium for detecting on-board information refreshing |
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 |