BIOS operation and maintenance method and system and storage medium
By introducing automated operation and maintenance methods into the BIOS operation and maintenance system, using the control server to obtain and compare the real-time configuration information of the BIOS, generate differences reports and automatically repair them, the problem of inefficiency of traditional manual customized BIOS 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
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-26
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2045-03-26
AI Technical Summary
The traditional manual customized BIOS method is inefficient and error-prone, making it difficult to meet the automated operation and maintenance needs of massive servers, resulting in low operation and maintenance accuracy and efficiency of data centers.
By introducing automated operation and maintenance methods in the BIOS operation and maintenance system, the control server sends a acquisition request to the BMC of each server to be inspected, obtains the real-time configuration information of the BIOS, compares it with the standard library, generates a difference report, and automatically repairs it based on the report search and repair script.
It realizes automated detection and repair of BIOS, improves operation and maintenance efficiency and accuracy, reduces the occurrence of manual errors, and can accurately obtain BIOS configuration information in any state of the server to be inspected.
Smart Images

Figure CN119883773A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a BIOS operation and maintenance method, system and storage medium. Background Art
[0002] As the scale of data centers increases dramatically, the configuration standardization and customization of the server's Basic Input / Output System (BIOS) have become more prominent. As the underlying foundation of the server, BIOS directly affects the performance, security and stability of the server, and is crucial to business continuity and efficient operation.
[0003] Internet companies and equipment manufacturers have regarded BIOS customization as the key, striving to unleash the maximum performance of servers through fine customization and adapt to diverse business needs. However, facing a large number of servers, the traditional manual customization of BIOS is inefficient and prone to errors, becoming an operation and maintenance bottleneck.
[0004] Therefore, the industry urgently needs a solution that can realize BIOS automated operation and maintenance 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, a BIOS operation and maintenance method is provided, which is applied to a control server in a BIOS operation and maintenance system, and the method includes: determining that the BIOS operation and maintenance system meets the inspection conditions, sending an acquisition request to the baseboard management controller (BMC) of each server to be inspected in the BIOS operation and maintenance system, wherein the acquisition request is used to request the 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 multiple customized BIOS; in response to the presence of a difference configuration item in the real-time configuration information that does not conform to the standard configuration information, generating a difference report based on the difference configuration item and displaying the difference report; the difference report includes a unique identifier of the target server to be inspected corresponding to the difference configuration item; based on the difference report, retrieving a repair script corresponding to the target server to be inspected from a script library; 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 possible implementation, 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 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 a status parameter of at least one server to be inspected in the BIOS operation and maintenance system meets a first threshold, determining that the BIOS operation and maintenance system meets the inspection conditions.
[0008] In one possible implementation, sending an acquisition request to the baseboard management controller BMC of each server to be inspected in the BIOS operation and maintenance system includes: calling the Redfish interface between each server to be inspected based on a curl command, and sending an acquisition request to the BMC of each server to be inspected in the BIOS operation and maintenance system.
[0009] In one possible implementation, after sending the acquisition request to the baseboard management controller BMC of each server to be inspected in the BIOS operation and maintenance system, it also includes: in response to not receiving the real-time configuration information of the BIOS sent by the BMC of the server to be inspected, acquiring 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 time period.
[0010] In one possible implementation, the obtaining of 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 a physical interface with the storage chip; the storage chip is a chip independent of the operating system and the 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 a network connection with a 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, 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, including: 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 in the real-time configuration information whose semantic similarity meets a second threshold as difference configuration items.
[0012] In one possible implementation, the difference report also includes at least one of the name of the difference configuration item, the real-time value of the difference configuration item, the standard value of the difference configuration item, and the difference type of the difference configuration item.
[0013] In one possible implementation, the display of the difference report includes at least one of the following: displaying the difference report on a 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, text message and instant messaging tool.
[0014] In one possible implementation, retrieving the repair script corresponding to the target server to be inspected from a 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 a script library based on an input unique identifier of the target server to be inspected; the input unique identifier of the target server to be inspected is input by a user through a remote device based on the difference report.
[0015] In one possible implementation, sending the repair script to the BMC of the target server to be inspected includes: calling a Redfish interface between each server to be inspected based on a 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 also includes: generating a log record based on inspection information, the log record including at least one of inspection time, inspection content, inspection result, repair time, repair content and repair result; and / or storing the log record in a 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 comprising: 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 to: determine that the BIOS operation and maintenance system meets the inspection conditions, send an acquisition request to the baseboard management controller BMC of each server to be inspected in the BIOS operation and maintenance system, the acquisition 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; correspond the real-time configuration information of each server to be inspected to the server to be inspected in the standard library; the standard configuration information is compared; the standard library includes the latest standard configuration information of multiple customized BIOS; in response to the presence of difference configuration items that do not conform to the standard configuration information in the real-time configuration information, a difference report is generated based on the difference configuration items, and the difference report is displayed; the difference report includes a unique identifier of the target server to be inspected corresponding to the difference configuration items; based on the difference report, a repair script corresponding to the target server to be inspected is retrieved from a script library; 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 to be inspected based on the repair script.
[0018] In one possible implementation, the control server is also used for 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, 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 a status parameter of at least one server to be inspected in the BIOS operation and maintenance system meets a first threshold, determining that the BIOS operation and maintenance system meets the inspection conditions.
[0019] In one possible implementation, the control server is further used to: call the Redfish interface between each server to be inspected based on a curl command, and send an acquisition request to the BMC of each server to be inspected in the BIOS operation and maintenance system.
[0020] In one possible implementation, the control server is further used 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 a second time period.
[0021] In one possible implementation, the control server is also used for at least one of the following: obtaining 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 a 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; based on a network connection with a network storage device, obtaining 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; receiving 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.
[0022] In one possible implementation, the control server is also used 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 a second threshold as difference configuration items.
[0023] In one possible implementation, the control server is also used for at least one of the following: displaying the difference report on a 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, text message and instant messaging tool.
[0024] In one possible implementation, the control server is further used to: extract the unique identifier of the target server to be inspected in 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 a user through a remote device based on the difference report.
[0025] According to a third aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method described in the present disclosure.
[0026] The present invention discloses a BIOS operation and maintenance method, system and storage medium, which sends an acquisition request to the BMC of each server to be inspected in the BIOS operation and maintenance system, wherein the acquisition 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, and then compares 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, and if there are difference configuration items that do not conform to the standard configuration information in the real-time configuration information, a difference report is generated based on the difference configuration items, and the difference report is displayed, and 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 to be inspected based on the repair script. Therefore, the present invention supports customized BIOS operation and maintenance operations of multiple manufacturers, can realize batch automated BIOS detection and repair, and improve the operation and maintenance efficiency and accuracy of BIOS; and the BIOS configuration information of the server to be inspected is obtained through the BMC, which 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.
[0027] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended 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] The above and other purposes, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which: In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0029] Figure 1 A schematic diagram showing a process of a BIOS operation and maintenance method according to an embodiment of the present disclosure Figure 1 ; Figure 2 A schematic diagram showing a process of a BIOS operation and maintenance method according to an embodiment of the present disclosure Figure 2 ; Figure 3 A schematic diagram of the structure of a BIOS operation and maintenance system according to an embodiment of the present disclosure is shown; Figure 4 A schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0030] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0031] The current server remote management in the market mainly focuses on real-time monitoring of hardware status and basic configuration. There is no complete and efficient solution for key requirements such as comprehensive inspection of BIOS configuration, accurate distinction of customized configuration items of multiple manufacturers, real-time notification mechanism and automatic repair function. 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.
[0032] Figure 1 A schematic diagram showing a process of a BIOS operation and maintenance method according to an embodiment of the present disclosure Figure 1 ,like Figure 1 As shown, a BIOS operation and maintenance method is characterized in that it is applied to a control server in a BIOS operation and maintenance system, and the method includes: Step S101, determining that the BIOS operation and maintenance system meets the inspection condition, and sending an acquisition request to the baseboard management controller BMC of each server to be inspected in the BIOS operation and maintenance system.
[0033] In this embodiment, the BIOS operation and maintenance system includes a control server and at least one server to be inspected, at least one server to be inspected is connected to the control server, and the control server can perform inspections on 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 sends an acquisition request to the baseboard management controller (BMC) of each server to be inspected to obtain the real-time configuration information of the BIOS 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.
[0034] Step S102: receiving the real-time configuration information of the BIOS sent by the BMC of each server to be inspected.
[0035] In this embodiment, after receiving the acquisition request, the BMC of each server to be inspected will send the real-time configuration information of the BIOS of the server to be inspected to the control server. The control server can parse the received real-time configuration information of the BIOS and store it in the database.
[0036] Step S103, 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.
[0037] In this embodiment, the standard library includes the latest standard configuration information of multiple customized BIOS. The control server can compare the collected real-time BIOS configuration information of each server to be inspected with the standard configuration information of the server to be inspected in the standard library. Through the comparison, the difference between the real-time BIOS configuration information of each server to be inspected and the corresponding standard configuration information can be identified.
[0038] Step S104: in response to the presence of difference 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 difference configuration items, and the difference report is displayed.
[0039] In this embodiment, if it is found during the comparison process that there are difference 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 difference report containing information of these difference configuration items is generated and displayed. The difference report includes a unique identifier of the target server to be inspected corresponding to the difference configuration item, and the administrator can quickly locate the target server to be inspected with a BIOS fault based on the unique identifier in the difference report.
[0040] Step S105: based on the difference report, retrieve the repair script corresponding to the target server to be inspected from the script library.
[0041] 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 difference report, wherein the script library stores the repair scripts of BIOS of servers of different manufacturers and types.
[0042] Step S106: Send the repair script to the BMC of the target server to be inspected.
[0043] 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 automatic repair of BIOS configuration problems.
[0044] In the present disclosure, the control server sends an acquisition request to the 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, and receive the real-time configuration information of the BIOS sent by the BMC of each server to be inspected, and 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 difference configuration items that do not conform to the standard configuration information in the real-time configuration information, a difference report is generated based on the difference 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 to be inspected based on the repair script. Therefore, the present disclosure supports customized BIOS operation and maintenance operations of multiple manufacturers, can realize batch automated BIOS detection and repair, and improve the operation and maintenance efficiency and accuracy of BIOS; and the BIOS configuration information of the server to be inspected is obtained through the BMC, which 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.
[0045] In another embodiment, the “determining that the BIOS operation and maintenance system meets the inspection condition” in step S101 includes at least one of the following: In response to the difference between the trigger time of the last 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 inspection condition. That is, if the difference between the trigger time of the last inspection of the BIOS operation and maintenance system and the current time reaches a preset first duration, it is considered that the inspection condition is met, where the first duration can be 5 minutes. This method triggers the inspection task by time interval, which is suitable for the needs of regular inspections.
[0046] 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 inspection conditions. Among them, the target event can be the startup 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. If the target event is detected in at least one server to be inspected in the BIOS operation and maintenance system, it is considered that the inspection conditions are met. This method triggers the inspection task through event-driven, and can perform inspections in a timely manner when a specific event occurs.
[0047] 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, it is determined that the BIOS operation and maintenance system meets the inspection conditions. Among them, the status parameters include CPU usage, memory usage and CPU temperature, etc. If it is detected that the status parameter of at least one server to be inspected in the BIOS operation and maintenance system meets the preset first threshold, it is considered that the inspection conditions are met. For example, if the CPU usage 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 time when the server status is abnormal.
[0048] In another embodiment, the step S101 of “sending an acquisition request to a baseboard management controller BMC of each server to be inspected in the BIOS operation and maintenance system” includes: Based on the curl command, the Redfish interface between 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.
[0049] In this embodiment, the curl command can transmit data under various network protocols, and the corresponding interface can be called through requests such as GET, POST, PUT, and DELETE to perform data transmission, wherein 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, which is suitable for the management of server 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, thereby sending a request to the BMC of each server to be inspected, and the request can be an HTTP GET request.
[0050] Figure 2 A schematic diagram showing a process of a BIOS operation and maintenance method according to an embodiment of the present disclosure Figure 2 ,like Figure 2 As shown, a BIOS operation and maintenance method includes: Step S201: determine whether the BIOS operation and maintenance system meets the inspection condition, and send an acquisition request to the baseboard management controller BMC of each server to be inspected in the BIOS operation and maintenance system.
[0051] 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 to S206 are executed; the specific implementation details of steps S203 to S206 are similar to those of steps S103 to S106 and are not repeated here.
[0052] 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.
[0053] In this embodiment, after sending the acquisition request, if the control server does not receive the real-time configuration information of the BIOS sent by the BMC of the server to be inspected, for example, the BMC is damaged or the network fails so that the BMC cannot send the real-time configuration information of the BIOS, then the real-time configuration information of the BIOS of the server to be inspected will be obtained from the target backup interval, and 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, which can be a storage chip or a remote network storage platform independent of the BMC, etc. The real-time configuration information of the BIOS stored in the target backup interval will be cleared after the storage time reaches the preset second duration to save storage space. The second duration can be set based on actual conditions. After step S202, the following steps S203 to S206 are also executed.
[0054] Step S203, 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.
[0055] Step S204: in response to the presence of difference 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 difference configuration items, and the difference report is displayed.
[0056] Step S205: based on the difference report, retrieve the repair script corresponding to the target server to be inspected from the script library.
[0057] Step S206: Send the repair script to the BMC of the target server to be inspected.
[0058] In another embodiment, step S202 of "obtaining 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 between the server and the storage chip, the real-time configuration information of the BIOS of the server to be inspected is obtained 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. That is, the BMC will back up the real-time configuration information of the BIOS to a 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 between the server and the storage chip, thereby ensuring that the real-time configuration information of the BIOS can still be obtained even when there is a problem with the operating system or BMC. Among them, the storage chip can be a dynamic random access memory or a flash memory, etc.
[0059] Based on the network connection with the network storage device, the real-time configuration information of the BIOS of the server to be inspected is obtained from 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.
[0060] 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 through the BMC. That is, after obtaining the real-time configuration information of the BIOS, the BMC of the server to be inspected 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 servers to be inspected through heartbeat signals, etc. After the control server sends a request to all servers to be inspected, if a server to be inspected cannot send its own BIOS real-time configuration information to the control server through the BMC, then the server to be inspected is a faulty server to be inspected, then other servers to be inspected that have backed up the real-time configuration information of the BIOS of the faulty server to be inspected will send the real-time configuration information of the BIOS of the faulty server to be inspected to the control server. In this way, it can be ensured that even if some servers to be inspected cannot send their own BIOS real-time configuration information to the control server through the BMC, the control server can still obtain their BIOS configuration information.
[0061] In another embodiment, step S103 of "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: Determine the unique identifier of the server to be inspected based on the real-time configuration information; Retrieve standard configuration information corresponding to the server to be inspected from the standard library based on the unique identifier; The semantic similarity between the configuration item in the real-time configuration information and the corresponding configuration item in the standard configuration information is determined, and the configuration item in the real-time configuration information whose semantic similarity meets a second threshold is determined as a difference configuration item.
[0062] 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 based on 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, the standard configuration information corresponding to the server to be inspected is retrieved from the standard library through the unique identifier of the server to be inspected. The standard library stores 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 difference configuration items, wherein the second threshold can be set according to actual needs. For example, for real-time configuration information A and 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, configuration item A3 is determined as a difference configuration item.
[0063] In another embodiment, the difference report also includes at least one of the name of the difference configuration item, the real-time value of the difference configuration item, the standard value of the difference configuration item, and the difference type of the difference configuration item. The difference type of the difference 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, but exists in the corresponding standard configuration information. Therefore, the administrator can understand the specific difference information based on the difference report, so as to better determine the BIOS failure and repair the BIOS.
[0064] In another embodiment, the “displaying the difference report” in step S104 includes at least one of the following: The difference report is displayed on the display screen of the control server. That is, the difference report can be directly displayed on the display screen of the control server in a graphical or textual form, so that the administrator of the control server can directly view and analyze it on the control server.
[0065] 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 so that it can be displayed on the display screen of the target server to be inspected so that the administrator of the target server to be inspected can view the difference report on the local server.
[0066] 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 an email, a text message, and an instant messaging tool. That is, the difference report can be sent to a preset remote device, such as a mobile phone, a laptop computer, a tablet, and other removable devices, through a preset notification channel, such as an email, a text message, an instant messaging tool, etc., so that the administrator can view the difference report on the removable device, thereby being able to respond to system failures in a timely manner and improve system reliability.
[0067] In another embodiment, step S105 "retrieve the repair script corresponding to the target server to be inspected from the script library based on the difference report" includes: 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, The repair script corresponding to the target server to be inspected is retrieved 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.
[0068] 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 the unique identifier, in which repair scripts for different servers and configuration issues are stored; the control server can also 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. 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 based on the difference report through the remote device, and the control server obtains the input unique identifier, and then retrieves the corresponding repair script from the script library based on the input unique identifier.
[0069] In another embodiment, step S106 “sending the repair script to the BMC of the target server to be inspected” includes: Based on the curl command, the Redfish interface between each server to be inspected is called to send the repair script to the BMC of the target server to be inspected.
[0070] In this embodiment, the curl command can transmit data under various network protocols, and the corresponding interface can be called through GET, POST, PUT, DELETE and other requests to perform data transmission, wherein 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, which is suitable for the management of server and data center hardware. After the control server obtains the BIOS repair script of the target server to be inspected, it will call the Redfish interface between 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 log in to the server directly, which greatly reduces the complexity of the operation and the risk of errors.
[0071] In another embodiment, a BIOS operation and maintenance method further includes: Generate 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, Stores log records in the control server's database.
[0072] In this embodiment, the control server can generate log records based on the inspection information. The log records may include at least one of the inspection time, inspection content, inspection results, repair time, repair content and repair results. The log records are helpful for subsequent audits and problem tracking. The control server can also store the generated log records in the database of the control server for subsequent query and analysis. Database storage can ensure the security and integrity of the log records and facilitate administrators to query historical data.
[0073] In another embodiment, a BIOS operation and maintenance method may also introduce machine learning or artificial intelligence algorithms to analyze historical BIOS configuration information of the server to be inspected and performance data of the server to be inspected, automatically optimize the BIOS configuration strategy, and dynamically adjust the BIOS configuration information according to business needs and the load of the server to be inspected to improve the performance and energy efficiency of the server. Predictive models may also be used to detect potential BIOS configuration problems in advance, and automatically repair them or issue warnings.
[0074] In another embodiment, a BIOS operation and maintenance method can use more advanced data encryption technology and identity authentication mechanism during the communication process to ensure the secure transmission of BIOS configuration information, and encrypt the stored BIOS configuration information and log records to prevent data leakage. It can also implement access control policies to limit access rights to BIOS configuration information to ensure that only authorized administrators can view and modify BIOS configuration information, and regularly perform security audits and vulnerability scans to promptly discover and repair potential security risks. Among them, the data encryption technology can be TLS 1.3, and the identity authentication mechanism can be OAuth 2.0 or OpenID Connect. TLS 1.3 is the latest version of the Transport Layer Security protocol (TLS); OAuth 2.0 is an authorization framework of the Open Authorization protocol (OAuth); OpenID Connect is a simple identity layer based on OAuth 2.0.
[0075] Figure 3 A schematic diagram of the structure of a BIOS operation and maintenance system according to an embodiment of the present disclosure is shown. Figure 3 As shown, a BIOS operation and maintenance system includes: controlling the server 10; and At least one server to be inspected; the servers to be inspected are all connected to the control server 10; Figure 3 As shown, the servers to be inspected may include server 20 to be inspected, server 21 to be inspected, server 22 to be inspected, and server 23 to be inspected, and the number of servers to be inspected may be arbitrarily expanded based on actual conditions; The control server 10 is used for: 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, where the acquisition request is used to request real-time configuration information of the BIOS of each server to be inspected; Receive the real-time BIOS configuration information 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 BIOS; In response to the presence of a difference configuration item in the real-time configuration information that does not conform to the standard configuration information, a difference report is generated based on the difference configuration item, and the difference report is displayed; the difference report includes a unique identifier of the target server to be inspected corresponding to the difference configuration item; Based on the difference report, retrieve the repair script corresponding to the target server to be inspected from the script library; 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 to be inspected based on the repair script.
[0076] In one possible implementation, the control server 10 is also used for 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, 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 a status parameter of at least one server to be inspected in the BIOS operation and maintenance system meets a first threshold, determining that the BIOS operation and maintenance system meets the inspection conditions.
[0077] In one possible implementation, the control server 10 is further configured to: call the Redfish interface between each server to be inspected based on a curl command, and send an acquisition request to the BMC of each server to be inspected in the BIOS operation and maintenance system.
[0078] In one possible implementation, the control server 10 is further used 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 a second time period.
[0079] In one possible implementation mode, the control server 10 is also used for at least one of the following: obtaining 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 a 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; based on a network connection with a network storage device, obtaining 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; receiving real-time configuration information of the BIOS of a 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.
[0080] In one possible implementation mode, the control server 10 is also used 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 difference configuration items.
[0081] In one possible implementation, the difference report also includes at least one of the name of the difference configuration item, the real-time value of the difference configuration item, the standard value of the difference configuration item, and the difference type of the difference configuration item.
[0082] In one possible implementation mode, the control server 10 is also used for at least one of the following: displaying the difference report on the display screen of the control server 10; 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, text message and instant messaging tool.
[0083] In one possible implementation mode, the control server 10 is further used to: extract the unique identifier of the target server to be inspected in 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.
[0084] In one possible implementation, the control server 10 is further configured to: call the Redfish interface between each server to be inspected based on a curl command, and send the repair script to the BMC of the target server to be inspected.
[0085] In one embodiment, the control server 10 is also used to: generate log records based on inspection information, the log records including at least one of inspection time, inspection content, inspection results, repair time, repair content and repair results; and / or store the log records in a database of the control server 10.
[0086] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0087] Figure 4 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0088] like Figure 4As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 to 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.
[0089] A number 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 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 through a computer network such as the Internet and / or various telecommunication networks.
[0090] The computing unit 801 may be a variety of general and / or special 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, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs 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 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on 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 may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform a BIOS operation and maintenance method in any other appropriate manner (e.g., by means of firmware).
[0091] Various implementations of the systems and techniques described above herein 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 chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations 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 that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0092] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0093] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0094] To provide 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 pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the 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 input, voice input, or tactile input).
[0095] The systems and techniques described herein may 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 with a graphical user interface or a web browser through which a user can interact with implementations 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 may 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.
[0096] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0097] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0098] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0099] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A BIOS operation and maintenance method, characterized in that: Applied to a control server in a BIOS operation and maintenance system, the method comprises: Determine that the BIOS operation and maintenance system meets the inspection condition, and send an acquisition request to the baseboard management controller BMC of each server to be inspected in the BIOS operation and maintenance system, wherein the acquisition request is used to request real-time configuration information of the BIOS of each server to be inspected; Receiving real-time configuration information of BIOS sent by the BMC of each server to be inspected; Comparing the real-time configuration information of each of the servers to be inspected with the standard configuration information corresponding to the servers to be inspected in the standard library; the standard library includes the latest standard configuration information of multiple customized BIOS; In response to the presence of a difference configuration item in the real-time configuration information that does not conform to the standard configuration information, a difference report is generated based on the difference configuration item, and the difference report is displayed; the difference report includes a unique identifier of the target to-be-inspected server corresponding to the difference configuration item; Based on the difference report, retrieving a repair script corresponding to the target server to be inspected from a script library; 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 to be inspected based on the repair script.
2. The method according to claim 1, characterized in that Determining that the BIOS operation and maintenance system meets the inspection condition 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 a first duration, determining that the BIOS operation and maintenance system meets the inspection condition; In response to detecting a target event in at least one to-be-inspected server of the BIOS operation and maintenance system, determining that the BIOS operation and maintenance system meets an inspection condition; In response to detecting that a status parameter of at least one server to be inspected in the BIOS operation and maintenance system meets a first threshold, it is determined that the BIOS operation and maintenance system meets an inspection condition.
3. The method according to claim 1, characterized in that The sending of an acquisition request to a baseboard management controller BMC of each server to be inspected in the BIOS operation and maintenance system includes: Based on the curl command calling the Redfish interface between each server to be inspected, an acquisition request is sent to the BMC of each server to be inspected in the BIOS operation and maintenance system.
4. The method according to claim 1, characterized in that After sending the acquisition request to the baseboard management controller BMC of each server to be inspected in the BIOS operation and maintenance system, the method 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, the real-time configuration information of the BIOS of the server to be inspected is obtained 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 time period.
5. The method according to claim 4, characterized in that The step of acquiring 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, the real-time configuration information of the BIOS of the server to be inspected is obtained 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, the real-time configuration information of the BIOS of the server to be inspected is obtained 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 faulty server to be checked sent by other servers to be checked except the faulty server to be checked; the faulty server to be checked is a server to be checked that cannot send the real-time configuration information of its own BIOS to the control server through the BMC.
6. The method according to claim 1, characterized in that The comparing the real-time configuration information of each of the servers to be inspected with the standard configuration information corresponding to the servers to be inspected in the standard library includes: Determine the unique identifier of the server to be inspected based on the real-time configuration information; Retrieving standard configuration information corresponding to the server to be inspected in the standard library based on the unique identifier; Determine semantic similarity between configuration items in the real-time configuration information and corresponding configuration items in the standard configuration information, and determine configuration items in the real-time configuration information whose semantic similarity meets a second threshold as difference configuration items.
7. The method according to claim 1, characterized in that The difference report also includes at least one of the name of the difference configuration item, the real-time value of the difference configuration item, the standard value of the difference configuration item, and the difference type of the difference configuration item.
8. The method according to claim 1, characterized in that The presenting of the difference report includes at least one of the following: Displaying the difference report on a 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 an email, a text message, and an instant messaging tool.
9. The method according to claim 1, characterized in that: The retrieving a repair script corresponding to the target server to be inspected from a 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, Based on the input unique identifier of the target server to be inspected, a repair script corresponding to the target server to be inspected is retrieved from a script library; the input unique identifier of the target server to be inspected is input by a user through a remote device based on the difference report.
10. The method according to claim 1, characterized in that The step of sending the repair script to the BMC of the target server to be inspected includes: Based on the curl command, the Redfish interface between each server to be inspected is called to send the repair script to the BMC of the target server to be inspected.
11. The method according to claim 1, characterized in that: The method further comprises: Generate 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, The log records are stored in a database of the control server.
12. A BIOS operation and maintenance system, characterized in that: The system comprises: Control servers; 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 condition, and send an acquisition request to the baseboard management controller BMC of each server to be inspected in the BIOS operation and maintenance system, wherein the acquisition request is used to request real-time configuration information of the BIOS of each server to be inspected; Receiving real-time configuration information of BIOS sent by the BMC of each server to be inspected; Comparing the real-time configuration information of each of the servers to be inspected with the standard configuration information corresponding to the servers to be inspected in the standard library; the standard library includes the latest standard configuration information of multiple customized BIOS; In response to the presence of a difference configuration item in the real-time configuration information that does not conform to the standard configuration information, a difference report is generated based on the difference configuration item, and the difference report is displayed; the difference report includes a unique identifier of the target to-be-inspected server corresponding to the difference configuration item; Based on the difference report, retrieving a repair script corresponding to the target server to be inspected from a script library; 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 to be inspected based on the repair script.
13. The system according to claim 12, characterized in that The control server is also used for 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, determining that the BIOS operation and maintenance system meets the inspection condition; In response to detecting a target event in at least one to-be-inspected server of the BIOS operation and maintenance system, determining that the BIOS operation and maintenance system meets an inspection condition; In response to detecting that a status parameter of at least one server to be inspected in the BIOS operation and maintenance system meets a first threshold, it is determined that the BIOS operation and maintenance system meets an inspection condition.
14. The system according to claim 12, characterized in that The control server is also used for: Based on the curl command calling the Redfish interface between each server to be inspected, an acquisition request is sent to the BMC of each server to be inspected in the BIOS operation and maintenance system.
15. The system according to claim 12, characterized in that The control server is also used for: In response to not receiving the real-time configuration information of the BIOS sent by the BMC of the server to be inspected, the real-time configuration information of the BIOS of the server to be inspected is obtained 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 time period.
16. The system according to claim 15, characterized in that The control server is also used for at least one of the following: Based on the physical interface with the storage chip, the real-time configuration information of the BIOS of the server to be inspected is obtained 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, the real-time configuration information of the BIOS of the server to be inspected is obtained 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 faulty server to be checked sent by other servers to be checked except the faulty server to be checked; the faulty server to be checked is a server to be checked that cannot send the real-time configuration information of its own BIOS to the control server through the BMC.
17. The system according to claim 12, characterized in that The control server is also used for: Determine the unique identifier of the server to be inspected based on the real-time configuration information; Retrieving standard configuration information corresponding to the server to be inspected in the standard library based on the unique identifier; Determine semantic similarity between configuration items in the real-time configuration information and corresponding configuration items in the standard configuration information, and determine configuration items in the real-time configuration information whose semantic similarity meets a second threshold as difference configuration items.
18. The system according to claim 12, characterized in that The control server is also used for at least one of the following: Displaying the difference report on a 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 an email, a text message, and an instant messaging tool.
19. The system according to claim 12, characterized in that The control server is also used for: 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 a repair script corresponding to the target server to be inspected from a 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 a user through a remote device based on the difference report.
20. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to make a computer execute the method according to any one of claims 1-11.
Citation Information
Patent Citations
Server fault discovery method and device, electronic equipment and storage medium
CN112988439A
Method, system and equipment for autonomously repairing BMC (Baseboard Management Controller) of server and storage medium
CN114296995A
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
BMC (Baseboard Management Controller) customized automatic configuration method and system and electronic equipment
CN116668280A
Cited By
Server parameter configuration method, electronic equipment, storage medium and program product
CN120386764A
Configuration method and device for customizing BIOS options based on GPIO
CN120762780A
Multi-BIOS (Basic Input / Output System) starting switching method and equipment, storage medium and computer program product
CN121433987A