System configuration item modification detection method, device, storage medium and program product

CN120315928BActive Publication Date: 2025-09-23INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510774240.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-11
Publication Date
2025-09-23
Estimated Expiration
2045-06-11

AI Technical Summary

Technical Problem

[0004]本申请提供了一种系统配置项的修改检测方法、设备、存储介质及程序产品,以至少解决相关技术中无法对修改进行实时动态预览显示的问题

Benefits of technology

[0020] Through this application, when the user opens the configuration interface, the initial parameters of each configuration item of the basic input and output system are backed up, and the difference configuration algorithm is used to traverse each configuration item to see if there is any change, determine the linkage modification items, and generate a display configuration preview page. The target options, linkage modification items and abnormal modification items in the page are displayed, and an early warning is issued for abnormal modification items to achieve dynamic display of modifications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120315928B_ABST
    Figure CN120315928B_ABST
Patent Text Reader

Abstract

The present application discloses a modification detection method, device, storage medium and program product for system configuration items, which relate to the field of testing technology. When a user opens a configuration interface, the initial parameters of each configuration item of a basic input and output system are backed up, and a difference configuration algorithm is used to traverse each configuration item to see if there is any change. The linked modification items are determined, and a configuration preview page is generated for display. The target options, linked modification items and abnormal modification items in the page are displayed, and an early warning is issued for abnormal modification items, thereby realizing dynamic display of modifications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of testing technology, and in particular to a method, device, storage medium, and program product for detecting modification of system configuration items. Background Art

[0002] The Basic Input / Output System (BIOS) is used to initialize hardware devices and start the operating system. During R&D or testing, it is necessary to modify the configuration options of the BIOS.

[0003] In current related technologies, after modifying a BIOS configuration option, the BIOS applies the user's modification and displays the modified result. However, in related technologies, the BIOS only statically displays the modified result and cannot dynamically preview the modification in real time. Summary of the Invention

[0004] The present application provides a method, device, storage medium and program product for detecting modifications of system configuration items, so as to at least solve the problem in the related art that modifications cannot be dynamically previewed in real time.

[0005] This application provides a method for detecting changes to system configuration items, including:

[0006] If it is detected that the user opens the configuration interface of the basic input and output system, the initial parameters of each configuration item of the basic input and output system are backed up.

[0007] If it is detected that the user has completed the modification and application operations of one or more target options in the configuration interface, the difference configuration algorithm is started. The difference configuration algorithm is used to traverse the current parameters and initial parameters of each configuration item to see if there is any change, and the configuration items that have changed are determined as linkage modification items.

[0008] It is determined whether the current configuration parameters of each linkage modification item are abnormal modifications, and the linkage modification items that are abnormal modifications are determined as abnormal modification items.

[0009] Generates and displays a configuration preview page.

[0010] On the configuration preview page, the target options and each linkage modification item are displayed, among which abnormal modification items in each linkage modification item are displayed as warnings using the preset warning method.

[0011] The present application also provides a system configuration item modification detection device, comprising:

[0012] The first detection module is configured to back up initial parameters of various configuration items of the basic input / output system if it is detected that the user has opened a configuration interface of the basic input / output system.

[0013] The second detection module is used to start the difference configuration algorithm if it detects that the user has completed the modification and application operations of one or more target options in the configuration interface. The difference configuration algorithm is used to traverse the current parameters and initial parameters of each configuration item to see if there is any change, and the configuration items that have changed are determined as linkage modification items.

[0014] The judgment module is used to judge whether the current configuration parameters of each linkage modification item are abnormal modifications, and determine the linkage modification item that is abnormally modified as an abnormal modification item.

[0015] The first generation module is used to generate and display a configuration preview page.

[0016] The first display module is used to display the target options and each linkage modification item on the configuration preview page, wherein abnormal modification items in each linkage modification item are displayed as a warning in a preset warning manner.

[0017] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any of the above-mentioned system configuration item modification detection methods when executing the computer program.

[0018] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned system configuration item modification detection methods are implemented.

[0019] The present application also provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned system configuration item modification detection methods when executed by a processor.

[0020] Through this application, when the user opens the configuration interface, the initial parameters of each configuration item of the basic input and output system are backed up, and the difference configuration algorithm is used to traverse each configuration item to see if there is any change, determine the linkage modification items, and generate a display configuration preview page. The target options, linkage modification items and abnormal modification items in the page are displayed, and an early warning is issued for abnormal modification items to achieve dynamic display of modifications. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. 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 any creative work.

[0022] Figure 1 A schematic diagram of the system structure of a computer device provided in an embodiment of the present application;

[0023] Figure 2 A flowchart of a method for detecting changes to system configuration items provided in an embodiment of the present application;

[0024] Figure 3 A schematic diagram of the structure of a system configuration item modification detection device provided in an embodiment of the present application;

[0025] Figure 4 This is a schematic diagram of the structure of the electronic device provided in this application. DETAILED DESCRIPTION

[0026] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0027] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.

[0028] First, let’s explain the terms involved in this application:

[0029] Basic Input and Output System: It is a special program fixed in the motherboard chip of an electronic device. It is the first software to run when the device starts up. It is the boot program for interaction between the hardware and the operating system.

[0030] In order to solve the problem in the related art that modifications cannot be dynamically previewed and displayed in real time, the embodiments of the present application propose the following technical concept: the inventor considers generating a dynamic preview when the user modifies the configuration items of the basic input and output system, and backing up the initial parameters of the system when the user opens the configuration interface of the basic input and output system. After the user modifies and applies the target option, the current parameters are traversed through the difference configuration algorithm, and compared with the initial parameters, it is determined whether there is a change, and the linkage modification items are determined. It is determined whether the linkage modification items are abnormal modifications, the abnormal modification items are dynamically displayed, and an early warning display of the abnormal modification items is performed on the preview page.

[0031] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0032] In conjunction with the specific application environment architecture or specific hardware architecture on which the execution of the system configuration item modification detection method depends, the specific application environment architecture or specific hardware architecture is described herein.

[0033] refer to Figure 1 , Figure 1 This is a schematic diagram of the system structure of the computer device provided in the embodiment of the present application. Figure 1 As shown, the computer device includes: a receiving device 101, a processing device 102 and a display device 103.

[0034] It is understood that the structure illustrated in the embodiments of this application does not constitute a specific limitation on the method for detecting modification of system configuration items. In other feasible implementations of this application, the above architecture may include more or fewer components than shown, or combine or split certain components, or arrange the components differently. The specific configuration can be determined based on the actual application scenario and is not limited here. Figure 1 The components shown can be implemented in hardware, software, or a combination of software and hardware.

[0035] In a specific implementation process, the receiving device 101 may be an input / output interface or a communication interface, and may detect an operation of a user opening a configuration interface of a basic input / output system.

[0036] The processing device 102 can generate a preview page.

[0037] The display device 103 can be used to display the preview page and the like.

[0038] The display device may also be a touch screen display, which is used to receive user instructions while displaying the above-mentioned content to achieve operational interaction with the user.

[0039] It should be understood that the above-mentioned processing device can be implemented by a processor reading instructions in a memory and executing the instructions, or it can be implemented by a chip circuit.

[0040] In addition, the network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0041] Figure 2 A flow chart of a method for detecting modification of system configuration items provided in an embodiment of the present application is shown as follows: Figure 2 As shown, an embodiment of the present application provides a method for detecting modification of a system configuration item, and the method is described in detail as follows:

[0042] S201: If it is detected that the user has opened a configuration interface of the basic input and output system, the initial parameters of each configuration item of the basic input and output system are backed up.

[0043] Specifically, the initial parameters of each configuration item of the basic input and output system are backed up through the configuration capture module.

[0044] Specifically, when the user opens the configuration interface of the basic input and output system, the project values ​​of various configuration items of the current basic input and output system are backed up, and a hash check value is generated.

[0045] In this embodiment, the basic input and output system configuration interface includes multiple configuration items that can be modified.

[0046] S202: If it is detected that the user has completed the modification and application operation of one or more target options in the configuration interface, the difference configuration algorithm is started, and the current parameters and initial parameters of each configuration item are traversed by the difference configuration algorithm to see if there is any change, and the changed configuration items are determined as linkage modification items.

[0047] Specifically, after detecting that the user has modified the application target option in the configuration interface, the system configuration tree before and after the modification is obtained, the hash values ​​of the nodes in the system configuration tree are compared, and whether there is a change is determined based on the numerical value of the hash value. The configuration item with the changed hash value is determined as the linkage modification item.

[0048] In this embodiment, a differential configuration algorithm is embedded in a command line interface running through the unified extensible firmware interface of the basic input / output system or a tool used to configure the underlying hardware and system settings when the device is started. The non-volatile random access memory is accessed through the interface, and the hash value of the backup configuration is stored through the trusted platform module security chip.

[0049] S203: Determine whether the current configuration parameters of each linkage modification item are abnormal modifications, and determine the linkage modification item that is abnormally modified as an abnormal modification item.

[0050] Specifically, a dependency tree is obtained, and whether the linkage modification items are reasonable is determined through a rule base, and unreasonable linkage modification items are determined as abnormal modification items.

[0051] S204: Generate and display a configuration preview page.

[0052] In this embodiment, the content recorded in the configuration preview page includes, but is not limited to, modification time, user operation, and values ​​of the changed item before and after the change.

[0053] S205: On the configuration preview page, target options and linkage modification items are displayed, wherein abnormal modification items in the linkage modification items are displayed as warnings using a preset warning method.

[0054] In this embodiment, the warning methods include but are not limited to interface pop-up windows, email notifications, or application push.

[0055] It can be seen from the above embodiment that when the user opens the configuration interface, the initial parameters of each configuration item of the basic input and output system are backed up, and the difference configuration algorithm is used to traverse each configuration item to see if there is any change, determine the linkage modification item, and generate a display configuration preview page. The target options, linkage modification items and abnormal modification items in the page are displayed, and an early warning is issued for the abnormal modification items, thereby realizing dynamic display of the modifications.

[0056] In one embodiment of the present application, after step S205, the following steps are further included:

[0057] S206: If it is detected that the user initiates a rollback request operation in the configuration interface of the basic input and output system, the basic input and output system is restored to the initial state according to the initial parameters of each configuration item of the basic input and output system.

[0058] Specifically, the modified configuration items are restored to their initial values ​​according to the rollback request operation, and the associated configuration items are highlighted.

[0059] S207: Generate and display a preview page in an initial state.

[0060] In this embodiment, the content recorded in the preview page of the initial state includes but is not limited to the configuration item name, the modified configuration item initial value and the associated configuration items.

[0061] From the above embodiments, it can be seen that by establishing a rollback mechanism, when an abnormal modification item occurs in the system, the user can initiate a rollback request to restore the system to its initial state and display a preview page of the initial state, thereby avoiding system errors caused by users incorrectly modifying configuration items.

[0062] In one embodiment of the present application, step S202 includes:

[0063] S2021: Obtain the system configuration tree before and after the target option is modified.

[0064] In this embodiment, the system configuration tree includes multiple menu levels, and each level includes multiple configuration tree nodes.

[0065] Specifically, by reading the menu level of the basic input and output system, the system configuration tree before and after the target configuration is modified is obtained, and the hash value of each node in the configuration tree is obtained.

[0066] S2022: Compare hash values ​​of the system configuration tree before and after the target option is modified based on the hierarchical information of the basic input / output system to determine whether current parameters of each configuration item have changed from initial parameters.

[0067] Specifically, the child nodes and parent nodes of the system configuration tree are compared through the hierarchical information of the basic input and output system. For the child nodes whose hash values ​​have not changed, the hash values ​​of the parent nodes are verified to be consistent. Based on the hash values, it is determined whether the current parameters of each configuration item have changed from the initial parameters.

[0068] From the above embodiment, it can be seen that by obtaining and comparing the system configuration tree before and after modifying the target option, comparing the hash value of the system configuration tree before and after modification according to the system hierarchy information, and determining whether the modified parameters have changed compared with the initial parameters, the accuracy of identifying the modified target option is improved.

[0069] In one embodiment of the present application, step S2022 includes:

[0070] S221: Obtain node information of the system configuration tree according to the hierarchical information of the basic input and output system.

[0071] In this embodiment, the node information of the system configuration tree includes a root node, a parent node, and a child node.

[0072] S222: Obtain child nodes and parent nodes in the node information of the system configuration tree.

[0073] In this embodiment, a child node is a subordinate node of a parent node.

[0074] In this embodiment, the parent node is the immediate superior node of the current node.

[0075] S223: Compare the hash values ​​of the system configuration tree subnode before the target option is modified with the hash values ​​of the system configuration tree subnode after the target option is modified to generate first comparison information.

[0076] Specifically, the comparison operation is skipped for unmodified child nodes, the hash value of the corresponding parent node is verified, and the first comparison information is generated for the child nodes whose hash values ​​have changed.

[0077] S224: Compare the hash values ​​of the parent node of the system configuration tree before the target option is modified with the hash values ​​of the parent node of the system configuration tree after the target option is modified to generate second comparison information.

[0078] Specifically, a recursive operation is triggered for nodes with inconsistent hash values, nodes with different hash values ​​are screened, and second comparison information is generated.

[0079] S225: Determine whether the current parameters of each configuration item have changed from the initial parameters according to the first comparison information and the second comparison information.

[0080] Specifically, by comparing the numerical values ​​of the hash values, it is determined whether the current parameters have changed from the initial parameters.

[0081] From the above embodiments, it can be seen that the nodes of the configuration tree are obtained through hierarchical information, the child nodes and parent nodes are obtained, the hash values ​​of the child nodes and parent nodes are compared respectively, and it is determined whether the parameters before and after modifying the target option have changed. The parent nodes and child nodes are compared respectively, which reduces the occupation of computing resources.

[0082] In one embodiment of the present application, after step S225, the following steps are further included:

[0083] S226: Determine whether there is comparison information of nodes at the same level in the first comparison information and the second comparison information.

[0084] Specifically, determine whether the parent node in the first comparison information and the child node in the second comparison information are at the same level of the configuration tree, determine whether there is a parent node at the same level in the first comparison information, and determine whether there is a child node at the same level in the second comparison information.

[0085] S227: If the first comparison information and the second comparison information both contain comparison information of nodes at the same level, enable the multi-threaded mode to determine whether the current parameters of each configuration item have changed from the initial parameters.

[0086] Specifically, if there are nodes at the same level or independent menu modules, a multi-threaded or multi-process model is enabled to compare whether the parameters of the nodes have changed.

[0087] From the above embodiment, it can be seen that by judging whether there is comparison information of nodes at the same level in the first comparison information and the second comparison information, if yes, the multi-threaded model is enabled to determine parameter changes, thereby improving the performance of the difference configuration algorithm.

[0088] In one embodiment of the present application, step S203 includes:

[0089] S2031: Obtain a dependency tree of the basic input and output system.

[0090] In this embodiment, the dependency tree is a relationship graph consisting of each configuration item of the basic input and output system.

[0091] For example, if the configuration item is an overclocking option, the linked node in the dependency tree may be a voltage setting option.

[0092] S2032: Obtain the target node corresponding to the target option in the dependency tree.

[0093] Specifically, a target node in the dependency tree is located according to the target option, each level of the dependency tree is traversed according to the target node, and nodes in the dependency tree that are directly or indirectly connected to the target node are obtained.

[0094] S2033: Compare the current configuration parameters of each linkage modification item with the parameter range of the configuration parameters corresponding to the target node through the hook function.

[0095] Specifically, abnormal linkage modification is detected through a hook function, and whether the linkage modification item is reasonable and whether the parameters of the linkage modification item exceed the parameter range is determined through a rule base.

[0096] S2034: If the current configuration parameter range of the linkage modification item exceeds the parameter range of the configuration parameter corresponding to the target node, the abnormal modification operation of the linkage modification item is marked, and the linkage modification item that is abnormally modified is determined as an abnormal modification item.

[0097] Specifically, if the configuration parameter range of the linkage modification item exceeds the configuration parameter range corresponding to the target node, the abnormal modification operation of the linkage modification item is marked, all modification items are recorded in the modification preview page, and the abnormal modification item is highlighted.

[0098] It can be seen from the above embodiment that by obtaining the dependency tree of the system, the target node corresponding to the target option in the dependency book is obtained according to the dependency tree, and the configuration parameter range of the target node is compared with the current configuration parameter range of the linkage modification item. If it exceeds the range, the linkage modification item is marked as an abnormal modification item, which facilitates the user to confirm the abnormal modification item.

[0099] In one embodiment of the present application, after step S204, the following steps are further included:

[0100] S301: Identify and classify target options modified and applied by the user to obtain identification information.

[0101] In this embodiment, the identification information of the identification classification includes compliant operation modification, non-critical associated modification, and high-risk erroneous modification.

[0102] Exemplary, compliant operation modification is: the user actively modifies and adjusts the CPU frequency.

[0103] An exemplary, non-critical joint modification is that the parameters set by the fan control strategy automatically change with the temperature adjustment strategy.

[0104] An exemplary, high-risk mismodification is: the configuration item of the secure boot option is disabled.

[0105] S302: Generate corresponding log text according to the modification type of the identification information.

[0106] In this embodiment, the log text includes an alarm log text and a log text recording modification operations.

[0107] S303: Incrementally compress the corresponding log text to obtain a detection log.

[0108] In this embodiment, the detection log can be stored locally or uploaded to a server.

[0109] For example, when a user adjusts the CPU multiplier, the memory timing parameters are reset due to code coupling, the memory timing changes, and a non-critical joint modification level log is generated and the user is prompted for confirmation.

[0110] For example, when the user disables the virtualization function, the software protection extension option is also turned off. The independence of the software protection extension option and virtualization is determined based on the dependency tree, a high-risk incorrect modification level alarm log is generated, and the user's operation is prohibited.

[0111] From the above embodiments, it can be seen that by identifying and classifying the target options of the user-modified application, corresponding log texts are generated respectively, the target options are classified to facilitate obtaining the importance of the modified target options, and the log text increments are compressed into detection logs, thereby reducing storage space.

[0112] In one embodiment of the present application, before step S202, the following steps are further included:

[0113] S401: If it is detected that the user triggers a modification operation on one or more target options in the configuration interface, a sandbox environment is generated, and the modification operation on the one or more target options triggered by the user in the configuration interface is applied in the sandbox environment to generate a simulation report.

[0114] Specifically, if the user triggers a modification operation on a target option in the configuration interface, a simulation operation partition is divided in the virtualization layer, and a sandbox environment is created in the simulation operation partition, which is isolated from the external operation environment.

[0115] Specifically, the system after the user modifies the target options is run in a sandbox environment to generate a simulation report.

[0116] In this embodiment, the sandbox environment is an environment built on the virtualization layer.

[0117] S402: Verify whether the configuration parameters of the target options in the simulation report exceed the corresponding configuration parameter range.

[0118] In this embodiment, the content recorded in the simulation report includes but is not limited to the temperature, power consumption, and performance of the device after the user's modification operation is performed.

[0119] S403: If the configuration parameters of the target options in the simulation report exceed the corresponding configuration parameter range, an alarm prompt is generated.

[0120] Specifically, if the target option in the simulation report exceeds the upper threshold of the configuration parameter, the configuration item that exceeds the range will be highlighted and an alarm prompt will be generated.

[0121] It can be seen from the above embodiment that after detecting that the user triggers a modification operation, a sandbox environment is generated, the user's modification operation is run in the sandbox environment, a simulation report is generated, and it is verified whether the configuration parameters of the target option in the simulation report exceed the corresponding configuration parameter range. If it exceeds the range, an alarm prompt is generated to prevent the user's modification operation from causing damage to the system.

[0122] In one embodiment of the present application, after step S205, the following steps are further included:

[0123] S501: Obtain device parameter information of the server system.

[0124] In this embodiment, the components of the server system include but are not limited to a CPU, a memory, and a hard disk.

[0125] In this embodiment, the device parameter information includes but is not limited to CPU voltage, CPU temperature, memory frequency, and hard disk occupancy rate.

[0126] S502: Generate a target option adjustment strategy for a basic input / output system according to the device parameter information.

[0127] Exemplarily, if the voltage of the CPU is close to the upper voltage threshold of the CPU, a target option adjustment policy related to the CPU voltage is generated according to the voltage of the CPU.

[0128] S503: Optimizing the target options of the basic input and output system according to the target option adjustment strategy.

[0129] In this embodiment, the target options adjusted according to the adjustment policy are distinguished from the target options manually adjusted by the user by different highlight colors.

[0130] From the above embodiment, it can be seen that by obtaining the device parameters of the server system after the application modification request, an adjustment strategy for the target option is formulated according to the device parameters, and the target option is optimized according to the adjustment strategy to be closer to the user's intention to modify the target option.

[0131] In one embodiment of the present application, after step S503, the following steps are further included:

[0132] S504: Generate an energy consumption curve of the server system after applying the target option adjustment policy.

[0133] In this embodiment, the energy consumption curve of the server system records multiple energy consumption curves of components of the server system.

[0134] In this embodiment, the device energy consumption curves of different server systems are displayed in different colors.

[0135] S505: In response to the user's operation of triggering the energy consumption curve of the server system, displaying the coordinate value of the energy consumption curve of the server system triggered by the user, and displaying the server device parameter information corresponding to the coordinate value.

[0136] From the above embodiments, it can be seen that by generating an energy consumption curve for applying the target option adjustment strategy, the user can trigger the curve, view the coordinate values ​​of the curve, and view the device parameters corresponding to the coordinate values, so as to intuitively display the system information after adjusting the target option to the user.

[0137] In one embodiment of the present application, before step S202, the following steps are further included:

[0138] S601: If it is detected that the user triggers a modification operation on one or more target options in the configuration interface, the modification operation information triggered by the user is input into the trained semantic perception model to identify the user intention data of the modification operation information.

[0139] Specifically, based on the target option modified by the user, the user's intention to modify the target option is judged through the semantic perception model to obtain user intention data.

[0140] Exemplarily, if the target option modified by the user is a memory configuration item, the identified user intention data is memory modification.

[0141] S602: Completing and modifying the target option information in the operation information according to the user intention data to obtain the completed target option information.

[0142] For example, if the user's intention data is to improve system performance, the incomplete target option information includes CPU voltage, memory frequency and memory timing, and the completed target option information includes CPU voltage, memory frequency, memory timing and CPU frequency.

[0143] S603: Generate prompt information according to the completed target option information.

[0144] In this embodiment, the completed target option information includes original target option information and supplemented target option information.

[0145] In this embodiment, the original target option information and the supplemented target option information are highlighted in different colors respectively.

[0146] It can be seen from the above embodiments that the intention of the modification operation initiated by the user is perceived through the semantic perception model, and the target option information is completed according to the user intention data output by the semantic perception model, and the corresponding prompt information is generated. The user can also adjust the modification request again according to the prompt information, thereby improving the accuracy of identifying the user's modification intention.

[0147] In one embodiment of the present application, before step S601, the following steps are further included:

[0148] S701: Obtain user corpus.

[0149] In this embodiment, sources for obtaining the user corpus include, but are not limited to, device manuals, platform databases, and network search engines.

[0150] S702: Label the user corpus to obtain triplet training data.

[0151] Specifically, user descriptions, intent types, and configuration items are labeled and integrated to obtain triplet training data.

[0152] In this embodiment, the content recorded in the triplet training data includes user description, intent type, and configuration items.

[0153] The user description is a basic input / output system configuration requirement or problem description expressed by the user. For example, the user description includes: the computer cannot be turned on after memory overclocking.

[0154] Among them, the intent type is the operation goal extracted from the user description. For example, the intent types include: overclocking optimization, energy-saving adjustment and security reinforcement.

[0155] S703: Input the triplet training data into the pre-created semantic perception model, and output the application scenario label and the modified target option information.

[0156] Exemplarily, the application scenario tags include: memory overclocking.

[0157] In this embodiment, the target option information is the basic input and output system configuration item information modified according to the application scenario tag.

[0158] Exemplarily, when the application scenario label is memory overclocking, the target option information includes: core voltage, logical link control, and memory profile.

[0159] S704: Determine user intention data based on the application scenario label and the modified target option information.

[0160] Exemplarily, based on the application scenario label and target option of memory overclocking, it is determined that the user intends to modify the configuration item of the basic input and output system to achieve system memory overclocking.

[0161] S705: If the deviation between the user intention data and the user intention data in the verification set meets a preset deviation threshold, a semantic perception model is determined according to the application scenario label and the modified configuration option information.

[0162] For example, if the output user intention data is that the user modifies the configuration items of the basic input and output system to achieve system memory overclocking, and the user intention data in the verification set is to improve memory performance, then the user intention data output by the model meets the deviation, and the semantic perception model is determined based on the output application scenario label and the modified configuration option information.

[0163] It can be seen from the above embodiments that by obtaining a user corpus, annotating the corpus, obtaining triple training data, training a semantic perception model through the triple training data, and determining the user intention based on the output application scenario label and the modified configuration option information, if the deviation between the predicted user intention and the user intention in the verification set meets the preset deviation threshold, then determining the semantic perception model, and by pre-training the semantic perception model, improving the accuracy of identifying user intention information.

[0164] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method.

[0165] Figure 3 This is a schematic diagram of the structure of the system configuration item modification detection device provided in the embodiment of the present application. Figure 3 As shown, an embodiment of the present application further provides a system configuration item modification detection device 30 , comprising: a first detection module 301 , a second detection module 302 , a judgment module 303 , a first generation module 304 and a first display module 305 .

[0166] The first detection module 301 is configured to back up initial parameters of various configuration items of the BIOS if it is detected that the user has opened a configuration interface of the BIOS.

[0167] The second detection module 302 is used to start the difference configuration algorithm if it is detected that the user has completed the modification and application operation of one or more target options in the configuration interface. The difference configuration algorithm is used to traverse the current parameters and initial parameters of each configuration item to see if there is any change, and each configuration item that has changed is determined as a linkage modification item.

[0168] The judgment module 303 is used to judge whether the current configuration parameters of each linkage modification item are abnormal modifications, and determine the linkage modification item that is abnormally modified as an abnormal modification item.

[0169] The first generating module 304 is configured to generate and display a configuration preview page.

[0170] The first display module 305 is used to display the target options and the linkage modification items on the configuration preview page, wherein abnormal modification items in the linkage modification items are displayed as a warning in a preset warning manner.

[0171] In one embodiment of the present application, the system configuration item modification detection device 30 further includes:

[0172] The third detection module is configured to restore the BIOS to its initial state according to initial parameters of each configuration item of the BIOS if it is detected that the user initiates a rollback request operation in the configuration interface of the BIOS.

[0173] The second generating module is used to generate and display a preview page in an initial state.

[0174] In one embodiment of the present application, the second detection module 302 includes:

[0175] The first acquiring unit is configured to acquire a system configuration tree before and after the target option is modified.

[0176] The first comparison unit is used to compare the hash values ​​of the system configuration tree before and after the target option is modified according to the hierarchical information of the basic input and output system to determine whether the current parameters of each configuration item have changed from the initial parameters.

[0177] In one embodiment of the present application, the first comparison unit includes:

[0178] The generation subunit is used to obtain node information of the system configuration tree according to the hierarchical information of the basic input and output system.

[0179] Get child unit, used to get child nodes and parent nodes in the node information of the system configuration tree.

[0180] The first comparison subunit is configured to compare the hash values ​​of the system configuration tree subnode before the target option is modified with the hash values ​​of the system configuration tree subnode after the target option is modified to generate first comparison information.

[0181] The second comparison subunit is configured to compare the hash values ​​of the parent node of the system configuration tree before the target option is modified with the hash values ​​of the parent node of the system configuration tree after the target option is modified to generate second comparison information.

[0182] The first judgment subunit is configured to determine whether current parameters of each configuration item have changed from initial parameters according to the first comparison information and the second comparison information.

[0183] In one embodiment of the present application, the first comparison unit further includes:

[0184] The second judgment subunit is used to judge whether there is comparison information of nodes at the same level in the first comparison information and the second comparison information.

[0185] The third judgment subunit is configured to enable a multi-threaded mode to determine whether current parameters of each configuration item have changed from initial parameters if both the first comparison information and the second comparison information contain comparison information of nodes at the same level.

[0186] In one embodiment of the present application, the judgment module 303 includes:

[0187] The second acquiring unit is configured to acquire a dependency tree of a basic input / output system.

[0188] The third obtaining unit is used to obtain the target node corresponding to the target option in the dependency tree.

[0189] The second comparison unit is used to compare the current configuration parameters of each linkage modification item with the parameter range of the configuration parameters corresponding to the target node through a hook function.

[0190] The marking unit is used to mark the abnormal modification operation of the linkage modification item if the current configuration parameter range of the linkage modification item exceeds the parameter range of the configuration parameter corresponding to the target node, and determine the linkage modification item belonging to the abnormal modification as an abnormal modification item.

[0191] In one embodiment of the present application, the system configuration item modification detection device 30 further includes:

[0192] The classification module is used to identify and classify the target options modified and applied by the user to obtain identification information.

[0193] The third generating module is used to generate corresponding log text according to the modification type of the identification information.

[0194] The compression module is used to incrementally compress the corresponding log text to obtain the detection log.

[0195] In one embodiment of the present application, the system configuration item modification detection device 30 further includes:

[0196] The fourth generation module is used to generate a sandbox environment if it is detected that the user triggers a modification operation on one or more target options in the configuration interface, and apply the modification operation on one or more target options triggered by the user in the configuration interface in the sandbox environment to generate a simulation report.

[0197] The verification module is used to verify whether the configuration parameters of the target options in the simulation report exceed the corresponding configuration parameter range.

[0198] The fifth generating module is configured to generate an alarm if the configuration parameters of the target options in the simulation report exceed the corresponding configuration parameter range.

[0199] In one embodiment of the present application, the system configuration item modification detection device 30 further includes:

[0200] The first acquisition module is used to acquire device parameter information of the server system.

[0201] The sixth generation module is used to generate a target option adjustment strategy of the basic input and output system according to the device parameter information.

[0202] The optimization module is used to optimize the target options of the basic input and output system according to the target option adjustment strategy.

[0203] In one embodiment of the present application, the system configuration item modification detection device 30 further includes:

[0204] The seventh generating module is used to generate an energy consumption curve of the server system after applying the target option adjustment strategy.

[0205] The second display module is used to display the coordinate value of the energy consumption curve of the server system triggered by the user in response to the user's operation of triggering the energy consumption curve of the server system, and display the server device parameter information corresponding to the coordinate value.

[0206] In one embodiment of the present application, the system configuration item modification detection device 30 further includes:

[0207] The recognition module is used to input the modification operation information triggered by the user into the trained semantic perception model if it detects that the user triggers a modification operation on one or more target options in the configuration interface, and identify the user intention data of the modification operation information.

[0208] The completion module is used to complete and modify the target option information in the operation information according to the user intention data to obtain the completed target option information.

[0209] The eighth generating module is used to generate prompt information according to the completed target option information.

[0210] In one embodiment of the present application, the system configuration item modification detection device 30 further includes:

[0211] The second acquisition module is used to acquire the user corpus.

[0212] The annotation module is used to annotate the user corpus and obtain triple training data.

[0213] The output module is used to input the triple training data into the pre-created semantic perception model and output the application scenario label and the modified target option information.

[0214] The first determination module is used to determine user intention data according to the application scenario label and the modified target option information.

[0215] The second determination module is used to determine the semantic perception model based on the application scenario label and the modified configuration option information if the deviation between the user intention data and the user intention data in the verification set meets a preset deviation threshold.

[0216] For the description of the features in the embodiment corresponding to the system configuration item modification detection device, please refer to the relevant description of the embodiment corresponding to the system configuration item modification detection method, which will not be repeated here.

[0217] Figure 4 This is a schematic diagram of the structure of the electronic device provided in this application. Figure 4 As shown, the electronic device 40 provided in this embodiment includes: at least one processor 401 and a memory 402. Optionally, the electronic device 40 further includes a communication component 403. The processor 401, the memory 402 and the communication component 403 are connected via a bus.

[0218] During the specific implementation process, at least one processor 401 executes the computer-executable instructions stored in the memory 402, so that the at least one processor 401 executes the above-mentioned embodiment of the method for detecting modification of system configuration items.

[0219] The specific implementation process of the processor 401 can be found in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here in this embodiment.

[0220] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the application may be directly executed by a hardware processor or by a combination of hardware and software modules within the processor.

[0221] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage.

[0222] A bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Buses can be categorized as address buses, data buses, and control buses. For ease of illustration, the buses in the drawings of this application are not limited to just one bus or just one type of bus.

[0223] An embodiment of the present application further provides a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps of any of the above-mentioned system configuration item modification detection method embodiments when running.

[0224] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0225] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any of the above-mentioned system configuration item modification detection method embodiments are implemented.

[0226] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium, the non-volatile computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, implementing the steps in any of the above-mentioned system configuration item modification detection method embodiments.

[0227] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0228] The above is a detailed introduction to the modification detection method, device, storage medium and program product of a system configuration item provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. A method for detecting modification of a system configuration item, characterized in that: include: If it is detected that the user opens the configuration interface of the basic input and output system, the initial parameters of each configuration item of the basic input and output system are backed up; If it is detected that the user has completed the modification and application operation of one or more target options in the configuration interface, a difference configuration algorithm is started to obtain the system configuration tree before the target option is modified and the system configuration tree after the target option is modified; Obtaining node information of a system configuration tree according to the hierarchical information of the basic input and output system; Obtaining child nodes and parent nodes in the node information of the system configuration tree; Comparing the hash values ​​of the system configuration tree subnode before the target option is modified and the system configuration tree subnode after the target option is modified to generate first comparison information; Comparing the hash values ​​of the parent node of the system configuration tree before the target option is modified and the parent node of the system configuration tree after the target option is modified to generate second comparison information; determining whether current parameters of each configuration item have changed from initial parameters based on the first comparison information and the second comparison information, and determining each configuration item that has changed as a linkage modification item; Determine whether the current configuration parameters of each linkage modification item are abnormal modifications, and determine the linkage modification items that are abnormal modifications as abnormal modification items; Generate and display the configuration preview page; On the configuration preview page, the target option and each linkage modification item are displayed, wherein abnormal modification items in each linkage modification item are displayed as an early warning in a preset early warning manner.

2. The method for detecting modification of a system configuration item according to claim 1, wherein: After displaying the target option and each linkage modification item on the configuration preview page, the configuration further includes: If it is detected that the user initiates a rollback request operation in the configuration interface of the basic input and output system, the basic input and output system is restored to the initial state according to the initial parameters of each configuration item of the basic input and output system; A preview page of the initial state is generated and displayed.

3. The method for detecting modification of a system configuration item according to claim 1, wherein: After determining whether the current parameters of each configuration item have changed from the initial parameters according to the first comparison information and the second comparison information, the method further includes: Determining whether there is comparison information of nodes at the same level in the first comparison information and the second comparison information; If the first comparison information and the second comparison information both contain comparison information of nodes at the same level, a multi-threaded mode is enabled to determine whether the current parameters of each configuration item have changed from the initial parameters.

4. The method for detecting modification of a system configuration item according to claim 1, wherein: The determining whether the current configuration parameters of each linkage modification item are abnormal modifications, and determining the linkage modification item that is abnormally modified as an abnormal modification item, includes: Get the dependency tree of the basic input and output system; Get the target node corresponding to the target option in the dependency tree; Comparing the current configuration parameters of each linkage modification item with the parameter range of the configuration parameters corresponding to the target node through a hook function; If the current configuration parameter range of the linkage modification item exceeds the parameter range of the configuration parameter corresponding to the target node, the abnormal modification operation of the linkage modification item is marked, and the linkage modification item belonging to the abnormal modification is determined as an abnormal modification item.

5. The method for detecting modification of a system configuration item according to claim 1, wherein: After generating and displaying the configuration preview page, the following steps are further included: Identify and classify target options modified and applied by the user to obtain identification information; Generate corresponding log text according to the modification type of the identification information; The corresponding log text is incrementally compressed to obtain a detection log.

6. The method for detecting modification of a system configuration item according to claim 1, wherein: If it is detected that the user has completed the modification and application operation of one or more target options in the configuration interface, before starting the difference configuration algorithm, the method further includes: If it is detected that a user triggers a modification operation on one or more target options on the configuration interface, a sandbox environment is generated, and the modification operation on the one or more target options triggered by the user on the configuration interface is applied in the sandbox environment to generate a simulation report; Verify whether the configuration parameters of the target options in the simulation report exceed the corresponding configuration parameter range; If the configuration parameters of the target options in the simulation report exceed the corresponding configuration parameter range, an alarm prompt is generated.

7. The method for detecting modification of a system configuration item according to claim 1, wherein: After displaying the target option and each linkage modification item on the configuration preview page, the configuration further includes: Obtain device parameter information of the server system; generating a target option adjustment strategy for the basic input and output system according to the device parameter information; Optimizing target options of the basic input and output system according to the target option adjustment strategy.

8. The method for detecting modification of a system configuration item according to claim 7, wherein: After optimizing the target options of the basic input and output system according to the target option adjustment strategy, the method further includes: generating an energy consumption curve of the server system after applying the target option adjustment policy; In response to the user's operation of triggering the energy consumption curve of the server system, the coordinate value of the energy consumption curve of the server system triggered by the user is displayed, and the server device parameter information corresponding to the coordinate value is displayed.

9. The method for detecting modification of a system configuration item according to claim 1, wherein: If it is detected that the user has completed the modification and application operation of one or more target options in the configuration interface, before starting the difference configuration algorithm, the method further includes: If it is detected that the user triggers a modification operation on one or more target options on the configuration interface, the modification operation information triggered by the user is input into the trained semantic perception model to identify the user intention data of the modification operation information; Completing the target option information in the modification operation information according to the user intention data to obtain the completed target option information; Prompt information is generated according to the completed target option information.

10. The method for detecting modification of a system configuration item according to claim 9, wherein: Before inputting the modification operation information triggered by the user into the trained semantic perception model, the method further includes: Get user corpus; Annotating the user corpus to obtain triplet training data; Inputting the triplet training data into a pre-created semantic perception model, and outputting application scenario labels and modified target option information; Determining user intention data based on the application scenario label and the modified target option information; If the deviation between the user intention data and the user intention data in the verification set meets a preset deviation threshold, a semantic perception model is determined based on the application scenario label and the modified configuration option information.

11. An electronic device, characterized in that: include: memory for storing computer programs; A processor, configured to implement the steps of the method for detecting modification of a system configuration item according to any one of claims 1 to 10 when executing the computer program.

12. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the method for detecting modification of a system configuration item according to any one of claims 1 to 10 are implemented.

13. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method for detecting modification of a system configuration item according to any one of claims 1 to 10 are implemented.

Citation Information

Patent Citations

  • Method and device for checking and modifying BIOS options

    CN111158769A