A BIOS operation and maintenance method, system and storage medium
Through the BIOS operation and maintenance system, the BIOS configuration information of the server is automatically obtained, compared and repaired, and the problem of inefficient traditional manual management is solved, and efficient and accurate BIOS operation and maintenance is achieved.
Patent Information
- Application Number
- CN202510361063.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-26
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2045-03-26
AI Technical Summary
In the prior art, the customized configuration management of server BIOS is inefficient and error-prone, making it difficult to achieve automated operation and maintenance, affecting the operation and maintenance efficiency and accuracy of the data center.
The control server in the BIOS operation and maintenance system sends a obtain request to the substrate management controller BMC of each server to be inspected, obtains real-time configuration information, compares it with the standard library to generate a difference report, and retrieves repair scripts from the script library for automated repair.
It realizes batch automation detection and repair of customized BIOS by multi-vendors, improves operation and maintenance efficiency and accuracy, and can obtain accurate BIOS configuration information in any server state.
Smart Images

Figure CN119883773B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technologies, and in particular, to a BIOS operation and maintenance method, system, and storage medium. Background Art
[0002] With the dramatic increase in the scale of data centers, the requirements for the configuration standardization and customization of the basic input / output system (BIOS) of servers have become prominent. As the underlying cornerstone of servers, the BIOS directly affects the performance, security, and stability of servers, and is crucial for business continuity and efficient operation.
[0003] Internet enterprises and device manufacturers, etc. have regarded the customization of the BIOS as the key, and strive to release the maximum performance of servers through fine customization to meet diverse business requirements. However, in the face of a large number of servers, the traditional manual method of customizing the BIOS is inefficient and error-prone, becoming an operation and maintenance bottleneck.
[0004] Therefore, the industry urgently needs a solution that can realize the automated operation and maintenance of the BIOS to improve the accuracy and efficiency of data center operation and maintenance. Summary of the Invention
[0005] The present disclosure provides a BIOS operation and maintenance method, system, and storage medium to at least solve the above technical problems existing in the prior art.
[0006] According to a first aspect of the present disclosure, there is provided a BIOS operation and maintenance method, which is applied to a control server in a BIOS operation and maintenance system. The method includes: determining that the BIOS operation and maintenance system meets the inspection conditions, and sending a acquisition request to a baseboard management controller (BMC) of each server to be inspected in the BIOS operation and maintenance system, where the acquisition request is used to request real-time configuration information of the BIOS of each server to be inspected; receiving the real-time configuration information of the BIOS sent by the BMC of each server to be inspected; comparing the real-time configuration information of each server to be inspected with the standard configuration information corresponding to the server to be inspected in a standard library; the standard library includes the latest standard configuration information of various customized BIOSs; in response to the existence of a differential configuration item that does not conform to the standard configuration information in the real-time configuration information, generating a differential report based on the differential configuration item and displaying the differential report; the differential report includes the unique identifier of the target server to be inspected corresponding to the differential configuration item; retrieving a repair script corresponding to the target server to be inspected from a script library based on the differential report; and sending the repair script to the BMC of the target server to be inspected, so that the BMC of the target server to be inspected repairs the BIOS of the target server to be inspected based on the repair script.
[0007] In one implementable manner, determining that the BIOS operation and maintenance system meets the inspection conditions includes at least one of the following: determining that the BIOS operation and maintenance system meets the inspection conditions in response to the difference between the trigger time of the previous inspection of the BIOS operation and maintenance system and the current time reaching a first duration; determining that the BIOS operation and maintenance system meets the inspection conditions in response to detecting a target event in at least one server to be inspected in the BIOS operation and maintenance system; determining that the BIOS operation and maintenance system meets the inspection conditions in response to detecting that the status parameters of at least one server to be inspected in the BIOS operation and maintenance system meet a first threshold.
[0008] In one implementable manner, sending a fetch request to the baseboard management controller (BMC) of each server to be inspected in the BIOS operation and maintenance system includes: invoking the Redfish interface with each server to be inspected based on the curl command and sending a fetch request to the BMC of each server to be inspected in the BIOS operation and maintenance system.
[0009] In one implementable manner, after sending a fetch request to the baseboard management controller (BMC) of each server to be inspected in the BIOS operation and maintenance system, it further includes: in response to not receiving the real-time configuration information of the BIOS sent by the BMC of the server to be inspected, obtaining the real-time configuration information of the BIOS of the server to be inspected from a target backup interval; the real-time configuration information of the BIOS in the target backup interval will be cleared after the storage time reaches a second duration.
[0010] In one implementable manner, obtaining the real-time configuration information of the BIOS of the server to be inspected from the target backup interval includes at least one of the following: obtaining the real-time configuration information of the BIOS of the server to be inspected from the storage chip of the server to be inspected based on the physical interface with the storage chip; the storage chip is a chip independent of the operating system and BMC of the server to be inspected; obtaining the real-time configuration information of the BIOS of the server to be inspected from the network storage device based on the network connection with the network storage device; the network storage device is a remote device with storage function; receiving the real-time configuration information of the BIOS of the faulty server to be inspected sent by other servers to be inspected other than the faulty server to be inspected; the faulty server to be inspected is a server to be inspected that cannot send the real-time configuration information of its own BIOS to the control server through the BMC.
[0011] In one possible implementation, comparing the real-time configuration information of each server to be inspected with the corresponding standard configuration information in the standard library includes: determining the unique identifier of the server to be inspected based on the real-time configuration information; retrieving the corresponding standard configuration information of the server to be inspected in the standard library based on the unique identifier; determining the semantic similarity between the configuration items in the real-time configuration information and the corresponding configuration items in the standard configuration information, and determining the configuration items with semantic similarity in the real-time configuration information that meet the second threshold as the differential configuration items.
[0012] In one possible implementation, the differential report further includes at least one of the name of the differential configuration item, the real-time value of the differential configuration item, the standard value of the differential configuration item, and the differential type of the differential configuration item.
[0013] In one possible implementation, presenting the differential report includes at least one of the following: presenting the differential report on the display screen of the control server; sending the differential report to the target server to be inspected so that the target server to be inspected presents the differential report; based on a preset notification channel, sending the differential report to a preset remote device so that the remote device presents the differential report; the notification channel includes at least one of email, text message, and instant messaging tool.
[0014] In one possible implementation, retrieving the repair script corresponding to the target server to be inspected from the script library based on the differential report includes: extracting the unique identifier of the target server to be inspected from the differential report, and retrieving the repair script corresponding to the target server to be inspected from the script library based on the unique identifier; or, retrieving the repair script corresponding to the target server to be inspected from the script library based on the unique identifier of the input target server to be inspected; the unique identifier of the input target server to be inspected is input by the user through a remote device based on the differential report.
[0015] In one possible implementation, sending the repair script to the BMC of the target server to be inspected includes: invoking the Redfish interface with each server to be inspected based on the curl command, and sending the repair script to the BMC of the target server to be inspected.
[0016] In one possible implementation, a BIOS operation and maintenance method further includes: generating a log record based on the inspection information, the log record including at least one of the inspection time, inspection content, inspection result, repair time, repair content, and repair result; and / or storing the log record in the database of the control server.
[0017] According to a second aspect of the present disclosure, a BIOS operation and maintenance system is provided. The system includes: a control server; and at least one server to be inspected, all of the servers to be inspected are connected to the control server. The control server is configured to: determine that the BIOS operation and maintenance system meets the inspection conditions, and send a retrieval request to the baseboard management controller (BMC) of each server to be inspected in the BIOS operation and maintenance system, where the retrieval request is used to request the real-time configuration information of the BIOS of each server to be inspected; receive the real-time configuration information of the BIOS sent by the BMC of each server to be inspected; compare the real-time configuration information of each server to be inspected with the standard configuration information corresponding to the server to be inspected in the standard library. The standard library includes the latest standard configuration information of various customized BIOSs; in response to the existence of a differential configuration item in the real-time configuration information that does not conform to the standard configuration information, generate a differential report based on the differential configuration item and display the differential report. The differential report includes the unique identifier of the target server to be inspected corresponding to the differential configuration item; based on the differential report, retrieve the repair script corresponding to the target server to be inspected from the script library; and send the repair script to the BMC of the target server to be inspected, so that the BMC of the target server to be inspected repairs the BIOS of the target server to be inspected based on the repair script.
[0018] In an implementable manner, the control server is further configured to perform at least one of the following: in response to the difference between the trigger time of the previous inspection of the BIOS operation and maintenance system and the current time reaching a first duration, determine that the BIOS operation and maintenance system meets the inspection conditions; in response to detecting a target event in at least one server to be inspected in the BIOS operation and maintenance system, determine that the BIOS operation and maintenance system meets the inspection conditions; in response to detecting that the status parameter of at least one server to be inspected in the BIOS operation and maintenance system meets a first threshold, determine that the BIOS operation and maintenance system meets the inspection conditions.
[0019] In an implementable manner, the control server is further configured to: call the Redfish interface with each server to be inspected based on the curl command and send a retrieval request to the BMC of each server to be inspected in the BIOS operation and maintenance system.
[0020] In an implementable manner, the control server is further configured to: in response to not receiving the real-time configuration information of the BIOS sent by the BMC of the server to be inspected, retrieve the real-time configuration information of the BIOS of the server to be inspected from the target backup interval. The real-time configuration information of the BIOS in the target backup interval will be cleared after the storage time reaches a second duration.
[0021] In an implementable manner, the control server is further configured to perform at least one of the following: obtain the real-time configuration information of the BIOS of the server under test from the storage chip of the server under test based on the physical interface with the storage chip; the storage chip is a chip independent of the operating system and BMC of the server under test; obtain the real-time configuration information of the BIOS of the server under test from the network storage device based on the network connection with the network storage device; the network storage device is a remote device with storage function; receive the real-time configuration information of the BIOS of the faulty server under test sent by other servers under test other than the faulty server under test; the faulty server under test is a server under test that cannot send the real-time configuration information of its own BIOS to the control server through the BMC.
[0022] In an implementable manner, the control server is further configured to: determine the unique identifier of the server under test based on the real-time configuration information; retrieve the standard configuration information corresponding to the server under test in the standard library based on the unique identifier; determine the semantic similarity between the configuration items in the real-time configuration information and the corresponding configuration items in the standard configuration information, and determine the configuration items in the real-time configuration information whose semantic similarity meets the second threshold as the differential configuration items.
[0023] In an implementable manner, the control server is further configured to perform at least one of the following: display the differential report on the display screen of the control server; send the differential report to the target server under test so that the target server under test can display the differential report; send the differential report to a preset remote device based on a preset notification channel so that the remote device can display the differential report; the notification channel includes at least one of email, short message, and instant messaging tool.
[0024] In an implementable manner, the control server is further configured to: extract the unique identifier of the target server under test from the differential report and retrieve the repair script corresponding to the target server under test from the script library based on the unique identifier; or, retrieve the repair script corresponding to the target server under test from the script library based on the unique identifier of the target server under test input; the unique identifier of the input target server under test is input by the user through a remote device based on the differential report.
[0025] According to a third aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are used to cause the computer to execute the method described in the present disclosure.
[0026] A BIOS operation and maintenance method, system, and storage medium of the present disclosure send a retrieval request to the BMC of each server to be inspected in the BIOS operation and maintenance system. The retrieval request is used to request the real-time configuration information of the BIOS of each server to be inspected, and receive the real-time configuration information of the BIOS sent by the BMC of each server to be inspected. Then, compare the real-time configuration information of each server to be inspected with the standard configuration information corresponding to the server to be inspected in the standard library. If there are different configuration items in the real-time configuration information that do not conform to the standard configuration information, generate a difference report based on the different configuration items, and display the difference report. Finally, based on the difference report, retrieve the repair script corresponding to the target server to be inspected from the script library, and send the repair script to the BMC of the target server to be inspected, so that the BMC of the target server to be inspected repairs the BIOS of the target server to be inspected based on the repair script. Thus, the present disclosure supports multi-vendor customized BIOS operation and maintenance operations, can achieve batch automated BIOS detection and repair, and improve the operation and maintenance efficiency and accuracy of the BIOS; moreover, by obtaining the BIOS configuration information of the server to be inspected through the BMC, it does not depend on the state of the operating system, and can accurately obtain the BIOS configuration information in any state of the server to be inspected.
[0027] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features, and advantages of the exemplary embodiments of the present disclosure will become easily understood. In the drawings, several embodiments of the present disclosure are shown in an exemplary rather than restrictive manner, wherein:
[0029] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0030] Figure 1 Shows the flowchart of a BIOS operation and maintenance method according to an embodiment of the present disclosure Figure 1 ;
[0031] Figure 2 Shows the flowchart of a BIOS operation and maintenance method according to an embodiment of the present disclosure Figure 2 ;
[0032] Figure 3 Shows the structural schematic diagram of a BIOS operation and maintenance system according to an embodiment of the present disclosure;
[0033] Figure 4 Shows the composition structural schematic diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0034] To make the objectives, features, and advantages of the present disclosure more obvious and understandable, the following will clearly and completely describe the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present disclosure.
[0035] Currently, the remote management of servers in the market mainly focuses on the real-time monitoring of hardware status and basic configurations. For key requirements such as comprehensive inspection of BIOS configurations, accurate differentiation of multi-vendor customized configuration items, real-time notification mechanisms, and automated repair functions, a complete and efficient solution has not been provided yet. The present disclosure provides a BIOS operation and maintenance method, system, and storage medium to solve the above technical problems existing in the prior art.
[0036] Figure 1 The flowchart of a BIOS operation and maintenance method according to an embodiment of the present disclosure is shown Figure 1 , as Figure 1 shown, a BIOS operation and maintenance method, characterized in that it is applied to a control server in a BIOS operation and maintenance system, and the method includes:
[0037] Step S101, determine that the BIOS operation and maintenance system meets the inspection conditions, and send a acquisition request to the baseboard management controller (BMC) of each server to be inspected in the BIOS operation and maintenance system.
[0038] In this embodiment, the BIOS operation and maintenance system includes a control server and at least one server to be inspected. The at least one server to be inspected is connected to the control server. The control server can inspect the at least one server to be inspected. During the inspection process, the control server first needs to determine whether the BIOS operation and maintenance system meets the inspection conditions. When the BIOS operation and maintenance system meets the inspection conditions, the control server will send an acquisition request to the baseboard management controller (BMC) of each server to be inspected to obtain the real-time BIOS configuration information of each server to be inspected. Among them, the inspection conditions can be set based on time intervals, server events, or status thresholds, etc.; the acquisition request can be used to request the real-time configuration information of the BIOS of each server to be inspected.
[0039] Step S102, receive the real-time BIOS configuration information sent by the BMC of each server to be inspected.
[0040] In this embodiment, after the BMC of each server to be inspected receives the acquisition request, it will send the real-time configuration information of the BIOS of the server to be inspected to the control server, and the control server can parse the received real-time configuration information of the BIOS and store it in the database.
[0041] Step S103: Compare the real-time configuration information of each server to be inspected with the standard configuration information corresponding to the server to be inspected in the standard library.
[0042] In this embodiment, the standard library includes the latest standard configuration information of various customized BIOSs. The control server can compare the real-time configuration information of the BIOS of each server to be inspected collected with the standard configuration information of the server to be inspected in the standard library, and through the comparison, the differences between the real-time configuration information of the BIOS of each server to be inspected and the corresponding standard configuration information can be identified.
[0043] Step S104: In response to the existence of a differential configuration item in the real-time configuration information that does not conform to the standard configuration information, generate a differential report based on the differential configuration item and display the differential report.
[0044] In this embodiment, if it is found during the comparison process that there are differential configuration items in the real-time configuration information of the BIOS of the server to be inspected that do not conform to the standard configuration information, a differential report containing the information of these differential configuration items will be generated and the differential report will be displayed. Among them, the differential report includes the unique identifier of the target server to be inspected corresponding to the differential configuration item, and the administrator can quickly locate the target server to be inspected with a faulty BIOS based on the unique identifier in the differential report.
[0045] Step S105: Based on the differential report, retrieve the repair script corresponding to the target server to be inspected from the script library.
[0046] In this embodiment, the control server can retrieve the repair script corresponding to the target server to be inspected from the script library according to the unique identifier in the differential report. Among them, the script library stores the repair scripts of the BIOSs of servers of different manufacturers and different types.
[0047] Step S106: Send the repair script to the BMC of the target server to be inspected.
[0048] In this embodiment, after finding the repair script corresponding to the target server to be inspected, the control server will send the repair script to the BMC of the target server to be inspected. After receiving the repair script, the BMC will repair the BIOS of the target server to be inspected according to the instructions in the repair script, thereby realizing the automatic repair of the BIOS configuration problem.
[0049] In the present disclosure, the control server sends a retrieval request to the BMC of each server to be inspected in the BIOS operation and maintenance system. The retrieval request is used to request the real-time configuration information of the BIOS of each server to be inspected, and receives the real-time configuration information of the BIOS sent by the BMC of each server to be inspected. Then, the real-time configuration information of each server to be inspected is compared with the standard configuration information corresponding to the server to be inspected in the standard library. If there are different configuration items in the real-time configuration information that do not conform to the standard configuration information, a difference report is generated based on the different configuration items, and the difference report is displayed. Finally, based on the difference report, the repair script corresponding to the target server to be inspected is retrieved from the script library, and the repair script is sent to the BMC of the target server to be inspected, so that the BMC of the target server to be inspected repairs the BIOS of the target server based on the repair script. Thus, the present disclosure supports multi-vendor customized BIOS operation and maintenance operations, can achieve batch and automated BIOS detection and repair, and improve the operation and maintenance efficiency and accuracy of the BIOS; moreover, by obtaining the BIOS configuration information of the server to be inspected through the BMC, it does not depend on the state of the operating system, and the BIOS configuration information can be accurately obtained in any state of the server to be inspected.
[0050] In another embodiment, "determining that the BIOS operation and maintenance system meets the patrol inspection conditions" in step S101 includes at least one of the following:
[0051] In response to the difference between the trigger time of the previous patrol inspection of the BIOS operation and maintenance system and the current time reaching a first duration, it is determined that the BIOS operation and maintenance system meets the patrol inspection conditions. That is, if the difference between the trigger time of the previous patrol inspection of the BIOS operation and maintenance system and the current time reaches a preset first duration, it is considered to meet the patrol inspection conditions. Among them, the first duration can be 5 minutes. This method triggers the patrol inspection task through the time interval and is applicable to the need for regular patrol inspection.
[0052] In response to detecting a target event in at least one server to be inspected in the BIOS operation and maintenance system, it is determined that the BIOS operation and maintenance system meets the patrol inspection conditions. Among them, the target event can be the power-on of the server to be inspected, the hardware change of the server to be inspected, and the BIOS version update of the server to be inspected, etc. If a target event is detected in at least one server to be inspected in the BIOS operation and maintenance system, it is considered to meet the patrol inspection conditions. This method triggers the patrol inspection task through event-driven and can perform patrol inspection in a timely manner when a specific event occurs.
[0053] In response to detecting that the status parameters of at least one server to be inspected in the BIOS operation and maintenance system meet the first threshold, it is determined that the BIOS operation and maintenance system meets the inspection conditions. Among them, the status parameters include CPU usage rate, memory occupancy, CPU temperature, etc. If it is detected that the status parameters of at least one server to be inspected in the BIOS operation and maintenance system meet the preset first threshold, it is considered that the inspection conditions are met. For example, if the CPU usage rate exceeds 90% and lasts for a certain period of time, it is considered that the inspection conditions are met. This method triggers the inspection task through the value of the status parameter, and can perform inspections in a timely manner when the server status is abnormal.
[0054] In another embodiment, the "sending a acquisition request to the baseboard management controller BMC of each server to be inspected in the BIOS operation and maintenance system" in step S101 includes:
[0055] Based on the curl command, the Redfish interface between the curl command and each server to be inspected is called, and an acquisition request is sent to the BMC of each server to be inspected in the BIOS operation and maintenance system.
[0056] In this embodiment, the curl command can transmit data under various network protocols, and can call the corresponding interface through requests such as GET, POST, PUT, DELETE, etc. to perform data transmission. Among them, the GET request is used to obtain data, the POST request is used to submit data, the PUT request is used to update resources, and the DELETE request is used to delete resources; the Redfish interface is an open standard based on the RESTful interface and JSON format, and is applicable to the management of servers and data center hardware. The control server can use the curl command to call the Redfish interface between the control server and each server to be inspected, so as to send an acquisition request to the BMC of each server to be inspected, and the acquisition request can be an HTTP GET request.
[0057] Figure 2 Shows the process schematic of a BIOS operation and maintenance method according to an embodiment of the present disclosure Figure 2 , such as Figure 2 shown, a BIOS operation and maintenance method includes:
[0058] Step S201, determine that the BIOS operation and maintenance system meets the inspection conditions, and send an acquisition request to the baseboard management controller BMC of each server to be inspected in the BIOS operation and maintenance system.
[0059] If the real-time configuration information of the BIOS sent by the BMC of the server to be inspected is received, the following steps S203 - step S206 are executed; the specific implementation details of steps S203 - step S206 are similar to those of steps S103 - step S106, and will not be elaborated here.
[0060] If the real-time configuration information of the BIOS sent by the BMC of the server to be inspected is not received, step S202 is executed to obtain the real-time configuration information of the BIOS of the server to be inspected from the target backup interval.
[0061] In this embodiment, after the control server sends the acquisition request, if the real-time configuration information of the BIOS sent by the BMC of the server to be inspected is not received. For example, if the BMC is damaged or a network failure causes the BMC to be unable to send the real-time configuration information of the BIOS, the real-time configuration information of the BIOS of the server to be inspected will be obtained from the target backup interval. The BMC of the server to be inspected will back up a copy of the latest BIOS configuration information of the server to be inspected to the target backup interval. The target backup interval can be a storage chip independent of the BMC or a remote network storage platform, etc. The real-time configuration information of the BIOS stored in the target backup interval will be cleared after the storage time reaches a preset second duration to save storage space. Among them, the second duration can be set by itself based on the actual situation.
[0062] After step S202, the following steps S203 - S206 are also executed.
[0063] Step S203: Compare the real-time configuration information of each server to be inspected with the standard configuration information corresponding to the server to be inspected in the standard library.
[0064] Step S204: In response to the existence of a differential configuration item in the real-time configuration information that does not conform to the standard configuration information, generate a differential report based on the differential configuration item and display the differential report.
[0065] Step S205: Based on the differential report, retrieve the repair script corresponding to the target server to be inspected from the script library.
[0066] Step S206: Send the repair script to the BMC of the target server to be inspected.
[0067] In another embodiment, step S202, "obtain the real-time configuration information of the BIOS of the server to be inspected from the target backup interval", includes at least one of the following:
[0068] Obtain the real-time configuration information of the BIOS of the server to be inspected from the storage chip of the server to be inspected based on the physical interface with the storage chip; the storage chip is a chip independent of the operating system and BMC of the server to be inspected. That is, the BMC will back up the real-time configuration information of the BIOS to the storage chip independent of the operating system and BMC of the server to be inspected, and the control server can obtain the real-time configuration information of the BIOS from the storage chip of the server to be inspected through the physical interface with the storage chip. Thus, it can be ensured that the real-time configuration information of the BIOS can still be obtained even when problems occur in the operating system or BMC. Among them, the storage chip can be a dynamic random access memory or a flash memory, etc.
[0069] Obtain the real-time configuration information of the BIOS of the server to be inspected from the network storage device based on the network connection with the network storage device; the network storage device is a remote device with storage function. That is, the BMC will back up the real-time configuration information of the BIOS to the remote network storage device with storage function, and the control server can obtain the real-time configuration information of the BIOS of the server to be inspected from the network storage device through the network connection with the network storage device. Among them, the network storage device can be a cloud platform or a blockchain, etc.
[0070] Receive the real-time configuration information of the BIOS of the server to be inspected with a fault sent by other servers to be inspected other than the server to be inspected with a fault; the server to be inspected with a fault is a server to be inspected that cannot send the real-time configuration information of its own BIOS to the control server through the BMC. That is, after the BMC of the server to be inspected obtains the real-time configuration information of the BIOS, it will back up the real-time configuration information of the current server to be inspected to other servers to be inspected, and will also synchronize the status of the server to be inspected to the other server to be inspected through a heartbeat signal, etc. After the control server sends a request to all servers to be inspected, if a server to be inspected cannot send the real-time configuration information of its own BIOS to the control server through the BMC, then this server to be inspected is the server to be inspected with a fault, and the other server to be inspected that has backed up the real-time configuration information of the BIOS of this server to be inspected with a fault will send the real-time configuration information of the BIOS of this server to be inspected with a fault to the control server. Thus, it can be ensured that even if some servers to be inspected cannot send the real-time configuration information of their own BIOS to the control server through the BMC, the control server can still obtain their BIOS configuration information.
[0071] In another embodiment, step S103 "Compare the real-time configuration information of each server to be inspected with the standard configuration information corresponding to the server to be inspected in the standard library" includes:
[0072] Determine the unique identifier of the server to be inspected based on the real-time configuration information;
[0073] Retrieve the standard configuration information corresponding to the server to be inspected in the standard library based on the unique identifier;
[0074] Determine the semantic similarity between the configuration items in the real-time configuration information and the corresponding configuration items in the standard configuration information, and determine the configuration items in the real-time configuration information whose semantic similarity meets the second threshold as the differential configuration items.
[0075] In this embodiment, it is necessary to compare the real-time configuration information of each server to be inspected with the standard configuration information corresponding to the server to be inspected in the standard library. First, the unique identifier of the server to be inspected can be determined according to the relevant information in the real-time configuration information. The unique identifier can be the Internet Protocol (IP) address and serial number of the server, etc. Then, through the unique identifier of the server to be inspected, the standard configuration information corresponding to the server to be inspected is retrieved from the standard library. The standard library stores the customized BIOS standard configuration information of servers of different manufacturers and different specifications. Finally, by calculating the semantic similarity between the configuration items in the real-time configuration information and the corresponding configuration items in the standard configuration information, the configuration items in the real-time configuration information whose semantic similarity meets the second threshold are determined as the differential configuration items, where the second threshold can be set according to actual needs. For example, for the real-time configuration information A and the standard configuration information B, if the real-time configuration information A includes configuration item A1, configuration item A2, and configuration item A3, and the standard configuration information B includes configuration item B1, configuration item B2, and configuration item B3, where configuration item A1 corresponds to configuration item B1, configuration item A2 corresponds to configuration item B2, and configuration item A3 corresponds to configuration item B3, then the semantic similarity S1 between configuration item A1 and configuration item B1, the semantic similarity S2 between configuration item A2 and configuration item B2, and the semantic similarity S3 between configuration item A3 and configuration item B3 can be calculated respectively. If the semantic similarity S3 meets the second threshold, such as the semantic similarity S3 is less than 0.5, then configuration item A3 is determined as the differential configuration item.
[0076] In another embodiment, the difference report further includes at least one of the name of the differential configuration item, the real-time value of the differential configuration item, the standard value of the differential configuration item, and the difference type of the differential configuration item. Among them, the difference type of the differential configuration item includes value difference and non-existence. The value difference means that for the same configuration item, its value is different in the real-time configuration information and the corresponding standard configuration information. Non-existence means that for a certain configuration item, the configuration item does not exist in the real-time configuration information, while it exists in the corresponding standard configuration information. Thus, the administrator can understand the specific difference information based on the difference report, so as to better determine the fault of the BIOS and repair the BIOS.
[0077] In another embodiment, the "displaying the difference report" in step S104 includes at least one of the following:
[0078] The difference report is displayed on the display screen of the control server. That is, the difference report can be directly displayed in a graphical or text form on the display screen of the control server, so that the administrator on the control server side can directly view and analyze it on the control server.
[0079] The difference report is sent to the target server to be inspected, so that the target server to be inspected can display the difference report. That is, the difference report can be sent to the target server to be inspected, and it is displayed on the display screen of the target server to be inspected, so that the administrator on the target server to be inspected side can view the difference report on the local server.
[0080] Based on a preset notification channel, the difference report is sent to a preset remote device, so that the remote device can display the difference report; the notification channel includes at least one of email, short message, and instant messaging tool. That is, the difference report can be sent to a preset remote device, such as mobile devices like mobile phones, laptops, and tablets, through a preset notification channel such as email, short message, instant messaging tool, etc., so that the administrator can view the difference report on the mobile device, thereby being able to respond to system failures in a timely manner and improve system reliability.
[0081] In another embodiment, step S105 "Based on the difference report, retrieve the repair script corresponding to the target server to be inspected from the script library" includes:
[0082] Extract the unique identifier of the target server to be inspected from the difference report, and retrieve the repair script corresponding to the target server to be inspected from the script library based on the unique identifier; or,
[0083] Retrieve the repair script corresponding to the target server to be inspected from the script library based on the input unique identifier of the target server to be inspected; the input unique identifier of the target server to be inspected is input by the user through the remote device based on the difference report.
[0084] In this embodiment, the control server can directly extract the unique identifier of the target server to be inspected from the difference report, and retrieve the corresponding repair script from the script library based on this unique identifier. The script library stores repair scripts for different servers and configuration problems; it can also retrieve the repair script corresponding to the target server to be inspected based on the input unique identifier of the target server to be inspected. That is, after the control server sends the difference report to the administrator's remote device, the administrator can input the unique identifier of the target server to be inspected through the remote device based on the difference report, and the control server thus obtains the input unique identifier, and then retrieves the corresponding repair script from the script library based on this input unique identifier.
[0085] In another embodiment, step S106 "Send the repair script to the BMC of the target server to be inspected" includes:
[0086] Based on the curl command, call the Redfish interface with each server to be inspected, and send the repair script to the BMC of the target server to be inspected.
[0087] In this embodiment, the curl command can transfer data under various network protocols, and can call the corresponding interface through requests such as GET, POST, PUT, DELETE, etc. to perform data transfer. Among them, the GET request is used to obtain data, the POST request is used to submit data, the PUT request is used to update resources, and the DELETE request is used to delete resources; the Redfish interface is an open standard based on RESTful interfaces and JSON format, which is suitable for the management of servers and data center hardware. After the control server obtains the repair script of the BIOS of the target server to be inspected, it will call the Redfish interface with each server to be inspected based on the curl command, and send the repair script to the BMC of the target server to be inspected. This process does not require the administrator to directly log in to the server, greatly reducing the operation complexity and the risk of errors.
[0088] In another embodiment, a BIOS operation and maintenance method further includes:
[0089] Generate a log record based on the inspection information, where the log record includes at least one of the inspection time, inspection content, inspection result, repair time, repair content, and repair result; and / or,
[0090] Store the log record in the database of the control server.
[0091] In this embodiment, the control server can generate a log record according to the inspection information. The log record can include at least one piece of information such as the inspection time, inspection content, inspection result, repair time, repair content, and repair result. The log record is helpful for subsequent auditing and problem tracking. The control server can also store the generated log record in the database of the control server for subsequent query and analysis. Database storage can ensure the security and integrity of the log record, facilitating the administrator to query historical data.
[0092] In another embodiment, a BIOS operation and maintenance method can also introduce machine learning or artificial intelligence algorithms to analyze the historical BIOS configuration information of the server to be inspected and the performance data of the server to be inspected, automatically optimize the BIOS configuration strategy, and dynamically adjust the BIOS configuration information according to the business requirements and the load conditions of the server to be inspected to improve the performance and energy efficiency of the server. It can also use a prediction model to detect potential BIOS configuration problems in advance and automatically repair them or issue a warning.
[0093] In another embodiment, during the communication process of a BIOS operation and maintenance method, more advanced data encryption technologies and authentication mechanisms can be adopted to ensure the secure transmission of BIOS configuration information, encrypt the stored BIOS configuration information and log records to prevent data leakage, and access control policies can also be implemented to restrict access rights to BIOS configuration information, ensuring that only authorized administrators can view and modify BIOS configuration information, and regular security audits and vulnerability scans are carried out to promptly discover and repair potential security risks. Among them, the data encryption technology can be TLS 1.3, and the authentication mechanism can be OAuth 2.0 or OpenID Connect. TLS 1.3 is the latest version of the Transport Layer Security (TLS) protocol; OAuth 2.0 is an authorization framework of the Open Authorization (OAuth) protocol; OpenID Connect is a simple identity layer based on OAuth 2.0.
[0094] Figure 3 The structural schematic diagram of a BIOS operation and maintenance system according to an embodiment of the present disclosure is shown, as Figure 3 shown, a BIOS operation and maintenance system includes:
[0095] A control server 10; and,
[0096] At least one server to be inspected; the servers to be inspected are all connected to the control server 10; as Figure 3 shown, the servers to be inspected may include a server to be inspected 20, a server to be inspected 21, a server to be inspected 22, and a server to be inspected 23, and the number of servers to be inspected can be arbitrarily expanded based on actual situations;
[0097] The control server 10 is used for:
[0098] Determine that the BIOS operation and maintenance system meets the inspection conditions, send a acquisition request to the baseboard management controller (BMC) of each server to be inspected in the BIOS operation and maintenance system, and the acquisition request is used to request the real-time configuration information of the BIOS of each server to be inspected;
[0099] Receive the real-time configuration information of the BIOS sent by the BMC of each server to be inspected;
[0100] Compare the real-time configuration information of each server to be inspected with the standard configuration information corresponding to the server to be inspected in the standard library; the standard library includes the latest standard configuration information of various customized BIOSs;
[0101] In response to the existence of differential configuration items in the real-time configuration information that do not conform to the standard configuration information, generate a differential report based on the differential configuration items and display the differential report; the differential report includes the unique identifier of the target server to be inspected corresponding to the differential configuration item.
[0102] Based on the differential report, retrieve the repair script corresponding to the target server to be inspected from the script library.
[0103] Send the repair script to the BMC of the target server to be inspected, so that the BMC of the target server to be inspected repairs the BIOS of the target server to be inspected based on the repair script.
[0104] In an implementable manner, the control server 10 is further configured to perform at least one of the following: determine that the BIOS operation and maintenance system meets the inspection condition in response to the difference between the trigger time of the previous inspection of the BIOS operation and maintenance system and the current time reaching the first duration; determine that the BIOS operation and maintenance system meets the inspection condition in response to detecting a target event in at least one server to be inspected in the BIOS operation and maintenance system; determine that the BIOS operation and maintenance system meets the inspection condition in response to detecting that the status parameters of at least one server to be inspected in the BIOS operation and maintenance system meet the first threshold.
[0105] In an implementable manner, the control server 10 is further configured to: call the Redfish interface with each server to be inspected based on the curl command and send a fetch request to the BMC of each server to be inspected in the BIOS operation and maintenance system.
[0106] In an implementable manner, the control server 10 is further configured to: in response to not receiving the real-time configuration information of the BIOS sent by the BMC of the server to be inspected, obtain the real-time configuration information of the BIOS of the server to be inspected from the target backup interval; the real-time configuration information of the BIOS in the target backup interval will be cleared after the storage time reaches the second duration.
[0107] In an implementable manner, the control server 10 is further configured to perform at least one of the following: obtain the real-time configuration information of the BIOS of the server to be inspected from the storage chip of the server to be inspected based on the physical interface with the storage chip; the storage chip is a chip independent of the operating system and BMC of the server to be inspected; obtain the real-time configuration information of the BIOS of the server to be inspected from the network storage device based on the network connection with the network storage device; the network storage device is a remote device with storage function; receive the real-time configuration information of the BIOS of the faulty server to be inspected sent by other servers to be inspected other than the faulty server to be inspected; the faulty server to be inspected is a server to be inspected that cannot send the real-time configuration information of its own BIOS to the control server 10 through the BMC.
[0108] In one possible implementation, the control server 10 is further configured to: determine the unique identifier of the server to be inspected based on the real-time configuration information; retrieve the standard configuration information corresponding to the server to be inspected in the standard library based on the unique identifier; determine the semantic similarity between the configuration items in the real-time configuration information and the corresponding configuration items in the standard configuration information, and determine the configuration items in the real-time configuration information whose semantic similarity meets the second threshold as the different configuration items.
[0109] In one possible implementation, the difference report further includes at least one of the name of the different configuration item, the real-time value of the different configuration item, the standard value of the different configuration item, and the difference type of the different configuration item.
[0110] In one possible implementation, the control server 10 is further configured to perform at least one of the following: display the difference report on the display screen of the control server 10; send the difference report to the target server to be inspected so that the target server to be inspected displays the difference report; based on a preset notification channel, send the difference report to a preset remote device so that the remote device displays the difference report; the notification channel includes at least one of email, short message, and instant messaging tool.
[0111] In one possible implementation, the control server 10 is further configured to: extract the unique identifier of the target server to be inspected from the difference report, and retrieve the repair script corresponding to the target server to be inspected from the script library based on the unique identifier; or, retrieve the repair script corresponding to the target server to be inspected from the script library based on the input unique identifier of the target server to be inspected; the input unique identifier of the target server to be inspected is input by the user through a remote device based on the difference report.
[0112] In one possible implementation, the control server 10 is further configured to: call the Redfish interface with each server to be inspected based on the curl command, and send the repair script to the BMC of the target server to be inspected.
[0113] In one possible implementation, the control server 10 is further configured to: generate a log record based on the inspection information, and the log record includes at least one of the inspection time, inspection content, inspection result, repair time, repair content, and repair result; and / or store the log record in the database of the control server 10.
[0114] According to the embodiments of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0115] Figure 4FIG. 0 shows a schematic block diagram of an exemplary electronic device 800 that may be used to implement embodiments of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as, for example, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as, for example, a personal digital processor, a cellular phone, a smart phone, a wearable device, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely exemplary and are not intended to limit the implementations of the present disclosure described and / or claimed herein.
[0116] As Figure 4 shown, the device 800 includes a computing unit 801 that can perform various appropriate actions and processes in accordance with a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0117] A plurality of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a magnetic disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0118] The computing unit 801 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 executes the various methods and processes described above, such as a BIOS operation and maintenance method. For example, in some embodiments, a BIOS operation and maintenance method can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of a BIOS operation and maintenance method described above can be executed. Alternatively, in other embodiments, the computing unit 801 can be configured to execute a BIOS operation and maintenance method in any other suitable manner (e.g., by means of firmware).
[0119] Various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor, and can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.
[0120] The program code for implementing the methods of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the program codes are executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program code can be executed entirely on the machine, partially on the machine, as an independent software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0121] In the context of this disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0122] To provide for interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can also be used to provide for interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic, speech, or tactile input).
[0123] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0124] A computer system can include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The client-server relationship is generated by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
[0125] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and no limitations are imposed herein.
[0126] In addition, the terms "first" and "second" are used only for descriptive purposes and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include at least one of such features. In the description of this disclosure, "a plurality" means two or more, unless otherwise specifically defined.
[0127] As described above, the above are only specific embodiments of this disclosure, but the protection scope of this disclosure is not limited thereto. Any person skilled in the art within the technical scope disclosed in this disclosure can easily think of changes or substitutions, which should all be covered by the protection scope of this disclosure. Therefore, the protection scope of this disclosure should be subject to the protection scope of the claims.
Claims
1. A BIOS operation and maintenance method, characterized in that, Applied to the control server in the BIOS operation and maintenance system, the method includes: Determine that the BIOS operation and maintenance system meets the inspection conditions, and send a retrieval request to the baseboard management controller (BMC) of each server to be inspected in the BIOS operation and maintenance system. The retrieval request is used to request the real-time configuration information of the BIOS of each server to be inspected; Receive the real-time configuration information of the BIOS sent by the BMC of each server to be inspected; Compare the real-time configuration information of each server to be inspected with the corresponding standard configuration information in the standard library for the server to be inspected; the standard library includes the latest standard configuration information of various customized BIOSs; In response to the existence of a differential configuration item in the real-time configuration information that does not conform to the standard configuration information, generate a differential report based on the differential configuration item and display the differential report; the differential report includes the unique identifier of the target server to be inspected corresponding to the differential configuration item; Based on the differential report, retrieve the repair script corresponding to the target server to be inspected from the script library; Send the repair script to the BMC of the target server to be inspected, so that the BMC of the target server to be inspected repairs the BIOS of the target server to be inspected based on the repair script; Wherein, after sending the retrieval request to the baseboard management controller (BMC) of each server to be inspected in the BIOS operation and maintenance system, it further includes: In response to not receiving the real-time configuration information of the BIOS sent by the BMC of the server to be inspected, obtain the real-time configuration information of the BIOS of the server to be inspected from the target backup interval; the real-time configuration information of the BIOS in the target backup interval will be cleared after the storage time reaches the second duration; Wherein, obtaining the real-time configuration information of the BIOS of the server to be inspected from the target backup interval includes at least one of the following: Based on the physical interface with the storage chip, obtain the real-time configuration information of the BIOS of the server to be inspected from the storage chip of the server to be inspected; the storage chip is a chip independent of the operating system and BMC of the server to be inspected; Based on the network connection with the network storage device, obtain the real-time configuration information of the BIOS of the server to be inspected from the network storage device; the network storage device is a remote device with storage function; Receive the real-time configuration information of the BIOS of the failed server to be inspected sent by other servers to be inspected except the failed server to be inspected; the failed server to be inspected cannot send the real-time configuration information of the BIOS of the failed server to be inspected to the control server through the BMC.
2. The method according to claim 1, characterized in that Determining that the BIOS operation and maintenance system meets the inspection conditions includes at least one of the following: In response to the difference between the trigger time of the previous inspection of the BIOS operation and maintenance system and the current time reaching the first duration, determine that the BIOS operation and maintenance system meets the inspection conditions; In response to detecting a target event in at least one server to be inspected in the BIOS operation and maintenance system, determine that the BIOS operation and maintenance system meets the inspection conditions; In response to detecting that the status parameters of at least one server to be inspected in the BIOS operation and maintenance system satisfy the first threshold, it is determined that the BIOS operation and maintenance system meets the patrol inspection condition.
3. The method according to claim 1, characterized in that, Sending a fetch request to the baseboard management controller (BMC) of each server to be inspected in the BIOS operation and maintenance system includes: Invoking the Redfish interface with each server to be inspected based on the curl command, and sending a fetch request to the BMC of each server to be inspected in the BIOS operation and maintenance system.
4. The method according to claim 1, wherein Comparing the real-time configuration information of each server to be inspected with the standard configuration information corresponding to the server to be inspected in the standard library includes: Determining the unique identifier of the server to be inspected based on the real-time configuration information; Retrieving the standard configuration information corresponding to the server to be inspected in the standard library based on the unique identifier; Determining the semantic similarity between the configuration items in the real-time configuration information and the corresponding configuration items in the standard configuration information, and determining the configuration items with semantic similarity in the real-time configuration information that satisfy the second threshold as the different configuration items.
5. The method according to claim 1, characterized in that, The difference report further includes at least one of the name of the different configuration item, the real-time value of the different configuration item, the standard value of the different configuration item, and the type of difference of the different configuration item.
6. The method according to claim 1, wherein Displaying the difference report includes at least one of the following: Displaying the difference report on the display screen of the control server; Sending the difference report to the target server to be inspected so that the target server to be inspected displays the difference report; Based on a preset notification channel, sending the difference report to a preset remote device so that the remote device displays the difference report; The notification channel includes at least one of email, short message, and instant messaging tool.
7. The method according to claim 1, characterized in that, Retrieving the repair script corresponding to the target server to be inspected from the script library based on the difference report includes: Extracting the unique identifier of the target server to be inspected from the difference report, and retrieving the repair script corresponding to the target server to be inspected from the script library based on the unique identifier; or, Retrieving the repair script corresponding to the target server to be inspected from the script library based on the unique identifier of the input target server to be inspected; the unique identifier of the input target server to be inspected is input by the user through the remote device based on the difference report.
8. The method according to claim 1, characterized in that, Sending the repair script to the BMC of the target server to be inspected includes: Invoking the Redfish interface with each server to be inspected based on the curl command, and sending the repair script to the BMC of the target server to be inspected.
9. The method according to claim 1, characterized in that The method further includes: Generating a log record based on the patrol inspection information, where the log record includes at least one of the patrol inspection time, patrol inspection content, patrol inspection result, repair time, repair content, and repair result; and / or, Storing the log record in the database of the control server.
10. A BIOS operation and maintenance system, characterized in that, The system includes: A control server; and, At least one server to be inspected; the servers to be inspected are all connected to the control server; The control server is used for: Determine that the BIOS operation and maintenance system meets the inspection conditions, and send a retrieval request to the baseboard management controller (BMC) of each server to be inspected in the BIOS operation and maintenance system. The retrieval request is used to request the real-time configuration information of the BIOS of each server to be inspected; Receive the real-time configuration information of the BIOS sent by the BMC of each server to be inspected; Compare the real-time configuration information of each server to be inspected with the standard configuration information corresponding to the server to be inspected in the standard library; the standard library includes the latest standard configuration information of various customized BIOSs; In response to the existence of a differential configuration item in the real-time configuration information that does not conform to the standard configuration information, generate a differential report based on the differential configuration item and display the differential report; the differential report includes the unique identifier of the target server to be inspected corresponding to the differential configuration item; Based on the differential report, retrieve the repair script corresponding to the target server to be inspected from the script library; Send the repair script to the BMC of the target server to be inspected, so that the BMC of the target server to be inspected repairs the BIOS of the target server to be inspected based on the repair script; Wherein, the control server is further configured to: In response to not receiving the real-time configuration information of the BIOS sent by the BMC of the server to be inspected, obtain the real-time configuration information of the BIOS of the server to be inspected from the target backup interval; the real-time configuration information of the BIOS in the target backup interval will be cleared after the storage time reaches the second duration; Wherein, the control server is further configured to perform at least one of the following: Based on the physical interface with the storage chip, obtain the real-time configuration information of the BIOS of the server to be inspected from the storage chip of the server to be inspected; the storage chip is a chip independent of the operating system and BMC of the server to be inspected; Based on the network connection with the network storage device, obtain the real-time configuration information of the BIOS of the server to be inspected from the network storage device; the network storage device is a remote device with storage function; Receive the real-time configuration information of the BIOS of the failed server to be inspected sent by other servers to be inspected except the failed server to be inspected; the failed server to be inspected cannot send the real-time configuration information of the BIOS of the failed server to be inspected to the control server through the BMC.
11. The system according to claim 10, wherein The control server is further configured to perform at least one of the following: In response to the difference between the trigger time of the previous inspection of the BIOS operation and maintenance system and the current time reaching the first duration, determine that the BIOS operation and maintenance system meets the inspection conditions; In response to detecting a target event in at least one server to be inspected in the BIOS operation and maintenance system, determine that the BIOS operation and maintenance system meets the inspection conditions; In response to detecting that the status parameter of at least one server to be inspected in the BIOS operation and maintenance system meets the first threshold, determine that the BIOS operation and maintenance system meets the inspection conditions.
12. The system according to claim 10, wherein The control server is further configured to: Invoke the Redfish interface between the curl command and each server to be inspected, and send a get request to the BMC of each server to be inspected in the BIOS operation and maintenance system.
13. The system according to claim 10, characterized in that, The control server is further configured to: Determine the unique identifier of the server to be inspected based on the real-time configuration information; Retrieve the standard configuration information corresponding to the server to be inspected in the standard library based on the unique identifier; Determine the semantic similarity between the configuration items in the real-time configuration information and the corresponding configuration items in the standard configuration information, and determine the configuration items in the real-time configuration information whose semantic similarity meets the second threshold as the differential configuration items.
14. The system according to claim 10, wherein The control server is further configured to perform at least one of the following: Display the differential report on the display screen of the control server; Send the differential report to the target server to be inspected, so that the target server to be inspected displays the differential report; Based on a preset notification channel, send the differential report to a preset remote device, so that the remote device displays the differential report; The notification channel includes at least one of email, text message, and instant messaging tool.
15. The system according to claim 10, wherein The control server is further configured to: Extract the unique identifier of the target server to be inspected from the differential report, and retrieve the repair script corresponding to the target server to be inspected from the script library based on the unique identifier; or, Retrieve the repair script corresponding to the target server to be inspected from the script library based on the unique identifier of the input target server to be inspected; The unique identifier of the input target server to be inspected is input by the user through a remote device based on the differential report.
16. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause a computer to execute the method according to any one of claims 1-9.
Citation Information
Patent Citations
Server fault discovery method and device, electronic equipment and storage medium
CN112988439A
Distributed application operation and maintenance method and device, equipment and storage medium
CN115473787A
Server configuration monitoring method and device, electronic equipment and storage medium
CN116467707A