Server configuration method, device, storage medium and electronic device
By obtaining and matching device component information and configuration requirements information under the automatic configuration function of the server, the server is automatically configured, and the problem of low server customization efficiency is solved and efficient customization is achieved.
Patent Information
- Application Number
- CN202310081212.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-03
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2043-02-03
AI Technical Summary
The customization efficiency of servers is low, and the existing technology requires a lot of human resources and the customization process is inefficient.
When the automatic configuration function of the target server is enabled, the device component information corresponding to the pre-burned serial number is obtained and matched with the received configuration requirement information, and the server is automatically configured using the matching configuration information to avoid duplicate configuration of human resources.
It realizes the efficient completion of server customization requirements while saving human resources, and improves the server customization efficiency.
Smart Images

Figure CN116185506B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computers, and more specifically, to a server configuration method, device, storage medium, and electronic device. Background Art
[0002] With the rapid development of server technology, server performance and functionality are constantly improving. Furthermore, with the widespread use of servers, different Basic Input Output System (BIOS) requirements can be customized according to different server operating scenarios.
[0003] In the related art, user customization requirements are generally achieved by modifying BIOS options. If a user has multiple customization requirements, there are generally two ways to handle it. One is to compile an image for each different customization requirement to adapt it. However, this method consumes a lot of manpower and, due to the large number of images, it is easy to cause confusion when delivering them to users. The other is to modify BIOS options individually according to customization requirements in batches using scripts on the production line. This method can save a lot of manpower, but if the user needs to refresh the BIOS image, the script must be run again to meet the user's customization requirements, resulting in low server customization efficiency.
[0004] Currently, no effective solution has been proposed to the problem of low customization efficiency of servers in related technologies. Summary of the Invention
[0005] The embodiments of the present application provide a server configuration method, device, storage medium, and electronic device to at least solve the problem of low server customization efficiency existing in the related art.
[0006] According to one embodiment of the present application, a server configuration method is provided, comprising: upon detecting that a target automatic configuration function of a target server has been turned on, obtaining first configuration information corresponding to a first serial number, wherein the first configuration information includes information of device components corresponding to the first serial number pre-burned into a target mainboard, and the first configuration information satisfies a configuration requirement of a first terminal for the target server, and the target server includes the target mainboard; matching the first configuration information with received second configuration information to obtain a target matching result, wherein the second configuration information includes the configuration requirement of a second terminal device for the target server; and when the target matching result shows that the first configuration information matches the second configuration information, and the first configuration information matches actual configuration information of the device components in the target server, configuring the target server using the first configuration information, wherein the actual configuration information includes information of the device components in the target server detected during the startup of the target server.
[0007] In an exemplary embodiment, when it is detected that the target automatic configuration function of the target service device is turned on, obtaining the first configuration information corresponding to the first serial number includes: during the startup process of the above-mentioned target server, when it is detected that the above-mentioned target automatic configuration function is turned on, obtaining the above-mentioned first serial number from the above-mentioned target mainboard; obtaining the above-mentioned first configuration information corresponding to the above-mentioned first serial number through a preset correspondence relationship, wherein the above-mentioned preset correspondence relationship is used to represent the correspondence between the above-mentioned serial number and the above-mentioned configuration information.
[0008] In an exemplary embodiment, when the target matching result shows that the first configuration information matches the second configuration information, and the first configuration information matches the actual configuration information of the device component in the target server, configuring the target server using the first configuration information includes: when the target matching result shows that the first configuration information matches the second configuration information, matching the first configuration information with the actual configuration information to obtain a first matching result; when the first matching result shows that the first configuration information matches the actual configuration information, configuring the target server using the first configuration information.
[0009] In an exemplary embodiment, when the above-mentioned first matching result shows that the above-mentioned first configuration information matches the above-mentioned actual configuration information, configuring the above-mentioned target server using the above-mentioned first configuration information includes: automatically configuring the above-mentioned target server using the above-mentioned first configuration information, and turning on the target customization function of the above-mentioned target server, wherein the above-mentioned target customization function is used to represent a function pre-set in the above-mentioned target server to meet the business customization needs of the terminal.
[0010] In an exemplary embodiment, the above method also includes: when the above first matching result shows that the above first configuration information does not match the above actual configuration information, displaying target alarm information on the target interface of the above target server, wherein the above target alarm information is used to indicate that the above first configuration information does not match the above actual configuration information.
[0011] In an exemplary embodiment, when the above-mentioned first matching result shows that the above-mentioned first configuration information does not match the above-mentioned actual configuration information, after displaying the target alarm information on the target interface of the above-mentioned target server, the above-mentioned method also includes: sending the target log to the target management service, and displaying the above-mentioned target alarm information on the first interface corresponding to the above-mentioned target management service, wherein the above-mentioned target log includes the above-mentioned target alarm information, and the above-mentioned target server includes the above-mentioned target management service.
[0012] In an exemplary embodiment, the above method also includes: upon receiving a target instruction, matching the above first configuration information with the above second configuration information to obtain the above target matching result, wherein the above target instruction is used to indicate that after matching the above first configuration information with the above second configuration information, the above first configuration information is not matched with the above actual configuration information; when the above target matching result shows that the above first configuration information matches the above second configuration information, configuring the above target server using the above first configuration information.
[0013] According to another embodiment of the present application, a server configuration device is provided, including: an acquisition module, for acquiring first configuration information corresponding to a first serial number when detecting that a target automatic configuration function of the target server has been turned on, wherein the first configuration information includes information of device components corresponding to the first serial number pre-burned into the target mainboard, and the first configuration information meets the configuration requirements of the first terminal for the target server, and the target server includes the target mainboard; a first matching module, for matching the first configuration information with received second configuration information to obtain a target matching result, wherein the second configuration information includes the configuration requirements of the second terminal device for the target server; a configuration module, for configuring the target server using the first configuration information when the target matching result shows that the first configuration information matches the second configuration information and the first configuration information matches the actual configuration information of the device components in the target server, wherein the actual configuration information includes information of the device components in the target server detected during the startup of the target server.
[0014] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when run.
[0015] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0016] Through this application, when it is detected that the target automatic configuration function of the target server has been turned on, the first configuration information obtained that meets the configuration requirements of the first terminal for the target server and includes information about the device components corresponding to the first serial number pre-burned into the target motherboard is matched with the second configuration information received that includes the configuration requirements of the second terminal device for the target server. Then, when the first configuration information matches the second configuration information and the first configuration information matches the actual configuration information of the device components in the target server, the first configuration information is used to configure the target server, avoiding the need for a large amount of human resources to configure the target server for different configuration requirements, and achieving the purpose of efficiently completing the customization requirements of the server while saving human resources. The above technical solution solves the problem of low customization efficiency of the server existing in the related art and achieves the effect of improving the customization efficiency of the server. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 This is a hardware structure block diagram of a mobile terminal of a server configuration method according to an embodiment of the present application;
[0018] Figure 2 is a flow chart of a method for configuring a server according to an embodiment of the present invention;
[0019] Figure 3 is a flow chart of a server configuration method according to a specific embodiment of the present invention;
[0020] Figure 4 It is a structural block diagram of a configuration device of a server according to an embodiment of the present application. DETAILED DESCRIPTION
[0021] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0022] It should be noted that the terms "first", "second", etc. in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0023] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure diagram of a mobile terminal of a server configuration method according to an embodiment of the present application. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown) a processor 102 (the processor 102 may include but is not limited to a microprocessor MCU or a programmable logic device FPGA and other processing devices) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It will be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components than shown, or with Figure 1 Different configurations shown.
[0024] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the configuration method of the server in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implementing the above-mentioned method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0025] The transmission device 106 is used to receive or send data via a network. A specific example of the aforementioned network may include a wireless network provided by the mobile terminal's communications provider. In one embodiment, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0026] In this embodiment, a method for configuring a server is provided. Figure 2 is a flow chart of a method for configuring a server according to an embodiment of the present invention, such as Figure 2As shown, the process includes the following steps:
[0027] Step S202: upon detecting that a target automatic configuration function of the target server is enabled, obtaining first configuration information corresponding to the first serial number, wherein the first configuration information includes information of a device component corresponding to the first serial number pre-burned into the target motherboard, and the first configuration information satisfies a configuration requirement of the first terminal for the target server, wherein the target server includes the target motherboard;
[0028] Step S204: matching the first configuration information with the received second configuration information to obtain a target matching result, wherein the second configuration information includes the configuration requirements of the second terminal device for the target server;
[0029] Step S206, when the target matching result shows that the first configuration information matches the second configuration information, and the first configuration information matches the actual configuration information of the device components in the target server, use the first configuration information to configure the target server, wherein the actual configuration information includes information about the device components in the target server detected during the startup of the target server.
[0030] Through the above steps, when it is detected that the target automatic configuration function of the target server has been turned on, the first configuration information obtained that meets the configuration requirements of the first terminal for the target server and includes information on the device components corresponding to the first serial number pre-burned into the target motherboard is matched with the second configuration information received that includes the configuration requirements of the second terminal device for the target server. Then, when the first configuration information matches the second configuration information and the first configuration information matches the actual configuration information of the device components in the target server, the first configuration information is used to configure the target server, avoiding the need for a large amount of human resources to configure the target server for different configuration requirements, and achieving the purpose of efficiently completing the customization requirements of the server while saving human resources. The above technical solution solves the problem of low customization efficiency of the server existing in the related art and achieves the effect of improving the customization efficiency of the server.
[0031] The execution body of the above steps may be BIOS, controller, etc., but is not limited thereto.
[0032] In the above embodiment, the first terminal and the second terminal can be the same terminal or different terminals, that is, the first configuration information and the second configuration information can be the configuration requirements of the same terminal for the target server or the configuration requirements of different terminals for the target server, and so on.
[0033] In the above embodiment, there can be multiple target servers, and then it is possible to detect whether the target automatic configuration function of the multiple target servers is turned on, that is, it is possible to simultaneously detect whether the target automatic configuration function of the multiple target servers is turned on. It is also possible to detect whether the target automatic configuration function is turned on based on the priority or weight of the target server. For example, when there are three target servers (target server 1, target server 2, target server 3), and the priority or weight of the three target servers is target server 1>target server 2>target server 3, it is possible to first detect whether the automatic configuration function of target server 1 is turned on in the order of priority or weight, then detect whether the automatic configuration function of target server 2 is turned on, and finally detect whether the automatic configuration function of target server 3 is turned on, and so on. It should be noted that the above example of the target server is only an exemplary embodiment, and the target server is not limited to the above example.
[0034] In the above embodiment, when it is detected that the target automatic configuration function of the target server is not enabled, the target automatic configuration function can be automatically controlled to be enabled on the target server, or the target automatic configuration function option can be manually enabled by clicking the mouse or touching the interface displaying the target automatic configuration function option. In addition, the target automatic configuration function can also be disabled in the above manner, etc. It should be noted that the above example of enabling or disabling the target automatic configuration function is merely an exemplary embodiment, and the method of enabling or disabling the target automatic configuration function is not limited to the above example.
[0035] In an exemplary embodiment, when it is detected that the target automatic configuration function of the target service device is turned on, obtaining the first configuration information corresponding to the first serial number includes: during the startup of the target server, when it is detected that the target automatic configuration function is turned on, obtaining the first serial number from the target mainboard; obtaining the first configuration information corresponding to the first serial number through a preset correspondence relationship, wherein the preset correspondence relationship is used to represent the correspondence between the serial number and the configuration information.
[0036] Alternatively, in this embodiment, there may be multiple target motherboards, and multiple first serial numbers may be obtained from the multiple target motherboards. Then, first configuration information corresponding to each of the multiple first serial numbers may be obtained through a preset correspondence relationship to obtain multiple first configuration information. That is, multiple first serial numbers may be obtained from the multiple target motherboards simultaneously, and then, first configuration information corresponding to each of the multiple first serial numbers may be obtained simultaneously through a preset correspondence relationship to obtain multiple first configuration information. The first serial numbers may also be obtained based on the priority or weight of the target motherboards. For example, when there are three target motherboards (target motherboard 1, target motherboard 2, and target motherboard 3), and the priority or weight of the three target motherboards is target motherboard 1 > target motherboard 2 > target motherboard 3, the first serial number may be obtained from target motherboard 1 first in the order of priority or weight, and then, first configuration information corresponding to the first serial number may be obtained through a preset correspondence relationship. Then, the first serial number may be obtained from target motherboard 2, and then, first configuration information corresponding to the first serial number may be obtained through a preset correspondence relationship. Finally, the first serial number may be obtained from target motherboard 3, and then, first configuration information corresponding to the first serial number may be obtained through a preset correspondence relationship, and so on. It should be noted that the above example of the target motherboard is only an exemplary embodiment, and the target motherboard is not limited to the above example.
[0037] In an exemplary embodiment, when the target matching result shows that the first configuration information matches the second configuration information, and the first configuration information matches the actual configuration information of the device component in the target server, configuring the target server using the first configuration information includes: when the target matching result shows that the first configuration information matches the second configuration information, matching the first configuration information with the actual configuration information to obtain a first matching result; when the first matching result shows that the first configuration information matches the actual configuration information, configuring the target server using the first configuration information.
[0038] Optionally, in this embodiment, there may be multiple target matching results. If multiple target matching results show that the first configuration information matches the second configuration information, each of the multiple first configuration information is matched with the actual configuration information of the device component in the corresponding target server to obtain multiple first matching results. That is, if multiple target matching results show that the first configuration information matches the second configuration information, each of the multiple first configuration information is matched with the actual configuration information of the device component in the corresponding target server simultaneously to obtain multiple first matching results. The first configuration information can also be matched with the actual configuration information according to the priority or weight of the target matching result to obtain the first matching result. For example, when there are three target matching results (target matching result 1, target matching result 2, target matching result 3), and the priority or weight of the three target matching results is target matching result 1>target matching result 2>target matching result 3, the first configuration information corresponding to target matching result 1 can be matched with the actual configuration information of the device component in the corresponding target server according to the priority or weight order based on the result of the match between the first configuration information and the second configuration information shown in target matching result 1 to obtain the first matching result, and so on. It should be noted that the above example description of the target matching result is only an exemplary embodiment, and the target matching result is not limited to the above example.
[0039] In an exemplary embodiment, when the first matching result shows that the first configuration information matches the actual configuration information, configuring the target server using the first configuration information includes: automatically configuring the target server using the first configuration information, and turning on a target customization function of the target server, wherein the target customization function is used to represent a function pre-set in the target server that meets the business customization requirements of the terminal.
[0040] Optionally, in this embodiment, the target customization function can be pre-set in the target server according to the business customization requirements of the terminal. When the first configuration information corresponding to the first serial number in the target server matches the second configuration information received including the configuration requirements of the second terminal device for the target server, and the first configuration information matches the actual configuration information of the device components in the target server, the first configuration information can be used to automatically configure the target server and enable the target customization function of the target server, so that the target server can meet the user's customization requirements and further improve the customization efficiency of the server.
[0041] In an exemplary embodiment, the above method also includes: when the first matching result shows that the first configuration information does not match the actual configuration information, displaying target alarm information on the target interface of the target server, wherein the target alarm information is used to indicate that the first configuration information does not match the actual configuration information.
[0042] Optionally, in this embodiment, there may be multiple first matching results. When multiple first matching results indicate that the first configuration information does not match the actual configuration information, a target alarm message is displayed on the target interface of the target server corresponding to each of the multiple first configuration information corresponding to the multiple first matching results. That is, when multiple first matching results indicate that the first configuration information does not match the actual configuration information, the target alarm message is simultaneously displayed on the target interface of the target server corresponding to each of the multiple first configuration information corresponding to the multiple first matching results. The target alarm message may also be displayed based on the priority or weight of the first matching results. For example, when there are three first matching results (first matching result 1, first matching result 2, and first matching result 3), and the priorities or weights of the three first matching results are first matching result 1 > first matching result 2 > first matching result 3, the target alarm message may be displayed simultaneously on the target interface of the target server corresponding to the first configuration information corresponding to the multiple first matching results 1, in the order of priority or weight, and so on. It should be noted that the above example of the first matching result is merely an exemplary embodiment, and the first matching result is not limited to the above example.
[0043] In an exemplary embodiment, when the first matching result shows that the first configuration information does not match the actual configuration information, after displaying the target alarm information on the target interface of the target server, the above method also includes: sending a target log to the target management service, and displaying the target alarm information on the first interface corresponding to the target management service, wherein the target log includes the target alarm information, and the target server includes the target management service.
[0044] Optionally, in this embodiment, there may be multiple target alarm information, and corresponding target logs may be sent to the target management servers corresponding to the multiple target alarm information, and the multiple target alarm information may be displayed on the first interfaces corresponding to the multiple target management services, that is, the corresponding target logs may be sent to the target management servers corresponding to the multiple target alarm information at the same time, and the multiple target alarm information may be displayed on the first interfaces corresponding to the multiple target management services at the same time. The corresponding target logs may also be sent according to the priority or weight of the target alarm information. For example, when there are three target alarm information (target alarm information 1, target alarm information 2, target alarm information 3), and the priority of the three target alarm information is target alarm information 1>target alarm information 2>target alarm information 3, the corresponding target log may be sent to the target management server corresponding to target alarm information 1 in priority order, and target alarm information 1 may be displayed on the first interface corresponding to the target management service, and so on. It should be noted that the above-mentioned example of target alarm information is only an exemplary embodiment, and target alarm information is not limited to the above-mentioned example.
[0045] Optionally, in this embodiment, after sending the target log including the target alarm information to the target management service, the target log can be retrieved from the target management service to analyze the reason why the first configuration information does not match the actual configuration information, so as to avoid such situations from happening again in the future, and effectively improve the accuracy and efficiency of the server configuration.
[0046] In an exemplary embodiment, the above method also includes: upon receiving a target instruction, matching the first configuration information with the second configuration information to obtain a target matching result, wherein the target instruction is used to indicate that after matching the first configuration information with the second configuration information, the first configuration information is not matched with the actual configuration information; and when the target matching result shows that the first configuration information matches the second configuration information, configuring the target server using the first configuration information.
[0047] Optionally, in this embodiment, when the user requires only matching the first configuration information with the second configuration information, the first configuration information can be used to configure the target server. A security check function option can be added to the target server. When the security check function option is turned off, a target instruction will be received to indicate that after matching the first configuration information with the second configuration information, the first configuration information and the actual configuration information are not matched. Then, according to the target instruction, only the first configuration information and the second configuration information are matched. When the target matching result shows that the first configuration information and the second configuration information match, the target server is configured using the first configuration information.
[0048] Obviously, the embodiments described above are only part of the embodiments of the present invention, rather than all the embodiments.
[0049] The present invention will be described in detail below with reference to specific embodiments:
[0050] In a specific embodiment of the present invention, a process of a server configuration method is provided. Figure 3 is a flow chart of a method for configuring a server according to a specific embodiment of the present invention, such as Figure 3 As shown, the process includes the following steps:
[0051] S302, start;
[0052] S304: The motherboard has been burned with standard Field Replace Unit (FRU) information;
[0053] S306, during the server startup process, checking whether the automatic configuration function option is enabled, and if enabled, obtaining the product part number (PPN) information (corresponding to the first configuration information corresponding to the first serial number) in the mainboard FRU;
[0054] S308, matching the PPN information with the user's different required configurations (corresponding to the above-mentioned second configuration information);
[0055] S310, completing a security check on the configuration (corresponding to matching the first configuration information with the actual configuration information);
[0056] S312, performing a first judgment to determine whether the check matches;
[0057] S314: If the result of the first judgment is negative (if a mismatch is found during the server startup process (i.e., the security check fails)), an alarm (corresponding to the target alarm information) is displayed in a pop-up window, the mismatch is notified to the BMC (Baseboard Management Controller, corresponding to the target management service) through the SEL log (System Event Log), and the alarm information (corresponding to the target alarm information) is displayed on a World Wide Web (Baseboard Management Controller World Wide Web, referred to as the BMC Web) page (corresponding to the first interface);
[0058] S316, end;
[0059] S318, when the first judgment result is yes, that is, the configuration security check is passed, the user's configuration requirements are set and the customized function is enabled (corresponding to the above target customized function), and step S316 is executed.
[0060] As can be seen from the preceding examples, to meet diverse user configuration requirements, different PPNs are configured in the motherboard FRU information of machines with different requirements. The PPN information is then matched to the user's desired configuration, automatically configuring the system to meet the customer's requirements. Furthermore, multiple configurations can use the same BIOS image, and user-generated BIOS updates will not affect the desired configuration. This further reduces human resources and avoids the risk of poor matching of desired configurations.
[0061] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0062] This embodiment also provides a server configuration device for implementing the above-mentioned embodiments and preferred implementations. Details already described will not be repeated here. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0063] Figure 4 is a structural block diagram of a configuration device of a server according to an embodiment of the present application, such as Figure 4 As shown, the device includes:
[0064] an acquisition module 42 configured to, upon detecting that a target automatic configuration function of the target server is enabled, acquire first configuration information corresponding to the first serial number, wherein the first configuration information includes information of a device component corresponding to the first serial number pre-burned into the target mainboard, and the first configuration information satisfies a configuration requirement of the first terminal for the target server, wherein the target server includes the target mainboard;
[0065] A first matching module 44 is configured to match the first configuration information with the received second configuration information to obtain a target matching result, wherein the second configuration information includes configuration requirements of the second terminal device for the target server;
[0066] The configuration module 46 is used to configure the target server using the first configuration information when the target matching result shows that the first configuration information matches the second configuration information and the first configuration information matches the actual configuration information of the device components in the target server, wherein the actual configuration information includes information of the device components in the target server detected during the startup of the target server.
[0067] In an exemplary embodiment, the acquisition module 42 includes:
[0068] A first acquisition submodule is configured to acquire a first serial number from a target mainboard when detecting that a target automatic configuration function has been enabled during startup of the target server;
[0069] The second acquisition submodule is configured to acquire first configuration information corresponding to the first serial number through a preset corresponding relationship, wherein the preset corresponding relationship is used to represent a corresponding relationship between the serial number and the configuration information.
[0070] In an exemplary embodiment, the configuration module 46 includes:
[0071] a matching submodule, configured to match the first configuration information with the actual configuration information to obtain a first matching result when the target matching result shows that the first configuration information matches the second configuration information;
[0072] The configuration submodule is configured to configure the target server using the first configuration information when the first matching result shows that the first configuration information matches the actual configuration information.
[0073] In an exemplary embodiment, the configuration submodule includes:
[0074] The configuration unit is configured to automatically configure the target server using the first configuration information and enable a target customization function of the target server, wherein the target customization function is used to represent a function pre-set in the target server to meet the business customization requirements of the terminal.
[0075] In an exemplary embodiment, the apparatus further comprises:
[0076] The first display module is used to display target alarm information on the target interface of the target server when the first matching result shows that the first configuration information does not match the actual configuration information, wherein the target alarm information is used to indicate that the first configuration information does not match the actual configuration information.
[0077] In an exemplary embodiment, the apparatus further comprises:
[0078] The second display module is used to send a target log to a target management service and display the target alarm information on a first interface corresponding to the target management service after displaying the target alarm information on a target interface of a target server when a first matching result shows that the first configuration information does not match the actual configuration information, wherein the target log includes the target alarm information and the target server includes the target management service.
[0079] In an exemplary embodiment, the apparatus further comprises:
[0080] a second matching module, configured to match the first configuration information with the second configuration information upon receiving a target instruction to obtain a target matching result, wherein the target instruction is used to indicate that after matching the first configuration information with the second configuration information, the first configuration information is not matched with the actual configuration information;
[0081] The third display module is configured to configure the target server using the first configuration information when the target matching result shows that the first configuration information matches the second configuration information.
[0082] It should be noted that the above modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0083] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any of the above method embodiments when run.
[0084] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0085] An embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0086] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0087] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail here.
[0088] Through the server configuration method provided by the present invention, users only need to use one BIOS image to apply to all required servers. Moreover, since the motherboard FRU information of the servers with different configurations required by users is not the same, there is no need to add a script execution process on the production line, which further simplifies the server configuration process.
[0089] Obviously, those skilled in the art should understand that the modules or steps of the present application described above can be implemented using a general-purpose computing device, they can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices, they can be implemented using program code executable by the computing device, and thus, they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be performed in a different order than herein, or they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0090] The above description is merely a preferred embodiment of the present application and is not intended to limit the present application. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included within the scope of protection of the present application.
Claims
1. A server configuration method, characterized in that: include: Upon detecting that a target automatic configuration function of the target server is enabled, obtaining first configuration information corresponding to a first serial number, wherein the first configuration information includes information of a device component corresponding to the first serial number pre-burned into a target mainboard, and the first configuration information satisfies a configuration requirement of the first terminal for the target server, wherein the target server includes the target mainboard; Matching the first configuration information with the received second configuration information to obtain a target matching result, wherein the second configuration information includes a configuration requirement of the second terminal device for the target server; When the target matching result shows that the first configuration information matches the second configuration information, and the first configuration information matches the actual configuration information of the device components in the target server, the target server is configured using the first configuration information, wherein the actual configuration information includes information about the device components in the target server detected during the startup of the target server.
2. The method according to claim 1, characterized in that When it is detected that the target automatic configuration function of the target service device is enabled, obtaining the first configuration information corresponding to the first serial number includes: During the startup of the target server, if it is detected that the target automatic configuration function is turned on, obtaining the first serial number from the target mainboard; The first configuration information corresponding to the first serial number is acquired through a preset corresponding relationship, wherein the preset corresponding relationship is used to represent a corresponding relationship between the serial number and the configuration information.
3. The method according to claim 1, characterized in that If the target matching result shows that the first configuration information matches the second configuration information, and the first configuration information matches actual configuration information of a device component in the target server, configuring the target server using the first configuration information includes: If the target matching result shows that the first configuration information matches the second configuration information, matching the first configuration information with the actual configuration information to obtain a first matching result; If the first matching result shows that the first configuration information matches the actual configuration information, the target server is configured using the first configuration information.
4. The method according to claim 3, characterized in that When the first matching result shows that the first configuration information matches the actual configuration information, configuring the target server using the first configuration information includes: The target server is automatically configured using the first configuration information, and a target customization function of the target server is enabled, wherein the target customization function is used to represent a function pre-set in the target server that meets the service customization requirements of the terminal.
5. The method according to claim 3, characterized in that The method further comprises: When the first matching result shows that the first configuration information does not match the actual configuration information, target alarm information is displayed on the target interface of the target server, wherein the target alarm information is used to indicate that the first configuration information does not match the actual configuration information.
6. The method according to claim 5, characterized in that If the first matching result shows that the first configuration information does not match the actual configuration information, after displaying target alarm information on the target interface of the target server, the method further includes: A target log is sent to a target management service, and the target alarm information is displayed on a first interface corresponding to the target management service, wherein the target log includes the target alarm information, and the target server includes the target management service.
7. The method according to claim 1, characterized in that The method further comprises: Upon receiving a target instruction, matching the first configuration information with the second configuration information to obtain the target matching result, wherein the target instruction is used to indicate that after matching the first configuration information with the second configuration information, the first configuration information is not matched with the actual configuration information; If the target matching result shows that the first configuration information matches the second configuration information, the target server is configured using the first configuration information.
8. A server configuration device, characterized in that: include: an acquisition module, configured to, upon detecting that a target automatic configuration function of a target server is enabled, acquire first configuration information corresponding to a first serial number, wherein the first configuration information includes information of a device component corresponding to the first serial number pre-burned into a target mainboard, and the first configuration information satisfies a configuration requirement of a first terminal for the target server, wherein the target server includes the target mainboard; a first matching module, configured to match the first configuration information with received second configuration information to obtain a target matching result, wherein the second configuration information includes a configuration requirement of the second terminal device for the target server; A configuration module is used to configure the target server using the first configuration information when the target matching result shows that the first configuration information matches the second configuration information and the first configuration information matches the actual configuration information of the device components in the target server, wherein the actual configuration information includes information about the device components in the target server detected during the startup of the target server.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Server configuration method and device, equipment and storage medium
CN113127099A
Server configuration method and device
CN113918230A