Method and system for managing configuration information
By detecting configuration management instructions and using flag information to determine changes in configuration information, the changing configuration information is achieved quickly, and the problem of inefficient configuration information management in the prior art is solved, and management efficiency and security are improved.
Patent Information
- Application Number
- CN202411988364.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-29
AI Technical Summary
In the prior art, when managing server configuration information, it is difficult to quickly locate user-modified configuration information, resulting in inefficient management, and when the configuration information is not set, it may cause server abnormalities or business system failures.
By detecting the configuration management instructions, determine whether the flag information has changed, obtain the configuration information corresponding to the target flag information, and display the configuration information using the preset modification menu when the configuration information is not default.
Improve the management efficiency of configuration information, reduce operation and maintenance costs, and quickly lock and locate the configuration information that has changed, avoiding server abnormalities or business system failures caused by improper configuration information.
Smart Images

Figure CN119902808A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of configuration information management, and in particular, relates to a configuration information management method, system, device, electronic device and computer program product. Background Art
[0002] When a server device leaves the factory, it has a set of default configuration information. For example, the server's Basic Input Output System (BIOS) is responsible for setting parameters for various configuration information, and the configuration information is set to the default value before leaving the factory. In actual use, users will modify the configuration information according to their actual business scenarios.
[0003] However, improper configuration information may cause server anomalies or business system failures. Due to the large amount of configuration information, when operation and maintenance personnel are troubleshooting, they cannot quickly understand which configuration information has been modified by the user, and may even need to find professional R&D personnel to help locate and analyze the problem. The whole process is time-consuming and labor-intensive, resulting in low management efficiency of configuration information. Summary of the invention
[0004] The embodiments of the present application provide a configuration information management method, system, device and electronic device, which can improve the management efficiency of configuration information.
[0005] In a first aspect, an embodiment of the present application provides a configuration information management method, which is applied to a server, including:
[0006] In the case where a configuration management instruction is detected to be triggered, determining whether flag information has changed; the flag information corresponds to the configuration information, and the flag information is used to indicate whether the configuration information has changed;
[0007] When it is determined that the flag information has changed, acquiring the configuration information corresponding to the target flag information; the target flag information is the flag information that has changed;
[0008] In a case where the target flag information indicates that the configuration information corresponding to the target flag information is not default configuration information, the configuration information corresponding to the target flag information is displayed using a preset modification item menu.
[0009] In a second aspect, an embodiment of the present application provides a configuration information management device, which is applied to a server, including:
[0010] A flag information determination module, used to determine whether flag information has changed when a configuration management instruction is detected to be triggered; the flag information corresponds to the configuration information, and the flag information is used to indicate whether the configuration information has changed;
[0011] A configuration information acquisition module, configured to acquire the configuration information corresponding to target flag information when it is determined that the flag information has changed; the target flag information is the flag information that has changed;
[0012] The configuration information display module is used to display the configuration information corresponding to the target flag information using a preset modification item menu when the target flag information indicates that the configuration information corresponding to the target flag information is not the default configuration information.
[0013] In a third aspect, an embodiment of the present application provides a configuration information management system, comprising: the server as described in the first aspect, and a client communicating with the server, wherein;
[0014] The server is used to synchronize the configuration information in the server to the client page preset in the client;
[0015] The client is used to manage the configuration information in the server through the preset client page.
[0016] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the configuration information management method described in the first aspect when executing the computer program.
[0017] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the configuration information management method described in the first aspect above are implemented.
[0018] In a sixth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the configuration information management method described in any one of the first aspects above.
[0019] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0020] The present application determines whether to display the configuration information corresponding to the target flag information in a preset modification item menu through the change of the target flag information, thereby improving the management efficiency of the configuration information. Specifically, when the configuration management instruction is detected to be triggered, it is first determined whether the flag information of the configuration information in the server has changed. Since the flag information is used to indicate whether the configuration information has changed, when it is determined that the flag information in the server has changed, the configuration information corresponding to the target flag information can be quickly obtained, that is, the changed configuration information can be quickly locked. At the same time, when the above-mentioned target flag information indicates that the configuration information corresponding to the target flag information is not the default configuration information, the configuration information corresponding to the target flag information is displayed using the preset modification item menu, and there is no need to manually check the changed configuration information. The changed configuration information can be quickly located through the above-mentioned preset modification item menu, thereby reducing the operation and maintenance costs and improving the management efficiency of the configuration information. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying any creative work.
[0022] Figure 1 It is a flowchart of a method for managing configuration information provided by an embodiment of the present application;
[0023] Figure 2 is a schematic diagram of a BIOS Setup menu of a newly added preset modification item menu provided in an embodiment of the present application;
[0024] Figure 3 is a schematic diagram of a preset variable region provided in an embodiment of the present application;
[0025] Figure 4 It is a schematic diagram of the division and storage of configuration information in a preset variable area provided in an embodiment of the present application;
[0026] Figure 5 is a schematic diagram of a configuration information display process provided by an embodiment of the present application;
[0027] Figure 6 This is a functional architecture diagram of a management system for configuration information provided by an embodiment of the present application;
[0028] Figure 7 is a schematic diagram of the structure of a device for managing configuration information provided in an embodiment of the present application;
[0029] Figure 8It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0031] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0032] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0033] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0034] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0035] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0036] Users will modify the configuration information of the server according to actual business needs, thereby adjusting the system information and environmental information of the server. For example, users can modify the configuration information through the BIOS Setup option. Among them, the BIOS Setup option is a text-based tool that allows users to browse the configuration information and adjust the configuration information to adjust the current settings and environmental information of the system. When the server equipment leaves the factory, there is a set of default BIOS Setup options that can be used normally. However, in actual use, users will modify the BIOS Setup options according to their actual business scenarios to adjust the configuration information. When the BIOS Setup options are not set properly, it may cause server abnormalities or business system failures.
[0037] At present, the management of configuration information mainly involves the operation and maintenance personnel searching for the configuration information corresponding to the BIOS Setup options when problems arise due to improper BIOS Setup option settings, and determining which configuration information has been modified by the user to cause the problem. Due to the large amount of configuration information corresponding to the BIOS Setup options, it is often difficult for operation and maintenance personnel to quickly understand which BIOS Setup options have been modified by the user, and they often need to locate and analyze the problem together with professional R&D personnel. The entire operation is time-consuming and labor-intensive, which greatly increases the operation and maintenance costs and results in low efficiency in the management of configuration information. In addition, when it is necessary to restore the modified configuration information to the default configuration information, due to the large number of BIOS Setup options, it is difficult to find, and it is also impossible to quickly and accurately restore the modified configuration information to the default configuration information.
[0038] Therefore, the above method cannot efficiently manage the configuration information, resulting in low management efficiency of the configuration information.
[0039] In order to improve the management efficiency of configuration information, the present application provides a configuration information management method implemented by a client. In this method, when a configuration management instruction is detected to be triggered, it is determined whether the flag information corresponding to the configuration information has changed. When it is determined that the flag information has changed, the configuration information corresponding to the target flag information is obtained. When the target flag information indicates that the corresponding configuration information is not the default configuration information, the configuration information corresponding to the target flag information is displayed using a preset modification item menu.
[0040] Figure 1 A flow chart of a configuration information management method provided in an embodiment of the present application is shown, which is applied to a server and is described in detail as follows:
[0041] S11. When a configuration management instruction is detected to be triggered, determine whether flag information has changed; the flag information corresponds to configuration information, and the flag information is used to indicate whether the configuration information has changed.
[0042] The server may be a server or a service program applied to the server (e.g., a BIOS program embedded in the server). The configuration management instruction may be an instruction automatically triggered or manually triggered by a user. For example, the configuration management instruction may be an instruction automatically triggered after the server is powered on or restarted, or may be an instruction manually triggered by a user through an input device (e.g., a mouse, keyboard, etc.).
[0043] Assuming that the above-mentioned server is the BIOS program in the server, the above-mentioned BIOS program will be stored in the flash chip of the server motherboard, and a BIOS variable area will be divided in the flash chip to store the configuration information in the BIOS Setup menu. The content in the BIOS variable area can ensure that the data is not lost when the server loses power. At the same time, when the configuration information is manually modified and saved, the modified configuration information will be saved in the BIOS variable area. The above-mentioned flag information can be represented by bytes (for example, each flag information is represented by 1 byte). When a certain configuration information changes, the corresponding flag information follows the change, so that the above-mentioned flag information can indicate whether the corresponding configuration information has changed.
[0044] For example, when the configuration information is the default configuration information, the corresponding flag information defaults to 0; when the configuration information is modified from the default configuration information to other non-default configuration information, the corresponding flag information becomes 1.
[0045] It should be noted that the above configuration information and its corresponding flag information can be stored in the same BIOS variable area or different BIOS variable areas, which is not limited here.
[0046] Specifically, when a configuration management instruction is detected to be triggered, the flag information in the BIOS variable area can be traversed. For each piece of flag information traversed, it is determined whether the identification information has changed by judging whether it is the default value. If it is judged that the flag information has changed, it means that the corresponding configuration information has changed. Otherwise, it has not changed.
[0047] In the embodiment of the present application, since the flag information corresponds to the configuration information, and the flag information can indicate whether the corresponding configuration information has changed, whether the corresponding configuration information has changed can be quickly determined by the change of the flag information.
[0048] S2. When it is determined that the flag information has changed, obtain the configuration information corresponding to the target flag information; the target flag information is the flag information that has changed.
[0049] In an embodiment of the present application, when it is determined that the flag information in the BIOS variable area has changed, the changed flag information is used as the above-mentioned target flag information, and the configuration information corresponding to the target flag information is obtained from the BIOS variable area, so that the changed configuration information can be quickly located through the flag information.
[0050] S3. When the target flag information indicates that the configuration information corresponding to the target flag information is not default configuration information, the configuration information corresponding to the target flag information is displayed using a preset modification item menu.
[0051] The above preset modification item menu may be a newly added option interface in the BIOS Setup menu. Figure 2 As shown, the BIOS Setup menu mainly includes: Main Menu (Main), Advanced (Advanced), Server Configuration (SocketConfiguration), System Information (Platform Configuration), Server Management Port (Server Mgmt), Security (Security), Boot (Boot), Save & Exit (Save & Exit) and other first-level menu interfaces, each of which includes several (2 to n) sub-menu interfaces. Among them, the Modify option menu is the above-mentioned preset modification item menu. This menu only displays the configuration information modified based on the default option, that is, when the configuration information corresponding to the flag information is not the default configuration information, it will be displayed through this menu. For example, by default, Advanced (Advanced) -> Network Stack Configuration (Network Stack Configuration) -> Network Stack (Network Stack) is set to Disabled. When it is changed to Enabled, this option will be displayed in the Modify menu.
[0052] Specifically, when it is determined that the target flag information is modified from the default value to other values (for example, from 0 to 1), it means that the corresponding configuration information is also modified from the default configuration information to other non-default configuration information (for example, from the default option to other options), that is, the configuration information corresponding to the target flag information is not the default configuration information. At this time, the configuration information corresponding to the target flag information can be displayed in the preset modification item menu, so that the configuration information of the default configuration change is displayed through the preset modification item menu. Of course, if it is determined that the target flag information is further modified from other values to other non-default values (for example, from 1 to 2), since the configuration information corresponding to the target flag information is not the default configuration information either, the configuration information corresponding to the target flag information will also be displayed in the preset modification item menu.
[0053] The present application determines whether to display the configuration information corresponding to the target flag information in a preset modification item menu through the change of the target flag information, thereby improving the management efficiency of the configuration information. Specifically, when the configuration management instruction is detected to be triggered, it is first determined whether the flag information of the configuration information in the server has changed. Since the flag information is used to indicate whether the configuration information has changed, when it is determined that the flag information in the server has changed, the configuration information corresponding to the target flag information can be quickly obtained, that is, the changed configuration information can be quickly locked. At the same time, when the above-mentioned target flag information indicates that the configuration information corresponding to the target flag information is not the default configuration information, the configuration information corresponding to the target flag information is displayed using the preset modification item menu, and there is no need to manually check the changed configuration information. The changed configuration information can be quickly located through the above-mentioned preset modification item menu, thereby reducing the operation and maintenance costs and improving the management efficiency of the configuration information.
[0054] In another optional embodiment of the present application, in order to more accurately and quickly find the flag information and the corresponding configuration information, the above-mentioned determination of whether the flag information has changed before detecting the configuration management instruction triggering may further include:
[0055] Constructing a preset variable region, wherein the preset variable region includes a first preset variable region and a second preset variable region;
[0056] The configuration information is stored in the first preset variable area, and the flag information corresponding to the configuration information is stored in the second preset variable area.
[0057] Specifically, refer to Figure 3 As shown, a preset variable area can be constructed in a BIOS flash chip, wherein: Figure 3 The BIOS variable area 1 in the BIOS is the first preset variable area, and the BIOS variable area 2 is the second preset variable area; then the configuration information of the server and the flag information corresponding to the configuration information are stored in the first preset variable area (i.e. Figure 3 BIOS variable area 1) and the second preset variable area (i.e. Figure 3 BIOS variable area 2) in the memory can improve the search efficiency of flag information and configuration information by storing them separately.
[0058] It should also be noted that when storing configuration information, a fixed location storage method can be used. Figure 4 As shown, the storage location of the configuration information can be divided according to the BIOS Setup menu, that is, the specific storage location and the configuration information stored in the location are determined according to the multi-level menu of the BIOS Setup menu. Figure 4For example, the main menu (Main) in the BIOS is divided into level 1 to level 5 menus, and the parameter configuration information in level 1 to level 5 menus is stored in BIOS variable area 1. Through this division method, the location where the configuration information is stored is fixed. After a certain configuration information is changed, the storage location of the changed configuration information in BIOS variable area 1 remains unchanged, thereby reducing the maintenance cost of the configuration information and improving the management efficiency of the configuration information.
[0059] Correspondingly, after the flag information corresponding to the configuration information is stored in the second preset variable area, the above-mentioned determination of whether the flag information has changed includes:
[0060] Determine whether the flag information in the second preset variable area changes.
[0061] Specifically, since the second preset variable area only includes flag information corresponding to the configuration information, when the configuration management instruction is detected to be triggered, it is possible to directly check whether the flag information in the second preset variable area has changed, thereby quickly determining whether there is configuration information in which the default configuration has been modified.
[0062] In some embodiments, the determining whether the flag information in the second preset variable area changes includes:
[0063] Traversing the flag information in the second preset variable area;
[0064] For any flag information traversed, compare the flag information with the preset default value of the flag information to see if they are consistent, and obtain a flag comparison result; the flag comparison result is used to indicate whether the flag information has changed.
[0065] Specifically, all flag information in the above-mentioned second preset variable area can be obtained through a preset variable acquisition function (such as the GetVariable function), and then the acquired flag information is traversed to determine whether the traversed flag information is consistent with the preset default value. If the flag comparison result is inconsistent, it means that the corresponding configuration information has changed. Otherwise, it means that the corresponding configuration information has not changed.
[0066] In some embodiments, since the modification of configuration information is diverse, for example, including the modification of default configuration information, the restoration of default configuration information, etc., in order to more accurately determine the change of configuration information, the above-mentioned flag information includes first flag information and second flag information, and the above-mentioned first flag information is used to indicate whether the configuration information is the default configuration information, and the above-mentioned second flag information is used to indicate whether the above-mentioned configuration information at the current moment is the same as the above-mentioned configuration information at the previous moment. For example, if the first flag information is a default value (for example, 0), it means that the corresponding configuration information is the default configuration information, and the first flag information is not a default value (for example, 0), it means that the corresponding configuration information is not the default configuration information; if the second flag information is a default value (for example, 0), it means that the configuration information at the current moment is the same as the configuration information at the previous moment, and the second flag information is not a default value (for example, 0), it means that the configuration information at the current moment is different from the configuration information at the previous moment.
[0067] The comparison of the flag information and the preset default value of the flag information to determine whether they are consistent, and obtaining a flag comparison result, includes:
[0068] Comparing the first flag information with a preset first default value to see if they are consistent, and obtaining a first flag comparison result;
[0069] Comparing the second flag information with a preset second default value to see if they are consistent, and obtaining a second flag comparison result;
[0070] The mark comparison result is determined according to the first mark comparison result and the second mark comparison result.
[0071] Among them, the above-mentioned first flag information and the above-mentioned second flag information can be divided according to bits. Assuming that the above-mentioned flag information is represented by 1 byte (including 8 bits, Bit0~Bit7), then Bit0~Bit3 can be the above-mentioned first flag information, and the corresponding data value can be 0 by default. When the corresponding configuration information is modified from the default configuration information to other non-default configuration information, the data value corresponding to Bit0~Bit3 becomes 1; Bit4~Bit7 can be the above-mentioned second flag information, and the corresponding data value can be 0 by default. When the corresponding configuration information is modified from the default value to other non-default value, the data value corresponding to Bit4~Bit7 is synchronously changed to 1.
[0072] It should be noted that the first flag information and the second flag information mentioned above change synchronously when the configuration information is modified from the default configuration information to other non-default configuration information, and in other cases, the first flag information and the second flag information may not change synchronously. For example, when the configuration information is restored from the non-default configuration information to the default configuration information, the corresponding first flag information changes back to the default value 0, but the second flag information may not change or change to other values.
[0073] Specifically, for any flag information, the first flag information can be compared to see whether it is consistent with the preset first default value to obtain the first flag comparison result, and the second flag information can be compared to see whether it is consistent with the preset second default value to obtain the second flag comparison result. If the first flag comparison result is inconsistent, it means that the first flag information has changed, which means that the default configuration information of the configuration information corresponding to the flag information has been modified, that is, the configuration information corresponding to the flag information is not the default configuration information, otherwise, the configuration information corresponding to the flag information is the default configuration information; if the second flag comparison result is inconsistent, it means that the second flag information has changed, which means that the configuration information at the current moment is different from the configuration information at the previous moment, otherwise, it means that the configuration information at the current moment is the same as the configuration information at the previous moment. The flag comparison result is obtained according to the first flag comparison result and the second flag comparison result, wherein the flag comparison result can reflect whether the first flag information and / or the second flag information of the flag information has changed. It should be noted that the preset first default value and the preset second default value may be the same or different, and are not limited here.
[0074] Among them, for any flag information in the second preset variable area, when it is determined according to the above-mentioned flag comparison result that at least one of the first flag information and the second flag information has changed, it means that the flag information has changed, that is, the configuration information corresponding to the flag information has changed. At this time, the flag information can be determined as the target flag information, and the corresponding configuration information can be obtained from the above-mentioned first preset variable area.
[0075] Optionally, since the above-mentioned first flag information and the second flag information change synchronously when the configuration information is modified from the default configuration to other non-default configurations, the first flag information can be first compared to see whether it is consistent with the preset first default value to obtain the first flag comparison result. If the above-mentioned first flag comparison result is inconsistent, the second flag information does not need to be compared because it changes in the same direction. If the above-mentioned first flag comparison result is consistent, it means that the first flag information has not changed, but because the configuration information is restored to the default configuration information, the second flag information can be continued to be compared to see whether it is consistent with the preset second default value to obtain the second flag comparison result.
[0076] In the embodiment of the present application, by dividing the flag information into the first flag information and the second flag information, and comparing them with the corresponding default values, the change of the corresponding configuration information can be more accurately reflected according to the change of the first flag information and / or the second flag information. In addition, the configuration information that has changed can be determined more accurately and quickly from the first preset variable area through the flag comparison result, thereby improving the management efficiency of the configuration information.
[0077] In some embodiments, when it is determined that the flag information has changed, obtaining the configuration information corresponding to the target flag information includes:
[0078] When it is determined according to the flag comparison result that the flag information in the second preset variable area has changed, the configuration information corresponding to the target flag information is acquired from the first preset variable area.
[0079] Specifically, for any flag information in the second preset variable area, when it is determined according to the above-mentioned flag comparison result that at least one of the first flag information and the second flag information has changed, it indicates that the flag information has changed, that is, the configuration information corresponding to the flag information has changed. At this time, the flag information can be determined as the target flag information, and the corresponding configuration information can be obtained from the above-mentioned first preset variable area.
[0080] In the embodiment of the present application, the changed configuration information can be determined more accurately and quickly from the first preset variable area through the above-mentioned mark comparison result, thereby improving the management efficiency of the configuration information.
[0081] In another optional embodiment of the present application, before determining whether the flag information in the second preset variable area has changed, the method further includes:
[0082] When it is detected that the configuration information is modified, adjusting the flag information of the modified configuration information;
[0083] The modified configuration information is stored in the first preset variable area, and the adjusted flag information is stored in the second preset variable area.
[0084] Specifically, when it is detected that the configuration information is modified from the default configuration information to the non-default configuration information, in the flag information corresponding to the configuration information, the first flag information is modified from the default value to the non-default value, and the second flag information is also modified from the default value to the non-default value; when it is detected that the configuration information is modified from the non-default configuration information to the default configuration information, in the flag information corresponding to the configuration information, the first flag information is also modified from the non-default value to the default value, and the second flag information does not change or changes to another value; when it is detected that the configuration information is modified from the non-default configuration information to other non-default configuration information, in the flag information corresponding to the configuration information, the first flag information and the second flag information may change synchronously or asynchronously. Finally, the modified configuration information is stored in the first preset variable area, and the adjusted flag information is stored in the second preset variable area.
[0085] For example, suppose a certain configuration information includes 4 options, option 1-option 4, and the default configuration is option 1. At this time, the first flag information in the corresponding flag information is 0 (that is, the preset first default value), and the second flag information is also 0 (that is, the preset second default value); when the configuration information is changed to option 2, the first flag information and the second flag information are both changed to 1; when the configuration information is changed from option 2 to option 1, the first flag information changes from 0 to 1, and the second flag information remains 1 or is changed to 2 (indicating that the option has been modified twice); when the configuration information is changed from option 2 to option 3, the first flag information and the second flag information can be modified to 2, indicating that it has been modified twice. Of course, only the second flag information can be modified to 2, and the first flag information remains 1, which is not limited here.
[0086] In the embodiment of the present application, when the configuration information is modified, by adjusting the first flag information and the second flag information in the corresponding flag information, the change status of the flag information and the configuration information can be synchronized more accurately and timely.
[0087] In some embodiments, when the target flag information indicates that the configuration information corresponding to the target flag information is not the default configuration information, displaying the configuration information corresponding to the target flag information using a preset modification item menu includes:
[0088] When it is determined according to the flag comparison result that the first flag information in the target flag information is inconsistent with the first default value, the configuration information corresponding to the target flag information is added to the preset modification item menu, and the preset modification item menu with the configuration information added is displayed.
[0089] Specifically, when it is determined according to the above-mentioned flag comparison result that the first flag information in the target flag information is inconsistent with the first default value, it means that the configuration information corresponding to the target flag information has been modified by the default configuration information, so that it can be determined that the configuration information corresponding to the above-mentioned target flag information is not the default configuration information. At this time, the configuration information corresponding to the target flag information can be added to the above-mentioned preset modification item menu, and the changed configuration information (that is, the configuration information corresponding to the above-mentioned target flag information) is displayed by displaying the above-mentioned preset modification item menu.
[0090] In an embodiment of the present application, when the first flag information in the target flag information is inconsistent with the first default value, by adding the corresponding configuration information to the preset modification item menu, the configuration information of the default configuration changes can be displayed in a timely manner, thereby improving the management efficiency of the configuration information.
[0091] In another optional embodiment of the present application, in the case where it is determined that the flag information in the server has changed, after obtaining the configuration information corresponding to the target flag information, the following further comprises:
[0092] When it is determined according to the flag comparison result that the first flag information in the target flag information is consistent with the first default value, but the second flag information in the target flag information is inconsistent with the second default value, delete the configuration information corresponding to the target flag information in the preset modification item menu.
[0093] Specifically, when it is determined according to the flag comparison result that the first flag information in the target flag information is consistent with the first default value, and the second flag information in the target flag information is inconsistent with the second default value, it means that the configuration information corresponding to the target flag information has been modified by the default configuration information and then restored to the default configuration information. At this time, although the configuration information at the current moment is the default configuration information, the configuration information at the previous moment is the non-default configuration information. Since the configuration information at the previous moment has been displayed through the above-mentioned preset modification item menu after the default configuration information has been modified, in order to avoid the configuration information that has been restored to the default configuration information from being displayed, when it is determined through the change of the target flag information that the configuration information corresponding to the above-mentioned target flag information is the default configuration information, and the above-mentioned default configuration information is different from the previous moment, the configuration information corresponding to the target flag information can be used as the target configuration information, and the same target configuration information can be searched for and deleted in the above-mentioned preset modification item menu.
[0094] In an embodiment of the present application, through the changes in the above-mentioned first flag information and the second flag information, it is possible to more accurately determine the situation in which the default configuration is modified and then restored, so that the corresponding configuration information can be deleted in the preset modification item menu in time, thereby improving the accuracy of the display of the preset modification item menu.
[0095] In another optional embodiment of the present application, the management method further includes:
[0096] When it is determined that the flag information in the server has not changed, a preset configuration menu is displayed, wherein the preset configuration menu includes a configuration information menu and a preset modification item menu, and the configuration information menu includes the configuration information.
[0097] Among them, the above preset configuration menu can be Figure 2 The BIOS Setup menu after the newly added modification menu (i.e. Modify menu) is shown in the figure. The configuration information menu mentioned above is Figure 2 Other menu pages except Modify menu.
[0098] Specifically, when it is determined through the flag comparison result that the first flag information corresponding to the flag information in the server is consistent with the first default value and the second flag information is consistent with the second default value, the preset configuration menu can be directly displayed. The operation and maintenance personnel can manage the configuration information through the preset configuration menu, for example, modify, view, etc.
[0099] In order to better describe the configuration information management method in the embodiment of the present application, Figure 5 Describes the process of displaying configuration information. Figure 5 As shown, assuming that the preset configuration menu is the BIOS Setup menu, the following steps are used to determine whether the preset modification item menu displays configuration information, including: S51, the server is powered on to trigger a configuration management instruction; S52, obtaining the flag information of the second preset variable area; S53, judging whether the first flag information in the flag information is changed, if the first flag information is changed, executing S54, obtaining the configuration information corresponding to the first preset variable area and adding it to the preset modification item menu, and finally executing S57, displaying the BIOS Setup menu; if the first flag information is not changed, executing S55, judging whether the second flag information in the flag information is changed, if the second flag information is changed, executing S56, obtaining the configuration information corresponding to the first preset variable area, and deleting the configuration information from the preset modification item menu, and finally executing S57, displaying the BIOS Setup menu; if the second flag information is not changed, directly executing S57, displaying the BIOS Setup menu.
[0100] The present application also provides a configuration information management system for executing the configuration information management method described in the above embodiment. The configuration information management system provided by the present application is described below. The configuration information management system described below and the configuration information management method described above can be referenced to each other.
[0101] Reference Figure 6 FIG. 1 is a functional architecture diagram of a configuration information management system provided by an embodiment of the present application. In this embodiment, the configuration information management system 6 includes a server 60 of the configuration information management method described above, and a client 61 communicating with the server.
[0102] The server 60 is used to synchronize the configuration information in the server 60 to the client page preset in the client 61;
[0103] The client 61 is used to manage the configuration information in the server through the preset client page.
[0104] In order to facilitate the management of the configuration information of the server, the configuration information of the server can be managed through a remote client. The client can be a baseboard management controller (BMC), and the client page can be a BMC page. The user can view the BIOS Setup menu through the BMC page and configure the configuration information in the BIOS Setup menu through the BMC web page.
[0105] Specifically, first, a modification item page corresponding to the above preset modification item menu is added to the BMC webpage, that is, a Modify page corresponding to the Modify menu. Assuming that the above server is BIOS, after the BIOS side is powered on, the BIOS side will send the address information of the first preset variable area and the second preset variable area in the Flash chip to the BMC side; when the BIOS side modifies the configuration information in the BIOSSetup menu, the flag information corresponding to the configuration information will be adjusted synchronously, and then the BIOS side will restart to refresh the data in the first preset variable area and the second preset variable area. After the BMC side receives the notification of successful restart of the BIOS side, the BMC side actively obtains the flag information in the second preset variable area, traverses the modified flag information (that is, the target flag information), and then finds the corresponding configuration information and displays it on the Modify page. When the user modifies the configuration information in the BIOSSetup menu on the BMC side (for example, modifying it to non-default configuration information or restoring it to default configuration information), the BMC side will synchronously adjust the corresponding flag information, and then restart the BIOS side. After the BIOS side restarts, it will refresh the data in the first preset variable area and the second preset variable area. The BMC side will add configuration information to the Modify page or delete the configuration information in the Modify page according to the changes in the data in the first preset variable area and the second preset variable area. It should be noted that the change relationship between the configuration information in the first preset variable area and the flag information in the second preset variable area is similar to that in the above embodiment, and will not be repeated here.
[0106] In the embodiment of the present application, through the above-mentioned client, the configuration information of the server can be remotely managed, further improving the management efficiency of the configuration information.
[0107] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0108] Corresponding to the configuration information management method described in the above embodiment, Figure 7A schematic diagram of the structure of a configuration information management device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0109] Reference Figure 7 The device may be a configuration information management device 71, which may be applied to a server, and includes a flag information determination module 711, a configuration information acquisition module 712, and a configuration information display module 713.
[0110] Reference Figure 7 , the configuration information management device 71 includes:
[0111] The flag information determination module 711 is used to determine whether the flag information has changed when a configuration management instruction is detected to be triggered; the flag information corresponds to the configuration information, and the flag information is used to indicate whether the configuration information has changed;
[0112] The configuration information acquisition module 712 is used to acquire the configuration information corresponding to the target flag information when it is determined that the flag information has changed; the target flag information is the flag information that has changed;
[0113] The configuration information display module 713 is used to display the configuration information corresponding to the target flag information using a preset modification item menu when the target flag information indicates that the configuration information corresponding to the target flag information is not the default configuration information.
[0114] In another optional embodiment of the present application, in order to more accurately and quickly find the flag information and the corresponding configuration information, the configuration information management device 71 further includes a variable storage module, and the variable storage module is used to determine whether the flag information has changed before detecting that the configuration management instruction is triggered, including:
[0115] Constructing a preset variable region, wherein the preset variable region includes a first preset variable region and a second preset variable region;
[0116] The configuration information is stored in the first preset variable area, and the flag information corresponding to the configuration information is stored in the second preset variable area.
[0117] Correspondingly, after the flag information corresponding to the configuration information is stored in the second preset variable area, the flag information determination module 711 determines whether the flag information has changed, including:
[0118] Determine whether the flag information in the second preset variable area changes.
[0119] In some embodiments, when the flag information determination module 711 determines whether the flag information in the second preset variable area has changed, it includes:
[0120] Traversing the flag information in the second preset variable area;
[0121] For any flag information traversed, compare the flag information with the preset default value of the flag information to see if they are consistent, and obtain a flag comparison result; the flag comparison result is used to indicate whether the flag information has changed.
[0122] In some embodiments, since the modification of configuration information is relatively diverse, for example, including modification of default configuration information, restoration of default configuration information, etc., in order to more accurately determine the change of configuration information, the above-mentioned flag information includes first flag information and second flag information. The above-mentioned first flag information is used to indicate whether the configuration information is the default configuration information, and the above-mentioned second flag information is used to indicate whether the above-mentioned configuration information at the current moment is the same as the above-mentioned configuration information at the previous moment.
[0123] When the flag information determination module 711 compares the flag information with the preset default value of the flag information to see whether they are consistent and obtains the flag comparison result, it includes:
[0124] Comparing the first flag information with a preset first default value to see if they are consistent, and obtaining a first flag comparison result;
[0125] Comparing the second flag information with a preset second default value to see if they are consistent, and obtaining a second flag comparison result;
[0126] The mark comparison result is determined according to the first mark comparison result and the second mark comparison result.
[0127] In some embodiments, when the configuration information acquisition module 712 determines that the flag information has changed, acquiring the configuration information corresponding to the target flag information includes:
[0128] When it is determined according to the flag comparison result that the flag information in the second preset variable area has changed, the configuration information corresponding to the target flag information is acquired from the first preset variable area.
[0129] In another optional embodiment of the present application, the configuration information management device 71 further includes a variable adjustment module, and the variable adjustment module is used to, before determining whether the flag information in the second preset variable area has changed, include:
[0130] When it is detected that the configuration information is modified, adjusting the flag information of the modified configuration information;
[0131] The modified configuration information is stored in the first preset variable area, and the adjusted flag information is stored in the second preset variable area.
[0132] In some embodiments, when the target flag information indicates that the configuration information corresponding to the target flag information is not the default configuration information, the configuration information display module 713 uses a preset modification item menu to display the configuration information corresponding to the target flag information, including:
[0133] When it is determined according to the flag comparison result that the first flag information in the target flag information is inconsistent with the first default value, the configuration information corresponding to the target flag information is added to the preset modification item menu, and the preset modification item menu with the configuration information added is displayed.
[0134] In another optional embodiment of the present application, the configuration information management device 71 further includes a configuration information deletion module, and the configuration information deletion module is used to obtain the configuration information corresponding to the target flag information when it is determined that the flag information in the server has changed, and includes:
[0135] When it is determined according to the flag comparison result that the first flag information in the target flag information is consistent with the first default value, but the second flag information in the target flag information is inconsistent with the second default value, delete the configuration information corresponding to the target flag information in the preset modification item menu.
[0136] In another optional embodiment of the present application, the configuration information management device 71 further includes a menu display module, and the menu display module is used to:
[0137] When it is determined that the flag information in the server has not changed, a preset configuration menu is displayed, wherein the preset configuration menu includes a configuration information menu and a preset modification item menu, and the configuration information menu includes the configuration information.
[0138] It should be noted that the information interaction, execution process, etc. between the devices / units are based on the same concept as the method embodiments of the present application. Their specific functions and technical effects can be found in the method embodiment section and will not be repeated here.
[0139] Figure 8 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 8 As shown, the electronic device 8 of this embodiment includes: at least one processor 80 ( Figure 8The at least one processor 80 includes a memory 81 and a computer program 82 stored in the memory 81 and executable on the at least one processor 80. When the processor 80 executes the computer program 82, the steps in any of the method embodiments are implemented.
[0140] The electronic device 8 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The electronic device may include, but is not limited to, a processor 80 and a memory 81. Those skilled in the art will appreciate that Figure 8 It is only an example of the electronic device 8 and does not constitute a limitation of the electronic device 8. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include an input sending device, a network access device, a bus, etc.
[0141] The processor 80 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0142] In some embodiments, the memory 81 may be an internal storage unit of the electronic device 8, such as a hard disk or memory of the electronic device 8. The memory 81 may also be an external storage device of the electronic device 8, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 8. Further, the memory 81 may also include both an internal storage unit of the electronic device 8 and an external storage device. The memory 81 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory 81 may also be used to temporarily store data that has been sent or is to be sent.
[0143] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the functional units and modules is used as an example. In practical applications, the function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0144] An embodiment of the present application also provides a network device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps in any of the method embodiments when executing the computer program.
[0145] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the various method embodiments can be implemented.
[0146] An embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the various method embodiments when executing the computer program product.
[0147] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process in the embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / electronic device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0148] In the embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0149] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0150] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0151] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0152] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for managing configuration information, characterized in that: Applied to the server, including: In the case where a configuration management instruction is detected to be triggered, determining whether flag information has changed; the flag information corresponds to the configuration information, and the flag information is used to indicate whether the configuration information has changed; When it is determined that the flag information has changed, acquiring the configuration information corresponding to the target flag information; the target flag information is the flag information that has changed; In a case where the target flag information indicates that the configuration information corresponding to the target flag information is not default configuration information, the configuration information corresponding to the target flag information is displayed using a preset modification item menu.
2. The configuration information management method according to claim 1, characterized in that: In the case where the configuration management instruction is detected to be triggered, before determining whether the flag information has changed, the method further includes: Constructing a preset variable region, wherein the preset variable region includes a first preset variable region and a second preset variable region; storing the configuration information in the first preset variable area, and storing flag information corresponding to the configuration information in the second preset variable area; The determining whether the flag information has changed includes: Determine whether the flag information in the second preset variable area changes.
3. The configuration information management method according to claim 2, characterized in that: The determining whether the flag information in the second preset variable area changes includes: Traversing the flag information in the second preset variable area; For any flag information traversed, the flag information is compared with a preset default value of the flag information to see whether they are consistent, and a flag comparison result is obtained; the flag comparison result is used to indicate whether the flag information has changed.
4. The method for managing configuration information according to claim 3, characterized in that: The flag information includes first flag information and second flag information, the first flag information is used to indicate whether the configuration information is default configuration information, the second flag information is used to indicate whether the configuration information at the current moment is the same as the configuration information at the previous moment, and the flag comparison result is obtained by comparing whether the flag information is consistent with the preset default value of the flag information, including: Comparing the first flag information with a preset first default value to see whether they are consistent, and obtaining a first flag comparison result; Comparing the second flag information with a preset second default value to see whether they are consistent, and obtaining a second flag comparison result; The sign comparison result is determined according to the first sign comparison result and the second sign comparison result.
5. The configuration information management method according to claim 4, characterized in that: When it is determined that the flag information has changed, acquiring the configuration information corresponding to the target flag information includes: When it is determined according to the flag comparison result that the flag information in the second preset variable area has changed, the configuration information corresponding to the target flag information is acquired from the first preset variable area.
6. The configuration information management method according to claim 4 or 5, characterized in that: When the target flag information indicates that the configuration information corresponding to the target flag information is not default configuration information, displaying the configuration information corresponding to the target flag information by using a preset modification item menu includes: When it is determined according to the flag comparison result that the first flag information in the target flag information is inconsistent with the first default value, the configuration information corresponding to the target flag information is added to the preset modification item menu, and the preset modification item menu with the added configuration information is displayed.
7. The configuration information management method according to claim 4 or 5, characterized in that: In the case where it is determined that the flag information has changed, after acquiring the configuration information corresponding to the target flag information, the method further includes: When it is determined according to the flag comparison result that the first flag information in the target flag information is consistent with the first default value, but the second flag information in the target flag information is inconsistent with the second default value, delete the configuration information corresponding to the target flag information in the preset modification item menu.
8. The method for managing configuration information according to any one of claims 2 to 5, characterized in that: Before determining whether the flag information in the second preset variable area changes, the method further includes: When detecting that the configuration information is modified, adjusting the flag information of the modified configuration information; The modified configuration information is stored in the first preset variable area, and the adjusted flag information is stored in the second preset variable area.
9. The method for managing configuration information according to any one of claims 1 to 5, characterized in that: Also includes: When it is determined that the flag information in the server has not changed, a preset configuration menu is displayed, wherein the preset configuration menu includes a configuration information menu and a preset modification item menu, and the configuration information menu includes the configuration information.
10. A configuration information management system, characterized in that: include: The server as claimed in any one of claims 1 to 9, and a client connected to the server for communication, wherein: The server is used to synchronize the configuration information in the server to the client page preset in the client; The client is used to manage the configuration information in the server through the preset client page.
Citation Information
Cited By
Parameter synchronization method and system
CN122019046A
Parameter synchronization method and system
CN122019046B