CN113626233B - Method, device and equipment for automatically detecting BIOS watchdog function - Google Patents
Method, device and equipment for automatically detecting BIOS watchdog function Download PDFInfo
- Publication number
- CN113626233B CN113626233B CN202110742132.1A CN202110742132A CN113626233B CN 113626233 B CN113626233 B CN 113626233B CN 202110742132 A CN202110742132 A CN 202110742132A CN 113626233 B CN113626233 B CN 113626233B
- Authority
- CN
- China
- Prior art keywords
- log
- bios
- timer
- bmc
- watchdog
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
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/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
- G06F11/0757—Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
-
- 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/0766—Error or fault reporting or storing
-
- 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)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
技术领域Technical field
本申请涉及计算机技术领域,尤其涉及一种自动检测BIOS看门狗功能方法、装置及设备。The present application relates to the field of computer technology, and in particular to a method, device and equipment for automatically detecting a BIOS watchdog function.
背景技术Background technique
基本输入输出系统(Basic Input Output System,简称BIOS)是一组固化到计算机内主板上一个ROM(Read-Only Memory,只读内存)芯片上的程序,它保存着计算机最重要的基本输入输出的程序、开机自检程序和系统自启动程序等。BIOS的主要功能是为计算机提供最底层、最直接的硬件设置和控制。The Basic Input Output System (BIOS) is a set of programs solidified on a ROM (Read-Only Memory) chip on the motherboard of the computer. It stores the most important basic input and output of the computer. program, power-on self-test program and system self-starting program, etc. The main function of BIOS is to provide the lowest and most direct hardware settings and control for the computer.
目前在服务器上一般配置有看门狗功能,该功能测试不复杂,但是因选项较多,测试比较耗时。现有技术中,一般采用手动修改选项和查看实际机器行为的方式来进行测试,导致人力和时间成本花费较多。因此,如何对BIOS看门狗功能的检测方式进行合理优化,以提高检测效率是目前亟待解决的问题。Currently, servers are generally configured with a watchdog function. Testing this function is not complicated, but because there are many options, testing is time-consuming. In the existing technology, testing is generally performed by manually modifying options and viewing actual machine behavior, resulting in high manpower and time costs. Therefore, how to reasonably optimize the detection method of the BIOS watchdog function to improve detection efficiency is an issue that needs to be solved urgently.
发明内容Contents of the invention
本申请实施例的主要目的在于提供一种自动检测BIOS看门狗功能的方法、装置及设备,能够解决服务器测试看门狗功能时占用人力时间较长的问题。可以减少重复操作,节约人力,进而提高检测效率。The main purpose of the embodiments of the present application is to provide a method, device and equipment for automatically detecting the BIOS watchdog function, which can solve the problem that the server takes a long time to test the watchdog function. It can reduce repeated operations, save manpower, and improve detection efficiency.
第一方面,本申请实施例提供了一种自动检测BIOS看门狗功能的方法,包括:In the first aspect, embodiments of the present application provide a method for automatically detecting the BIOS watchdog function, including:
清空基板管理控制器BMC的日志,并在接收到日志检查电路发送的查看看门狗信息的信号后,向基本输入输出系统BIOS发送打开看门狗的指令;Clear the log of the baseboard management controller BMC, and after receiving the signal sent by the log check circuit to check the watchdog information, send a command to turn on the watchdog to the basic input and output system BIOS;
修改所述BIOS的相关设置,并设定定时器策略和和定时器时间;Modify the relevant settings of the BIOS and set the timer policy and timer time;
启动主机,使得主机停留在测试界面,并开始定时器的倒计时;Start the host so that the host stays in the test interface and starts the timer countdown;
当到达所述定时器时间时,执行所述定时器策略,并通过所述BMC日志记录所述定时器策略执行的时间和结果;When the timer time is reached, execute the timer policy, and record the execution time and result of the timer policy through the BMC log;
将所述BMC日志与所述日志检查电路中预设的日志进行对比,得到对比结果,并根据对比结果,确定所述BIOS看门狗功能的检测结果。Compare the BMC log with the preset log in the log check circuit to obtain a comparison result, and determine the detection result of the BIOS watchdog function based on the comparison result.
可选的,所述定时器策略和和定时器时间可以构成N种组合方式;所述N为大于0的正整数。Optionally, the timer policy and timer time may constitute N combinations; N is a positive integer greater than 0.
可选的,所述将所述BMC日志与所述日志检查电路中预设的日志进行对比,得到对比结果,并根据对比结果,确定所述BIOS看门狗功能的检测结果,包括:Optionally, the BMC log is compared with the preset log in the log check circuit to obtain a comparison result, and based on the comparison result, the detection result of the BIOS watchdog function is determined, including:
若将所述BMC日志与所述日志检查电路中预设的日志进行对比,得到了二者不一致的对比结果,则确定所述BIOS看门狗功能出错,停止测试;If the BMC log is compared with the preset log in the log check circuit and inconsistent comparison results are obtained, it is determined that the BIOS watchdog function is in error and the test is stopped;
若将所述BMC日志与所述日志检查电路中预设的日志进行对比,得到了二者相一致的对比结果,则确定所述BIOS看门狗功能正常。If the BMC log is compared with the preset log in the log check circuit and a consistent comparison result is obtained, it is determined that the BIOS watchdog function is normal.
可选的,在所述将所述BMC日志与所述日志检查电路中预设的日志进行对比,得到对比结果,并根据对比结果,确定所述BIOS看门狗功能的检测结果之后,所述方法还包括:Optionally, after comparing the BMC log with the preset log in the log check circuit to obtain a comparison result, and determining the detection result of the BIOS watchdog function based on the comparison result, the Methods also include:
将所述检测结果输出展示,并通过人工对所述检测结果进行再次确认,得到确认后的检测结果。The test results are output and displayed, and the test results are manually confirmed again to obtain the confirmed test results.
第二方面,本申请实施例还提供了一种自动检测BIOS看门狗功能的装置,包括:In a second aspect, embodiments of the present application also provide a device for automatically detecting the BIOS watchdog function, including:
清空单元,用于清空基板管理控制器BMC的日志,并在接收到日志检查电路发送的查看看门狗信息的信号后,向基本输入输出系统BIOS发送打开看门狗的指令;The clearing unit is used to clear the log of the baseboard management controller BMC, and after receiving a signal sent by the log check circuit to check the watchdog information, send an instruction to open the watchdog to the basic input and output system BIOS;
修改单元,用于修改所述BIOS的相关设置,并设定定时器策略和和定时器时间;A modification unit, used to modify the relevant settings of the BIOS and set the timer policy and timer time;
启动单元,用于启动主机,使得主机停留在测试界面,并开始定时器的倒计时;The startup unit is used to start the host so that the host stays in the test interface and starts the countdown of the timer;
记录单元,用于当到达所述定时器时间时,执行所述定时器策略,并通过所述BMC日志记录所述定时器策略执行的时间和结果;A recording unit, configured to execute the timer policy when the timer time is reached, and record the time and result of the execution of the timer policy through the BMC log;
对比单元,用于将所述BMC日志与所述日志检查电路中预设的日志进行对比,得到对比结果,并根据对比结果,确定所述BIOS看门狗功能的检测结果。A comparison unit is used to compare the BMC log with the preset log in the log check circuit to obtain a comparison result, and determine the detection result of the BIOS watchdog function based on the comparison result.
可选的,所述定时器策略和和定时器时间可以构成N种组合方式;所述N为大于0的正整数。Optionally, the timer policy and timer time may constitute N combinations; N is a positive integer greater than 0.
可选的,所述对比单元包括:Optionally, the comparison unit includes:
第一对比子单元,用于若将所述BMC日志与所述日志检查电路中预设的日志进行对比,得到了二者不一致的对比结果,则确定所述BIOS看门狗功能出错,停止测试;The first comparison subunit is used to compare the BMC log with the preset log in the log check circuit and obtain inconsistent comparison results between the two, then determine that the BIOS watchdog function is faulty and stop the test. ;
第二对比子单元,用于若将所述BMC日志与所述日志检查电路中预设的日志进行对比,得到了二者相一致的对比结果,则确定所述BIOS看门狗功能正常。The second comparison subunit is used to compare the BMC log with the preset log in the log check circuit and obtain a consistent comparison result between the two, then determine that the BIOS watchdog function is normal.
可选的,所述装置还包括:Optionally, the device also includes:
确认单元,用于将所述检测结果输出展示,并通过人工对所述检测结果进行再次确认,得到确认后的检测结果。The confirmation unit is used to output and display the test results, and manually confirm the test results again to obtain the confirmed test results.
本申请实施例还提供了一种自动检测BIOS看门狗功能的设备,包括:处理器、存储器、系统总线;The embodiment of the present application also provides a device that automatically detects the BIOS watchdog function, including: a processor, a memory, and a system bus;
所述处理器以及所述存储器通过所述系统总线相连;The processor and the memory are connected through the system bus;
所述存储器用于存储一个或多个程序,所述一个或多个程序包括指令,所述指令当被所述处理器执行时使所述处理器执行上述自动检测BIOS看门狗功能的方法中的任意一种实现方式。The memory is used to store one or more programs, and the one or more programs include instructions that, when executed by the processor, cause the processor to perform the above method of automatically detecting the BIOS watchdog function. any implementation method.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当所述指令在终端设备上运行时,使得所述终端设备执行上述自动检测BIOS看门狗功能的方法中的任意一种实现方式。Embodiments of the present application also provide a computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are run on a terminal device, the terminal device causes the terminal device to perform the above-mentioned automatic detection of BIOS gatekeeping. Any implementation method of the dog function.
本申请实施例提供的一种自动检测BIOS看门狗功能的方法、装置及设备,首先清空基板管理控制器BMC的日志,并在接收到日志检查电路发送的查看看门狗信息的信号后,向基本输入输出系统BIOS发送打开看门狗的指令,然后,修改BIOS的相关设置,并设定定时器策略和和定时器时间,接着,启动主机,使得主机停留在测试界面,并开始定时器的倒计时,当所述定时器时间时,执行定时器策略,并通过BMC日志记录定时器策略执行的时间和结果,进而可以将BMC日志与日志检查电路中预设的日志进行对比,得到对比结果,并根据对比结果,确定BIOS看门狗功能的检测结果。从而能够解决服务器测试看门狗功能时占用人力时间较长的问题,减少重复操作,节约人力,进而提高检测效率。Embodiments of the present application provide a method, device and equipment for automatically detecting the BIOS watchdog function. First, the log of the baseboard management controller BMC is cleared, and after receiving a signal sent by the log check circuit to check the watchdog information, Send a command to turn on the watchdog to the basic input and output system BIOS, then modify the relevant settings of the BIOS and set the timer policy and timer time. Then, start the host so that the host stays in the test interface and starts the timer. Countdown, when the timer expires, the timer strategy is executed, and the time and result of the timer strategy execution are recorded through the BMC log. Then the BMC log can be compared with the preset log in the log check circuit to obtain the comparison result. , and determine the detection result of the BIOS watchdog function based on the comparison result. This can solve the problem that the server takes a long time to test the watchdog function, reduce repeated operations, save manpower, and improve detection efficiency.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are: For some embodiments of the present application, those of ordinary skill in the art can also obtain other drawings based on these drawings without exerting creative efforts.
图1为本申请实施例提供的一种自动检测BIOS看门狗功能的方法的流程示意图;Figure 1 is a schematic flowchart of a method for automatically detecting a BIOS watchdog function provided by an embodiment of the present application;
图2为本申请实施例提供的自动检测BIOS看门狗功能的电路结构示意图;Figure 2 is a schematic diagram of a circuit structure for automatically detecting the BIOS watchdog function provided by an embodiment of the present application;
图3为本申请实施例提供的一种自动检测BIOS看门狗功能的装置的组成示意图。FIG. 3 is a schematic diagram of a device for automatically detecting a BIOS watchdog function provided by an embodiment of the present application.
具体实施方式Detailed ways
随着网络技术的高速发展,计算机的应用已经遍布人们生活的各个方面,为人们的生活带来了极大的便利。目前在服务器上一般配置有看门狗功能,该功能测试不复杂,但是因选项较多,测试比较耗时。现有技术中,一般采用手动修改选项和查看实际机器行为的方式来进行测试,导致人力和时间成本花费较多。因此,如何对BIOS看门狗功能的检测方式进行合理优化,以提高检测效率是目前亟待解决的问题。With the rapid development of network technology, computer applications have spread across all aspects of people's lives, bringing great convenience to people's lives. Currently, servers are generally configured with a watchdog function. Testing this function is not complicated, but because there are many options, testing is time-consuming. In the existing technology, testing is generally performed by manually modifying options and viewing actual machine behavior, resulting in high manpower and time costs. Therefore, how to reasonably optimize the detection method of the BIOS watchdog function to improve detection efficiency is an issue that needs to be solved urgently.
为解决上述缺陷,本申请实施例提供了一种自动检测BIOS看门狗功能的方法,首先清空基板管理控制器BMC的日志,并在接收到日志检查电路发送的查看看门狗信息的信号后,向基本输入输出系统BIOS发送打开看门狗的指令,然后,修改BIOS的相关设置,并设定定时器策略和和定时器时间,接着,启动主机,使得主机停留在测试界面,并开始定时器的倒计时,当所述定时器时间时,执行定时器策略,并通过BMC日志记录定时器策略执行的时间和结果,进而可以将BMC日志与日志检查电路中预设的日志进行对比,得到对比结果,并根据对比结果,确定BIOS看门狗功能的检测结果。从而能够解决服务器测试看门狗功能时占用人力时间较长的问题,减少重复操作,节约人力,进而提高检测效率。In order to solve the above defects, embodiments of the present application provide a method for automatically detecting the BIOS watchdog function. First, clear the log of the baseboard management controller BMC, and after receiving a signal sent by the log check circuit to view the watchdog information, , send a command to turn on the watchdog to the basic input and output system BIOS, then modify the relevant settings of the BIOS, and set the timer policy and timer time. Then, start the host so that the host stays in the test interface and starts timing. The countdown of the timer, when the timer expires, the timer strategy is executed, and the time and result of the timer strategy execution are recorded through the BMC log. Then the BMC log can be compared with the preset log in the log check circuit to obtain the comparison. Results, and based on the comparison results, determine the detection result of the BIOS watchdog function. This can solve the problem that the server takes a long time to test the watchdog function, reduce repeated operations, save manpower, and improve detection efficiency.
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments These are part of the embodiments of this application, but not all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
第一实施例First embodiment
参见图1,为本实施例提供的一种自动检测BIOS看门狗功能的方法的流程示意图,该方法包括以下步骤:Referring to Figure 1, a schematic flow chart of a method for automatically detecting the BIOS watchdog function provided in this embodiment is provided. The method includes the following steps:
S101:清空基板管理控制器BMC的日志,并在接收到日志检查电路发送的查看看门狗信息的信号后,向基本输入输出系统BIOS发送打开看门狗的指令。S101: Clear the log of the baseboard management controller BMC, and after receiving a signal sent by the log check circuit to check the watchdog information, send an instruction to turn on the watchdog to the basic input and output system BIOS.
在本实施例中,为了实现对BIOS看门狗功能的自动检测,首先需要清空基板管理控制器(Baseboard Management Controller,简称BMC)的日志,并在接收到日志检查电路发送的查看看门狗信息的信号后,向基本输入输出系统(Basic Input Output System,简称BIOS)发送打开看门狗(Watchdog)的指令。In this embodiment, in order to realize automatic detection of the BIOS watchdog function, it is first necessary to clear the log of the Baseboard Management Controller (BMC), and then view the watchdog information sent by the log check circuit. After receiving the signal, an instruction to turn on the watchdog is sent to the Basic Input Output System (BIOS).
S102:修改BIOS的相关设置,并设定定时器策略和和定时器时间。S102: Modify the relevant settings of the BIOS and set the timer policy and timer time.
在本实施例中,通过步骤S101向BIOS发送打开看门狗的指令后,进一步的,BMC还可以向BIOS发送指令,修改其他相关的BIOS设置,使得机器重启后能停在测试界面,并设置定时器策略和定时器时间。In this embodiment, after sending the instruction to turn on the watchdog to the BIOS in step S101, the BMC can further send instructions to the BIOS to modify other related BIOS settings, so that the machine can stop in the test interface after restarting, and set Timer strategy and timer time.
可以理解的是,可以将定时器策略和定时器时间的一对一组合设置成N种组合方式;其中,N为大于0的正整数。It can be understood that the one-to-one combination of timer policy and timer time can be set to N combinations; where N is a positive integer greater than 0.
举例说明:可以设置定时器策略和定时器时间的一组组合方式为:在测试界面停留10分钟后,进行关机和/或重启的操作。For example: A set of combinations of timer policies and timers that can be set are: after staying in the test interface for 10 minutes, shut down and/or restart.
S103:启动主机,使得主机停留在测试界面,并开始定时器的倒计时。S103: Start the host, make the host stay in the test interface, and start the timer countdown.
在本实施例中,通过步骤S102修改了BIOS的相关设置,并设定了定时器策略和和定时器时间的至少一种组合方式后,进一步的,BMC可以向控制电路下发指令以控制主机进行启动或重启,并使得主机停留在测试界面,此时即可开始定时器的倒计时,用以执行后续步骤S104。In this embodiment, after modifying the relevant settings of the BIOS in step S102 and setting at least one combination of timer strategy and timer time, the BMC can further issue instructions to the control circuit to control the host. Start or restart and make the host stay in the test interface. At this time, the countdown of the timer can be started to perform the subsequent step S104.
S104:当到达定时器时间时,执行定时器策略,并通过BMC日志记录定时器策略执行的时间和结果。S104: When the timer time is reached, execute the timer policy, and record the time and result of the timer policy execution through the BMC log.
在本实施例中,通过步骤S103对停留在测试界面进行倒计时后,进一步的,当到达步骤S102中设定的定时器时间时,则可以执行该定时器时间对应的定时器策略,同时,可以通过BMC日志记录定时器策略执行的时间和结果,用以执行后续步骤S105。In this embodiment, after counting down the time spent on the test interface through step S103, further, when the timer time set in step S102 is reached, the timer policy corresponding to the timer time can be executed. At the same time, the timer policy corresponding to the timer time can be executed. The time and result of the timer policy execution are recorded through the BMC log to perform subsequent step S105.
S105:将BMC日志与日志检查电路中预设的日志进行对比,得到对比结果,并根据对比结果,确定BIOS看门狗功能的检测结果。S105: Compare the BMC log with the preset log in the log check circuit to obtain the comparison result, and determine the detection result of the BIOS watchdog function based on the comparison result.
在本实施例中,通过步骤S104记录了包含定时器策略执行的时间和结果的BMC日志后,进一步可以将将BMC日志与日志检查电路中预设的日志进行对比,得到对比结果,并根据对比结果,确定BIOS看门狗功能的检测结果。In this embodiment, after the BMC log containing the time and result of the timer policy execution is recorded in step S104, the BMC log can be further compared with the preset log in the log check circuit to obtain the comparison result, and based on the comparison As a result, the detection result of the BIOS watchdog function is determined.
具体来讲,若将BMC日志与日志检查电路中预设的日志进行对比,得到了二者不一致的对比结果,则可以确定BIOS看门狗功能出错,需要停止测试并进行报警。Specifically, if the BMC log is compared with the preset log in the log check circuit and inconsistent comparison results are obtained, it can be determined that the BIOS watchdog function is faulty and the test needs to be stopped and an alarm issued.
若将BMC日志与所述日志检查电路中预设的日志进行对比,得到了二者相一致的对比结果,则可以确定BIOS看门狗功能正常。If the BMC log is compared with the preset log in the log check circuit and consistent comparison results are obtained, it can be determined that the BIOS watchdog function is normal.
并且,测试了所有的定时器策略和定时器时间的组合方式后,BMC还可以向BIOS发送关闭看门狗的功能,以验证到达定时器时间,不再执行相对应的定时器策略。Moreover, after testing all timer strategies and timer time combinations, the BMC can also send the function of turning off the watchdog to the BIOS to verify that the timer time is reached and no longer execute the corresponding timer strategy.
进一步的,一种可选的实现方式是,为了提高检测结果的准确性,还可以将所述检测结果输出展示,并通过人工对该检测结果进行再次确认,以得到确认后的、准确性更高的检测结果。Furthermore, an optional implementation method is that in order to improve the accuracy of the detection results, the detection results can also be output and displayed, and the detection results can be reconfirmed manually to obtain confirmed and accurate updates. High test results.
这样,对于如图2所示的自动检测BIOS看门狗功能的电路结构,通过执行上述步骤S101-S105,可以实现自动设置BIOS Setup选项、判断时间、收集日志和截图、判断结果等功能,极大节省研发人员的时间和人力成本,进而提高了检测效率。In this way, for the circuit structure of automatically detecting the BIOS watchdog function as shown in Figure 2, by executing the above steps S101-S105, functions such as automatically setting BIOS Setup options, judging time, collecting logs and screenshots, and judging results can be realized, which is very convenient. It greatly saves R&D personnel’s time and labor costs, thereby improving detection efficiency.
综上,本实施例提供的一种自动检测BIOS看门狗功能的方法,首先清空基板管理控制器BMC的日志,并在接收到日志检查电路发送的查看看门狗信息的信号后,向基本输入输出系统BIOS发送打开看门狗的指令,然后,修改BIOS的相关设置,并设定定时器策略和和定时器时间,接着,启动主机,使得主机停留在测试界面,并开始定时器的倒计时,当所述定时器时间时,执行定时器策略,并通过BMC日志记录定时器策略执行的时间和结果,进而可以将BMC日志与日志检查电路中预设的日志进行对比,得到对比结果,并根据对比结果,确定BIOS看门狗功能的检测结果。从而能够解决服务器测试看门狗功能时占用人力时间较长的问题,减少重复操作,节约人力,进而提高检测效率。In summary, this embodiment provides a method for automatically detecting the BIOS watchdog function. First, the log of the baseboard management controller BMC is cleared, and after receiving a signal sent by the log check circuit to view the watchdog information, the basic The input and output system BIOS sends a command to turn on the watchdog, then modifies the relevant settings of the BIOS and sets the timer policy and timer time. Then, the host is started so that the host stays in the test interface and starts the timer countdown. , when the timer expires, execute the timer policy, and record the time and result of the timer policy execution through the BMC log. Then the BMC log can be compared with the preset log in the log check circuit to obtain the comparison result, and Based on the comparison results, determine the detection result of the BIOS watchdog function. This can solve the problem that the server takes a long time to test the watchdog function, reduce repeated operations, save manpower, and improve detection efficiency.
第二实施例Second embodiment
本实施例将对一种自动检测BIOS看门狗功能的装置进行介绍,相关内容请参见上述方法实施例。This embodiment will introduce a device for automatically detecting the BIOS watchdog function. For related content, please refer to the above method embodiment.
参见图3,为本实施例提供的一种自动检测BIOS看门狗功能的装置的组成示意图,该装置包括:Refer to Figure 3, which is a schematic diagram of a device for automatically detecting the BIOS watchdog function provided in this embodiment. The device includes:
清空单元301,用于清空基板管理控制器BMC的日志,并在接收到日志检查电路发送的查看看门狗信息的信号后,向基本输入输出系统BIOS发送打开看门狗的指令;The clearing unit 301 is used to clear the log of the baseboard management controller BMC, and after receiving a signal sent by the log check circuit to check the watchdog information, send an instruction to open the watchdog to the basic input and output system BIOS;
修改单元302,用于修改所述BIOS的相关设置,并设定定时器策略和和定时器时间;Modification unit 302, used to modify the relevant settings of the BIOS and set the timer policy and timer time;
启动单元303,用于启动主机,使得主机停留在测试界面,并开始定时器的倒计时;The starting unit 303 is used to start the host so that the host stays in the test interface and starts the countdown of the timer;
记录单元304,用于当到达所述定时器时间时,执行所述定时器策略,并通过所述BMC日志记录所述定时器策略执行的时间和结果;Recording unit 304, configured to execute the timer policy when the timer time is reached, and record the time and result of the timer policy execution through the BMC log;
对比单元305,用于将所述BMC日志与所述日志检查电路中预设的日志进行对比,得到对比结果,并根据对比结果,确定所述BIOS看门狗功能的检测结果。The comparison unit 305 is configured to compare the BMC log with the preset log in the log check circuit to obtain a comparison result, and determine the detection result of the BIOS watchdog function based on the comparison result.
在本实施例的一种实现方式中,所述定时器策略和和定时器时间可以构成N种组合方式;所述N为大于0的正整数。In an implementation manner of this embodiment, the timer policy and the timer time may constitute N combinations; the N is a positive integer greater than 0.
在本实施例的一种实现方式中,所述对比单元305包括:In an implementation of this embodiment, the comparison unit 305 includes:
第一对比子单元,用于若将所述BMC日志与所述日志检查电路中预设的日志进行对比,得到了二者不一致的对比结果,则确定所述BIOS看门狗功能出错,停止测试;The first comparison subunit is used to compare the BMC log with the preset log in the log check circuit and obtain inconsistent comparison results between the two, then determine that the BIOS watchdog function is faulty and stop the test. ;
第二对比子单元,用于若将所述BMC日志与所述日志检查电路中预设的日志进行对比,得到了二者相一致的对比结果,则确定所述BIOS看门狗功能正常。The second comparison subunit is used to compare the BMC log with the preset log in the log check circuit and obtain a consistent comparison result between the two, then determine that the BIOS watchdog function is normal.
在本实施例的一种实现方式中,所述装置还包括:In an implementation manner of this embodiment, the device further includes:
确认单元,用于将所述检测结果输出展示,并通过人工对所述检测结果进行再次确认,得到确认后的检测结果。The confirmation unit is used to output and display the test results, and manually confirm the test results again to obtain the confirmed test results.
综上,本实施例提供的一种自动检测BIOS看门狗功能的装置,首先清空基板管理控制器BMC的日志,并在接收到日志检查电路发送的查看看门狗信息的信号后,向基本输入输出系统BIOS发送打开看门狗的指令,然后,修改BIOS的相关设置,并设定定时器策略和和定时器时间,接着,启动主机,使得主机停留在测试界面,并开始定时器的倒计时,当所述定时器时间时,执行定时器策略,并通过BMC日志记录定时器策略执行的时间和结果,进而可以将BMC日志与日志检查电路中预设的日志进行对比,得到对比结果,并根据对比结果,确定BIOS看门狗功能的检测结果。从而能够解决服务器测试看门狗功能时占用人力时间较长的问题,减少重复操作,节约人力,进而提高检测效率。In summary, this embodiment provides a device for automatically detecting the BIOS watchdog function. It first clears the log of the baseboard management controller BMC, and after receiving a signal sent by the log check circuit to check the watchdog information, sends a signal to the basic The input and output system BIOS sends a command to turn on the watchdog, then modifies the relevant settings of the BIOS and sets the timer policy and timer time. Then, the host is started so that the host stays in the test interface and starts the timer countdown. , when the timer expires, execute the timer policy, and record the time and result of the timer policy execution through the BMC log. Then the BMC log can be compared with the preset log in the log check circuit to obtain the comparison result, and Based on the comparison results, determine the detection result of the BIOS watchdog function. This can solve the problem that the server takes a long time to test the watchdog function, reduce repeated operations, save manpower, and improve detection efficiency.
进一步地,本申请实施例还提供了一种自动检测BIOS看门狗功能的设备,包括:处理器、存储器、系统总线;Further, the embodiment of the present application also provides a device for automatically detecting the BIOS watchdog function, including: a processor, a memory, and a system bus;
所述处理器以及所述存储器通过所述系统总线相连;The processor and the memory are connected through the system bus;
所述存储器用于存储一个或多个程序,所述一个或多个程序包括指令,所述指令当被所述处理器执行时使所述处理器执行上述自动检测BIOS看门狗功能的方法的任一种实现方法。The memory is used to store one or more programs, and the one or more programs include instructions that, when executed by the processor, cause the processor to perform the above method of automatically detecting the BIOS watchdog function. Any implementation method.
进一步地,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当所述指令在终端设备上运行时,使得所述终端设备执行上述自动检测BIOS看门狗功能的方法的任一种实现方法。Further, embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores instructions, and when the instructions are run on a terminal device, the terminal device causes the terminal device to perform the above-mentioned automatic detection. Any implementation method of the BIOS watchdog function.
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到上述实施例方法中的全部或部分步骤可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者诸如媒体网关等网络通信设备,等等)执行本申请各个实施例或者实施例的某些部分所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that all or part of the steps in the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or that contributes to the existing technology. The computer software product can be stored in a storage medium, such as ROM/RAM, disk , optical disk, etc., including a number of instructions to cause a computer device (which can be a personal computer, a server, or a network communication device such as a media gateway, etc.) to execute the various embodiments or certain parts of the embodiments of this application. method.
需要说明的是,本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on its differences from other embodiments. The same and similar parts between the various embodiments can 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. For relevant details, please refer to the description in the method section.
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is no such actual relationship or sequence between them. Furthermore, the terms "comprises," "comprises," or any other variations thereof 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 those not expressly listed other elements, or elements inherent to the process, method, article or equipment. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article, or apparatus that includes the stated element.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be practiced in other embodiments without departing from the spirit or scope of the application. Therefore, the present application is not to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110742132.1A CN113626233B (en) | 2021-06-30 | 2021-06-30 | Method, device and equipment for automatically detecting BIOS watchdog function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110742132.1A CN113626233B (en) | 2021-06-30 | 2021-06-30 | Method, device and equipment for automatically detecting BIOS watchdog function |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113626233A CN113626233A (en) | 2021-11-09 |
CN113626233B true CN113626233B (en) | 2024-02-13 |
Family
ID=78378723
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110742132.1A Active CN113626233B (en) | 2021-06-30 | 2021-06-30 | Method, device and equipment for automatically detecting BIOS watchdog function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113626233B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004355384A (en) * | 2003-05-29 | 2004-12-16 | Hitachi Ltd | Task monitoring device |
CN103178977A (en) * | 2011-12-22 | 2013-06-26 | 英业达股份有限公司 | Computer system and boot management method of computer system |
CN110134540A (en) * | 2019-05-21 | 2019-08-16 | 苏州浪潮智能科技有限公司 | A kind of log information collection method, device, equipment and readable storage medium storing program for executing |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102736967A (en) * | 2011-04-13 | 2012-10-17 | 鸿富锦精密工业(深圳)有限公司 | Test system and method of watchdog timer |
-
2021
- 2021-06-30 CN CN202110742132.1A patent/CN113626233B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004355384A (en) * | 2003-05-29 | 2004-12-16 | Hitachi Ltd | Task monitoring device |
CN103178977A (en) * | 2011-12-22 | 2013-06-26 | 英业达股份有限公司 | Computer system and boot management method of computer system |
CN110134540A (en) * | 2019-05-21 | 2019-08-16 | 苏州浪潮智能科技有限公司 | A kind of log information collection method, device, equipment and readable storage medium storing program for executing |
Non-Patent Citations (1)
Title |
---|
一种控制流错误检测方法的实现;彭宇, 洪炳熔;计算机应用研究(第08期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113626233A (en) | 2021-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110992992B (en) | A hard disk testing method, device and storage medium | |
CN112148315A (en) | Software deployment method, device, server and storage medium | |
CN106598796A (en) | Method for testing hardware information stability in reboot | |
CN110063042A (en) | A kind of response method and its terminal of database failure | |
CN108897646A (en) | A kind of switching method and baseboard management controller of BIOS chip | |
CN110362435B (en) | PCIE fault positioning method, device, equipment and medium for Purley platform server | |
TWI518680B (en) | Method for maintaining file system of computer system | |
CN113626233B (en) | Method, device and equipment for automatically detecting BIOS watchdog function | |
CN106802846A (en) | A kind of remote test method, apparatus and system | |
CN110798347B (en) | Service state detection method, device, equipment and storage medium | |
CN111427777B (en) | SOL test method, system, equipment and medium | |
WO2024124862A1 (en) | Server-based memory processing method and apparatus, processor and an electronic device | |
CN117251361A (en) | Method, device, equipment and storage medium for testing system stability | |
WO2022037332A1 (en) | Fault alarm method and apparatus for virtual machine, and electronic device and computer-readable storage medium | |
CN116049011A (en) | Deployment method and device of test environment, electronic equipment and storage medium | |
CN111382016A (en) | Method and device for connecting test terminal and computer | |
CN116436933A (en) | Data processing method and device based on stream computing | |
TW201944244A (en) | Computer system, updating method thereof and computer program product | |
CN114817042A (en) | A server testing method, device, testing platform and readable storage medium | |
CN111858136A (en) | Solid-state drive abnormal data detection method, system, electronic device and storage medium | |
CN114297009B (en) | A method and device for server testing, and electronic equipment | |
CN113127277B (en) | A device testing method, device, electronic device and readable storage medium | |
CN111400076B (en) | Downtime restoration method, device, equipment and storage medium | |
CN112948160B (en) | Method and device for locating and repairing memory ECC problems | |
WO2025138566A1 (en) | Data block verification method and apparatus, non-volatile readable storage medium, and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |