Configuration option management method and device, equipment and storage medium
By introducing a configuration option management method in the BIOS, and recording configuration changes with the substrate management controller, the problem of low BIOS configuration management is solved, real-time monitoring and efficient management are achieved.
Patent Information
- Application Number
- CN202411388524.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-01-10
AI Technical Summary
After the BIOS configuration options are modified, the management efficiency is low in the existing technology, and it is necessary to manually enter the operating system or BIOS setting interface for configuration checking, which is complex and time-consuming.
Provides a configuration option management method, modify configuration options through the out-of-band or BIOS settings page of the substrate management controller, and record the modified configuration values in the log to realize real-time monitoring and management.
Simplifies the configuration checking process and improves management efficiency, especially when the server continues to operate without interrupting services, reducing the complexity of troubleshooting.
Smart Images

Figure CN119292680A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more specifically, to a configuration option management method, device, equipment and storage medium. Background Art
[0002] The BIOS (Basic Input Output System) is a firmware program that is a critical initial loader in modern computers, as it is responsible for doing all the work of starting the computer and interacting with the hardware for the first time. The BIOS allows the user to configure the system settings through the BIOS Configuration Options, through which the user can define the boot order, disable or disable hardware components, adjust memory speed and other system parameters.
[0003] In the related art, each time a user modifies a configuration option, the user needs to manually enter the setup interface of the operating system or BIOS to view the modified configuration option. The configuration check process is relatively complicated and the management efficiency is low.
[0004] Therefore, how to improve the management efficiency of configuration options is a technical problem that those skilled in the art need to solve. Summary of the invention
[0005] The purpose of the present application is to provide a configuration option management method, device, equipment and storage medium, which improves the management efficiency of configuration options.
[0006] To achieve the above object, the present application provides a configuration option management method, which is applied to a basic input and output system, and the method includes:
[0007] Determine a configuration option modification mode, a target configuration option to be modified, and a configuration value of the target configuration option after modification, and apply the configuration value of the target configuration option after modification; wherein the configuration option modification mode includes a first configuration option modification mode and a second configuration option modification mode, the first configuration option modification mode is a modification mode through a baseboard management controller out-of-band, and the second configuration option modification mode is a modification mode through a setting page of the basic input and output system;
[0008] If the configuration option modification mode is the first configuration option modification mode, sending the application result to the baseboard management controller, so that the baseboard management controller records the application result, the target configuration option and the modified configuration value of the target configuration option through a log;
[0009] If the configuration option modification mode is the second configuration option modification mode, the target configuration option and the modified configuration value of the target configuration option are sent to the baseboard management controller, so that the baseboard management controller records the target configuration option and the modified configuration value of the target configuration option through a log.
[0010] The step of sending the target configuration option and the modified configuration value of the target configuration option to a baseboard management controller includes:
[0011] A first configuration file is generated based on the target configuration option and the modified configuration value of the target configuration option, and the first configuration file is sent to a baseboard management controller through a management standard protocol.
[0012] Wherein, determining that there is a modified target configuration option and the modified configuration value of the target configuration option includes:
[0013] If the configuration option modification mode is the first configuration option modification mode, obtaining a modified target configuration option and a modified configuration value of the target configuration option from the baseboard management controller;
[0014] If the configuration option modification mode is the second configuration option modification mode, it is determined that there is a modified target configuration option and a modified configuration value of the target configuration option in the setting page of the basic input and output system.
[0015] Wherein, determining that there is a modified target configuration option and a modified configuration value of the target configuration option in the setting page of the basic input / output system includes:
[0016] sequentially determining the configuration options in the setting page of the basic input / output system as current configuration options, and comparing whether the configuration value of the current configuration option in the setting page is consistent with the current configuration value of the current configuration option in the memory;
[0017] If yes, continue to use the next configuration option as the current configuration item;
[0018] If not, the current configuration option is determined as the target configuration option that has been modified, and the configuration value of the current configuration option in the setting page is determined as the modified configuration value of the target configuration option.
[0019] Wherein, comparing whether the configuration value of the current configuration option in the setting page is consistent with the current configuration value of the current configuration option in the memory includes:
[0020] The configuration value of the current configuration option in the setting page and the current configuration value of the current configuration option in the memory are respectively passed as parameters to the callback function, so as to compare the received parameters using the callback function.
[0021] If the configuration option modification mode is the first configuration option modification mode, before applying the modified configuration value of the target configuration option, the method further includes:
[0022] When the server is started, the current configuration options are sent to the baseboard management controller so that the configuration options can be modified out-of-band by the baseboard management controller;
[0023] Accordingly, determine the modified configuration options, including:
[0024] When the server is restarted, determine whether the modified target configuration option exists;
[0025] If there is a modified target configuration option, obtaining a modified configuration value of the target configuration option from the baseboard management controller;
[0026] If the configuration option modification mode is the second configuration option modification mode, then there is a modified target configuration option and a modified configuration value of the target configuration option, including:
[0027] sequentially determining the configuration options in the setting page of the basic input / output system as current configuration options, and comparing whether the configuration value of the current configuration option in the setting page is consistent with the current configuration value of the current configuration option in the memory;
[0028] If yes, continue to use the next configuration option as the current configuration item;
[0029] If not, determining the current configuration option as the target configuration option that has been modified, and determining the configuration value of the current configuration option in the setting page as the modified configuration value of the target configuration option;
[0030] Correspondingly, after applying the modified configuration value of the target configuration option, the method further includes:
[0031] The target configuration option and the modified configuration value of the target configuration option are displayed on the setting page.
[0032] The current configuration options are sent to the baseboard management controller, including:
[0033] A second configuration file is generated based on the current configuration options, and the second configuration file is sent to the baseboard management controller through a management standard protocol.
[0034] To achieve the above object, the present application provides a configuration option management device, which is applied to a basic input and output system, and the device includes:
[0035] a determination module, used to determine a configuration option modification mode, a target configuration option to be modified, and a configuration value of the target configuration option after modification, and apply the configuration value of the target configuration option after modification; wherein the configuration option modification mode includes a first configuration option modification mode and a second configuration option modification mode, the first configuration option modification mode is a modification mode through an out-of-band baseboard management controller, and the second configuration option modification mode is a modification mode through a setting page of an input / output system;
[0036] a first sending module, configured to send an application result to a baseboard management controller when the configuration option modification mode is the first configuration option modification mode, so that the baseboard management controller records the application result, the target configuration option, and the modified configuration value of the target configuration option through a log;
[0037] The second sending module is used to send the target configuration option and the modified configuration value of the target configuration option to the baseboard management controller when the configuration option modification mode is the second configuration option modification mode, so that the baseboard management controller records the target configuration option and the modified configuration value of the target configuration option through a log.
[0038] To achieve the above objectives, the present application provides an electronic device, including:
[0039] Memory for storing computer programs;
[0040] A processor is used to implement the steps of the configuration option management method as described above when executing the computer program.
[0041] To achieve the above-mentioned purpose, the present application provides a non-volatile storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the configuration option management method as described above are implemented.
[0042] To achieve the above objectives, the present application provides a computer program product, including a computer program, which implements the steps of the above configuration option management method when executed by a processor.
[0043] It can be seen from the above scheme that a configuration option management method provided by the present application is applied to a basic input and output system, and the method includes: determining a configuration option modification method, a target configuration option that has been modified, and a configuration value after the target configuration option is modified, and applying the configuration value after the target configuration option is modified; wherein the configuration option modification method includes a first configuration option modification method and a second configuration option modification method, the first configuration option modification method is a modification method through an out-of-band baseboard management controller, and the second configuration option modification method is a modification method through a setting page of the basic input and output system; if the configuration option modification method is the first configuration option modification method, the application result is sent to the baseboard management controller so that the baseboard management controller records the application result, the target configuration option, and the modified configuration value of the target configuration option through a log; if the configuration option modification method is the second configuration option modification method, the target configuration option and the modified configuration value of the target configuration option are sent to the baseboard management controller so that the baseboard management controller records the target configuration option and the modified configuration value of the target configuration option through a log.
[0044] The configuration option management method provided by the present application records the modified target configuration option and the modified configuration value of the target configuration option through a log after the configuration option is modified. By remotely accessing the log of the baseboard management controller, the change of the configuration option can be easily understood in real time, which simplifies the configuration inspection process and improves the management efficiency. In particular, when the server is in continuous operation, configuration monitoring can be performed without interrupting the service. The present application also discloses a configuration option management device, an electronic device, a non-volatile storage medium and a computer program product, which can also achieve the above technical effects.
[0045] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. The drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific implementation methods, they are used to explain the present disclosure, but do not constitute a limitation to the present disclosure. In the drawings:
[0047] Figure 1is a flow chart of a configuration option management method according to an exemplary embodiment;
[0048] Figure 2 is a flow chart of another configuration option management method according to an exemplary embodiment;
[0049] Figure 3 is a flowchart of another configuration option management method according to an exemplary embodiment;
[0050] Figure 4 is a structural diagram of a configuration option management device according to an exemplary embodiment;
[0051] Figure 5 The figure is a structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0052] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In addition, in the embodiments of the present application, "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0053] The embodiment of the present application discloses a configuration option management method, which improves the management efficiency of configuration options.
[0054] See also Figure 1 , according to an exemplary embodiment, a flowchart of a configuration option management method is shown, such as Figure 1 As shown, including:
[0055] S101: Determine a configuration option modification mode, a target configuration option to be modified, and a configuration value of the target configuration option after modification, and apply the configuration value of the target configuration option after modification; wherein the configuration option modification mode includes a first configuration option modification mode and a second configuration option modification mode, the first configuration option modification mode is a modification mode through a baseboard management controller out-of-band, and the second configuration option modification mode is a modification mode through a setting page of the basic input and output system;
[0056] The execution subject of this embodiment is the basic input and output system of the computer. There are mainly two ways for users to modify BIOS configuration options, namely the first configuration option modification method and the second configuration option modification method. The first configuration option modification method is to modify out-of-band through BMC (Baseboard Management Controller) based on Redfish (a management standard protocol based on HTTPs service), and the second configuration option modification method is to modify directly through the BIOS setup interface. Regardless of which configuration option modification method is used, the BIOS needs to determine the target configuration option that has been modified and the modified configuration value of the target configuration option, and then apply the modified configuration value of the target configuration option.
[0057] As a feasible implementation manner, determining a target configuration option that has been modified and a configuration value of the target configuration option after being modified includes: if the configuration option modification method is the first configuration option modification method, obtaining the target configuration option that has been modified and the configuration value of the target configuration option after being modified from the baseboard management controller; if the configuration option modification method is the second configuration option modification method, determining the target configuration option that has been modified and the configuration value of the target configuration option after being modified in a setting page of the basic input / output system.
[0058] The modification process using the first configuration option modification method is convenient and efficient. Once the BIOS option configuration file on the BMC side changes, the BIOS will immediately read the latest configuration file from the BMC through the Redfish protocol. During the BIOS POST (power-on self-test) process, these new configuration options will take effect, ensuring that the system is initialized according to the user's latest settings.
[0059] The modification process using the second configuration option modification method is more intuitive. Users can directly modify the configuration options in the BIOS setup interface. Similarly, during the BIOS POST (power-on self-test) process, these new configuration options will take effect, ensuring that the system is initialized according to the user's latest settings.
[0060] As a feasible implementation manner, determining that there is a modified target configuration option and the modified configuration value of the target configuration option in the setting page of the basic input / output system includes: determining the configuration options in the setting page of the basic input / output system as current configuration options in sequence, and comparing whether the configuration value of the current configuration option in the setting page is consistent with the current configuration value of the current configuration option in the memory; if so, continuing to use the next configuration option as the current configuration item; if not, determining the current configuration option as the modified target configuration option, and determining the configuration value of the current configuration option in the setting page as the modified configuration value of the target configuration option.
[0061] In a specific implementation, the BIOS will compare the configuration value of each configuration option in the setup page with the current configuration value of the corresponding configuration option in the memory one by one to identify which configuration options have changed. The memory here can be NVRAM (Non-Volatile Random Access Memory), where the current configuration options can be stored in the form of a hardware information table. The changed configuration options will be stored in a specific table so that the currently modified configuration options can be displayed in the BIOS setup interface.
[0062] As a feasible implementation method, comparing whether the configuration value of the current configuration option in the setting page is consistent with the current configuration value of the current configuration option in the memory, includes: passing the configuration value of the current configuration option in the setting page and the current configuration value of the current configuration option in the memory as parameters to the callback function respectively, so as to use the callback function to compare the received parameters.
[0063] In a specific implementation, in the BIOS setup page, the user can set an option to pass the configuration value of the current configuration option in the setup page and the current configuration value of the current configuration option in the memory as parameters to a callback function, and use the callback function for comparison to identify which configuration options have changed during the user's modification process.
[0064] S102: If the configuration option modification mode is the first configuration option modification mode, sending the application result to the baseboard management controller, so that the baseboard management controller records the application result, the target configuration option and the modified configuration value of the target configuration option through a log;
[0065] In a specific implementation, if the first configuration option modification method is adopted, after the BIOS applies the modified configuration value of the target configuration option, it will feed back the application result to the BMC through the redfish protocol, and the BMC is responsible for recording the application result, the target configuration option, and the modified configuration value of the target configuration option in the log. In this way, the user can easily view the current BIOS configuration status to ensure that the system runs as expected.
[0066] S103: If the configuration option modification mode is the second configuration option modification mode, sending the target configuration option and the modified configuration value of the target configuration option to a baseboard management controller, so that the baseboard management controller records the target configuration option and the modified configuration value of the target configuration option through a log.
[0067] In a specific implementation, if the second configuration option modification method is adopted, after the BIOS applies the modified configuration value of the target configuration option, it will send the modified target configuration option and the modified configuration value of the target configuration option to the BMC, which will record it in the log. This mechanism enables users to monitor the configuration status of the BIOS in real time and discover and respond to any potential problems in a timely manner.
[0068] As a feasible implementation, sending the target configuration option and the modified configuration value of the target configuration option to the baseboard management controller includes: generating a first configuration file based on the target configuration option and the modified configuration value of the target configuration option, and sending the first configuration file to the baseboard management controller through a management standard protocol. The first configuration file here can be a file in JSON (JavaScript Object Notation) format, and the management standard protocol can be Redfish.
[0069] The configuration option management method provided by the embodiment of the present application is that after modifying the configuration option, the baseboard management controller records the modified target configuration option and the modified configuration value of the target configuration option through a log. By remotely accessing the log of the baseboard management controller, it is convenient to understand the changes of the configuration options in real time, simplifying the configuration inspection process, and improving management efficiency. In particular, when the server is continuously operating, configuration monitoring can be performed without interrupting the service. In addition, this embodiment provides significant support for fault diagnosis. When certain system failures occur, the recorded BIOS option configuration changes can help determine the analysis direction of the failure. In the related art, when the system has a downtime problem, it is usually necessary to restart the system to obtain the BIOS configuration, but after the restart, the problem may not reappear, making troubleshooting more difficult. In this embodiment, the user can obtain the configuration change log during system operation, so as to locate and solve the problem more quickly, reducing the diagnostic blind spots caused by the restart.
[0070] The embodiment of the present application discloses a configuration option management method when the first configuration option modification method is adopted, specifically:
[0071] See also Figure 2 , a flowchart of another configuration option management method according to an exemplary embodiment is shown, such as Figure 2 As shown, including:
[0072] S201: When the server is started, the current configuration options are sent to the baseboard management controller so that the configuration options can be modified out-of-band by the baseboard management controller;
[0073] As a feasible implementation, sending the current configuration options to the baseboard management controller includes: generating a second configuration file based on the current configuration options, and sending the second configuration file to the baseboard management controller through a management standard protocol. The second configuration file here can be a file in JSON format, and the management standard protocol can be Redfish.
[0074] S202: After the server is restarted, determine whether there is a modified target configuration option; if there is a modified target configuration option, obtain the modified configuration value of the target configuration option from the baseboard management controller;
[0075] As a feasible implementation method, after modifying the configuration options out-of-band by the baseboard management controller, the baseboard management controller sets the target flag in the memory to a first preset value. When the server is started, the basic input and output system reads the target flag. If the target flag is the first preset value, it is determined that there is a modified configuration option, and the basic input and output system obtains the modified configuration option from the baseboard management controller.
[0076] It should be noted that if the user modifies the configuration option out-of-band, the BMC will set a flag bit (target flag bit) in the memory to the first preset value, such as 1. By default, the target flag bit is the second preset value, such as 0, that is, when the current configuration option is not modified, the target flag bit is the second preset value. After each system startup, the BIOS reads the value of the target flag bit. If the target flag bit is the first preset value, it means that the user has modified the configuration option out-of-band, and the BIOS obtains the modified configuration option from the BMC.
[0077] S203: Apply the modified configuration value of the target configuration option;
[0078] S204: Send the application result to the baseboard management controller, so that the baseboard management controller records the application result, the target configuration option, and the modified configuration value of the target configuration option through a log.
[0079] In this embodiment, each time the system is powered on, the BIOS sends the current option configuration file to the BMC in JSON format via the Redfish protocol. This configuration file can be modified through out-of-band management, such as remote update and management using the Redfish protocol. If the BIOS option configuration file changes, the BIOS obtains the updated configuration file via the Redfish protocol each time the system is powered on and applies these configurations. These new settings take effect during the system startup process. The BIOS feeds back the application results to the BMC, which records these results in a log to facilitate users to view and audit the current BIOS configuration status.
[0080] The embodiment of the present application discloses a configuration option management method when the second configuration option modification method is adopted, specifically:
[0081] See also Figure 3 , a flowchart of another configuration option management method according to an exemplary embodiment is shown, such as Figure 3 As shown, including:
[0082] S301: sequentially determining configuration options in the setting page of the basic input / output system as current configuration options, and comparing whether the configuration value of the current configuration option in the setting page is consistent with the current configuration value of the current configuration option in the memory; if so, continuing to use the next configuration option as the current configuration option; if not, determining the current configuration option as a target configuration option to be modified, and determining the configuration value of the current configuration option in the setting page as the modified configuration value of the target configuration option;
[0083] S302: Apply the modified configuration value of the target configuration option;
[0084] S303: Displaying the target configuration option and the modified configuration value of the target configuration option on the setting page;
[0085] S304: Send the target configuration option and the modified configuration value of the target configuration option to a baseboard management controller, so that the baseboard management controller records the target configuration option and the modified configuration value of the target configuration option through a log.
[0086] In this embodiment, in the BIOS setup page, the user can set an option to use a callback function to compare the configuration options in the setup page with the current configuration options in the memory. This comparison helps identify which BIOS configuration options have changed during the user's modification process. The identified change data will be stored in a table, which is used to display the currently modified BIOS options in the BIOS setup interface. In addition, the system will generate a JSON file and synchronize these changed data to the BMC through the Redfish protocol. After receiving this data, the BMC will record it in the log so that the user can monitor and review the changes in the BIOS configuration in real time.
[0087] This embodiment significantly improves the user experience. After manually modifying the configuration in the BIOS Setup interface, it is often difficult to view all modified BIOS options at once with the traditional method, and the user needs to check them one by one. In this embodiment, the BMC can automatically record all modified BIOS configurations and display them through the Redfish protocol or BMC log. The user can clearly understand all changes and avoid the tedious process of manual verification. This automated recording and reporting mechanism not only improves the user experience, but also reduces the possibility of human error, making BIOS configuration management more intuitive and efficient.
[0088] A configuration option management device provided in an embodiment of the present application is introduced below. The configuration option management device described below and the configuration option management method described above can refer to each other.
[0089] See also Figure 4 , according to an exemplary embodiment, a structural diagram of a configuration option management device is shown, such as Figure 4 As shown, including:
[0090] The determination module 401 is used to determine a configuration option modification mode, a target configuration option to be modified, and a configuration value of the target configuration option after modification, and apply the configuration value of the target configuration option after modification; wherein the configuration option modification mode includes a first configuration option modification mode and a second configuration option modification mode, wherein the first configuration option modification mode is a modification mode through an out-of-band baseboard management controller, and the second configuration option modification mode is a modification mode through a setting page of an input / output system;
[0091] A first sending module 402 is used to send the application result to the baseboard management controller when the configuration option modification mode is the first configuration option modification mode, so that the baseboard management controller records the application result, the target configuration option and the modified configuration value of the target configuration option through a log;
[0092] The second sending module 403 is used to send the target configuration option and the modified configuration value of the target configuration option to the baseboard management controller when the configuration option modification mode is the second configuration option modification mode, so that the baseboard management controller records the target configuration option and the modified configuration value of the target configuration option through a log.
[0093] The configuration option management device provided in the embodiment of the present application, after modifying the configuration option, the baseboard management controller records the modified target configuration option and the modified configuration value of the target configuration option through a log. By remotely accessing the log of the baseboard management controller, the changes of the configuration options can be conveniently understood in real time, which simplifies the configuration checking process and improves the management efficiency. In particular, when the server is continuously operating, configuration monitoring can be performed without interrupting the service.
[0094] Based on the above embodiment, as a preferred implementation, the second sending module 403 is specifically used to: generate a first configuration file based on the target configuration option and the modified configuration value of the target configuration option, and send the first configuration file to the baseboard management controller through the management standard protocol.
[0095] Based on the above embodiment, as a preferred implementation mode, the determination module 401 is specifically used to: determine a configuration option modification method; if the configuration option modification method is the first configuration option modification method, obtain the modified target configuration option and the modified configuration value of the target configuration option from the baseboard management controller; if the configuration option modification method is the second configuration option modification method, determine the modified target configuration option and the modified configuration value of the target configuration option in the setting page of the basic input and output system.
[0096] On the basis of the above embodiment, as a preferred implementation mode, the determination module 401 is specifically used to: determine the configuration options in the setting page of the basic input and output system as the current configuration options in turn, and compare whether the configuration value of the current configuration option in the setting page is consistent with the current configuration value of the current configuration option in the memory; if so, continue to use the next configuration option as the current configuration item; if not, determine the current configuration option as the target configuration option that has been modified, and determine the configuration value of the current configuration option in the setting page as the modified configuration value of the target configuration option.
[0097] Based on the above embodiments, as a preferred implementation mode, the determination module 401 is specifically used to: pass the configuration value of the current configuration option in the setting page and the current configuration value of the current configuration option in the memory as parameters to the callback function respectively, so as to use the callback function to compare the received parameters.
[0098] Based on the above embodiment, as a preferred implementation manner, if the configuration option modification manner is the first configuration option modification manner, it also includes:
[0099] A third sending module is used to send the current configuration options to the baseboard management controller after the server is started, so as to modify the configuration options in an out-of-band manner of the baseboard management controller;
[0100] Accordingly, the determination module 401 is specifically used to: after the server is restarted, determine whether there is a modified target configuration option; if there is a modified target configuration option, obtain the modified configuration value of the target configuration option from the baseboard management controller;
[0101] If the configuration option modification mode is the second configuration option modification mode, the determination module 401 is specifically used to: sequentially determine the configuration options in the setting page of the basic input and output system as current configuration options, and compare whether the configuration value of the current configuration option in the setting page is consistent with the current configuration value of the current configuration option in the memory; if so, continue to use the next configuration option as the current configuration item; if not, determine the current configuration option as the target configuration option to be modified, and determine the configuration value of the current configuration option in the setting page as the modified configuration value of the target configuration option;
[0102] Accordingly, the device further comprises:
[0103] The display module is used to display the target configuration option and the modified configuration value of the target configuration option on the setting page.
[0104] Based on the above embodiment, as a preferred implementation mode, the third sending module is specifically used to: generate a second configuration file based on the current configuration options, and send the second configuration file to the baseboard management controller through the management standard protocol.
[0105] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0106] Based on the hardware implementation of the above program module, and in order to implement the method of the embodiment of the present application, the embodiment of the present application also provides an electronic device, Figure 5 FIG. 1 is a structural diagram of an electronic device according to an exemplary embodiment. Figure 5 As shown, the electronic equipment includes:
[0107] Communication interface 1, capable of exchanging information with other devices such as network devices;
[0108] The processor 2 is connected to the communication interface 1 to implement information exchange with other devices, and is used to execute the configuration option management method provided by one or more technical solutions when running a computer program. The computer program is stored in the memory 3.
[0109] Of course, in actual application, the various components in the electronic device are coupled together through the bus system 4. It can be understood that the bus system 4 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 4 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 5 Various buses are labeled as bus system 4.
[0110] The memory 3 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program used to operate on the electronic device.
[0111] It can be understood that the memory 3 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAMbus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 3 described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memories.
[0112] The method disclosed in the above embodiment of the present application can be applied to the processor 2, or implemented by the processor 2. The processor 2 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 2 or the instruction in the form of software. The above processor 2 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 2 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the memory 3, and the processor 2 reads the program in the memory 3 and completes the steps of the above method in combination with its hardware.
[0113] When the processor 2 executes the program, the corresponding processes in the various methods of the embodiments of the present application are implemented, which will not be repeated here for the sake of brevity.
[0114] In an exemplary embodiment, the embodiment of the present application further provides a non-volatile storage medium storing a computer program, which can be executed by the processor 2 to complete the steps of the aforementioned method.
[0115] In an exemplary embodiment, the present application also provides a computer program product, including a computer program, which is executed by the processor 2 to complete the steps of the aforementioned method.
[0116] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to computer program instructions, and the aforementioned computer program can be stored in a non-volatile storage medium. When the computer program is executed, it executes the steps of the above-mentioned method embodiment. Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product, which is stored in a non-volatile storage medium and includes a number of instructions for an electronic device (which can be a personal computer, a server, a network device, etc.) to execute all or part of the methods described in each embodiment of the present application.
[0117] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A configuration option management method, characterized in that: Applied to a basic input and output system, the method comprises: Determine a configuration option modification mode, a target configuration option to be modified, and a configuration value of the target configuration option after modification, and apply the configuration value of the target configuration option after modification; wherein the configuration option modification mode includes a first configuration option modification mode and a second configuration option modification mode, the first configuration option modification mode is a modification mode through a baseboard management controller out-of-band, and the second configuration option modification mode is a modification mode through a setting page of the basic input and output system; If the configuration option modification mode is the first configuration option modification mode, sending the application result to the baseboard management controller, so that the baseboard management controller records the application result, the target configuration option and the modified configuration value of the target configuration option through a log; If the configuration option modification mode is the second configuration option modification mode, the target configuration option and the modified configuration value of the target configuration option are sent to the baseboard management controller, so that the baseboard management controller records the target configuration option and the modified configuration value of the target configuration option through a log.
2. The configuration option management method according to claim 1, characterized in that: Sending the target configuration option and the modified configuration value of the target configuration option to a baseboard management controller includes: A first configuration file is generated based on the target configuration option and the modified configuration value of the target configuration option, and the first configuration file is sent to a baseboard management controller through a management standard protocol.
3. The configuration option management method according to claim 1, characterized in that: Determining whether there is a modified target configuration option and a modified configuration value of the target configuration option includes: If the configuration option modification mode is the first configuration option modification mode, obtaining a modified target configuration option and a modified configuration value of the target configuration option from the baseboard management controller; If the configuration option modification mode is the second configuration option modification mode, it is determined that there is a modified target configuration option and a modified configuration value of the target configuration option in the setting page of the basic input and output system.
4. The configuration option management method according to claim 3, characterized in that: Determining in the setting page of the basic input / output system that there is a modified target configuration option and a modified configuration value of the target configuration option includes: sequentially determining the configuration options in the setting page of the basic input / output system as current configuration options, and comparing whether the configuration value of the current configuration option in the setting page is consistent with the current configuration value of the current configuration option in the memory; If yes, continue to use the next configuration option as the current configuration item; If not, the current configuration option is determined as the target configuration option that has been modified, and the configuration value of the current configuration option in the setting page is determined as the modified configuration value of the target configuration option.
5. The configuration option management method according to claim 4, characterized in that: Comparing whether the configuration value of the current configuration option in the setting page is consistent with the current configuration value of the current configuration option in the memory includes: The configuration value of the current configuration option in the setting page and the current configuration value of the current configuration option in the memory are respectively passed as parameters to the callback function, so as to compare the received parameters using the callback function.
6. The configuration option management method according to claim 1, characterized in that: If the configuration option modification mode is the first configuration option modification mode, before applying the modified configuration value of the target configuration option, the method further includes: When the server is started, the current configuration options are sent to the baseboard management controller so that the configuration options can be modified out-of-band by the baseboard management controller; Accordingly, determine the modified configuration options, including: When the server is restarted, determine whether the modified target configuration option exists; If there is a modified target configuration option, obtaining a modified configuration value of the target configuration option from the baseboard management controller; If the configuration option modification mode is the second configuration option modification mode, then there is a modified target configuration option and a modified configuration value of the target configuration option, including: sequentially determining the configuration options in the setting page of the basic input / output system as current configuration options, and comparing whether the configuration value of the current configuration option in the setting page is consistent with the current configuration value of the current configuration option in the memory; If yes, continue to use the next configuration option as the current configuration item; If not, determining the current configuration option as the target configuration option that has been modified, and determining the configuration value of the current configuration option in the setting page as the modified configuration value of the target configuration option; Correspondingly, after applying the modified configuration value of the target configuration option, the method further includes: The target configuration option and the modified configuration value of the target configuration option are displayed on the setting page.
7. The configuration option management method according to claim 6, characterized in that: Sends the current configuration options to the baseboard management controller, including: A second configuration file is generated based on the current configuration options, and the second configuration file is sent to the baseboard management controller through a management standard protocol.
8. A configuration option management device, characterized in that: Applied to a basic input and output system, the device comprises: a determination module, used to determine a configuration option modification mode, a target configuration option to be modified, and a configuration value of the target configuration option after modification, and apply the configuration value of the target configuration option after modification; wherein the configuration option modification mode includes a first configuration option modification mode and a second configuration option modification mode, the first configuration option modification mode is a modification mode through an out-of-band baseboard management controller, and the second configuration option modification mode is a modification mode through a setting page of an input / output system; a first sending module, configured to send an application result to a baseboard management controller when the configuration option modification mode is the first configuration option modification mode, so that the baseboard management controller records the application result, the target configuration option, and the modified configuration value of the target configuration option through a log; The second sending module is used to send the target configuration option and the modified configuration value of the target configuration option to the baseboard management controller when the configuration option modification mode is the second configuration option modification mode, so that the baseboard management controller records the target configuration option and the modified configuration value of the target configuration option through a log.
9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the configuration option management method according to any one of claims 1 to 7 when executing the computer program.
10. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, and when the computer program is executed, the steps of the configuration option management method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Method and device for reporting setting option information, computer equipment and storage medium
CN119938155A
Configuration reservation method, device, equipment and medium
CN120447993A
Configuration retention method, device, equipment and medium
CN120447993B
Configuration option synchronization method and electronic equipment
CN120743382A