A BIOS option failure recovery method, device, equipment and storage medium

By restarting and restoring BIOS options to default values ​​when the server detects that it cannot log in to the operating system, the problem of the server being unable to enter the operating system caused by misconfiguration of BIOS options is solved, ensuring the continuity and efficiency of BIOS automated testing.

CN115129517BActive Publication Date: 2024-10-22INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210764717.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-01
Publication Date
2024-10-22
Estimated Expiration
2042-07-01

AI Technical Summary

Technical Problem

When BIOS options are configured incorrectly, the server cannot enter the operating system, causing the continuity of BIOS automated testing to be disrupted and affecting test efficiency and availability.

Method used

By detecting that the target device cannot log in to the operating system, send a restart command and enter the UEFI Shell interface after the restart. Run the preset UEFI Shell automation script to call the SCE tool to restore the BIOS options to the default values, so that the device can operate under the default values. Log in to the operating system to quickly locate faults and avoid configuration issues that disrupt continuity.

Benefits of technology

It achieves rapid fault location and recovery when BIOS option configuration errors occur, ensures the continuity of BIOS automated testing, improves testing efficiency and availability, and is suitable for unattended automated testing scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115129517B_ABST
    Figure CN115129517B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of server technology, and specifically discloses a BIOS option fault recovery method, apparatus, device and storage medium. When it is detected that the target device fails to log in to the operating system from the BIOS, a restart command is sent to the target device to restart the target device, and when the target device enters the BIOS power-on self-test interface, a keyboard control command is used to make the target device enter the UEFI Shell interface and run a preset UEFI Shell automation script to call the SCE tool to restore the BIOS options to default values, and then the target device is controlled to log in to the operating system under the premise that the BIOS options are the default values, so as to quickly locate the BIOS option problem, and in applications with high continuity requirements such as BIOS automated testing, the continuity is avoided from being destroyed due to BIOS option configuration problems, unattended automated testing is facilitated, and the efficiency and availability of the test are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of server technology, and in particular to a BIOS option failure recovery method, device, equipment and storage medium. Background Art

[0002] The Basic Input Output System (BIOS) is a set of programs that are fixed to a ROM chip on the motherboard of the computer. It stores the most important basic input and output programs of the computer, the self-test program after power-on, and the system self-start program. It can read and write specific information of the system settings from the CMOS. Its main function is to provide the computer with the lowest-level and most direct hardware settings and controls. Configuring the BIOS options is an important path to configure device functions. However, with the continuous increase in BIOS functions, there are problems with the implementation of the functions of some BIOS options or their associated options, resulting in the server being unable to enter the operating system (Operating System, OS) after these BIOS options are turned on. At this time, the user first needs to perform a device check to determine whether the server is stuck in the process of logging into the operating system, and then to troubleshoot and locate that there is a problem with the BIOS option configuration.

[0003] If this problem occurs during BIOS automated testing, it will destroy the continuity of BIOS automated testing, bring hidden dangers to unattended automated testing, and greatly affect the efficiency of BIOS automated testing. Summary of the invention

[0004] The purpose of the present application is to provide a BIOS option fault recovery method, apparatus, device and storage medium, which are used to automatically perform BIOS option recovery when the operating system cannot be entered due to BIOS option configuration, so that users can quickly locate BIOS option faults and avoid continuity damage due to BIOS option configuration problems in applications with high continuity requirements such as BIOS automated testing.

[0005] In order to solve the above technical problems, the present application provides a BIOS option failure recovery method, comprising:

[0006] When it is detected that the target device fails to log into the operating system from the BIOS, a restart command is sent to the target device to restart the target device;

[0007] When confirming that the target device enters the BIOS power-on self-test interface after restarting, based on a preset keyboard control command, control the target device to enter the UEFI Shell interface, so that the target device runs a preset UEFI Shell automation script to call the SCE tool to restore the BIOS options to default values;

[0008] A restart command is sent to the target device to restart the target device, so that the target device logs into the operating system under the premise that the BIOS options are default values.

[0009] Optionally, an execution machine for performing BIOS automated testing on the target device;

[0010] After sending a restart command to the target device to restart the target device, so that the target device logs into the operating system under the premise that the BIOS option is the default value, the method further includes:

[0011] After detecting that the target device has successfully logged into the operating system, the target device is controlled to restart, and a BIOS automated test script is run to configure the BIOS options of the target device using the next set of option configuration information.

[0012] Optionally, the detecting that the target device successfully logs into the operating system is specifically:

[0013] When the operating system IP address of the target device is detected, it is determined that the target device has successfully logged into the operating system.

[0014] Optionally, the target device is specifically an AMD platform server.

[0015] Optionally, controlling the target device to enter the UEFI Shell interface based on a preset keyboard control command specifically includes:

[0016] Sending a first key instruction corresponding to a command to enter a boot menu to the target device, and searching for UEFI Shell in the boot menu of the target device after the target device enters the boot menu;

[0017] After the UEFI Shell is retrieved, a second key instruction is sent to the target device to enable the target device to enter the UEFI Shell interface.

[0018] Optionally, the target device is caused to run a preset UEFI Shell automation script to call an SCE tool to restore the BIOS options to default values, specifically including:

[0019] Controlling the target device to run the UEFI Shell automation script to set a network IP address of the UEFI Shell automation script and create a directory on the target device;

[0020] When the network IP address is detected, the SCE tool is sent to the target device and imported into the directory, so that the target device runs the UEFI Shell automation script to detect the SCE tool and then calls the SCE tool to restore the BIOS options to default values.

[0021] Optionally, the target device is caused to run a preset UEFI Shell automation script to call an SCE tool to restore the BIOS options to default values, specifically including:

[0022] Controlling the target device to run the UEFI Shell automation script, so as to call the SCE tool pre-deployed on the target device on the target device to restore the BIOS options to default values;

[0023] After receiving the recovery success information fed back by the target device, it is confirmed that the BIOS options of the target device have been restored to the default values.

[0024] Optionally, also include:

[0025] Receive BIOS option configuration information acquired by running the UEFI Shell automation script on the target device and calling the SCE tool before restoring the BIOS option to a default value.

[0026] Optionally, the detecting that the target device fails to log into the operating system from BIOS specifically includes:

[0027] When it is detected that the target device cannot successfully connect to the IP address of the operating system within a preset time after attempting to log in to the operating system, an IPMI command is sent to the target device to check the network cable connection status of the target device;

[0028] If the network cable connection status of the target device is normal, it is determined that the target device fails to log into the operating system.

[0029] In order to solve the above technical problems, the present application also provides a BIOS option failure recovery device, comprising:

[0030] A startup unit, configured to send a restart command to the target device to restart the target device when detecting that the target device fails to log into the operating system from the BIOS;

[0031] an execution unit, configured to, when confirming that the target device enters the BIOS power-on self-test interface after restart, control the target device to enter the UEFI Shell interface based on a preset keyboard control command, so that the target device runs a preset UEFI Shell automation script to call an SCE tool to restore the BIOS options to default values;

[0032] The recovery unit is used to send a restart command to the target device to restart the target device, so that the target device logs into the operating system under the premise that the BIOS options are default values.

[0033] In order to solve the above technical problems, the present application also provides a BIOS option failure recovery device, including:

[0034] Memory for storing computer programs;

[0035] A processor is used to execute the computer program, and when the computer program is executed by the processor, the steps of the BIOS option failure recovery method as described in any one of the above items are implemented.

[0036] In order to solve the above technical problems, the present application also provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the BIOS option fault recovery method as described in any one of the above items are implemented.

[0037] The BIOS option fault recovery method provided in the present application sends a restart command to the target device to restart the target device when it is detected that the target device fails to log in to the operating system from the BIOS. When the target device enters the BIOS power-on self-test interface after restarting, the target device is controlled by a keyboard control command to enter the UEFI Shell interface and run a preset UEFIShell automation script to call the SCE tool to restore the BIOS options to the default values. The target device is then controlled to log in to the operating system under the premise that the BIOS options are the default values. At this time, the user can quickly locate the BIOS option problem based on the behavior that the BIOS options of the target device are restored to the default values. In applications such as BIOS automated testing that have high continuity requirements, the continuity is avoided from being destroyed due to BIOS option configuration problems, and the automated testing of the next set of BIOS options can be continued, which facilitates unattended automated testing and improves the efficiency and availability of the test.

[0038] The present application also provides a BIOS option fault recovery device, equipment and storage medium, which have the above-mentioned beneficial effects and are not repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions of the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0040] Figure 1A flowchart of a BIOS option failure recovery method provided in an embodiment of the present application;

[0041] Figure 2 A schematic diagram of the structure of a BIOS option failure recovery device provided in an embodiment of the present application;

[0042] Figure 3 A schematic diagram of the structure of a BIOS option fault recovery device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] The core of this application is to provide a BIOS option fault recovery method, apparatus, device and storage medium, which are used to automatically perform BIOS option recovery when the operating system cannot be entered due to BIOS option configuration, so that users can quickly locate BIOS option faults and avoid continuity damage due to BIOS option configuration problems in applications with high continuity requirements such as BIOS automated testing.

[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0045] Embodiment 1

[0046] Figure 1 A flowchart of a BIOS option failure recovery method provided in an embodiment of the present application.

[0047] like Figure 1 As shown, the BIOS option failure recovery method provided in the embodiment of the present application includes:

[0048] S101: When it is detected that the target device fails to log into the operating system from the BIOS, a restart command is sent to the target device to restart the target device.

[0049] S102: When confirming that the target device enters the BIOS power-on self-test interface after restarting, based on a preset keyboard control command, control the target device to enter the UEFI Shell interface, so that the target device runs a preset UEFI Shell automation script to call the SCE tool to restore the BIOS options to default values.

[0050] S103: Send a restart command to the target device to restart the target device, so that the target device logs into the operating system under the premise that the BIOS options are default values.

[0051] The BIOS option fault recovery method provided in the embodiment of the present application can be applied to any scenario where a target device fails to log into the operating system from the BIOS. When the target device cannot log into the operating system, there may be many reasons. Specifically, after eliminating other fault causes through the preset self-test program, it can be confirmed that the BIOS option configuration caused the inability to log into the operating system. At this time, if you want to enter the operating system and avoid stuck at the stage where you cannot log into the operating system, the BIOS option fault recovery method provided in the embodiment of the present application restores the BIOS option to the default value so that the target device can log into the operating system.

[0052] It should be noted that if the target device is an Intel platform server, the BIOS options can be directly restored to the default values ​​through the Intelligent Platform Management Interface (IPMI) command. However, this method can only be applied to Intel platform servers with relatively mature technology, and for other emerging platform servers, such as AMD platform servers launched by Advanced Micro Devices, BIOS options cannot be restored in this way.

[0053] Therefore, considering the universality issue, the BIOS option fault recovery method provided in the embodiment of the present application pre-writes a UEFI Shell automation script to call the SCE tool to restore the BIOS options to the default values. This solution is applicable to servers on most platforms.

[0054] UEFI is the abbreviation of Unified Extensible Firmware Interface. Shell (computer shell) is a user interface (UI) and also a UEFI application. UEFIShell is an open source project, which is now included in the Embedded Development Kit (edk) and can be independently compiled into an Extensible Firmware Interface (EFI) application. The startup item of UEFI Shell can be found in the Boot Menu of the BIOS of servers on most platforms.

[0055] SCE stands for Setup Control Environment, which is a tool that can update BIOS non-volatile random access memory (NVRAM) variables in Linux or Windows environment.

[0056] It should be noted that the BIOS option fault recovery method provided in the embodiment of the present application needs to be implemented based on another server outside the target device. The BIOS option fault recovery method provided in the embodiment of the present application can be pre-deployed as an automated script on another server outside the target device. The BIOS option fault recovery method provided in the embodiment of the present application requires pre-written keyboard control commands, UEFI Shell automation scripts and SCE tools. Among them, the technical implementation methods of the keyboard control commands and the technical implementation methods of the SCE tools can refer to the prior art. The UEFI Shell automation script is pre-written to implement the network setting function, the new directory function and the function of calling the SCE tool to restore the BIOS default values.

[0057] The server targeted by the BIOS option fault recovery method provided in the embodiment of the present application can be any type of server, and in particular, automatic BIOS option recovery is also implemented for AMD platform servers that cannot use IPMI commands to perform BIOS option recovery, thereby solving the problem that existing AMD platform servers cannot automatically perform BIOS option recovery.

[0058] For S101, when the target device fails to boot, it is impossible to directly confirm the cause of the boot failure. Therefore, it is necessary to exclude other causes of boot failure before determining that the boot failure is caused by the failure of BIOS to log in to the operating system. In the BIOS option fault recovery method provided in the embodiment of the present application, if S101 detects that the target device fails to log in to the operating system from BIOS, it may specifically include:

[0059] When it is detected that the target device cannot successfully connect to the IP address of the operating system within a preset time after attempting to log in to the operating system, an IPMI command is sent to the target device to check the network cable connection status of the target device;

[0060] If the network cable connection status of the target device is normal, it is determined that the target device fails to log into the operating system.

[0061] Specifically, when another server detects that the target device has attempted to enter the operating system but cannot connect to the IP address of the operating system for a long time, the IPMI command is used to check the network cable connection status of the target device network port. It should be noted that even on AMD platform servers, there is an IPMI command to access the network cable connection status of the network port.

[0062] If the target device has attempted to enter the operating system, and the network cable connection status of the target device is normal when checked using the IPMI command, it means that the target device has failed to log into the operating system from BIOS. At this time, you can try to wait for a while (such as 5 minutes) and then execute the step of sending a restart command to the target device in S101 to restart the target device.

[0063] The sending of a restart command to the target device in S101 to restart the target device may specifically be: sending an IPMI command for system restart to the target device according to the IP address of the baseboard management controller (BMC) of the target device to restart the target device. Similarly, the sending of a restart command to the target device in S103 to restart the target device may also adopt this method.

[0064] For S102, the SOL (Serial Over LAN, a mechanism for redirecting the serial port I / O in the system through an IP-based IPMI session) of another server can monitor that the target device reaches the BIOS power-on self-test interface after restarting. At this time, the target device can be first controlled to enter the UEFI Shell interface based on the preset keyboard control command, and then the UEFI Shell automation script can be run in the UEFIShell interface to call the SCE tool to restore the BIOS options to the default values.

[0065] Specifically, in S102, based on a preset keyboard control command, controlling the target device to enter the UEFI Shell interface may include:

[0066] Sending a first key instruction corresponding to a command to enter a boot menu to the target device, and retrieving UEFI Shell in the boot menu of the target device after the target device enters the boot menu;

[0067] After the UEFI Shell is retrieved, a second key command is sent to the target device to enable the target device to enter the UEFI Shell interface.

[0068] The first key command may generally be an F11 key command, and the second key command may generally be an Enter key command. That is, when the target device reaches the BIOS power-on self-test interface, the F11 key command is sent through the preset keyboard control technology to enable the target device to automatically enter the F11 boot menu interface, and then the F11 boot menu is continuously searched downward according to the preset program control until the UEFI Shell is retrieved, and then the Enter key command is sent to the target device to automatically enter the UEFI Shell interface.

[0069] The UEFI Shell automation script (remembered as startup.nsh) can be pre-deployed in the operating system storage of the target device (Note: the operating system storage can also be accessed when not logged into the operating system). The UEFI Shell automation script can also be pre-stored in other locations, or another server can send the UEFI Shell automation script to the target device after the target device enters the UEFI Shell interface.

[0070] Similarly, the SCE tool can also be pre-deployed on the target device.

[0071] Then, in S102, the target device is caused to run a preset UEFI Shell automation script to call the SCE tool to restore the BIOS options to default values, which may specifically include:

[0072] Control the target device to run the UEFI Shell automation script to call the SCE tool pre-deployed on the target device on the target device to restore the BIOS options to the default values;

[0073] After receiving the recovery success information fed back by the target device, confirm that the BIOS options of the target device have been restored to the default values.

[0074] It should be noted that the SCE tools all implement the function of reading or changing BIOS options, but different SCE tools are required on different platform servers, and the SCE version also needs to be updated as the device is updated. Therefore, the SCE tools can be deployed in advance according to the type of target device, and the version of the SCE tools in the target device can be updated regularly. The SCE tools can be deployed in the directory of the UEFI Shell automation script of the target device.

[0075] In S102, the SCE tool is called to restore the BIOS options to default values, which may specifically be the configuration information of the BIOS options of the target device when it leaves the factory, or may be option values ​​predefined by the user.

[0076] For S103, after determining that the BIOS option of the target device has been changed to the default value, a restart command is sent to the target device again to restart the target device. At this time, the target device can log in to the operating system normally (if it cannot log in normally, it means that the problem is other than the BIOS option configuration problem).

[0077] The BIOS option fault recovery method provided in the embodiment of the present application sends a restart command to the target device to restart the target device when it is detected that the target device fails to log in to the operating system from the BIOS. When the target device enters the BIOS power-on self-test interface after the restart, the target device is controlled by a keyboard control command to enter the UEFI Shell interface and run a preset UEFI Shell automation script to call the SCE tool to restore the BIOS options to default values. The target device is then controlled to log in to the operating system under the premise that the BIOS options are the default values. At this time, the user can quickly locate the BIOS option problem based on the behavior that the BIOS options of the target device are restored to the default values. In applications such as BIOS automated testing that have high continuity requirements, the continuity is avoided from being destroyed due to BIOS option configuration problems, and the automated testing of the next set of BIOS options can be continued, which facilitates unattended automated testing and improves the efficiency and availability of the test.

[0078] Embodiment 2

[0079] In the above embodiment, it is mentioned that the BIOS option fault recovery method provided in the embodiment of the present application is applied to another server other than the target device. When performing BIOS automated testing, it is necessary to configure the BIOS options to the preset option configuration information and then log in to the operating system for functional testing. However, due to the imperfect functions of some sub-options of the server, especially the AMD platform server, some BIOS options cannot be turned on to enter the operating system, resulting in unattended BIOS automated testing.

[0080] Based on the above embodiment, for unattended BIOS automated testing, the BIOS option fault recovery method provided in the embodiment of the present application can be applied to an execution machine that performs BIOS automated testing on a target device;

[0081] In S103: sending a restart command to the target device to restart the target device, so that the target device logs in to the operating system under the premise that the BIOS options are the default values, the BIOS option fault recovery method provided in the embodiment of the present application may also include: after detecting that the target device has successfully logged in to the operating system, controlling the target device to restart, and running the BIOS automated test script to configure the BIOS options of the target device using the next set of option configuration information.

[0082] Specifically, an automated script that calls the BIOS option fault recovery method provided in the embodiment of the present application can be added to the BIOS automated test script that performs BIOS automated testing on the target device by the execution machine, so that when the target device cannot log in to the operating system, the execution machine calls the automated script that calls the BIOS option fault recovery method provided in the embodiment of the present application to restore the BIOS options to the default values, and after entering the operating system with the BIOS options of the target device at the default values, controls the target device to restart, and uses the next set of option configuration information to configure the BIOS options of the target device, and repeats this process until the testing of all sets of option configuration information is completed.

[0083] The detecting that the target device has successfully logged into the operating system may specifically include: when the operating system IP address of the target device is detected, determining that the target device has successfully logged into the operating system.

[0084] Embodiment 3

[0085] In the above embodiments, it is mentioned that different platform servers require different SCE tools, and the SCE tools will be updated. The SCE tools pre-deployed on the target device may not be applicable to the current situation of the target device.

[0086] Therefore, in the BIOS option fault recovery method provided in the embodiment of the present application, in S102, the target device is caused to run a preset UEFI Shell automation script to call the SCE tool to restore the BIOS option to the default value, which may specifically include:

[0087] Control the target device to run the UEFI Shell automation script to set the network IP address of the UEFI Shell automation script and create a directory on the target device;

[0088] After the network IP address is detected, the SCE tool is sent to the target device and imported into the directory, so that the target device runs the UEFI Shell automation script to detect the SCE tool and call the SCE tool to restore the BIOS options to the default values.

[0089] Specifically, a UEFI Shell automation script may be pre-deployed in the operating system storage of the target device, and the functions implemented by the UEFI Shell automation script include a network setting function, a new directory function, and a function of calling an SCE tool to restore BIOS default values.

[0090] When the automation program of the execution machine detects that the SOL outputs the POST key prompt information, the execution machine controls the target device to start running the UEFI Shell automation script to automatically set the network IP address and create a directory that is larger than the size of the SCE tool and the BIOS configuration file. The BIOS configuration file records the default values ​​of the BIOS options of the target device.

[0091] The execution machine waits for the target device to run the UEFI Shell automation script to complete the above work. After detecting the network IP address of the UEFI Shell automation script, the execution machine sends the SCE tool corresponding to the target device to the target device according to the network IP address.

[0092] The target device stores the SCE tool in the directory created by the UEFI Shell automation script, and then runs the SCE restore defaults program of the UEFIShell automation script, using the SCE tool to restore the BIOS options of the target device to the default values ​​according to the BIOS configuration file.

[0093] The BIOS option fault recovery method provided in the embodiment of the present application provides the SCE tool only when executing BIOS recovery of the target device, which can avoid the problem that the SCE tool does not conform to the current situation of the target device, and can implement a more general solution on the server executing the BIOS option fault recovery method provided in the embodiment of the present application, and requires less pre-configuration of the target device.

[0094] Embodiment 4

[0095] Since there are many BIOS options, servers on different platforms and servers of different versions on the same platform may involve different BIOS options that may cause failure to enter the operating system. To facilitate operation and maintenance personnel to locate server failures, based on the above embodiments, the BIOS option failure recovery method provided in the embodiment of the present application may also include: receiving BIOS option configuration information obtained by running a UEFI Shell automation script on the target device to call the SCE tool before restoring the BIOS options to default values.

[0096] Based on the above embodiment, the UEFI Shell automation script also needs to implement the function of reading the BIOS options of the target device using the SCE tool, and this step needs to be performed before restoring the BIOS options of the target device to the default values.

[0097] Specifically, the UEFI Shell automation script is used to record the read BIOS options of the target device as a log, and send it to a server used to execute the BIOS option fault recovery method provided in the embodiment of the present application, so as to record the BIOS option configuration information that makes the target device unable to log in to the operating system, so as to make targeted improvements.

[0098] The above describes in detail various embodiments corresponding to the BIOS option fault recovery method. On this basis, the present application also discloses a BIOS option fault recovery device, equipment and storage medium corresponding to the above method.

[0099] Embodiment 5

[0100] Figure 2 A schematic diagram of the structure of a BIOS option fault recovery device provided in an embodiment of the present application.

[0101] like Figure 2 As shown, the BIOS option failure recovery device provided in the embodiment of the present application includes:

[0102] The starting unit 201 is used to send a restart command to the target device to restart the target device when it is detected that the target device fails to log into the operating system from the BIOS;

[0103] The execution unit 202 is used to control the target device to enter the UEFI Shell interface based on a preset keyboard control command when confirming that the target device enters the BIOS power-on self-test interface after restarting, so that the target device runs a preset UEFI Shell automation script to call the SCE tool to restore the BIOS options to default values;

[0104] The recovery unit 203 is used to send a restart command to the target device to restart the target device, so that the target device logs into the operating system under the premise that the BIOS options are default values.

[0105] Furthermore, the BIOS option fault recovery device provided in the embodiment of the present application is applied to an execution machine that performs BIOS automated testing on a target device;

[0106] The BIOS option failure recovery device provided in the embodiment of the present application may also include:

[0107] The test unit is used to send a restart command to the target device to restart the target device, so that the target device logs into the operating system under the premise that the BIOS options are default values. After detecting that the target device successfully logs into the operating system, the target device is controlled to restart, and the BIOS automation test script is run to configure the BIOS options of the target device using the next set of option configuration information.

[0108] Furthermore, the test unit detects that the target device successfully logs into the operating system, specifically:

[0109] When the operating system IP address of the target device is detected, it is determined that the target device has successfully logged into the operating system.

[0110] Furthermore, the target device is an AMD platform server.

[0111] Further, the execution unit 202 controls the target device to enter the UEFI Shell interface based on a preset keyboard control command, specifically including:

[0112] Sending a first key instruction corresponding to a command to enter a boot menu to the target device, and retrieving UEFI Shell in the boot menu of the target device after the target device enters the boot menu;

[0113] After the UEFI Shell is retrieved, a second key command is sent to the target device to enable the target device to enter the UEFI Shell interface.

[0114] Further, the execution unit 202 causes the target device to run a preset UEFI Shell automation script to call the SCE tool to restore the BIOS options to default values, specifically including:

[0115] Control the target device to run the UEFI Shell automation script to set the network IP address of the UEFI Shell automation script and create a directory on the target device;

[0116] After the network IP address is detected, the SCE tool is sent to the target device and imported into the directory, so that the target device runs the UEFI Shell automation script to detect the SCE tool and call the SCE tool to restore the BIOS options to the default values.

[0117] Further, the execution unit 202 causes the target device to run a preset UEFI Shell automation script to call the SCE tool to restore the BIOS options to default values, specifically including:

[0118] Control the target device to run the UEFI Shell automation script to call the SCE tool pre-deployed on the target device on the target device to restore the BIOS options to the default values;

[0119] After receiving the recovery success information fed back by the target device, confirm that the BIOS options of the target device have been restored to the default values.

[0120] Furthermore, the BIOS option failure recovery device provided in the embodiment of the present application may also include:

[0121] The recording unit is used to receive BIOS option configuration information obtained by calling the SCE tool when the UEFI Shell automation script is run on the target device before restoring the BIOS option to a default value.

[0122] Further, the startup unit 201 detects that the target device fails to log into the operating system from the BIOS, specifically including:

[0123] When it is detected that the target device cannot successfully connect to the IP address of the operating system within a preset time after attempting to log in to the operating system, an IPMI command is sent to the target device to check the network cable connection status of the target device;

[0124] If the network cable connection status of the target device is normal, it is determined that the target device fails to log into the operating system.

[0125] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.

[0126] Embodiment 6

[0127] Figure 3 A schematic diagram of the structure of a BIOS option fault recovery device provided in an embodiment of the present application.

[0128] like Figure 3 As shown, the BIOS option fault recovery device provided in the embodiment of the present application includes:

[0129] A memory 310 for storing a computer program 311;

[0130] The processor 320 is used to execute the computer program 311. When the computer program 311 is executed by the processor 320, the steps of the BIOS option failure recovery method described in any one of the above embodiments are implemented.

[0131] Among them, the processor 320 may include one or more processing cores, such as a 3-core processor, an 8-core processor, etc. The processor 320 may be implemented in at least one hardware form of a digital signal processing DSP (Digital Signal Processing), a field programmable gate array FPGA (Field-Programmable Gate Array), and a programmable logic array PLA (Programmable Logic Array). The processor 320 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 320 may be integrated with a graphics processor GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 320 may also include an artificial intelligence AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0132] The memory 310 may include one or more storage media, which may be non-transitory. The memory 310 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 310 is at least used to store the following computer program 311, wherein, after the computer program 311 is loaded and executed by the processor 320, it can implement the relevant steps in the BIOS option fault recovery method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 310 may also include an operating system 312 and data 313, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 312 may be Windows. The data 313 may include but is not limited to the data involved in the above method.

[0133] In some embodiments, the BIOS option failure recovery device may further include a display screen 330 , a power supply 340 , a communication interface 350 , an input and output interface 360 ​​, a sensor 370 , and a communication bus 380 .

[0134] Those skilled in the art will understand that Figure 3 The structure shown in the figure does not constitute a limitation on the BIOS option fault recovery device, and may include more or less components than those shown in the figure.

[0135] The BIOS option fault recovery device provided in the embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the BIOS option fault recovery method as described above, and the effect is the same as above.

[0136] Embodiment 7

[0137] It should be noted that the above-described device and equipment embodiments are merely schematic. For example, the division of modules is merely a logical function division. There may be other division methods in actual implementation, such as multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or modules, which may be 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 they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0138] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0139] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present application.

[0140] To this end, an embodiment of the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the BIOS option fault recovery method are implemented.

[0141] The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory ROM (Read-Only Memory), a random access memory RAM (Random Access Memory), a magnetic disk or an optical disk, and other media that can store program codes.

[0142] The computer program contained in the storage medium provided in this embodiment can implement the steps of the BIOS option failure recovery method described above when executed by the processor, and the effect is the same as above.

[0143] The above is a detailed introduction to a BIOS option fault recovery method, device, equipment and storage medium provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the device, equipment and storage medium disclosed in the embodiment, since they correspond to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

[0144] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A BIOS option failure recovery method, characterized in that: include: When it is detected that the target device fails to log into the operating system from the BIOS, a restart command is sent to the target device to restart the target device; When confirming that the target device enters the BIOS power-on self-test interface after restarting, based on a preset keyboard control command, control the target device to enter the UEFI Shell interface, so that the target device runs a preset UEFI Shell automation script to call the SCE tool to restore the BIOS options to default values; Sending a restart command to the target device to restart the target device, so that the target device logs into the operating system under the premise that the BIOS options are default values; An execution machine for performing BIOS automated testing on the target device; After sending a restart command to the target device to restart the target device, so that the target device logs into the operating system under the premise that the BIOS option is the default value, the method further includes: After detecting that the target device successfully logs into the operating system, controlling the target device to restart, and running a BIOS automated test script to configure the BIOS options of the target device using a next set of option configuration information; The detecting that the target device successfully logs into the operating system is specifically: When the operating system IP address of the target device is detected, determining that the target device has successfully logged into the operating system; The target device is caused to run a preset UEFI Shell automation script to call the SCE tool to restore the BIOS options to default values, specifically including: Controlling the target device to run the UEFI Shell automation script to set a network IP address of the UEFI Shell automation script and create a directory on the target device; After the network IP address is detected, the SCE tool is sent to the target device and imported into the directory, so that the target device runs the UEFI Shell automation script to detect the SCE tool and then calls the SCE tool to restore the BIOS options to default values; The target device is caused to run a preset UEFI Shell automation script to call the SCE tool to restore the BIOS options to default values, specifically including: Controlling the target device to run the UEFI Shell automation script, so as to call the SCE tool pre-deployed on the target device on the target device to restore the BIOS options to default values; After receiving the recovery success information fed back by the target device, it is confirmed that the BIOS options of the target device have been restored to the default values.

2. The BIOS option failure recovery method according to claim 1, characterized in that: The target device is specifically an AMD platform server.

3. The BIOS option failure recovery method according to claim 1, characterized in that: The step of controlling the target device to enter the UEFI Shell interface based on a preset keyboard control command specifically includes: Sending a first key instruction corresponding to a command to enter a boot menu to the target device, and searching for UEFI Shell in the boot menu of the target device after the target device enters the boot menu; After the UEFI Shell is retrieved, a second key instruction is sent to the target device to enable the target device to enter the UEFI Shell interface.

4. The BIOS option failure recovery method according to claim 1, characterized in that: Also includes: Receive BIOS option configuration information acquired by running the UEFI Shell automation script on the target device and calling the SCE tool before restoring the BIOS option to a default value.

5. The BIOS option failure recovery method according to claim 1, characterized in that: The detecting that the target device fails to log into the operating system from BIOS specifically includes: When it is detected that the target device cannot successfully connect to the IP address of the operating system within a preset time after attempting to log in to the operating system, an IPMI command is sent to the target device to check the network cable connection status of the target device; If the network cable connection status of the target device is normal, it is determined that the target device fails to log into the operating system.

6. A BIOS option failure recovery device, characterized in that: include: A startup unit, configured to send a restart command to the target device to restart the target device when detecting that the target device fails to log into the operating system from the BIOS; An execution unit, configured to control the target device to enter a UEFI Shell interface based on a preset keyboard control command when confirming that the target device enters a BIOS power-on self-test interface after restarting, so that the target device runs a preset UEFIShell automation script to call an SCE tool to restore the BIOS options to default values; A recovery unit, configured to send a restart command to the target device to restart the target device, so that the target device logs into the operating system under the premise that the BIOS options are default values; An execution machine for performing BIOS automated testing on the target device; After sending a restart command to the target device to restart the target device, so that the target device logs into the operating system under the premise that the BIOS option is the default value, the method further includes: After detecting that the target device successfully logs into the operating system, controlling the target device to restart, and running a BIOS automated test script to configure the BIOS options of the target device using a next set of option configuration information; The detecting that the target device successfully logs into the operating system is specifically: When the operating system IP address of the target device is detected, determining that the target device has successfully logged into the operating system; The target device is caused to run a preset UEFI Shell automation script to call the SCE tool to restore the BIOS options to default values, specifically including: Controlling the target device to run the UEFI Shell automation script to set a network IP address of the UEFI Shell automation script and create a directory on the target device; After the network IP address is detected, the SCE tool is sent to the target device and imported into the directory, so that the target device runs the UEFI Shell automation script to detect the SCE tool and then calls the SCE tool to restore the BIOS options to default values; The target device is caused to run a preset UEFI Shell automation script to call the SCE tool to restore the BIOS options to default values, specifically including: Controlling the target device to run the UEFI Shell automation script, so as to call the SCE tool pre-deployed on the target device on the target device to restore the BIOS options to default values; After receiving the recovery success information fed back by the target device, it is confirmed that the BIOS options of the target device have been restored to the default values.

7. A BIOS option failure recovery device, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program, and when the computer program is executed by the processor, the steps of the BIOS option failure recovery method as described in any one of claims 1 to 5 are implemented.

8. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the BIOS option failure recovery method according to any one of claims 1 to 5 are implemented.