BIOS batch configuration method and device, electronic equipment and readable storage medium
By obtaining business requirements and BIOS configuration tables, finding and issuing configuration items, BIOS batch configuration for different business needs is realized, and the flexible configuration problem of servers of different manufacturers is solved, and configuration efficiency is improved and configuration accuracy is ensured.
Patent Information
- Application Number
- CN202410957585.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-11-12
AI Technical Summary
In large data centers, different services have great differences in BIOS configurations. The existing technology cannot realize flexible BIOS configurations for servers of different manufacturers, resulting in inefficient configurations.
By obtaining business requirements and preset BIOS configuration tables and templates, finding and issuing BIOS configuration items, comparing actual values to achieve consistent configuration, and restarting and verifying in case of inconsistency to ensure configuration accuracy.
It realizes batch configuration of BIOS for different business needs, meets the flexible configuration requirements of servers of different manufacturers, improves configuration efficiency, and avoids the differences in configuration methods of different manufacturers.
Smart Images

Figure CN118939336A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of server technology, and in particular to a BIOS batch configuration method, device, electronic device and readable storage medium. Background Art
[0002] In current server delivery, generally, the server will have a default or customized BIOS configuration when it is purchased by the manufacturer. These options meet most of the server performance / maintainability / compatibility / reliability requirements. However, in large data centers, the types of business are complex, and the characteristics of different businesses are also obvious. Different businesses have different BIOS configurations. For example, for latency-sensitive businesses, it is best to use the performance mode on the BIOS, be able to perceive NUMA nodes, and turn on prefetching. For some applications that cannot perceive NUMA, NUMA needs to be turned off. The above examples also have different configuration requirements under different manufacturers, and it is impossible to flexibly configure the BIOS for different business needs. Summary of the invention
[0003] The present application provides a BIOS batch configuration method, device, electronic device and readable storage medium, which can realize batch configuration of BIOS configuration according to different business requirements and meet the flexible configuration of servers from different manufacturers.
[0004] The technical solution of the embodiment of the present application is as follows: In a first aspect, an embodiment of the present application provides a BIOS batch configuration method, the method comprising: Acquire business requirements, wherein the business requirements include business configuration information; Obtaining a preset platform model BIOS configuration table and a preset BIOS configuration template, wherein the BIOS configuration template indicates a correspondence between the service configuration information and configuration items in the BIOS configuration table; According to the service configuration information and the BIOS configuration template, searching the BIOS configuration item from the BIOS configuration table; According to the BIOS configuration item, send it to multiple preset servers by using a preset interface, receive actual values returned by each of the servers, compare the BIOS configuration value of the BIOS configuration item with each of the actual values, and obtain a first comparison result; When the first comparison result is consistent, the server BIOS corresponding to the consistent first comparison result is configured successfully.
[0005] In the above technical solution, firstly, business requirements are obtained, and the business requirements include business configuration information. Different business features are obtained through the business configuration information, which is conducive to subsequent corresponding configuration for different business features; a preset platform model BIOS configuration table and a preset BIOS configuration template are obtained, and the BIOS configuration template represents the corresponding relationship between the business configuration information and the configuration items in the BIOS configuration table. By obtaining the BIOS configuration table and the BIOS configuration template, the corresponding relationship between the manufacturer, the BIOS name and the server can be established to meet the search for servers of different manufacturers; according to the business configuration information and the BIOS configuration template, the BIOS configuration items are searched from the BIOS configuration table, and the specific business requirements are reflected through the BIOS configuration items, which can be sent to the corresponding server; according to the BIOS configuration items, the preset interface is used to send to multiple preset servers, and the actual values returned by each server are received. The BIOS configuration value of the BIOS configuration item is compared with each actual value to obtain a first comparison result, and multiple servers are operated at the same time to realize large-scale batch configuration, and the configuration is compared to see whether it meets the requirements; when the first comparison result is consistent, the server BIOS corresponding to the consistent first comparison result is successfully configured, which can realize batch configuration of BIOS configuration according to different business requirements, meet the flexible configuration of servers of different manufacturers, and improve configuration efficiency.
[0006] In some embodiments of the present application, after comparing the BIOS configuration value of the BIOS configuration item with each of the actual values to obtain a first comparison result, the method further includes: When the first comparison result is inconsistent, BIOS configuration is performed on the server corresponding to the inconsistent first comparison result, and the server is restarted.
[0007] In the above technical solution, when the first comparison result is inconsistent, the BIOS configuration is performed on the server corresponding to the inconsistent first comparison result, and the server is restarted, so that the server configuration can be modified in batches to improve efficiency.
[0008] In some embodiments of the present application, after performing BIOS configuration on the server corresponding to the inconsistent first comparison result and restarting the server, the method includes: Verifying the restarted server to obtain a verification result; When the verification result is passed, the interface is used to send the result to multiple preset servers, and the reconfiguration value returned by each of the servers is received; Comparing the reconfiguration value with the BIOS configuration value to obtain a second comparison result; When the second comparison result is inconsistent, an alarm message is issued, and the alarm message prompts manual intervention configuration.
[0009] In the above technical solution, the restarted server is verified and reconfigured to ensure the accuracy of the configuration. The BIOS is configured by sending it to multiple preset servers through the refish interface, avoiding the differences in configuration methods of different server manufacturers.
[0010] In some embodiments of the present application, after verifying the restarted server and obtaining a verification result, the method further includes: When the verification result is failed, BIOS configuration is performed on the server corresponding to the failed verification result, and the server is restarted.
[0011] In the above technical solution, when the application cannot be entered, configuration is performed multiple times to ensure the accuracy of the configuration.
[0012] In some embodiments of the present application, after acquiring the service requirement, wherein the service requirement includes service configuration information, the method further includes: Obtaining a preset work order, where the work order represents the BIOS configuration template corresponding to the business requirement; Check whether the work order meets the preset order conditions. If the order conditions are met, execute the step of sending the work order to multiple preset servers using a preset interface, receiving the actual value returned by the server, and comparing the BIOS configuration value of the BIOS configuration item with each of the actual values to obtain a first comparison result.
[0013] In the above technical solution, the server status is detected and configuration is performed only when the bill of lading conditions are met. Early detection can improve efficiency and save resources.
[0014] In some embodiments of the present application, the platform model BIOS configuration table includes a BIOS name table, a device model name table, and a BIOS-vendor correspondence table; The BIOS name table is a uniformly named configuration name; The device model name table includes the manufacturer of the server and the name of the server; The BIOS-manufacturer correspondence table is a correspondence between different manufacturers of the server and different configuration names.
[0015] In the above technical solution, by abstractly adapting the BIOS configuration, the differences between different manufacturers, generations, and brands are leveled, which facilitates maintenance. When the server is upgraded or switched to a new platform, the corresponding table data is directly modified without code-level adaptation.
[0016] In some embodiments of the present application, the configuration name includes hyperthreading and NUMA, the hyperthreading value is on or off, and the NUMA value is on or off.
[0017] In the above technical solution, the BIOS configuration is abstracted by means of BIOS configuration templates, which facilitates communication with the business. The business configuration information is combined with multiple BIOS configuration tables to avoid BIOS configuration omissions and break away from the limitations given by server manufacturers.
[0018] In a second aspect, an embodiment of the present application provides a BIOS batch configuration device, the device comprising: A service acquisition module, used to acquire service requirements, wherein the service requirements include service configuration information; A template acquisition module, used to acquire a preset platform model BIOS configuration table and a preset BIOS configuration template, wherein the BIOS configuration template indicates a correspondence between the service configuration information and the configuration items in the BIOS configuration table; A search module, used to search the BIOS configuration item from the BIOS configuration table according to the service configuration information and the BIOS configuration template; a configuration comparison module, configured to send the BIOS configuration item to multiple preset servers using a preset interface, receive actual values returned by each of the servers, and compare the BIOS configuration value of the BIOS configuration item with each of the actual values to obtain a first comparison result; The configuration determination module is used to determine that, if the first comparison result is consistent, the server BIOS corresponding to the consistent first comparison result is successfully configured.
[0019] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a user interface, a communication bus and a network interface, wherein the processor, the memory, the user interface and the network interface are respectively connected to the communication bus, the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes any one of the methods provided in the first aspect.
[0020] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any one of the methods provided in the first aspect is executed.
[0021] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. The method adopts the method of first obtaining business requirements, which include business configuration information, obtaining a preset platform model BIOS configuration table and a preset BIOS configuration template; searching for BIOS configuration items from the BIOS configuration table according to the business configuration information and the BIOS configuration template; sending them to multiple preset servers using a preset interface according to the BIOS configuration items, receiving actual values returned by each server, comparing the BIOS configuration value of the BIOS configuration item with each actual value, obtaining a first comparison result, and checking and comparing to see whether the configuration meets the requirements; and in the case where the first comparison result is consistent, the technical means of successfully configuring the server BIOS corresponding to the consistent first comparison result, thereby effectively solving the problem in the related technology that the BIOS cannot be flexibly configured for different business requirements. By acquiring business needs, BIOS configuration tables and BIOS configuration templates, different business needs can be obtained, and configuration items can be obtained from the BIOS configuration tables and BIOS configuration templates to perform batch configuration of servers from different manufacturers. According to the configuration items, they are sent to multiple preset servers using a preset interface, and the actual values returned by each server are received. The BIOS configuration value of the BIOS configuration item is compared with each actual value to obtain a first comparison result, and multiple servers are operated at the same time to achieve large-scale batch configuration, and comparison is made to see whether the configuration meets the requirements. This allows batch configuration of BIOS configurations according to different business needs, meets the flexible configuration of servers from different manufacturers, and improves configuration efficiency.
[0022] 2. BIOS configuration is abstracted through BIOS configuration templates to facilitate communication with business. Business configuration information is combined with multiple BIOS configuration tables to avoid BIOS configuration omissions and break away from the limitations given by server manufacturers.
[0023] 3. By abstractly adapting the BIOS configuration, the differences between different manufacturers, generations, and brands are smoothed out, making maintenance easier. When the server is upgraded or switched to a new platform, the corresponding table data is directly modified without code-level adaptation.
[0024] 4. Configure the BIOS through the refish interface to avoid differences in configuration methods among different server manufacturers. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 This is one of the flow charts of a BIOS batch configuration method provided by an embodiment of the present application; Figure 2 This is the second flow chart of the BIOS batch configuration method provided by an embodiment of the present application; Figure 3 This is the third flow chart of the BIOS batch configuration method provided by an embodiment of the present application; Figure 4 It is a structural diagram of a BIOS batch configuration device provided by an embodiment of the present application; Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0027] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.
[0028] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0029] In the related technology, in the current server delivery, the general server will have a default or customized BIOS configuration when it is delivered by the manufacturer. These options meet most of the server performance / maintainability / compatibility / reliability requirements. However, in large data centers, the business types are complex, and the characteristics of different businesses are also obvious. Different businesses have different BIOS configurations. There are several problems in the BIOS option configuration: ① When modifying, you need to enter the BIOSsetup interface, and the stay time in the interface is short, which is easy to miss; ② The interface layout of different manufacturers / different platforms / different BIOS versions is inconsistent, and the BIOS configuration name is different; ③ The business does not need to know too many details in the BIOS configuration cognition, and does not need to know the platform or manufacturer differences; ④ The business's demand for BIOS is a combination, which is easy to miss during configuration, incomplete configuration, and not flexible enough. The above problems have the problem that it is difficult to enter the BIOS option configuration, the flexibility of the BIOS configuration is poor for different business needs, and it is impossible to perform large-scale configuration.
[0030] The embodiment of the present application provides a BIOS batch configuration method, device, electronic device and readable storage medium. The BIOS batch configuration method first obtains business requirements, which include business configuration information. Different business features are obtained through the business configuration information, which is conducive to subsequent corresponding configuration for different business features; a preset platform model BIOS configuration table and a preset BIOS configuration template are obtained. The BIOS configuration template represents the correspondence between the business configuration information and the configuration items in the BIOS configuration table. By obtaining the BIOS configuration table and the BIOS configuration template, a correspondence between the manufacturer, the BIOS name and the server can be established to meet the needs of finding servers of different manufacturers; according to the business configuration information and the BIOS configuration template, from the B The BIOS configuration item is searched in the IOS configuration table, and the specific business requirements are reflected through the BIOS configuration item, which can be sent to the corresponding server; according to the BIOS configuration item, it is sent to multiple preset servers using a preset interface, and the actual value returned by each server is received, and the BIOS configuration value of the BIOS configuration item is compared with each actual value to obtain a first comparison result, and multiple servers are operated at the same time to realize large-scale batch configuration, and compare to see whether the configuration meets the requirements; when the first comparison result is consistent, the server BIOS corresponding to the consistent first comparison result is successfully configured, which can realize batch configuration of BIOS configuration according to different business requirements, meet the flexible configuration of servers from different manufacturers, and improve configuration efficiency.
[0031] It should be noted that the BIOS batch configuration method can be applied to servers of different manufacturers to realize batch configuration of BIOS configuration according to different business needs, meet the flexible configuration of servers of different manufacturers, and improve configuration efficiency. In the big data scenario, BIOS configuration can be performed in batches according to different business needs to achieve flexible configuration.
[0032] The technical solution provided in the embodiments of the present application is further described below in conjunction with the accompanying drawings.
[0033] Reference Figure 1 , Figure 1 The BIOS batch configuration method is applied to a BIOS batch configuration device, and is executed by a processor in an electronic device or a readable storage medium. The BIOS batch configuration method includes steps S110, S120, S130, S140, S150, and S160.
[0034] Step S110, obtaining business requirements, where the business requirements include business configuration information.
[0035] In one embodiment, the BIOS configuration needs to ensure compatibility with computer hardware, and the specifications and characteristics of the hardware need to be considered to ensure the stable operation of the system, and also needs to ensure the stability and reliability of the system. Different industries may have specific requirements for BIOS configuration. For example, the financial industry may require a higher level of security measures, while the manufacturing industry may require more efficient hardware performance. To understand the needs of different industries, it is necessary to communicate with the corresponding business departments to understand the business model, workflow, and expectations and requirements for IT systems. It is also possible to analyze the existing IT system to discover potential BIOS configuration requirements and obtain business requirements, which is conducive to finding manufacturers according to business requirements and realizing corresponding BIOS configuration. Business requirements include business configuration information. For example, the business configuration information may include: all hardware devices used and their specifications; specifying which device to load the operating system from first when the computer starts; enabling or disabling some security functions, such as secure boot and UEFI firmware protection; setting appropriate parameters to optimize system performance, such as memory frequency, CPU overclocking, etc.; configuring remote management and monitoring functions, etc. Through the above business configuration information, not only can different business characteristics be obtained, so as to understand more detailed requirements and conduct subsequent search for configuration items.
[0036] like Figure 2 As shown, after obtaining the business requirements, which include business configuration information, the BIOS batch configuration method also includes but is not limited to the following steps: Step S210, obtaining a preset work order, where the work order represents a BIOS configuration template corresponding to the business requirement; In some possible embodiments of the present application, the preset work order is in the form of a form, which can be displayed in the form of a web page. When displayed in the form of a web page, the setting content in the preset work order is obtained through a preset network interface. The work order represents the BIOS configuration template corresponding to the business demand. For example, the work order includes a template name, a default template option, a state use option, configuration information, etc. The template name can be a network delay application template, and can also be other template names, which are not described here. The default template option is an optional operation, which is represented by yes and no. Yes means selecting the default template, and no means selecting not to be the default template. The state use option is also an optional operation, which is represented by prohibition and enablement. Prohibition means that the state is disabled, and enable means that the state starts the application. The configuration information is a general configuration name. For example, it can be a NUMA configuration name, a hyperthreading configuration name, etc., and can also be other general configuration names, which are determined according to the business configuration information and the platform model BIOS configuration table, which are not described here. By obtaining the work order, it is possible to determine whether to perform the bill of lading configuration later.
[0037] Step S220, checking whether the work order meets the preset order conditions. If the order conditions are met, executing the step of sending it to multiple preset servers using a preset interface, receiving the actual value returned by the server, and comparing the BIOS configuration value of the BIOS configuration item with each actual value to obtain a first comparison result.
[0038] In some possible embodiments of the present application, the preset order condition is whether the server is shut down, the configuration needs to be performed when the server is turned on, check whether the work order meets the preset order condition, whether the work order is submitted when the server is turned on, and if it is submitted when the server is turned on, execute the step of sending to multiple preset servers using a preset interface, receiving the actual value returned by the server, comparing the BIOS configuration value of the BIOS configuration item with each actual value, and obtaining a first comparison result.
[0039] In some possible embodiments of the present application, the preset bill of lading condition may also be whether the configuration information in the work order matches the server. If it does not match the server, the step of sending it to multiple preset servers using a preset interface, receiving the actual value returned by the server, and comparing the BIOS configuration value of the BIOS configuration item with each actual value to obtain a first comparison result.
[0040] Step S120, obtaining a preset platform model BIOS configuration table and a preset BIOS configuration template, where the BIOS configuration template indicates a correspondence between the service configuration information and the configuration items in the BIOS configuration table.
[0041] In one embodiment, the preset platform model BIOS configuration table is a pre-set database table, the preset BIOS configuration template represents the correspondence between the business configuration information and the configuration items in the BIOS configuration table, and the preset BIOS configuration template is a pre-established correspondence. The preset interface can be used to read the stored platform model BIOS configuration table and BIOS configuration template. By obtaining the BIOS configuration table and the BIOS configuration template, the correspondence between the manufacturer, BIOS name and server can be established to meet the needs of finding servers from different manufacturers. The BIOS configuration is abstracted by the BIOS configuration template to facilitate communication with the business. The business configuration information and multiple BIOS configuration tables are combined to avoid BIOS configuration omissions and break away from the limitations given by the server manufacturer; by abstracting and adapting the BIOS configuration, the differences between different manufacturers, different generations, and different brands are leveled, which is convenient for maintenance. When the server is upgraded in generation and switched to a new platform, the corresponding table data is directly modified without code-level adaptation.
[0042] In one embodiment, the platform model BIOS configuration table includes a BIOS name table, a device model name table and a BIOS-manufacturer correspondence table; the BIOS name table is a uniformly named configuration name; the device model name table is the server manufacturer and the server name; the BIOS-manufacturer correspondence table is the correspondence between different server manufacturers and different configuration names.
[0043] It should be noted that the BIOS name table can be expressed in the following format: id Configuration name (name) 1 NUMA 2 HyperThreading In some possible embodiments of the present application, the BIOS name table includes an ID and a configuration name, and the configuration name includes hyperthreading and NUMA. The hyperthreading value is on or off, and the NUMA value is on or off. For example, for services that are sensitive to service delays, the delay is generally expected to complete a request response within tens of milliseconds. Usually, the performance mode is used on the BIOS, which can sense the NUMA node and turn on prefetching. At this time, the NUMA value is on. For some applications that cannot sense NUMA, it is necessary to turn off NUMA. At this time, the NUMA value is off. Applications with relatively high memory bandwidth requirements also need to turn off prefetching. For hyperthreaded application services, in the case of high concurrency, the hyperthreading value is on; when high thread concurrency is not required, the hyperthreading value is off.
[0044] The device model name table includes id, device model name (deviceModelName) and manufacturer name (manufacturerName). The device model name table can be expressed in the following format: The BIOS-vendor correspondence table includes id, device model name Id, configuration name Id, and name. The BIOS-vendor correspondence table can be expressed in the following format: It should be noted that the contents in the device model name table and the BIOS-manufacturer correspondence table are a compilation of some known manufacturer names, and a corresponding relationship table is formed. The meanings represented in the table will not be described one by one here.
[0045] Step S130: searching for BIOS configuration items in a BIOS configuration table according to the service configuration information and the BIOS configuration template.
[0046] In one embodiment, since the business configuration information includes all the hardware devices used and their specifications; specifies which device to load the operating system from first when the computer starts; enables or disables security functions; sets appropriate parameters to optimize system performance; configures remote management and monitoring functions, etc. The above business configuration information is some names agreed upon by the business and the manufacturer, but the specific models and detailed functions require the help of the BIOS configuration template. The BIOS configuration template records the manufacturers and different configuration names of different servers. According to the information provided by the business configuration information and the information provided by the BIOS configuration template, the configuration information of the corresponding specific content, that is, the BIOS configuration items, can be found from the BIOS configuration table. By obtaining the BIOS configuration items, the BIOS configuration items reflect the specific business needs, which is conducive to the subsequent matching of the adapted server for BIOS configuration.
[0047] Step S140, according to the BIOS configuration item, send it to multiple preset servers using a preset interface, receive the actual value returned by each server, compare the BIOS configuration value of the BIOS configuration item with each actual value, and obtain a first comparison result.
[0048] In one embodiment, the BIOS configuration items are obtained according to step S130, and are sent to multiple preset servers using a preset interface. The BIOS configuration items corresponding to different business needs can be sent to the corresponding servers, and the server will return the actual configuration value of the current server. The preset interface is redfish. Through the RESTful interface provided by Redfish, the BIOS configuration can be easily queried and modified. The BIOS is configured through the refish interface, and the differences in configuration methods of different server manufacturers are avoided. The actual values returned by each server are received, and the BIOS configuration values of the BIOS configuration items are compared with each actual value. Specifically, the BIOS configuration values are compared with the actual values one by one, and a string similarity algorithm can be used for comparison. Only when each character is completely matched, the configuration is consistent. If any character is different, the configuration is inconsistent, and the first comparison result is obtained. The first comparison result obtained by the above is conducive to the subsequent judgment of whether the configuration is successful and whether it needs to be modified. Multiple servers can be operated at the same time to achieve large-scale batch configuration.
[0049] Step S150, when the first comparison result is consistent, the server BIOS corresponding to the consistent first comparison result is configured successfully.
[0050] In one embodiment, if the first comparison result is consistent, that is, the configuration of the server matches the business requirement, the server BIOS configuration corresponding to the consistent first comparison result is successful, and the work order is ended. It is possible to configure BIOS configurations in batches according to different business requirements, meet the flexible configuration of servers from different manufacturers, and improve configuration efficiency.
[0051] In one embodiment, after comparing the BIOS configuration value of the BIOS configuration item with each actual value to obtain a first comparison result, the BIOS batch configuration method further includes but is not limited to the following steps: Step S160: When the first comparison result is inconsistent, perform BIOS configuration on the server corresponding to the inconsistent first comparison result, and restart the server.
[0052] In one embodiment, when the first comparison result is inconsistent, that is, the configuration of the server does not match the business requirements, the BIOS configuration of the server corresponding to the inconsistent first comparison result can be modified through the redfish interface, and then the server is restarted to complete the server configuration and apply it.
[0053] like Figure 3 As shown, after performing BIOS configuration on the server corresponding to the inconsistent first comparison result and restarting the server, the BIOS batch configuration method further includes but is not limited to the following steps: Step S310, verifying the restarted server to obtain a verification result.
[0054] In some possible embodiments of the present application, since the restarted server may not be usable yet, the restarted server can be verified by pinging the service address to verify the server and obtain a verification result, which is helpful for determining whether to perform subsequent verification based on the verification result.
[0055] Step S320: When the verification result is passed, the interface is used to send the information to multiple preset servers, and the reconfiguration values returned by each server are received.
[0056] In some possible embodiments of the present application, when the verification result is passed, it indicates that the server has been successfully restarted. Although the server has been successfully restarted, it may not have entered the application, so another verification is performed to ensure the accuracy of the configuration. The preset Redfish is sent to multiple preset servers to verify the servers in batches. The server will return the reconfiguration value of the current server, and the BIOS configuration can also be modified through the RESTful interface provided by Redfish. Receive the reconfiguration value returned by each server to verify whether the configuration is successful later.
[0057] Step S330, comparing the reconfiguration value with the BIOS configuration value to obtain a second comparison result.
[0058] In some possible embodiments of the present application, the BIOS configuration value is compared with each reconfiguration value, specifically: the BIOS configuration value is compared with the reconfiguration value one by one, and a string similarity algorithm can be used for comparison. When each character matches completely, the configuration is consistent. If any character is different, the configuration is inconsistent, and a second comparison result is obtained. Obtaining the second comparison result in the above manner is conducive to the subsequent judgment of whether the configuration is successful and whether modifications are required. Reconfiguration operations can be performed on multiple servers at the same time to achieve large-scale batch configuration.
[0059] Step S340: When the second comparison result is inconsistent, an alarm message is issued, and the alarm message prompts manual intervention configuration.
[0060] In some possible embodiments of the present application, when the second comparison result is inconsistent, that is, the configuration of the server does not match the business requirements, an alarm message is issued and manual intervention is required to ensure that the server can be accurately and successfully configured.
[0061] In some other possible embodiments of the present application, when the second comparison result is consistent, that is, the configuration of the server matches the business requirement, the server BIOS configuration corresponding to the consistent second comparison result is successful, and the work order is ended. It is possible to achieve batch reconfiguration of BIOS configurations according to different business requirements, meet the flexible configuration of servers from different manufacturers, and improve configuration efficiency.
[0062] In one embodiment, after verifying the restarted server and obtaining the verification result, the BIOS batch configuration method further includes: Step S350, when the verification result is failed, perform BIOS configuration on the server corresponding to the failed verification result, and restart the server.
[0063] In some possible embodiments of the present application, if the ping fails, it indicates that the restarted server cannot be used, and the BIOS configuration of the server corresponding to the failed verification result is performed. The configuration can be modified through the redfish interface, and the server is restarted. If the restarted server still cannot be pinged, manual intervention is required to ensure the configuration is accurate.
[0064] The embodiment of the present application provides an overall process of a BIOS batch configuration method, specifically: first obtain business requirements, which is conducive to finding manufacturers according to business requirements in the future and realizing corresponding BIOS configuration. Business requirements include business configuration information. Through the above business configuration information, not only can different business characteristics be obtained, but also more detailed requirements can be understood, and configuration items can be found in the future. The preset platform model BIOS configuration table is a pre-set database table, the preset BIOS configuration template represents the correspondence between business configuration information and configuration items in the BIOS configuration table, and the preset BIOS configuration template is a pre-established correspondence. The preset interface can be used to read the stored platform model BIOS configuration table and BIOS configuration template. By obtaining the platform model BIOS configuration table and BIOS configuration template, the correspondence between the manufacturer, BIOS name and server can be established to meet the search for servers of different manufacturers. Then, according to the business configuration information and the BIOS configuration template, the BIOS configuration items are found from the BIOS configuration table. By obtaining the BIOS configuration items, the BIOS configuration items reflect the specific business requirements, which is conducive to the subsequent matching of the adapted server for BIOS configuration. According to the BIOS configuration items, the preset redfish is used to send to multiple preset servers. The BIOS configuration items corresponding to different business needs can be sent to the corresponding servers. The server will return the actual configuration value of the current server. The BIOS configuration can also be queried and modified through the RESTful interface provided by Redfish. Receive the actual value returned by each server, compare the BIOS configuration value with the actual value one by one, and use the string similarity algorithm for comparison. Only when each character matches completely, the configuration is consistent. If any character is different, the configuration is inconsistent, and the first comparison result is obtained. When the first comparison result is consistent, that is, the configuration of the server matches the business requirements, the server BIOS configuration corresponding to the consistent first comparison result is successful, and the work order is ended. It can realize batch configuration of BIOS configuration according to different business requirements, meet the flexible configuration of servers from different manufacturers, and improve configuration efficiency. When the first comparison result is inconsistent, that is, the configuration of the server does not match the business requirements, the BIOS configuration of the server corresponding to the inconsistent first comparison result can be modified through the redfish interface, and then the server is restarted to complete the server configuration and apply it.
[0065] After the BIOS configuration is performed on the server corresponding to the inconsistent first comparison result and the server is restarted, since the restarted server may not be able to be applied, the restarted server is verified. The service address can be pinged to verify the server to obtain the verification result, which is conducive to determining whether to perform subsequent verification according to the verification result. If the verification result is passed, it indicates that the server has been successfully restarted. Although the server has been successfully restarted, it may not have entered the application, so another verification is performed to ensure the accuracy of the configuration. If the ping fails, it indicates that the restarted server cannot be applied. The BIOS configuration is performed on the server corresponding to the failed verification result. The configuration can be modified through the redfish interface and the server is restarted. Verify again, use the interface to send it to multiple preset servers, receive the reconfiguration value returned by each server, compare the reconfiguration value with the BIOS configuration value, and obtain the second comparison result. If the second comparison result is inconsistent, that is, the server configuration does not match the business requirements, an alarm message is issued, and manual intervention configuration is required to ensure that the server can be accurately and successfully configured. If the second comparison result is consistent, that is, the server configuration matches the business requirements, the server BIOS configuration corresponding to the consistent second comparison result is successful, and the work order is ended. The embodiments of the present application can realize batch reconfiguration of BIOS configurations according to different business requirements, meet the flexible configuration of servers from different manufacturers, and improve configuration efficiency.
[0066] like Figure 4As shown, the embodiment of the present application provides a BIOS batch configuration device 100, the BIOS batch configuration device 100 obtains business requirements through a business acquisition module 110, the business requirements include business configuration information, and different business features are obtained through the business configuration information, which is conducive to subsequent corresponding configuration for different business features; a preset platform model BIOS configuration table and a preset BIOS configuration template are obtained through a template acquisition module 120, and the BIOS configuration template represents the corresponding relationship between the business configuration information and the configuration items in the BIOS configuration table. By obtaining the BIOS configuration table and the BIOS configuration template, a corresponding relationship between the manufacturer, the BIOS name and the server can be established to meet the needs of searching for servers of different manufacturers; and then a search module 130 is used to obtain the business configuration information and the BIOS configuration template from the B The BIOS configuration item is searched in the IOS configuration table, and the specific business needs are reflected by the BIOS configuration item, which can be sent to the corresponding server; then the configuration comparison module 140 is used to send it to multiple preset servers according to the BIOS configuration item using a preset interface, and the actual value returned by each server is received. The BIOS configuration value of the BIOS configuration item is compared with each actual value to obtain a first comparison result, and multiple servers are operated at the same time to achieve large-scale batch configuration, and compare to see whether the configuration meets the requirements; when the first comparison result is consistent using the configuration determination module 150, the server BIOS corresponding to the consistent first comparison result is successfully configured, which can realize batch configuration of BIOS configuration according to different business needs, meet the flexible configuration of servers from different manufacturers, and improve configuration efficiency.
[0067] It should be noted that the business acquisition module 110 is connected to the template acquisition module 120, the template acquisition module 120 is connected to the search module 130, the search module 130 is connected to the configuration comparison module 140, and the configuration comparison module 140 is connected to the configuration determination module 150. The above-mentioned BIOS batch configuration method is applied to the BIOS batch configuration device 100, and the BIOS batch configuration device 100 can obtain different business requirements by obtaining business requirements, BIOS configuration tables and BIOS configuration templates, and obtain configuration items from the BIOS configuration tables and BIOS configuration templates, so as to perform batch configuration of servers of different manufacturers, and according to the configuration items, use the preset interface to send to multiple preset servers, receive the actual values returned by each server, compare the BIOS configuration value of the BIOS configuration item with each actual value, obtain a first comparison result, and operate on multiple servers at the same time to realize large-scale batch configuration, compare and check whether the configuration meets the requirements, and can realize batch configuration of BIOS configuration according to different business requirements, meet the flexible configuration of servers of different manufacturers, and improve configuration efficiency.
[0068] It should also be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0069] The present application also discloses an electronic device. Figure 5 , Figure 5 The electronic device 500 may include: at least one processor 501 , at least one network interface 504 , a user interface 503 , a memory 505 , and at least one communication bus 502 .
[0070] The communication bus 502 is used to realize the connection and communication between these components.
[0071] The user interface 503 may include a display screen (Display) and a camera (Camera), and the optional user interface 503 may also include a standard wired interface and a wireless interface.
[0072] The network interface 504 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0073] Among them, the processor 501 may include one or more processing cores. The processor 501 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 505, and calling data stored in the memory 505. Optionally, the processor 501 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 501 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 501, and it can be implemented separately through a chip.
[0074] Among them, the memory 505 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 505 includes a non-transitory computer-readable storage medium. The memory 505 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 505 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 505 may also be optionally at least one storage device located away from the aforementioned processor 501. Refer to Figure 5 , the memory 505 as a computer storage medium may include an operating system, a network communication module, a user interface module and an application program of a BIOS batch configuration method.
[0075] exist Figure 5In the electronic device 500 shown, the user interface 503 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 501 can be used to call an application program storing a BIOS batch configuration method in the memory 505, and when executed by one or more processors 501, the electronic device 500 executes one or more methods in the above-mentioned embodiments. It should be noted that for the aforementioned method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.
[0076] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0077] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0078] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0079] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0080] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.
[0081] The above are only exemplary embodiments of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other embodiments of the present disclosure.
[0082] This application is intended to cover any variation, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art not described in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A BIOS batch configuration method, characterized in that: The method comprises: Acquire business requirements, wherein the business requirements include business configuration information; Obtaining a preset platform model BIOS configuration table and a preset BIOS configuration template, wherein the BIOS configuration template indicates a correspondence between the service configuration information and configuration items in the BIOS configuration table; According to the service configuration information and the BIOS configuration template, searching the BIOS configuration item from the BIOS configuration table; According to the BIOS configuration item, send it to multiple preset servers by using a preset interface, receive actual values returned by each of the servers, compare the BIOS configuration value of the BIOS configuration item with each of the actual values, and obtain a first comparison result; When the first comparison result is consistent, the server BIOS corresponding to the consistent first comparison result is configured successfully.
2. The method according to claim 1, characterized in that After comparing the BIOS configuration value of the BIOS configuration item with each of the actual values to obtain a first comparison result, the method further includes: When the first comparison result is inconsistent, BIOS configuration is performed on the server corresponding to the inconsistent first comparison result, and the server is restarted.
3. The method according to claim 2, characterized in that After performing BIOS configuration on the server corresponding to the inconsistent first comparison result and restarting the server, the method includes: Verifying the restarted server to obtain a verification result; When the verification result is passed, the interface is used to send the result to multiple preset servers, and the reconfiguration value returned by each of the servers is received; Comparing the reconfiguration value with the BIOS configuration value to obtain a second comparison result; When the second comparison result is inconsistent, an alarm message is issued, and the alarm message prompts manual intervention configuration.
4. The method according to claim 3, characterized in that After verifying the restarted server and obtaining a verification result, the method further includes: When the verification result is failed, BIOS configuration is performed on the server corresponding to the failed verification result, and the server is restarted.
5. The method according to claim 1, characterized in that After obtaining the business requirements, wherein the business requirements include business configuration information, the method further includes: Obtaining a preset work order, where the work order represents the BIOS configuration template corresponding to the business requirement; Check whether the work order meets the preset order conditions. If the order conditions are met, execute the step of sending the work order to multiple preset servers using a preset interface, receiving the actual value returned by the server, and comparing the BIOS configuration value of the BIOS configuration item with each of the actual values to obtain a first comparison result.
6. The method according to claim 1, characterized in that The platform model BIOS configuration table includes a BIOS name table, a device model name table and a BIOS-manufacturer correspondence table; The BIOS name table is a uniformly named configuration name; The device model name table includes the manufacturer of the server and the name of the server; The BIOS-manufacturer correspondence table is a correspondence between different manufacturers of the server and different configuration names.
7. The method according to claim 6, characterized in that The configuration name includes hyperthreading and NUMA, the hyperthreading value is on or off, and the NUMA value is on or off.
8. A BIOS batch configuration device, characterized in that: The device comprises: A service acquisition module (110), used to acquire service requirements, wherein the service requirements include service configuration information; A template acquisition module (120), used to acquire a preset platform model BIOS configuration table and a preset BIOS configuration template, wherein the BIOS configuration template indicates a corresponding relationship between the service configuration information and configuration items in the BIOS configuration table; A search module (130), configured to search the BIOS configuration item from the BIOS configuration table according to the service configuration information and the BIOS configuration template; A configuration comparison module (140) is used to send the BIOS configuration item to multiple preset servers using a preset interface, receive actual values returned by each of the servers, and compare the BIOS configuration value of the BIOS configuration item with each of the actual values to obtain a first comparison result; A configuration determination module (150) is used to determine that, if the first comparison result is consistent, the server BIOS configuration corresponding to the consistent first comparison result is successful.
9. An electronic device, characterized in that: The electronic device (500) comprises a processor (501), a memory (505), a user interface (503), a communication bus (502) and a network interface (504), wherein the processor (501), the memory (505), the user interface (503) and the network interface (504) are respectively connected to the communication bus (502), the memory (505) is used to store instructions, the user interface (503) and the network interface (504) are used to communicate with other devices, and the processor (501) is used to execute the instructions stored in the memory (505) so that the electronic device (500) executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 7 is executed.
