Configuration processing method and device of substrate management controller
By real-time update of the configuration item status of the substrate management controller, the problem of difficulty in fault positioning during the import or export of configuration items is solved, and more efficient fault positioning and system stability is achieved.
Patent Information
- Application Number
- CN202510889558.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2045-06-30
AI Technical Summary
When a failure occurs during the import or export of the configuration items of the substrate management controller, it is difficult for the administrator to quickly locate the problem.
By obtaining the associated information of the target configuration item, determine its successful status or failure status, and update the status of the configuration item in real time, including access permissions, configuration information, pre-dependency status, resource usage, etc., to ensure that the status management during the configuration action is clear and accurate.
Improve the accuracy of fault location, avoid system instability caused by configuration item failure, and enhance the efficiency and traceability of configuration processing.
Smart Images

Figure CN120407042A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a configuration processing method and device for a baseboard management controller. Background Art
[0002] In related technologies, the baseboard management controller (BMC) supports configuration import and export functions. Administrators can import and export configuration files through the BMC's management interface or command line tools.
[0003] During the import process, the BMC attempts to apply the configurations in the configuration file to the current server. During the export process, the BMC saves the current server configuration information to the specified file. If an error occurs during the import or export process, the import or export is stopped and a failure result is reported.
[0004] However, when a configuration failure occurs, it is often difficult for administrators to quickly locate the problem.
[0005] Therefore, how to accurately locate the fault when a configuration item import or export failure occurs becomes a technical problem that needs to be solved. Summary of the Invention
[0006] In view of this, the present invention provides a configuration processing method and device for a baseboard management controller.
[0007] In a first aspect, the present invention provides a configuration processing method for a baseboard management controller, the method comprising: when a target configuration item among multiple configuration items to be acted upon performs an action, obtaining associated information of the target configuration item; wherein the associated information includes access rights corresponding to the target configuration item, the action includes importing or exporting, and the target configuration item is any one of the multiple configuration items to be acted upon; based on the associated information of the target configuration item, determining a configuration item status corresponding to the associated information of the target configuration item; wherein the configuration item status is a success status or a failure status corresponding to the associated information; and updating the current status of the target configuration item based on the configuration item status.
[0008] Second aspect, the present invention provides a configuration processing device for a baseboard management controller. The device includes: an acquisition module, configured to acquire the associated information of a target configuration item when the target configuration item among a plurality of to-be-acted configuration items performs an action; wherein, the associated information includes the access permission corresponding to the target configuration item, the action includes import or export, and the target configuration item is any one of the plurality of to-be-acted configuration items; a determination module, configured to determine the configuration item status corresponding to the associated information of the target configuration item according to the associated information of the target configuration item; wherein, the configuration item status is the success status or failure status corresponding to the associated information; an update module, configured to update the current status of the target configuration item according to the configuration item status.
[0009] Third aspect, the present invention provides a computer device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to execute the configuration processing method of the baseboard management controller in the first aspect or any corresponding embodiment thereof.
[0010] Fourth aspect, the present invention provides a computer-readable storage medium, on which computer instructions are stored. The computer instructions are used to cause a computer to execute the configuration processing method of the baseboard management controller in the first aspect or any corresponding embodiment thereof.
[0011] Fifth aspect, the present invention provides a computer program product, including computer instructions, which are used to cause a computer to execute the configuration processing method of the baseboard management controller in the first aspect or any corresponding embodiment thereof.
[0012] For the configuration processing method of the baseboard management controller provided in this embodiment, when the target configuration item performs import or export, the success status or failure status corresponding to the associated information of the target configuration item in the process of import or export is determined through the associated information, and then the current status corresponding to the associated information of the target configuration item is updated according to the success status or failure status corresponding to the associated information. This can ensure that when the target configuration item performs import or export, the status corresponding to the associated information of the target configuration item can be updated in real time. Compared with the related technology where only the final result is output when the configuration item performs import or export, this embodiment can update the status corresponding to the associated information of the target configuration item in real time according to the configuration item status determined by the associated information, avoiding the situation that it is often difficult for the administrator to quickly locate the problem when a failure occurs during the configuration action process, and improving the accuracy of fault location. Description of the Drawings
[0013] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0014] Figure 1 It is a schematic structural diagram of a configuration processing system of a baseboard management controller according to an embodiment of the present invention; Figure 2 It is a schematic flowchart of a configuration processing method of a baseboard management controller according to an embodiment of the present invention; Figure 3 It is another schematic flowchart of a configuration processing method of a baseboard management controller according to an embodiment of the present invention; Figure 4 It is a schematic structural diagram of a computer device provided by an alternative embodiment of the present invention. Specific Embodiments
[0015] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
[0016] Please refer to Figure 1 , Figure 1 It is a schematic structural diagram of a configuration processing system of a baseboard management controller according to an embodiment of the present invention.
[0017] Combined with Figure 1 shown, the system includes: a user interaction layer, a core processing layer, and a data persistence layer. Among them, the user interaction layer and the data persistence layer are respectively communicatively connected to the core processing layer.
[0018] The user interaction layer can configure an import interface, an export interface, a display panel for the configuration item status of the target configuration item, and a report viewer. Among them, the report viewer can view the failure reasons, failure location, etc. of each target configuration item.
[0019] The core processing layer can include: an import processor, an export processor, a status tracker, a parsing engine, and an error analyzer. Among them, the status tracker can be communicatively connected to the import processor, the export processor, the parsing engine, and the error analyzer.
[0020] The status tracker can track the configuration item status of the target configuration item in real time, that is, track the success status or failure status corresponding to the associated information of the target configuration item. Among them, the parsing engine can parse the associated information to determine whether the associated information of the target configuration item indicates that the target configuration item needs to stop the action. The error analyzer can determine the corresponding solution according to the reason for the failure of the target configuration item.
[0021] The data persistence layer can pre-store the configuration item database, logs, and the initial error solution table. Among them, the status tracker can obtain the preset information of the target configuration item from the configuration item database in the data persistence layer, such as: configuration item format, configuration item value, etc. It can also directly determine the corresponding solution from the initial error solution table.
[0022] According to an embodiment of the present invention, an embodiment of a configuration processing method for a baseboard management controller is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0023] In this embodiment, a configuration processing method for a baseboard management controller is provided, which can be used in the core processing layer of the configuration processing system of the baseboard management controller. Figure 2 It is a flowchart of the configuration processing method for the baseboard management controller according to an embodiment of the present invention, as Figure 2 shown, the process includes the following steps: Step S201, when the target configuration item among multiple configuration items to be acted on performs an action, obtain the associated information of the target configuration item; among them, the associated information includes the access permission corresponding to the target configuration item, the action includes import or export, and the target configuration item is any one of the multiple configuration items to be acted on.
[0024] Multiple configuration items to be acted on can indicate the configuration items that need to be imported or exported and have not yet performed the action. The target configuration item is the configuration item that performs the action. Among them, the target configuration item is any one of the multiple configuration items to be acted on.
[0025] The associated information can indicate the information that needs to be verified during the import or export process of the target configuration item. Among them, the associated information can include the access permission corresponding to the target configuration item.
[0026] As an example, the associated information can also include: the configuration information of the target configuration item, the status information of the pre-dependency of the target configuration item, etc., which are not specifically limited here.
[0027] Step S202: Determine the configuration item status corresponding to the association information of the target configuration item according to the association information of the target configuration item; wherein, the configuration item status is the success status or failure status corresponding to the association information.
[0028] The configuration item status is the success status or failure status corresponding to the association information. For example, if the association information includes the access permission corresponding to the target configuration item, the configuration item status can be the access permission failure status or the access permission success status.
[0029] After obtaining the association information of the target configuration item, the configuration item status corresponding to the association information of the target configuration item can be determined according to the association information of the target configuration item.
[0030] As an example, the configuration item status corresponding to the association information of the target configuration item can be determined according to the association information of the target configuration item and the information in the configuration item database in the data persistence layer that corresponds to the association information of the target configuration item.
[0031] As an example, a neural network model can be used to determine the configuration item status corresponding to the association information of the target configuration item according to the association information of the target configuration item. Among them, the association information of the target configuration item can be used as the input of the neural network model, and the configuration item status corresponding to the association information of the target configuration item can be used as the output of the neural network model. The neural network model can be a Convolutional Neural Network (CNN), a Recurrent Neural Network (RNN), etc. Determining the configuration item status corresponding to the association information of the target configuration item according to the association information of the target configuration item can be implemented in other ways, which will not be listed here and shall be subject to what can be achieved by those skilled in the art.
[0032] Step S203: Update the current status of the target configuration item according to the configuration item status.
[0033] The current status of the target configuration item can be indicated as the status of the target configuration item being verified according to the association information. For example, if the association information of the target configuration item includes the access permission corresponding to the target configuration item, the current status can be the access permission verification status. After determining the configuration item status corresponding to the association information of the target configuration item according to the association information of the target configuration item, the configuration item status can be used to update the current status of the target configuration item. For example, if the configuration item status is the access permission failure status, then the current status can be updated to the access permission failure status.
[0034] For the configuration processing method of the baseboard management controller provided in this embodiment, when a target configuration item is imported or exported, the success status or failure status corresponding to the associated information during the import or export of the target configuration item is determined through the associated information. Then, according to the success status or failure status corresponding to the associated information, the current status corresponding to the associated information of the target configuration item is updated. This can ensure that when the target configuration item is imported or exported, the status corresponding to the associated information of the target configuration item can be updated in real time. Compared with the related technology where only the final result is output when the configuration item is imported or exported, this embodiment can update the status corresponding to the associated information during the import or export process of the target configuration item according to the configuration item status determined by the associated information, avoiding the situation where it is often difficult for the administrator to quickly locate the problem when a failure occurs during the configuration action process, and improving the accuracy of fault location.
[0035] In a possible implementation manner, the above step S202 includes: Step S2021, determine whether the target configuration item needs to stop the action according to the associated information of the target configuration item.
[0036] When the configuration item status corresponding to the associated information of the target configuration item is the failure status, it is determined that the target configuration item needs to stop the action; when the configuration item status corresponding to the associated information of the target configuration item is the success status, it is determined that the target configuration item does not need to stop the action. That is, when there is no problem in any process during the import or export process of the target configuration item, there is no need to stop the action. Only when a problem occurs in a certain process, the action needs to be stopped.
[0037] It should be noted that during the import or export process of the target configuration item, the associated information corresponding to each process of the target configuration item may be different, and the configuration item status corresponding to the associated information may also be different.
[0038] Step S2022, if the target configuration item needs to stop the action, stop the action of the target configuration item and determine the configuration item status as the failure status corresponding to the associated information.
[0039] If the target configuration item needs to stop the action, the action of the target configuration item needs to be stopped. For example: if the target configuration item needs to stop the import, stop the import of the target configuration item. Another example: if the target configuration item needs to stop the export, stop the export of the target configuration item.
[0040] When stopping the action of the target configuration item, determine the configuration item status as the failure status corresponding to the associated information.
[0041] Step S2023, if the target configuration item does not need to stop the action, determine the configuration item status as the success status corresponding to the associated information.
[0042] If the target configuration item does not require a stop action, and the configuration item status representing the target configuration item is the success status, then the configuration item status can be determined as the success status corresponding to the associated information.
[0043] The configuration processing method of the baseboard management controller provided in this embodiment determines whether the target configuration item needs to stop the action through the associated information of the target configuration item, avoiding the cumbersome process of manual checking and decision-making one by one, and improving the processing efficiency. Moreover, if the target configuration item needs to stop the action, the configuration item status is determined as the failure status corresponding to the associated information; if the target configuration item does not need to stop the action, the configuration item status is determined as the success status corresponding to the associated information, making the management of the configuration item status of the target configuration item clearer and easier to track.
[0044] In a possible implementation manner, the above step S2021 includes: Step a1, obtain the unique authentication identifier of the user at the time of login and the access permission corresponding to the target configuration item.
[0045] The user can log in to the BMC system. When the user logs in to the BMC system, the unique authentication identifier of the user at the time of login can be obtained. The unique authentication identifier can be the user's token or the user's ID number, etc., and no specific limitation is made here.
[0046] The access permission corresponding to the target configuration item can be a preset access permission. Multiple relationship tables of pending action configuration items and access permissions can be pre-configured. When the target configuration item among the multiple pending action configuration items takes an action, the access permission corresponding to the target configuration item can be determined from the relationship table. For example, the access permission corresponding to the target configuration item can indicate Administrator permission (administrator permission), Operator permission (operator permission), User permission (ordinary user permission), or ReadOnly permission (read-only user permission). Among them, the Administrator permission is greater than the Operator permission, which is greater than the User permission, which is greater than the ReadOnly permission.
[0047] Step a2, determine the target access permission corresponding to the unique authentication identifier according to the association relationship between the unique authentication identifier and the preset access permission and the unique authentication identifier.
[0048] There is an association relationship between the unique authentication identifier of the target configuration item and the preset access permission, that is, each unique authentication identifier can correspond to a preset access permission. For example, the unique authentication identifier A1 corresponds to the preset access permission B1, the unique authentication identifier A2 corresponds to the preset access permission B2, etc.
[0049] After determining the unique authentication identifier, the target access permission corresponding to the unique authentication identifier can be determined from multiple preset access permissions. For example: the unique authentication identifier of the target configuration item is A1, and the corresponding target access permission can be B1.
[0050] Step a3, when the target access permission is lower than the access permission corresponding to the target configuration item, determine that the target configuration item needs to stop operating.
[0051] After determining the target access permission, the target access permission can be compared with the access permission corresponding to the target configuration item to determine whether the target access permission is lower than the access permission corresponding to the target configuration item. When the target access permission is lower than the access permission corresponding to the target configuration item, it indicates that the user's permission is not sufficient to satisfy the operation of the target configuration item, and the target configuration item needs to stop operating. For example: the access permission corresponding to the target configuration item is the Administrator permission, and the permission corresponding to the unique authentication identifier is the Operator permission. Then the permission corresponding to the unique authentication identifier is lower than the access permission corresponding to the target configuration item, and it is determined that the target configuration item needs to stop operating.
[0052] The configuration processing method of the baseboard management controller provided in this embodiment can ensure the uniqueness of each user's identity by obtaining the unique authentication identifier when the user logs in. And based on the association relationship between the unique authentication identifier and the preset access permissions, the target access permission corresponding to each user can be accurately determined, avoiding confusion or abuse of permissions. Moreover, when the target access permission is lower than the access permission corresponding to the target configuration item, it can be immediately determined that the target configuration item needs to stop operating, thereby preventing users from accessing sensitive data or performing critical operations with unauthorized permissions.
[0053] In a possible implementation manner, the association information further includes: the configuration information of the target configuration item; and the above step S2021 includes: Step b1, determine the target configuration information of the target configuration item according to the association relationship between the target configuration item and the preset configuration information, and the target configuration item; wherein, the target configuration information is the configuration information for which the target configuration item does not need to stop operating.
[0054] The configuration information can indicate the information used to detect whether the target configuration item needs to stop operating. Among them, the configuration information can be pre-set information. The configuration information can include: configuration item format, configuration item value, etc., which are not specifically limited here.
[0055] The target configuration information is the configuration information for which the target configuration item does not require a stop action. There is an association relationship between the target configuration item and the preset configuration information, that is, each target configuration item can correspond to the preset configuration information. After determining the target configuration item, the target configuration information of the target configuration item can be determined from multiple preset configuration information according to the target configuration item.
[0056] Step b2, when the configuration information of the target configuration item does not conform to the target configuration information, determine that the target configuration item needs to stop the action.
[0057] When the configuration information of the target configuration item does not conform to the target configuration information, it indicates that the configuration information of the target configuration item indicates that the target configuration item needs to stop the action, and then stop the action of the target configuration item.
[0058] Specifically, the configuration information of the target configuration item includes the configuration item format and the configuration item value. Correspondingly, the target configuration information includes the target format and the target value range, and the above step b2 includes: when any one of the configuration item format is different from the target format and the configuration item value is not within the target value range is established, determine that the target configuration item needs to stop the action.
[0059] The configuration information of the target configuration item includes the configuration item format and the configuration item value. Correspondingly, the target configuration information includes the target format and the target value range. Among them, the target format can include IP address format, port number range, date format, etc., and the target value range can indicate that the port number must be between 0-65535, etc., which is not specifically limited here. The configuration item format of the target configuration item can include: the IP address format of the configuration item, the port number range, the date format. The configuration item value can indicate the value of the port number.
[0060] When any one of the configuration item format is different from the target format and the configuration item value is not within the target value range is established, determine that the target configuration item needs to stop the action.
[0061] As an example, the target configuration information includes that the target format can indicate the IPv4 address format. Among them, when the configuration item format of the target configuration item is not the format with four segments of fields, and each segment of field is between 0 and 255, it is determined that the target configuration item needs to stop the action.
[0062] As an example, the target configuration information includes that the target format can indicate an integer. When the configuration item format of the target configuration item is not a digital format or the configuration item format is a format of a number that is not an integer, it is determined that the target configuration item needs to stop the action.
[0063] In a possible implementation, the configuration information of the target configuration item may further include: information indicating that a mandatory field cannot be empty. Wherein, when the mandatory field is empty, an alarm message indicating that the mandatory field is empty may be generated, and the action of the target configuration item may continue to be executed. For example, the user name may be used as a mandatory field. When the user name is empty, an alarm message indicating that the mandatory field is empty may be generated, and the action of the target configuration item may continue to be executed.
[0064] The configuration processing method of the baseboard management controller provided in this embodiment determines the target configuration information for each target configuration item according to its association relationship with the preset configuration information, realizes personalized verification for each configuration item, and improves the pertinence and effectiveness of the verification. Moreover, when the configuration information of the target configuration item does not conform to the target configuration information, it can be determined in a timely manner that the target configuration item needs to stop the action, thereby preventing system failures or instabilities caused by incorrect configurations.
[0065] In addition, by checking whether the format of the configuration item conforms to the target format, the consistency and correctness of the configuration item in structure can be ensured, and parsing failures or system exceptions caused by incorrect configuration item formats can be avoided. By checking whether the value of the configuration item is within the target value range, the rationality and effectiveness of the configuration item in terms of value can be ensured. Wherein, when any one of the situation that the configuration item format is different from the target format and the value of the configuration item is not within the target value range holds, it is determined that the target configuration item needs to stop the action, thereby preventing system failures or instabilities caused by incorrect configurations.
[0066] In a possible implementation, the association information further includes: the status information of the pre-dependency of the target configuration item; and the above step S2021 includes: Step c1, when the status information of the pre-dependency of the target configuration item indicates that the pre-dependency of the target configuration item has not been imported into the import list corresponding to the target configuration item or the pre-dependency of the target configuration item is not enabled, it is determined that the target configuration item needs to stop the action.
[0067] The pre-dependency may indicate other configuration items on which the action of the target configuration item depends. For example, if function X depends on the enabling of function Y, then the configuration item corresponding to function Y is the pre-dependency of the configuration item corresponding to function X.
[0068] As an example, the pre-dependency can be determined by looking up a pre-built dependency table, or by other means, which is not specifically limited herein.
[0069] The status information of the prerequisite dependencies can indicate whether the prerequisite dependencies are imported into the import list corresponding to the target configuration item, whether the prerequisite dependencies are enabled, etc. Among them, the import list corresponding to the target configuration item includes multiple configuration items that require actions. When the status information of the prerequisite dependencies of the target configuration item indicates that the prerequisite dependencies of the target configuration item are not imported into the import list corresponding to the target configuration item or the prerequisite dependencies of the target configuration item are not enabled, it means that the status information of the prerequisite dependencies of the target configuration item does not meet the requirements for the target configuration item to continue to act, and it is determined that the target configuration item needs to stop acting.
[0070] The configuration processing method of the baseboard management controller provided in this embodiment can ensure that the configuration items in the system operate according to the correct logical order and dependency relationships by checking whether the prerequisite dependencies have been imported into the import list corresponding to the target configuration item or have been enabled. This avoids logical errors or system failures caused by missing or disabled dependencies. If the prerequisite dependencies do not meet the conditions, the target configuration item will stop acting, thus preventing invalid or incorrect operations from being executed and ensuring the rigor of the system logic.
[0071] In a possible implementation manner, the above method further includes: Step S301, obtaining a directed dependency graph corresponding to the target configuration item; wherein, the directed dependency graph indicates the prerequisite dependencies of the target configuration item.
[0072] The directed dependency graph can be a pre-set dependency graph. Among them, the directed dependency graph indicates the prerequisite dependencies of the target configuration item, that is, the directed dependency graph records the target configuration item and the prerequisite dependencies of the target configuration item. Among them, the target configuration item and the prerequisite dependencies of the target configuration item can be connected by directed edges.
[0073] In a possible implementation manner, a topological sorting algorithm can be used to determine the processing order of multiple configuration items to be acted on, so that all dependencies are processed before the dependent items. [[ID=**15**]]
[0074] As an example, for a node in the directed dependency graph, the in-degree of the node can indicate the number of edges pointing to the node. Among them, all the edges in the directed dependency graph can be traversed to count the in-degree of each node. For example, in the directed dependency graph, if configuration item M1 depends on configuration item M2, then the in-degree of configuration item M1 is incremented by 1. Add all nodes with an in-degree of 0 to the queue. Nodes with an in-degree of 0 indicate that there are no prerequisite dependencies and can be processed first. For example, in a simple configuration item dependency graph, if configuration item M3 has no prerequisite dependencies, its in-degree is initialized to 0 and added to the queue.
[0075] Take a node from the queue and add it to the topological sorting result list. Traverse all the neighbor nodes of this node (i.e., the nodes pointed to by this node), and decrement the in-degree of each neighbor node by 1. If the in-degree of a certain neighbor node is decremented to 0, add it to the queue. For example, if the configuration item M3 is taken out of the queue and it points to the configuration items M4 and M5, then decrement the in-degree of the configuration items M4 and M5 by 1. If the in-degree of the configuration item M4 becomes 0 at this time, add the configuration item M4 to the queue. Repeat the operations of dequeueing, processing nodes, and updating the in-degree of neighbor nodes until the queue is empty.
[0076] Step S302, when the target configuration item acts, determine the pre-dependency items of the target configuration item according to the target configuration item and the directed dependency graph.
[0077] As can be seen from the above, the directed dependency graph indicates the pre-dependency items of the target configuration item, that is, the directed dependency graph records the target configuration item and its pre-dependency items. When the target configuration item acts, the pre-dependency items of the target configuration item can be determined from the directed dependency graph.
[0078] The configuration processing method of the baseboard management controller provided in this embodiment can quickly locate its pre-dependency items through the directed dependency graph when the target configuration item needs to act by obtaining the directed dependency graph indicating the pre-dependency items of the target configuration item, without having to traverse the entire system or application to search, improving efficiency.
[0079] In a possible implementation, the above method further includes: Step c2, when there is a cyclic dependency between the target configuration item and its pre-dependency items in the directed dependency graph corresponding to the target configuration item, determine that the target configuration item needs to stop acting.
[0080] Cyclic dependency can indicate that in the directed dependency graph, there is one or more paths such that a closed-loop dependency relationship is formed between configuration items. For example: Configuration item M1 depends on configuration item M2, and configuration item M2 depends on configuration item M1 again, forming a closed loop. Then there is a cyclic dependency between configuration item M1 and configuration item M2. When there is a cyclic dependency between the target configuration item and its pre-dependency items in the directed dependency graph corresponding to the target configuration item, determine that the target configuration item needs to stop acting.
[0081] In the configuration processing method of the baseboard management controller provided in this embodiment, cyclic dependency means that there is a situation of mutual waiting between configuration items, which may cause the system to fall into deadlock or infinite loop and unable to continue executing subsequent tasks. By detecting cyclic dependency and stopping acting, invalid occupation of resources can be avoided.
[0082] In a possible implementation, the association information further includes: currently available resources; and the above step S2021 includes: Step d1, obtain the target available resources corresponding to the target configuration item; wherein, the target available resources are the resources for which the target configuration item does not need to stop the action.
[0083] The target available resources can indicate the resources required for the target configuration item not to stop the action due to reasons such as insufficient resources when performing the normal action. The target available resources are necessary for the smooth operation of the target configuration item, such as memory, disk space, etc.
[0084] The current available resources corresponding to the target configuration item can be the resources that the system can currently allocate. Among them, the current available resources can be obtained by provided tools or interfaces. For example, in the Linux system, the free command can be used to obtain the memory usage, and the df command can be used to obtain the disk space usage, etc. By parsing the output results of the commands, the information of the currently available memory size, disk space, etc. can be obtained.
[0085] Step d2, determine that the target configuration item needs to stop the action according to the comparison result between the target available resources and the current available resources.
[0086] The comparison result can indicate whether the target available resources corresponding to the target configuration item meet the current available resources. Among them, when the target available resources meet the current available resources, the target configuration item does not need to stop the action. When the target available resources do not meet the current available resources, the target configuration item needs to stop the action.
[0087] Specifically, the current available resources include the current remaining memory, the current remaining disk space, the current network bandwidth, and the current thread pool status. Correspondingly, the target available resources include: the target remaining memory, the target remaining disk space, the target network bandwidth, and the target thread pool status; and the above step d2 includes: when any one of the current remaining memory is not less than the target remaining memory, the current remaining disk space is not less than the target remaining disk space, the current network bandwidth is not less than the target network bandwidth, and the current thread pool status does not meet the target thread pool status is established, determine that the target configuration item needs to stop the action.
[0088] The target available resources include: the target remaining memory, the target remaining disk space, the target network bandwidth, and the target thread pool status, which are the resources occupied by the target configuration item when performing the action.
[0089] The target remaining memory can indicate the minimum remaining memory size required for the normal operation of the target configuration item. The target remaining disk space can indicate the minimum remaining disk space size required for the normal operation of the target configuration item. The target network bandwidth can indicate the minimum network bandwidth required for the normal operation of the target configuration item. The target thread pool status can indicate the status conditions that the thread pool should meet when the target configuration item is operating normally.
[0090] The current remaining memory can indicate the size of the memory that is currently unoccupied. The current remaining disk space can indicate the size of the storage space on the disk that is not in use. The current network bandwidth can indicate the amount of data that the network can transmit per unit time. The current thread pool status can indicate the comprehensive status of information such as the number of currently available threads, the number of threads being executed, and the number of threads waiting to be executed in the thread pool.
[0091] When any one of the following conditions is met: the current remaining memory is not less than the target remaining memory, the current remaining disk space is not less than the target remaining disk space, the current network bandwidth is not less than the target network bandwidth, and the current thread pool status does not meet the target thread pool status, it indicates that the target configuration item cannot perform an action, and it is determined that the target configuration item needs to stop the action.
[0092] In the configuration processing method of the baseboard management controller provided in this embodiment, when any one of the following conditions is met: the current remaining memory is not less than the target remaining memory, the current remaining disk space is not less than the target remaining disk space, the current network bandwidth is not less than the target network bandwidth, and the current thread pool status does not meet the target thread pool status, it is determined that the target configuration item needs to stop the action, effectively preventing serious problems such as system crashes and data loss caused by resource exhaustion, and ensuring the stable operation of the system.
[0093] In a possible implementation manner, the associated information further includes: the version range of the target configuration item; and the above step S2021 includes: Step e1, obtaining the firmware version of the baseboard management controller.
[0094] The firmware version can indicate the software program embedded in the BMC. Different firmware versions may include different function supports, performance optimizations, vulnerability fixes, etc. for the BMC.
[0095] The associated information can include the version range of the target configuration item. Among them, the version range can indicate the set of versions that the target configuration item can be supported. For example, "V1.0 - V2.0" means that all versions between version 1.0 and version 2.0 (including 1.0 and 2.0) are acceptable.
[0096] The firmware version of the BMC can be obtained through various channels.
[0097] As an example, a dedicated server management tool can be used. The server management tool provides an interface for communicating with the BMC and can query and display relevant information of the BMC, including the firmware version. For example, the command-line tools or graphical interface management software provided by some server manufacturers, and users can obtain the BMC firmware version by executing corresponding commands or operations.
[0098] As an example, communication can be carried out with the BMC through a remote management protocol (such as IPMI, Intelligent Platform Management Interface), and specific commands can be sent to obtain the firmware version.
[0099] Step e2, when the versions existing in the version range of the target configuration item do not support the firmware version of the baseboard management controller, determine that the target configuration item needs to stop operating.
[0100] After obtaining the firmware version, it is necessary to check the version range defined by the target configuration item. Compare the firmware version with each version in the version range of the target configuration item. If it is found that none of the versions in the version range are compatible with the firmware version (that is, there is no version that supports the firmware version), it is determined that the firmware version does not support the target configuration item, and it is determined that the target configuration item needs to stop operating.
[0101] For example: The version range of the target configuration item is defined as "V2.0 - V3.0". And the BMC firmware version obtained through step e1 is "V1.5". Since the version range "V2.0 - V3.0" does not include "V1.5", that is, the BMC firmware version "V1.5" does not support the version range of the target configuration item of this network configuration function, so in step e2, it will be determined that this network configuration function needs to stop related configuration operations to prevent problems such as network failures caused by firmware incompatibility.
[0102] For the configuration processing method of the baseboard management controller provided in this embodiment, different versions of BMC firmware may have compatibility differences with the target configuration item. By comparing the version range of the target configuration item with the BMC firmware version, it can be ensured that the target configuration item is allowed to operate only when the BMC firmware version is within the range supported by the target configuration item, thus avoiding system failures or functional abnormalities caused by version incompatibility.
[0103] In a possible implementation manner, the above method further includes: Step S401, determine the fault type of the target configuration item according to the association information of the target configuration item.
[0104] The fault type can indicate the type of problem that occurs in the target configuration item. According to different problems of the target configuration item, the fault type can have various classification methods. For example, for hardware configuration items, the fault type may include hardware damage, connection failure, power supply problems, etc.; for software configuration items, the fault type may include insufficient permissions, failed legitimacy verification, etc.
[0105] When the configuration item status corresponding to the associated information of the target configuration item indicates a failure status corresponding to the associated information, it indicates that there is a problem with the target configuration item. Then, the associated information can be determined first, and then the fault type can be determined. The associated information can be the access permission corresponding to the target configuration item, the configuration information of the target configuration item, the status information of the pre-dependency of the target configuration item, etc. Among them, when the associated information for determining that there is a problem with the target configuration item is the access permission corresponding to the target configuration item, the fault type can be determined as the permission type according to the access permission corresponding to the target configuration item. When the associated information for determining that there is a problem with the target configuration item is the configuration information of the target configuration item, the fault type can be determined as the configuration information type according to the configuration information of the target configuration item.
[0106] Step S402: According to the fault type of the target configuration item, determine the fault cause corresponding to the fault type of the target configuration item, and record the fault cause corresponding to the fault type of the target configuration item in the log.
[0107] After determining the fault type of the target configuration item, further search for the fault cause that may lead to this fault type. Among them, when the associated information for determining that there is a problem with the target configuration item is the configuration information of the target configuration item, the fault type can be determined as the configuration information type according to the configuration information of the target configuration item. When the fault type is the configuration information type, it can be further determined which step in the detection corresponding to the configuration information type has an error, that is, the configuration item format and the configuration item value of the target configuration item can be detected. When there is a problem with the configuration item format of the target configuration item, the fault cause can indicate a configuration item format error. When there is a problem with the configuration item value of the target configuration item, the fault cause can indicate a configuration item value error.
[0108] The configuration processing method of the baseboard management controller provided in this embodiment further analyzes the fault cause corresponding to the fault type of the target configuration item for each fault type, and records the fault cause corresponding to the fault type of the target configuration item in the log, which is convenient for technicians to review.
[0109] In a possible implementation manner, the above method further includes: Step S403: According to the action of the target configuration item, determine the target state corresponding to each action process when the target configuration item is in action; where the target state is a waiting import state, a configuration item verification state, an execution import state, an import completed state, an import failed state, a verification failed state, or a fault recovery state.
[0110] The waiting-for-import state can indicate the state that a target configuration item is in when it is in the preparation stage and waiting to start importing data or performing other operations. The configuration item verification state can indicate the state where the target configuration item needs to be verified before performing a specific operation. The executing-import state can indicate the state that a target configuration item is in when actually starting to execute the import of the target configuration item. The import-completed state can indicate the state after the import of the target configuration item is completed. The import-failed state can indicate the state when an error occurs during the import process of the target configuration item. The verification-failed state can indicate the state if the verification of the target configuration item fails during the configuration item verification process. The fault-recovery state can indicate the state that a target configuration item is in when a fault occurs during an operation, and after troubleshooting and repair, it returns to a state where it can normally perform operations.
[0111] In this embodiment, the target state can indicate the state of each process in the entire process of a target configuration item performing an operation. Among them, the entire process of the target configuration item operation can include: waiting for import of the configuration item, configuration item verification process, configuration item executing import process, configuration item import completed process, configuration item fault recovery process.
[0112] For each process in the entire process of the target configuration item operation, the target state of the target configuration item can be updated in real time. For example: when the target configuration item starts to be imported, its target state can be the waiting-for-import state; when the target configuration item is undergoing configuration item verification, its target state can be the configuration item verification state; when the configuration item verification fails, its target state can be the configuration item verification-failed state.
[0113] The configuration processing method of the baseboard management controller provided in this embodiment details the operation process of the target configuration item into specific states such as waiting for import, configuration item verification, executing import, import completed, import failed, verification failed, and fault recovery, making the state of each stage clear and definite, facilitating technicians to monitor and manage in real time.
[0114] Please refer to Figure 3 , Figure 3 which is another process schematic diagram of the configuration processing method of the baseboard management controller provided according to the embodiment of the present invention.
[0115] Combined with Figure 3 as shown, in a possible implementation, the associated information of the target configuration item can include: the access permission corresponding to the target configuration item, the configuration information of the target configuration item, the status information of the pre-dependency items of the target configuration item, the currently available resources, and the version range of the target configuration item.
[0116] Among them, when the target configuration item is in the verification process, the verification order of the target configuration item according to its associated information can be as follows: The first step is to verify the access permission corresponding to the target configuration item; the second step is to verify the configuration information of the target configuration item after the access permission corresponding to the target configuration item is verified successfully; the third step is to verify the status information of the prerequisite dependencies of the target configuration item after the configuration information of the target configuration item is verified successfully; the fourth step is to verify the currently available resources after the status information of the prerequisite dependencies of the target configuration item is verified successfully; and the fifth step is to verify the version range of the target configuration item after the currently available resources are verified successfully. Among them, when any verification step is successful, the status corresponding to this step is updated to the success status. For example, after the access permission corresponding to the target configuration item is verified successfully, the status can be updated to the status that the access permission corresponding to the target configuration item is verified successfully; after the configuration information of the target configuration item is verified successfully, the status can be updated to the status that the configuration information of the target configuration item is verified successfully; after the status information of the prerequisite dependencies of the target configuration item is verified successfully, the status can be updated to the status that the status information of the prerequisite dependencies of the target configuration item is verified successfully; after the currently available resources are verified successfully, the status can be updated to the status that the available resources are verified successfully; after the version range of the target configuration item is verified successfully, the status is updated to the status that the version range of the target configuration item is verified successfully.
[0117] The following verification mechanism can be adopted to implement the verification of the associated information of each target configuration item.
[0118] The state machine model can be pre-configured. Each piece of associated information can correspond to a verification module, and the verification module can be used as a verification node. Among them, when a verification node is verified successfully, it can jump to the next node to continue the verification of the associated information corresponding to this node. For example, after the access permission corresponding to the target configuration item is verified successfully, the configuration information of the target configuration item can be verified.
[0119] The verification module corresponding to each piece of associated information can be encapsulated as a pluggable function or class.
[0120] When a verification node fails to be verified, the action of the target configuration item is aborted. Among them, during the verification process of the configuration information of the target configuration item, when the mandatory fields of the target configuration item in the configuration item information of the target configuration item are empty, it can jump to the verification of the status information of the prerequisite dependencies of the target configuration item.
[0121] When a verification node fails to be verified, the reason for the verification failure is generated and recorded in the log.
[0122] The configuration processing method of the baseboard management controller provided in this embodiment can, compared with the traditional "parallel concurrent verification" mechanism or unordered verification method, prioritize the identification of "pre-failure conditions" such as insufficient permissions and illegal values and terminate the process, saving invalid computing resources; and avoid wasting resources when the user has no permissions at all.
[0123] In a possible implementation, the above method further includes: Step S404, when the number of target configuration items is multiple, for each target configuration item, create a status record table corresponding to the target configuration item; wherein, the status record table is used to record the target status of the target configuration item during the action process.
[0124] The status record table is used to record the target status of the target configuration item during the action process. When the number of target configuration items is multiple, it can indicate that the number of target statuses and failure reasons of the target configuration items to be recorded is multiple. A status record table corresponding to each target configuration item can be created respectively, so that each target configuration item has an independent status record table to ensure that each target configuration item will not be confused.
[0125] As an example, the file system can be used to store the status record table. For example, create an independent text file or Comma-Separated Values (CSV) file for each target configuration item to record the target status of the target configuration item during the action process.
[0126] For the configuration processing method of the baseboard management controller provided in this embodiment, each target configuration item has an independent status record table to ensure that each target configuration item will not be confused.
[0127] In a possible implementation, the above method further includes: Step S501, send the target status of the target configuration item during the action process to the display interface.
[0128] The display interface indicates the visual presentation area for the user to interact with the BMC. Among them, it can exist in the form of a Graphical User Interface (GUI). Specifically, it includes the target status, color, etc. of the target configuration item, so that the user can intuitively understand the running situation of the target configuration item.
[0129] During specific implementation, the target status of the target configuration item during the action process can be obtained in real time or regularly. The current status of the target configuration item can be judged by monitoring information such as the running log of the target configuration item. For example, if the target configuration item is being imported, it can be determined whether it is in the "waiting for import state", "executing import state", or "import completed state" by checking the log record of the import operation.
[0130] Encapsulate the obtained target status. The encapsulation method can be to convert it into a specific data format, such as JSON, XML, etc. For example, encapsulate the target status into a JSON object containing information such as the action process of the target configuration item and the target status. Send the encapsulated target status data to the display interface. Specifically, it can be achieved through network communication (such as HTTP requests, WebSocket connections, etc.). For example, if the display interface is a Web application, the system can send the target status data to the Web server through an HTTP request, and then the Web server passes the data to the front-end page for display.
[0131] Step S502: Determine the target color of the target configuration item corresponding to the target status according to the target status and the preset color of the target configuration item.
[0132] The preset color of the target configuration item can be a pre-set color used to distinguish different target statuses of the target configuration item on the display interface. Each target status of the target configuration item has its corresponding preset color.
[0133] In specific implementation, a mapping relationship between the target status and the target color can be established. For example, a mapping table can be defined to map different target statuses to different colors. For example, map the "waiting for import status" to gray, the "configuration item verification status" to blue, the "executing import status" to yellow, the "import completed status" to green, the "import failed status" to red, the "verification failed status" to orange, the "fault recovery status" to light green, etc.
[0134] Step S503: Update the current color of the target configuration item according to the target color.
[0135] Generate a corresponding color update instruction according to the determined target color. The color update instruction needs to contain the identifier of the target configuration item and the target color information so as to accurately update the color of the corresponding target configuration item. For example, generate an instruction to specify that the color of the target configuration item ConfigItem_001 is updated to green.
[0136] The configuration processing method of the baseboard management controller provided in this embodiment maps the target status of the target configuration item to a specific color, so that the user can quickly understand the current status of the configuration item without viewing the detailed text description. Moreover, when multiple target configuration items are running, the target configuration item with problems can be quickly located through the color.
[0137] In a possible implementation manner, step S501 includes: Step S5011: Establish a WebSocket connection when the target configuration item performs an action.
[0138] WebSocket is a protocol for full-duplex communication over a single TCP connection. WebSocket allows for real-time two-way data transmission between a server and a client. Once a WebSocket connection is established, data can be actively sent to the receiver at any time without waiting for a request from the receiver.
[0139] During specific implementation, the target state of a target configuration item can be monitored in real time. When it is detected that the target configuration item starts to execute an action, the process of establishing a WebSocket connection is triggered. Specifically, on the Web interface side (client), a WebSocket connection request can be initiated to the server through JavaScript code.
[0140] Step S5012, using the WebSocket connection, send the target state of the target configuration item during the action process to the Web interface.
[0141] Obtain the target state of the target configuration item during the action process in real time. Package the obtained target state so that the target state of the target configuration item during the action process can be sent to the Web interface through the WebSocket connection.
[0142] In a possible implementation, the Web interface can also display a progress bar for the target configuration item. Among them, the progress bar of the target configuration item can display the action process of the target configuration item in real time.
[0143] For the configuration processing method of the baseboard management controller provided in this embodiment, when the state of the target configuration item changes, the server can immediately push the latest state information to the Web interface through the WebSocket connection, and users can see the action process and current state of the configuration item in real time, reducing latency.
[0144] In a possible implementation, a detailed report document containing all configuration items can be generated.
[0145] After the target configuration item finishes the action, generate a report containing the status, failure reasons, and time consumption of all configuration items. This report supports formats such as JSON or CSV or Markdown, etc. And this report can be accompanied by charts (statistics on the trend of failed items). Among them, this report can include: statistical information according to the types of errors during the action process of the target configuration item. Classify and summarize the types of errors (permission types, format types, etc.) that failed during the action process of the target configuration item, and display the frequency of failures during the action process of the target configuration item, etc.
[0146] In a possible implementation, the above method further includes: Step S601, obtain the error code field corresponding to the associated information of the target configuration item.
[0147] An error field can indicate a code for identifying a specific error type. When an error occurs during the operation of a target configuration item, a corresponding error field is generated, which can uniquely identify the error. The error code field can exist in the form of numbers, letters, or a combination of them, and different error codes correspond to different error situations.
[0148] In specific implementation, when a problem occurs in the operation of the target configuration item, the error code field can be searched for and extracted from the log.
[0149] Step S602, determine the target solution corresponding to the error code field from the initial error solution table; wherein, the initial error solution table includes the association relationship between the error code field and the preset solution.
[0150] Step S603, write the target solution into the log.
[0151] The initial error solution table can indicate a predefined initial error solution table, which contains the association relationship between the error code field and the preset solution. The initial error solution table can be formulated by developers or operation and maintenance personnel based on past experience and solutions to common problems, and is used to quickly find the corresponding solution when an error occurs.
[0152] The preset solution is a solution method or operation step preset for the error code field. The target solution is a measure to solve the error code field.
[0153] According to the obtained error code field, query the initial error solution table. The way to query the initial error solution table can be to directly execute an SQL query statement in the database or to search in a data structure in memory. After determining the target solution corresponding to the error code field, write the target solution into the log.
[0154] The configuration processing method of the baseboard management controller provided in this embodiment can, after determining the error code field, determine the corresponding target solution according to the error code field, so as to facilitate the correction of the error in the operation of the target configuration item.
[0155] In a possible implementation, the above method further includes: Step S604, when there is no association relationship between the error code field and the preset solution, use a neural network model to obtain a target error solution table according to the error code field and the initial error solution table.
[0156] Query the initial error solution table to check if there is a corresponding preset solution in the table for the error code field. If the query result is empty, that is, no preset solution associated with the error code field is found, it is determined that there is no association relationship between the error code field and the preset solution.
[0157] When there is no association relationship between the error code field and the preset solution, collect all the data corresponding to the error solutions in the initial error solution table, including the error code field and the corresponding preset solution. Preprocess the collected data to make it suitable for the input requirements of the neural network model. For example, encode the error code field to convert it into a numerical form; perform text vectorization on the preset solution to convert the text information into a numerical vector that can be processed by the computer. For auxiliary features, corresponding normalization or standardization processing is also required. Construct the input data set of the neural network model from the preprocessed error code field and the initial error solution table. Use the neural network model to obtain the target error solution table based on the error code field and the initial error solution table.
[0158] After determining the target error solution table, the solution corresponding to the error code field can be further determined according to the target error solution table.
[0159] For the configuration processing method of the baseboard management controller provided in this embodiment, the neural network model can process the error code field in real time and quickly generate the corresponding target error solution, reducing the time for manual search and judgment and improving the efficiency of error solution.
[0160] In this embodiment, a configuration processing device for a baseboard management controller is also provided. This device is used to implement the above embodiments and preferred implementation manners, and those that have been described will not be repeated. As used hereinafter, the term "module" can be a combination of software and / or hardware that can achieve a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.
[0161] This embodiment provides a configuration processing device for a baseboard management controller. The device includes: an acquisition module, configured to acquire the association information of a target configuration item when the target configuration item among multiple configuration items to be operated performs an action; wherein, the association information includes the access permission corresponding to the target configuration item, the action includes import or export, and the target configuration item is any one of the multiple configuration items to be operated; a determination module, configured to determine the configuration item status corresponding to the association information of the target configuration item according to the association information of the target configuration item; wherein, the configuration item status is the success status or failure status corresponding to the association information; an update module, configured to update the current status of the target configuration item according to the configuration item status.
[0162] In a possible implementation, the determination module includes: a first determination unit configured to determine whether a target configuration item needs to stop acting according to the association information of the target configuration item; a second determination unit configured to, if the target configuration item needs to stop acting, stop the action of the target configuration item and determine the configuration item status as the failure status corresponding to the association information; and a third determination unit configured to, if the target configuration item does not need to stop acting, determine the configuration item status as the success status corresponding to the association information.
[0163] In a possible implementation, the first determination unit includes: a first acquisition subunit configured to acquire the unique authentication identifier of the user at the time of login and the access right corresponding to the target configuration item; a first determination subunit configured to determine the target access right corresponding to the unique authentication identifier according to the association relationship between the unique authentication identifier and the preset access right and the unique authentication identifier; and a second determination subunit configured to, when the target access right is lower than the access right corresponding to the target configuration item, determine that the target configuration item needs to stop acting.
[0164] In a possible implementation, the association information further includes: the configuration information of the target configuration item; and the first determination unit includes: a third determination subunit configured to determine the target configuration information of the target configuration item according to the association relationship between the target configuration item and the preset configuration information and the target configuration item; wherein the target configuration information is the configuration information in which the target configuration item does not need to stop acting; and a fourth determination subunit configured to, when the configuration information of the target configuration item does not conform to the target configuration information, determine that the target configuration item needs to stop acting.
[0165] In a possible implementation, the configuration information of the target configuration item includes the configuration item format and the configuration item value. Correspondingly, the target configuration information includes the target format and the target value range; and the fourth determination subunit is configured to, when any one of the condition that the configuration item format is different from the target format and the condition that the configuration item value is not within the target value range holds, determine that the target configuration item needs to stop acting.
[0166] In a possible implementation, the association information further includes: the status information of the pre-dependency of the target configuration item; and the first determination unit includes: a fifth determination subunit configured to, when the status information of the pre-dependency of the target configuration item indicates that the pre-dependency of the target configuration item is not imported into the import list corresponding to the target configuration item or the pre-dependency of the target configuration item is not enabled, determine that the target configuration item needs to stop acting.
[0167] In a possible implementation, the above device further includes: a directed dependency graph acquisition module configured to acquire the directed dependency graph corresponding to the target configuration item; wherein the directed dependency graph indicates the pre-dependency of the target configuration item; and a pre-dependency determination module configured to, when the target configuration item acts, determine the pre-dependency of the target configuration item according to the target configuration item and the directed dependency graph.
[0168] In a possible implementation, the above device further includes: a dependency determination module, configured to determine that the target configuration item needs to stop operating when there is a cyclic dependency between the target configuration item and the pre-dependency of the target configuration item in the directed dependency graph corresponding to the target configuration item.
[0169] In a possible implementation, the association information further includes: current available resources; and the first determination unit includes: a second acquisition subunit, configured to acquire the target available resources corresponding to the target configuration item; where the target available resources are the resources for which the target configuration item does not need to stop operating; a sixth determination subunit, configured to determine that the target configuration item needs to stop operating according to the comparison result between the target available resources and the current available resources.
[0170] In a possible implementation, the current available resources include current remaining memory, current remaining disk space, current network bandwidth, and current thread pool status. Correspondingly, the target available resources include: target remaining memory, target remaining disk space, target network bandwidth, and target thread pool status; and the sixth determination subunit is configured to determine that the target configuration item needs to stop operating when any one of the following conditions is satisfied: the current remaining memory is not less than the target remaining memory, the current remaining disk space is not less than the target remaining disk space, the current network bandwidth is not less than the target network bandwidth, and the current thread pool status does not meet the target thread pool status.
[0171] In a possible implementation, the association information further includes: the version range of the target configuration item; and the above first determination unit includes: a third acquisition subunit, configured to acquire the firmware version of the baseboard management controller; a seventh determination subunit, configured to determine that the target configuration item needs to stop operating when there is a version in the version range of the target configuration item that does not support the firmware version of the baseboard management controller.
[0172] In a possible implementation, the above device further includes: a fault type determination module, configured to determine the fault type of the target configuration item according to the association information of the target configuration item; a fault cause determination module, configured to determine the fault cause corresponding to the fault type of the target configuration item according to the fault type of the target configuration item, and record the fault cause corresponding to the fault type of the target configuration item in a log.
[0173] In a possible implementation, the above device further includes: a status determination module, configured to determine the target status corresponding to each action process when the target configuration item is operating according to the action of the target configuration item; where the target status is a waiting for import status, a configuration item verification status, an execution import status, an import completion status, an import failure status, a verification failure status, or a fault recovery status.
[0174] In a possible implementation, the above-mentioned device further includes: a creation module, configured to, when the number of target configuration items is multiple, respectively create a status record table corresponding to each target configuration item; wherein, the status record table is used to record the target status of the target configuration item during the action process.
[0175] In a possible implementation, the above-mentioned device further includes: a status sending module, configured to send the target status of the target configuration item during the action process to the display interface; a color determination module, configured to determine the target color of the target configuration item corresponding to the target status according to the target status and the preset color of the target configuration item; a color update module, configured to update the current color of the target configuration item according to the target color.
[0176] In a possible implementation, the status sending module includes: an establishment unit, configured to establish a WebSocket connection when the target configuration item performs an action; a status sending unit, configured to use the WebSocket connection to send the target status of the target configuration item during the action process to the Web interface.
[0177] In a possible implementation, the above-mentioned device further includes: an error code field acquisition module, configured to acquire the error code field corresponding to the associated information of the target configuration item; a solution determination module, configured to determine the target solution corresponding to the error code field from the initial error solution table; wherein, the initial error solution table includes the association relationship between the error code field and the preset solution; a writing module, configured to write the target solution into the log.
[0178] In a possible implementation, the above-mentioned device further includes: a neural network module, configured to, when there is no association relationship between the error code field and the preset solution, use the neural network model to obtain the target error solution table according to the error code field and the initial error solution table.
[0179] The further function descriptions of the above-mentioned various modules and units are the same as those in the corresponding above-mentioned embodiments, and will not be elaborated here.
[0180] The configuration processing device of the baseboard management controller in this embodiment is presented in the form of functional units. Here, the functional units refer to ASIC (Application Specific Integrated Circuit) circuits, processors and memories that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0181] The embodiment of the present invention further provides a computer device, which has the above-mentioned configuration processing device of the baseboard management controller.
[0182] Please refer to Figure 4, Figure 4 is a schematic structural diagram of a computer device provided by an alternative embodiment of the present invention. As Figure 4 shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including a high-speed interface and a low-speed interface. Each component communicates with each other using different buses and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed within the computer device, including instructions stored in the memory or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some alternative embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (such as a server array, a set of blade servers, or a multi-processor system). Figure 4 In
[0183] FIG. 403, a single processor 10 is taken as an example.
[0184] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiments.
[0185] The memory 20 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created according to the use of the computer device. In addition, the memory 20 may include a high-speed random access memory, and may further include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some alternative embodiments, the memory 20 may optionally include a memory remotely provided with respect to the processor 10, and these remote memories can be connected to the computer device through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.
[0186] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk, or a solid-state drive; the memory 20 may further include a combination of the above types of memories.
[0187] The computer device further includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30, and the output device 40 may be connected through a bus or other means. Figure 4 Taking connection through a bus as an example.
[0188] The input device 30 can receive input digital or character information, and generate key signal inputs related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a trackpad, a touchpad, a pointing stick, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED), and a haptic feedback device (e.g., a vibration motor), etc. The above display device includes, but is not limited to, a liquid crystal display, a light-emitting diode, a display, and a plasma display. In some alternative embodiments, the display device may be a touch screen.
[0189] The computer device further includes a communication interface for the computer device to communicate with other devices or communication networks.
[0190] The embodiments of the present invention further provide a computer-readable storage medium. The methods according to the embodiments of the present invention can be implemented in hardware, firmware, or be implemented as computer code that can be recorded on a storage medium, or be implemented by downloading through a network the original computer code stored in a remote storage medium or a non-transitory machine-readable storage medium and to be stored in a local storage medium, so that the methods described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, or a solid-state drive, etc.; further, the storage medium may further include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code, and when the software or computer code is accessed and executed by the computer, the processor, or the hardware, the methods shown in the above embodiments are implemented.
[0191] A part of the present invention can be applied as a computer program product, for example, computer program instructions, which, when executed by a computer, can call or provide the methods and / or technical solutions according to the present invention through the operations of the computer. Those skilled in the art should understand that the forms of existence of computer program instructions in a computer-readable medium include but are not limited to source files, executable files, installation package files, etc. Correspondingly, the ways for a computer to execute computer program instructions include but are not limited to: the computer directly executes the instructions, or the computer compiles the instructions and then executes the corresponding compiled program, or the computer reads and executes the instructions, or the computer reads and installs the instructions and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.
[0192] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A configuration processing method for a baseboard management controller, characterized in that, The method includes: When a target configuration item among multiple configuration items to be acted on performs an action, obtain the associated information of the target configuration item; wherein, the associated information includes the access permission corresponding to the target configuration item, the action includes import or export, and the target configuration item is any one of the multiple configuration items to be acted on; Determine the configuration item status corresponding to the associated information of the target configuration item according to the associated information of the target configuration item; wherein, the configuration item status is the success status or failure status corresponding to the associated information; Update the current status of the target configuration item according to the configuration item status.
2. The configuration processing method of the baseboard management controller according to claim 1, wherein The determining the configuration item status corresponding to the associated information of the target configuration item according to the associated information of the target configuration item includes: Determine whether the target configuration item needs to stop the action according to the associated information of the target configuration item; If the target configuration item needs to stop the action, stop the action of the target configuration item and determine the configuration item status as the failure status corresponding to the associated information; If the target configuration item does not need to stop the action, determine the configuration item status as the success status corresponding to the associated information.
3. The configuration processing method of the baseboard management controller according to claim 2, wherein The determining whether the target configuration item needs to stop the action according to the associated information of the target configuration item includes: Obtain the unique authentication identifier of the user at the time of login and the access permission corresponding to the target configuration item; Determine the target access permission corresponding to the unique authentication identifier according to the association relationship between the unique authentication identifier and the preset access permission and the unique authentication identifier; When the target access permission is lower than the access permission corresponding to the target configuration item, determine that the target configuration item needs to stop the action.
4. The configuration processing method of the baseboard management controller according to claim 2, wherein The associated information further includes: the configuration information of the target configuration item; and the determining whether the target configuration item needs to stop the action according to the associated information of the target configuration item includes: Determine the target configuration information of the target configuration item according to the association relationship between the target configuration item and the preset configuration information and the target configuration item; wherein, the target configuration information is the configuration information when the target configuration item does not need to stop the action; When the configuration information of the target configuration item does not conform to the target configuration information, determine that the target configuration item needs to stop the action.
5. The configuration processing method of the baseboard management controller according to claim 4, characterized in that, The configuration information of the target configuration item includes the configuration item format and the configuration item value. Correspondingly, the target configuration information includes the target format and the target value range; and the determining that the target configuration item needs to stop the action when the configuration information of the target configuration item does not conform to the target configuration information includes: When any one of the configuration item format being different from the target format and the configuration item value not being within the target value range holds, determine that the target configuration item needs to stop the action.
6. The configuration processing method of the baseboard management controller according to claim 2, characterized in that, The associated information further includes: the status information of the pre-dependency items of the target configuration item; and the determining whether the target configuration item needs to stop the action according to the associated information of the target configuration item includes: When the status information of the pre-dependency items of the target configuration item indicates that the pre-dependency items of the target configuration item have not been imported into the import list corresponding to the target configuration item or the pre-dependency items of the target configuration item have not been enabled, determine that the target configuration item needs to stop the action.
7. The configuration processing method of the baseboard management controller according to claim 6, wherein, The method further includes: Obtain a directed dependency graph corresponding to the target configuration item; wherein, the directed dependency graph indicates the pre-dependency items of the target configuration item; When the target configuration item acts, determine the pre-dependency items of the target configuration item according to the target configuration item and the directed dependency graph.
8. The configuration processing method of the baseboard management controller according to claim 6, characterized in that The method further includes: When there is a circular dependency between the target configuration item and the pre-dependency items of the target configuration item in the directed dependency graph corresponding to the target configuration item, determine that the target configuration item needs to stop acting.
9. The configuration processing method of the baseboard management controller according to claim 2, wherein, The associated information further includes: current available resources; and determining whether the target configuration item needs to stop acting according to the associated information of the target configuration item includes: Obtain the target available resources corresponding to the target configuration item; wherein, the target available resources are resources for which the target configuration item does not need to stop acting; Determine that the target configuration item needs to stop acting according to the comparison result between the target available resources and the current available resources.
10. The configuration processing method of the baseboard management controller according to claim 9, characterized in that, The current available resources include the current remaining memory, the current remaining disk space, the current network bandwidth, and the current thread pool status. Correspondingly, the target available resources include: the target remaining memory, the target remaining disk space, the target network bandwidth, and the target thread pool status; and determining that the target configuration item needs to stop acting according to the comparison result between the target available resources and the current available resources includes: When any one of the conditions that the current remaining memory is not less than the target remaining memory, the current remaining disk space is not less than the target remaining disk space, the current network bandwidth is not less than the target network bandwidth, and the current thread pool status does not meet the target thread pool status holds, determine that the target configuration item needs to stop acting.
11. The configuration processing method of the baseboard management controller according to claim 2, wherein The associated information further includes: the version range of the target configuration item; and determining whether the target configuration item needs to stop acting according to the associated information of the target configuration item includes: Obtain the firmware version of the baseboard management controller; When there is a version in the version range of the target configuration item that does not support the firmware version of the baseboard management controller, determine that the target configuration item needs to stop acting.
12. The configuration processing method of the baseboard management controller according to any one of claims 2-11, characterized in that, After stopping the action of the target configuration item if the target configuration item needs to stop acting, the method further includes: Determine the fault type of the target configuration item according to the associated information of the target configuration item; According to the fault type of the target configuration item, determine the fault cause corresponding to the fault type of the target configuration item, and record the fault cause corresponding to the fault type of the target configuration item in the log.
13. The configuration processing method of the baseboard management controller according to claim 12, wherein The method further includes: Determine the target state corresponding to each action process when the target configuration item acts according to the action of the target configuration item; wherein, the target state is a waiting for import state, a configuration item verification state, an execution import state, an import completed state, an import failed state, a verification failed state, or a fault recovery state.
14. The configuration processing method of the baseboard management controller according to claim 13, wherein The method further includes: When the number of target configuration items is multiple, for each target configuration item, respectively create a status record table corresponding to the target configuration item; wherein, the status record table is used to record the target state of the target configuration item during the action process.
15. The configuration processing method of the baseboard management controller according to claim 13, characterized in that The method further includes: Send the target state of the target configuration item during the action process to the display interface; Determine the target color of the target configuration item corresponding to the target state according to the target state and the preset color of the target configuration item; Update the current color of the target configuration item according to the target color.
16. The configuration processing method of the baseboard management controller according to claim 15, characterized in that, Sending the target state of the target configuration item during the action to the display interface includes: When the target configuration item performs an action, establish a WebSocket connection; Using the WebSocket connection, send the target state of the target configuration item during the action to the Web interface.
17. The configuration processing method of the baseboard management controller according to claim 1, characterized in that, The method further includes: Obtain the error code field corresponding to the associated information of the target configuration item; Determine the target solution corresponding to the error code field from the initial error solution table; wherein, the initial error solution table includes the association relationship between the error code field and the preset solution; Write the target solution to the log.
18. The configuration processing method of the baseboard management controller according to claim 17, characterized in that The method further includes: When there is no association relationship between the error code field and the preset solution, use a neural network model to obtain a target error solution table according to the error code field and the initial error solution table.
19. A configuration processing device for a baseboard management controller, characterized in that, The device includes: An acquisition module, configured to acquire the associated information of the target configuration item when the target configuration item among multiple configuration items to be acted upon performs an action; wherein, the associated information includes the access permission corresponding to the target configuration item, the action includes import or export, and the target configuration item is any one of the multiple configuration items to be acted upon; A determination module, configured to determine the configuration item state corresponding to the associated information of the target configuration item according to the associated information of the target configuration item; wherein, the configuration item state is the success state or the failure state corresponding to the associated information; An update module, configured to update the current state of the target configuration item according to the configuration item state.
20. A computer device, characterized in that, Includes: A memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to execute the configuration processing method of the baseboard management controller according to any one of claims 1 to 18.
21. A computer-readable storage medium, characterized in that, Computer instructions are stored on the computer-readable storage medium, and the computer instructions are used to cause a computer to execute the configuration processing method of the baseboard management controller according to any one of claims 1 to 18.
22. A computer program product, characterized in that, Includes computer instructions, and the computer instructions are used to cause a computer to execute the configuration processing method of the baseboard management controller according to any one of claims 1 to 18.
Citation Information
Patent Citations
Method and system for flexibly configuring baseboard management controller and medium
CN112631673A
Web-based BMC configuration import and export method and system
CN114047966A
Management method and device based on configuration center and storage medium
CN114254324A
Information configuration method and related equipment
CN119149124A
Database monitoring automatic deployment method and device, equipment and medium
CN119226094A