Configuration processing method and device of baseboard management controller

By obtaining the configuration item association information of the baseboard management controller and updating the configuration item status in real time, the problem of inaccurate fault location during the configuration item import or export process is solved, and efficient fault location and status management are achieved.

CN120407042BActive Publication Date: 2025-09-26INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510889558.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-09-26
Estimated Expiration
2045-06-30

AI Technical Summary

Technical Problem

When a fault occurs during the import or export of configuration items of a baseboard management controller, it is difficult for an administrator to quickly locate the problem, resulting in inaccurate fault location.

Method used

By obtaining the associated information of the target configuration item, including access rights, configuration information, and the status of pre-dependencies, the configuration item status is updated in real time to ensure that the configuration item can promptly reflect the success or failure status during the import or export process, avoiding manual inspection and decision-making one by one.

Benefits of technology

It improves the accuracy of fault location, reduces failures during configuration actions, and improves processing efficiency and clarity of status management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120407042B_ABST
    Figure CN120407042B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of computer technology, and discloses a configuration processing method and device for a baseboard management controller. The method comprises: when a target configuration item among a plurality of configuration items to be acted upon performs an action, obtaining associated information of the target configuration item; wherein the associated information comprises access rights corresponding to the target configuration item, the action comprises importing or exporting, and the target configuration item is any one of the plurality of configuration items to be acted upon; according to the associated information of the target configuration item, determining the 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 according to the configuration item status. According to the configuration item status determined by the associated information, the status corresponding to the associated information of the target configuration item during the import or export process is updated in real time, so as to avoid the administrator often finding it difficult to quickly locate the problem when a failure occurs during the configuration action, thereby improving the accuracy of fault location.
Need to check novelty before this filing date? Find Prior Art

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] In a second aspect, the present invention provides a configuration processing device for a baseboard management controller, which includes: an acquisition module, which is used to obtain 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 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; a determination module, which is used to determine the configuration item status corresponding to the associated information of the target configuration item based on 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 an update module, which is used to update the current status of the target configuration item according to the configuration item status.

[0009] In a third aspect, the present invention provides a computer device comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, computer instructions being stored in the memory, and the processor executing the configuration processing method of the baseboard management controller of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0010] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the configuration processing method of the baseboard management controller of the first aspect or any corresponding embodiment thereof.

[0011] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the configuration processing method for a baseboard management controller according to the first aspect or any corresponding embodiment thereof.

[0012] The configuration processing method of the baseboard management controller provided in this embodiment determines the success status or failure status corresponding to the associated information of the target configuration item during the import or export process through the associated information when the target configuration item is imported or exported, and updates the current status corresponding to the associated information for the target configuration item according to the success status or failure status corresponding to the associated information. This ensures that the status corresponding to the associated information of the target configuration item can be updated in real time when the target configuration item is imported or exported. Compared with the related art in which 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 of the target configuration item during the import or export process in real time according to the configuration item status determined by the associated information, thereby avoiding the administrator's difficulty in quickly locating the problem when a failure occurs during the configuration action, thereby improving the accuracy of fault location. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0014] Figure 1 1 is a schematic diagram of the architecture of a configuration processing system for a baseboard management controller according to an embodiment of the present invention;

[0015] Figure 2 is a flow chart of a configuration processing method of a baseboard management controller according to an embodiment of the present invention;

[0016] Figure 3 is another flowchart of a configuration processing method for a baseboard management controller provided in accordance with an embodiment of the present invention;

[0017] Figure 4 It is a structural diagram of a computer device provided by an optional embodiment of the present invention. DETAILED DESCRIPTION

[0018] To make the purpose, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of the present invention.

[0019] Please refer to Figure 1 , Figure 1 1 is a schematic diagram of the architecture of a configuration processing system of a baseboard management controller provided according to an embodiment of the present invention.

[0020] Combine Figure 1 As shown, the system includes: a user interaction layer, a core processing layer and a data persistence layer. The user interaction layer and the data persistence layer are respectively connected to the core processing layer for communication.

[0021] The user interaction layer can configure the import and export interfaces, the display panel for the target configuration item's configuration item status, and the report viewer. The report viewer can view the failure reason and failure location of each target configuration item.

[0022] The core processing layer may include: an import processor, an export processor, a state tracker, a parsing engine, and an error analyzer, wherein the state tracker may be in communication with the import processor, the export processor, the parsing engine, and the error analyzer.

[0023] The status tracker can track the status of the target configuration item in real time, specifically the success or failure status corresponding to the target configuration item's associated information. The parsing engine can parse the associated information to determine whether the target configuration item's associated information indicates that the target configuration item needs to stop operating. The error analyzer can determine the corresponding resolution measures based on the cause of the target configuration item's failure.

[0024] The data persistence layer can pre-store a configuration item database, logs, and an initial error resolution table. The status tracker can retrieve preset information about the target configuration item from the data persistence layer's configuration item database, such as its format and value. It can also directly determine the corresponding resolution from the initial error resolution table.

[0025] According to an embodiment of the present invention, an embodiment of a configuration processing method of 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 a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0026] 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 FIG. 1 is a flow chart of a configuration processing method of a baseboard management controller according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0027] Step S201: When a target configuration item among multiple configuration items to be acted upon is to be acted upon, association information of the target configuration item is obtained; wherein the association information includes access rights 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.

[0028] The multiple pending configuration items may indicate configuration items that need to be imported or exported and for which no action has been taken. The target configuration item is the configuration item to be acted upon. The target configuration item is any one of the multiple pending configuration items.

[0029] The associated information may indicate information that needs to be verified during the import or export process of the target configuration item, and may include access permissions corresponding to the target configuration item.

[0030] As an example, the associated information may also include: configuration information of the target configuration item, status information of a pre-dependent item of the target configuration item, etc., which are not specifically limited here.

[0031] Step S202: Determine the configuration item status corresponding to the target configuration item's association information based on the target configuration item's association information; wherein the configuration item status is a success status or a failure status corresponding to the association information.

[0032] The status of a configuration item indicates the success or failure of the associated information. For example, if the associated information includes the access rights corresponding to the target configuration item, the status of the configuration item can be either access rights failure or access rights success.

[0033] After obtaining the association information of the target configuration item, the configuration item status corresponding to the association information of the target configuration item may be determined based on the association information of the target configuration item.

[0034] As an example, the configuration item status corresponding to the target configuration item's association information may be determined based on the target configuration item's association information and information corresponding to the target configuration item's association information in the configuration item database in the data persistence layer.

[0035] As an example, a neural network model can be used to determine the configuration item status corresponding to the target configuration item's association information based on the target configuration item's association information. The target configuration item's association information can serve as the input to the neural network model, and the configuration item status corresponding to the target configuration item's association information can serve as the output of the neural network model. The neural network model can be a convolutional neural network (CNN), a recurrent neural network (RNN), or other similar methods. Determining the configuration item status corresponding to the target configuration item's association information based on the target configuration item's association information can be achieved using other methods, which are not listed here and are subject to implementation by those skilled in the art.

[0036] Step S203: Update the current status of the target configuration item according to the configuration item status.

[0037] The current status of the target configuration item can indicate the status of the target configuration item being verified based on its associated information. For example, if the target configuration item's associated information includes the access rights corresponding to the target configuration item, the current status can be the access rights verification status. After determining the configuration item status corresponding to the target configuration item's associated information based on the target configuration item's associated information, the configuration item status can be updated to the current status of the target configuration item. For example, if the configuration item status is in the access rights failure state, the current status can be updated to the access rights failure state.

[0038] The configuration processing method of the baseboard management controller provided in this embodiment determines the success status or failure status corresponding to the associated information of the target configuration item during the import or export process through the associated information when the target configuration item is imported or exported, and updates the current status corresponding to the associated information for the target configuration item according to the success status or failure status corresponding to the associated information. This ensures that the status corresponding to the associated information of the target configuration item can be updated in real time when the target configuration item is imported or exported. Compared with the related art in which 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 of the target configuration item during the import or export process in real time according to the configuration item status determined by the associated information, thereby avoiding the administrator's difficulty in quickly locating the problem when a failure occurs during the configuration action, thereby improving the accuracy of fault location.

[0039] In one possible implementation, step S202 includes:

[0040] Step S2021: Determine whether the target configuration item needs to stop the action based on the associated information of the target configuration item.

[0041] If the status of the configuration item corresponding to the target configuration item's associated information is Failed, the target configuration item is determined to require a cessation of the action. If the status of the configuration item corresponding to the target configuration item's associated information is Successful, the target configuration item is determined to require no cessation of the action. In other words, if no issues occur during the import or export of the target configuration item, no cessation of the action is required. Only when a problem occurs in a particular process does the action need to be stopped.

[0042] It should be noted that, during the process of importing or exporting a target configuration item, the associated information of the target configuration item corresponding to each process may be different, and the status of the configuration item corresponding to the associated information may also be different.

[0043] Step S2022: If the target configuration item needs to stop the action, stop the action of the target configuration item, and determine the status of the configuration item as a failure state corresponding to the associated information.

[0044] If the target configuration item needs to stop its action, then the action of the target configuration item needs to be stopped. For example, if the target configuration item needs to stop importing, then the import of the target configuration item needs to be stopped. Another example: if the target configuration item needs to stop exporting, then the export of the target configuration item needs to be stopped.

[0045] When the action of the target configuration item is stopped, the configuration item state is determined to be the failure state corresponding to the associated information.

[0046] Step S2023: If the target configuration item does not need to stop the action, the configuration item status is determined to be a success status corresponding to the associated information.

[0047] If the target configuration item does not require a stop action, the configuration item status representing the target configuration item is a success state, and the configuration item status can be determined as the success state corresponding to the associated information.

[0048] The baseboard management controller configuration processing method provided in this embodiment uses the target configuration item's associated information to determine whether the target configuration item needs to be stopped, avoiding the tedious process of manual inspection and decision-making, thereby improving processing efficiency. Furthermore, if the target configuration item needs to be stopped, the configuration item status is determined to be the failure state corresponding to the associated information; if the target configuration item does not need to be stopped, the configuration item status is determined to be the success state corresponding to the associated information, making the configuration item status management of the target configuration item clearer and easier to track.

[0049] In one possible implementation, step S2021 includes:

[0050] Step a1: Obtain the user's unique authentication identifier when logging in and the access rights corresponding to the target configuration item.

[0051] A user can log in to the BMC system. When the user logs in to the BMC system, a unique authentication identifier of the user can be obtained. The unique authentication identifier can be a token of the user or an ID number of the user, which is not specifically limited here.

[0052] The access rights corresponding to the target configuration item can be pre-defined access rights. A relationship table can be pre-configured between multiple pending configuration items and access rights. When a target configuration item among the multiple pending configuration items is activated, the access rights corresponding to the target configuration item can be determined from the relationship table. For example, the access rights corresponding to the target configuration item can indicate Administrator rights (administrator rights), Operator rights (operator rights), User rights (ordinary user rights), or ReadOnly rights (read-only user rights). Administrator rights are greater than Operator rights, which are greater than User rights, which are greater than ReadOnly rights.

[0053] Step a2: determining the target access permission corresponding to the unique authentication identifier based on the association relationship between the unique authentication identifier and the preset access permission and the unique authentication identifier.

[0054] There is an association between the unique authentication identifier of the target configuration item and the preset access rights. That is, each unique authentication identifier can correspond to a preset access right. For example, unique authentication identifier A1 corresponds to preset access right B1, unique authentication identifier A2 corresponds to preset access right B2, and so on.

[0055] After determining the unique authentication identifier, the target access right corresponding to the unique authentication identifier can be determined from multiple preset access rights based on the unique authentication identifier. For example, if the unique authentication identifier of the target configuration item is A1, the corresponding target access right can be B1.

[0056] Step a3: When the target access permission is lower than the access permission corresponding to the target configuration item, it is determined that the target configuration item needs to stop the action.

[0057] After determining the target access rights, compare the target access rights with the access rights corresponding to the target configuration item to determine whether the target access rights are lower than the access rights corresponding to the target configuration item. If the target access rights are lower than the access rights corresponding to the target configuration item, it indicates that the user's permissions are insufficient to perform the action for the target configuration item, and the action for the target configuration item needs to be stopped. For example, if the access rights corresponding to the target configuration item are Administrator permissions, and the permissions corresponding to the unique authentication identifier are Operator permissions, then the permissions corresponding to the unique authentication identifier are lower than the access rights corresponding to the target configuration item, and the action for the target configuration item needs to be stopped.

[0058] The baseboard management controller configuration processing method provided in this embodiment ensures the unique identity of each user by obtaining a unique authentication identifier when the user logs in. Furthermore, based on the association between the unique authentication identifier and pre-set access rights, the target access rights corresponding to each user can be accurately determined, preventing confusion or abuse of rights. Furthermore, when the target access rights are lower than the access rights corresponding to the target configuration item, it can immediately determine that the target configuration item requires inaction, thereby preventing users from unauthorized access to sensitive data or execution of critical operations.

[0059] In a possible implementation, the association information further includes configuration information of the target configuration item; and the above step S2021 includes:

[0060] Step b1, determining 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 configuration information for which no stop action is required for the target configuration item.

[0061] The configuration information may indicate information used to detect whether the target configuration item needs to stop the action. The configuration information may be pre-set information. The configuration information may include: the configuration item format and the configuration item value, etc., which are not specifically limited here.

[0062] Target configuration information refers to configuration information for a target configuration item that does not require a stop action. A target configuration item is associated with preset configuration information, meaning each target configuration item can correspond to a preset configuration information. After determining the target configuration item, the target configuration information for the target configuration item can be determined from multiple preset configuration information based on the target configuration item.

[0063] Step b2: When the configuration information of the target configuration item does not conform to the target configuration information, it is determined that the target configuration item needs to stop the action.

[0064] When the configuration information of the target configuration item does not conform to the target configuration information, the configuration information representing the target configuration item indicates that the target configuration item needs to stop the action, and the action of the target configuration item is stopped.

[0065] Specifically, the configuration information of the target configuration item includes the configuration item format and the configuration item value. Accordingly, the target configuration information includes the target format and the target value range, and the above-mentioned step b2 includes: when any one of the following conditions is met: the configuration item format is different from the target format and the configuration item value is not within the target value range, it is determined that the target configuration item needs to stop the action.

[0066] The configuration information of the target configuration item includes the configuration item format and configuration item value. Correspondingly, the target configuration information includes the target format and target value range. The target format may include an IP address format, a port number range, a date format, etc., and the target value range may indicate that the port number must be between 0 and 65535, etc., which are not specifically limited here. The configuration item format of the target configuration item may include: the configuration item's IP address format, port number range, and date format. The configuration item value may indicate the value of the port number.

[0067] When any one of the following conditions holds true: the configuration item format is different from the target format, or the configuration item value is not within the target value range, it is determined that the target configuration item needs to stop the action.

[0068] As an example, the target configuration information includes a target format that may indicate an IPv4 address format. If the target configuration item format does not have four fields, each field being between 0 and 255, then it is determined that the target configuration item requires a stop action.

[0069] As an example, the target configuration information includes a target format indicating an integer. When the configuration item format of the target configuration item is not a numeric format or the configuration item format is a numeric format that is not an integer, it is determined that the target configuration item needs to stop the action.

[0070] In one possible implementation, the configuration information of the target configuration item may further include information indicating that a required field is not empty. When a required field is empty, a warning message indicating that the required field is empty may be generated, and the action for the target configuration item may continue to be executed. For example, a username may be a required field. When the username is empty, a warning message indicating that the required field is empty may be generated, and the action for the target configuration item may continue to be executed.

[0071] The baseboard management controller configuration processing method provided in this embodiment determines the target configuration information for each target configuration item based on its association with preset configuration information. This enables personalized verification of each configuration item, improving the pertinence and effectiveness of verification. Furthermore, when the configuration information of a target configuration item does not conform to the target configuration information, it can promptly determine that the target configuration item needs to be stopped, thereby preventing system failures or instability caused by incorrect configuration.

[0072] Furthermore, by checking whether the configuration item format conforms to the target format, the structural consistency and correctness of the configuration item can be ensured, avoiding parsing failures or system anomalies caused by incorrect configuration item format. By checking whether the configuration item value is within the target value range, the rationality and validity of the configuration item's value can be ensured. If any of the following conditions hold: the configuration item format differs from the target format, or the configuration item value is not within the target value range, the target configuration item is determined to require inaction, thereby preventing system failures or instability caused by incorrect configuration.

[0073] In a possible implementation, the association information further includes: status information of a pre-dependency of the target configuration item; and the above step S2021 includes:

[0074] 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.

[0075] Predependent items indicate other configuration items that the target configuration item's action depends on. For example, if feature X depends on the activation of feature Y, then the configuration item corresponding to feature Y is a predepen- dent of the configuration item corresponding to feature X.

[0076] As an example, the pre-dependency may be determined by searching a pre-built dependency table, or by other means, which are not specifically limited here.

[0077] The status information of a pre-dependency item may indicate whether the pre-dependency item is imported into the import list corresponding to the target configuration item, whether the pre-dependency item is enabled, etc. The import list corresponding to the target configuration item includes multiple configuration items requiring action. When the status information of a pre-dependency item of the target configuration item indicates that the pre-dependency item of the target configuration item is not imported into the import list corresponding to the target configuration item or that the pre-dependency item of the target configuration item is not enabled, it indicates that the status information of the pre-dependency item of the target configuration item does not meet the requirements for the target configuration item to continue action, and it is determined that the target configuration item needs to stop action.

[0078] The baseboard management controller configuration processing method provided in this embodiment ensures that configuration items in the system are operated according to the correct logical order and dependency relationships by checking whether the pre-dependency items 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 inactivated dependencies. If the pre-dependency conditions are not met, the target configuration item will stop operating, thus preventing invalid or erroneous operations from being executed and ensuring the rigor of the system logic.

[0079] In one possible implementation, the method further includes:

[0080] Step S301: Obtain a directed dependency graph corresponding to a target configuration item; wherein the directed dependency graph indicates a pre-dependency item of the target configuration item.

[0081] The directed dependency graph can be a pre-defined dependency graph. The directed dependency graph indicates the pre-dependencies of the target configuration item. That is, the directed dependency graph records the target configuration item and its pre-dependencies. The target configuration item and its pre-dependencies can be connected via directed edges.

[0082] In one possible implementation, a topological sorting algorithm may be used to determine the processing order of multiple pending configuration items, so that all dependent items are processed before the dependent items.

[0083] As an example, for a node in a directed dependency graph, the in-degree of the node can indicate the number of edges pointing to the node. In particular, all edges in the directed dependency graph can be traversed and the in-degree of each node can be counted. For example, in a directed dependency graph, if configuration item M1 depends on configuration item M2, the in-degree of configuration item M1 is increased by 1. All nodes with an in-degree of 0 are added to the queue. Nodes with an in-degree of 0 indicate that there are no preceding dependencies and can be processed first. For example, in a simple configuration item dependency graph, if configuration item M3 has no preceding dependencies, its in-degree is initialized to 0 and added to the queue.

[0084] Remove a node from the queue and add it to the topologically sorted list. Traverse all neighbor nodes of the node (that is, the nodes pointed to by the node) and reduce the in-degree of each neighbor node by 1. If the in-degree of a neighbor node is reduced to 0, it is added to the queue. For example, if configuration item M3 is removed from the queue and it points to configuration items M4 and M5, the in-degree of configuration items M4 and M5 is reduced by 1. If the in-degree of configuration item M4 becomes 0 at this time, configuration item M4 is added to the queue. Repeat the operations of removing the node, processing the node, and updating the in-degree of the neighbor nodes until the queue is empty.

[0085] Step S302: When the target configuration item is in action, the pre-dependency items of the target configuration item are determined according to the target configuration item and the directed dependency graph.

[0086] As can be seen above, a directed dependency graph indicates the target configuration item's pre-dependencies. That is, the directed dependency graph records the target configuration item and its pre-dependencies. When the target configuration item is acted upon, its pre-dependencies can be determined from the directed dependency graph.

[0087] The configuration processing method of the baseboard management controller provided in this embodiment obtains a directed dependency graph indicating the pre-dependencies of the target configuration item. When the target configuration item requires action, its pre-dependencies can be quickly located through the directed dependency graph without traversing the entire system or application to search, thereby improving efficiency.

[0088] In one possible implementation, the method further includes:

[0089] Step c2: When a circular dependency exists between the target configuration item and a pre-dependency of the target configuration item in the directed dependency graph corresponding to the target configuration item, it is determined that the target configuration item needs to stop the action.

[0090] A circular dependency indicates the presence of one or more paths in a directed dependency graph, resulting in a closed-loop dependency relationship between configuration items. For example, if configuration item M1 depends on configuration item M2, and configuration item M2 depends on configuration item M1, forming a closed loop, then there is a circular dependency between configuration items M1 and M2. When a circular dependency exists between a target configuration item and its predecessors in the directed dependency graph corresponding to the target configuration item, it is determined that the target configuration item requires inaction.

[0091] In the configuration processing method for the baseboard management controller provided in this embodiment, circular dependencies mean that there are situations where configuration items wait for each other, which may cause the system to fall into a deadlock or infinite loop and be unable to continue to execute subsequent tasks. By detecting circular dependencies and stopping the action, it is possible to avoid inefficient resource usage.

[0092] In one possible implementation, the associated information further includes: currently available resources; and the above step S2021 includes:

[0093] Step d1: Obtain target available resources corresponding to the target configuration item; wherein the target available resources are resources for which no stop action is required for the target configuration item.

[0094] Target available resources can indicate the resources required for the target configuration item to execute its actions normally without stopping its actions due to insufficient resources or other reasons. Target available resources are the resources necessary for the target configuration item to run smoothly, such as memory, disk space, etc.

[0095] The currently available resources corresponding to the target configuration item can be the currently available resources of the system. These resources can be obtained using provided tools or interfaces. For example, in Linux, you can use the free command to obtain memory usage, and the df command to obtain disk space usage. By parsing the command output, you can obtain resource information such as the currently available memory size and disk space.

[0096] Step d2: Based on the comparison result between the target available resources and the current available resources, it is determined that the target configuration item needs to stop the action.

[0097] The comparison result may indicate whether the target available resources corresponding to the target configuration item are consistent with the currently available resources. If the target available resources are consistent with the currently available resources, the target configuration item does not need to stop the action. If the target available resources are not consistent with the currently available resources, the target configuration item needs to stop the action.

[0098] Specifically, the current available resources include the current remaining memory, the current remaining disk space, the current network bandwidth and the current thread pool state. Accordingly, the target available resources include: the target remaining memory, the target remaining disk space, the target network bandwidth and the target thread pool state; and the above-mentioned step d2 includes: when 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 state does not satisfy any one of the target thread pool state, it is determined that the target configuration item needs to stop the action.

[0099] Target available resources include: target remaining memory, target remaining disk space, target network bandwidth, target thread pool status, and the resources occupied by the target configuration item when performing an action.

[0100] The target remaining memory value indicates the minimum remaining memory size required for the target configuration item to function properly. The target remaining disk space value indicates the minimum remaining disk space required for the target configuration item to function properly. The target network bandwidth value indicates the minimum network bandwidth required for the target configuration item to function properly. The target thread pool status value indicates the status conditions that the thread pool must meet for the target configuration item to function properly.

[0101] The current free memory indicates the amount of unused memory. The current free disk space indicates the amount of unused storage space on the disk. The current network bandwidth indicates the amount of data that can be transmitted over the network per unit time. The current thread pool status indicates the number of available threads in the thread pool, the number of threads currently executing, and the number of threads waiting to execute.

[0102] When any one of the following conditions is true: 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 state does not satisfy the target thread pool state, it indicates that the target configuration item cannot perform the action, and it is determined that the target configuration item needs to stop the action.

[0103] The configuration processing method of the baseboard management controller provided in this embodiment determines that the target configuration item needs to stop action if any one of the current remaining memory is not less than the target remaining memory, the current disk remaining space is not less than the target disk remaining space, the current network bandwidth is not less than the target network bandwidth, and the current thread pool state does not satisfy the target thread pool state. This effectively prevents serious problems such as system crashes and data loss caused by resource exhaustion, and ensures stable system operation.

[0104] In one possible implementation, the association information further includes: a version range of the target configuration item; and the above step S2021 includes:

[0105] Step e1: Obtain the firmware version of the baseboard management controller.

[0106] The firmware version indicates the software embedded in the BMC. Different firmware versions may include different BMC function support, performance optimization, bug fixes, etc.

[0107] The associated information may include the version range of the target configuration item. The version range may indicate the set of supported versions of the target configuration item. For example, "V1.0-V2.0" indicates that all versions between 1.0 and 2.0 (including 1.0 and 2.0) are acceptable.

[0108] You can obtain the BMC firmware version through various methods.

[0109] For example, you can use specialized server management tools that provide interfaces for communicating with the BMC and can query and display BMC-related information, including the firmware version. For example, some server vendors provide command-line tools or graphical user interface management software, allowing users to obtain the BMC firmware version by executing corresponding commands or operations.

[0110] As an example, a specific command may be sent to obtain the firmware version by communicating with the BMC via a remote management protocol (such as IPMI, Intelligent Platform Management Interface).

[0111] Step e2: When the version existing in the version range of the target configuration item does not support the firmware version of the baseboard management controller, it is determined that the target configuration item needs to stop the action.

[0112] After obtaining the firmware version, you need to check the version range defined by the target configuration item. Compare the firmware version with each version in the target configuration item's version range. If no version in the version range is compatible with the firmware version (that is, no version supports the firmware version), the firmware version is determined to be unsupported by the target configuration item, and the target configuration item must be discontinued.

[0113] For example, the version range of the target configuration item is defined as "V2.0-V3.0." However, the BMC firmware version obtained in step e1 is "V1.5." Since the version range "V2.0-V3.0" does not include "V1.5," indicating that BMC firmware version "V1.5" does not support the target configuration item version range for the network configuration function, step e2 determines that the network configuration function needs to stop performing related configuration actions to prevent network failures and other issues caused by firmware incompatibility.

[0114] In the configuration processing method for the baseboard management controller provided in this embodiment, different versions of BMC firmware may have compatibility differences for target configuration items. 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 act only when the BMC firmware version is within the range supported by the target configuration item, thereby avoiding system failures or functional abnormalities caused by version incompatibility.

[0115] In one possible implementation, the method further includes:

[0116] Step S401: Determine the fault type of the target configuration item according to the associated information of the target configuration item.

[0117] The fault type indicates the type of problem encountered with the target configuration item. Depending on the specific problem with the target configuration item, the fault type can be categorized in various ways. For example, for hardware configuration items, the fault type might include hardware damage, connection failure, or power supply issues. For software configuration items, the fault type might include insufficient permissions or legality verification failure.

[0118] When the configuration item status corresponding to the associated information of the target configuration item indicates a failure state corresponding to the associated information, it indicates that a problem has occurred with the target configuration item. The associated information can be determined first, and then the fault type can be determined. The associated information can include the access rights corresponding to the target configuration item, the configuration information of the target configuration item, the status information of the target configuration item's pre-dependencies, and the like. When it is determined that the associated information indicating a problem with the target configuration item is the access rights corresponding to the target configuration item, the fault type can be determined to be a permission type based on the access rights corresponding to the target configuration item. When it is determined that the associated information indicating a problem with the target configuration item is the configuration information of the target configuration item, the fault type can be determined to be a configuration information type based on the configuration information of the target configuration item.

[0119] Step S402: determining a fault cause corresponding to the fault type of the target configuration item according to the fault type of the target configuration item, and recording the fault cause corresponding to the fault type of the target configuration item in a log.

[0120] After determining the fault type of the target configuration item, further search for the fault cause that may cause the fault type. Among them, when it is determined that the associated information of the problem with the target configuration item is the configuration information of the target configuration item, the fault type can be determined to be the configuration information type based on 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 of the target configuration item 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 that the configuration item format is wrong. When there is a problem with the configuration item value of the target configuration item, the fault cause can indicate that the configuration item value is wrong.

[0121] 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 a log to facilitate review by technical personnel.

[0122] In one possible implementation, the method further includes:

[0123] Step S403: Determine the target state corresponding to each action process of the target configuration item according to the action of the target configuration item; wherein the target state is the waiting import state, the configuration item verification state, the execution import state, the import completion state, the import failure state, the verification failure state or the fault recovery state.

[0124] The "Waiting for Import" state may indicate the state of the target configuration item when it is in the preparation stage, waiting to start importing data or performing other operations. The "Configuration Item Verification" state may indicate the state in which the target configuration item needs to be verified before performing specific operations. The "Executing Import" state may indicate the state of the target configuration item when the actual import of the target configuration item begins. The "Import Completed" state may indicate the state after the import of the target configuration item is completed. The "Import Failed" state may indicate the state when an error occurs during the import of the target configuration item. The "Verification Failed" state may indicate the state if the verification of the target configuration item is found to have failed during the configuration item verification process. The "Fault Recovery" state may indicate the state in which the target configuration item is in a fault recovery state when, after troubleshooting and repair, it recovers to a state where it can perform operations normally.

[0125] In this embodiment, the target status may indicate the status of each process in the entire process of the target configuration item. The entire process of the target configuration item action may include: the configuration item waiting to be imported, the configuration item verification process, the configuration item import execution process, the configuration item import completion process, and the configuration item failure recovery process.

[0126] For each step in the entire process of the target configuration item action, the target status of the target configuration item can be updated in real time. For example, when the target configuration item starts to be imported, its target status can be the waiting for import status; when the target configuration item is performing configuration item verification, its target status can be the configuration item verification status; when the configuration item verification fails, its target status can be the configuration item verification failure status.

[0127] The configuration processing method of the baseboard management controller provided in this embodiment refines the action process of the target configuration item into specific states such as waiting for import, configuration item verification, execution of import, import completion, import failure, verification failure and fault recovery, so that the status of each stage is clear and unambiguous, which is convenient for technical personnel to monitor and manage in real time.

[0128] Please refer to Figure 3 , Figure 3 1 is another flowchart of a configuration processing method of a baseboard management controller provided according to an embodiment of the present invention.

[0129] Combine Figure 3As shown, in one possible implementation, the associated information of the target configuration item may include: access rights corresponding to the target configuration item, configuration information of the target configuration item, status information of the target configuration item's pre-dependencies, currently available resources, and version range of the target configuration item.

[0130] Among them, when the target configuration item is undergoing the verification process, the order in which the target configuration item is verified according to the associated information of the target configuration item can be the first step: verifying the access rights corresponding to the target configuration item, the second step: after the access rights corresponding to the target configuration item are successfully verified, verifying the configuration information of the target configuration item, the third step: after the configuration information of the target configuration item is successfully verified, verifying the status information of the pre-dependencies of the target configuration item, the fourth step: after the status information of the pre-dependencies of the target configuration item is successfully verified, verifying the currently available resources, and the fifth step: after the currently available resources are successfully verified, verifying the version range of the target configuration item. Among them, when any verification step is successful, the status corresponding to the step is updated to the successful status. For example: after the access permission corresponding to the target configuration item is successfully verified, the status can be updated to the access permission verification success status corresponding to the target configuration item; after the configuration information of the target configuration item is successfully verified, the status can be updated to the configuration information verification success status of the target configuration item; after the status information of the pre-dependency of the target configuration item is successfully verified, the status can be updated to the status information verification success status of the pre-dependency of the target configuration item; after the current available resources are successfully verified, the status can be updated to the available resources verification success status; after the version range of the target configuration item is successfully verified, the status is updated to the version range verification success status of the target configuration item.

[0131] The following verification mechanism can be used to verify the associated information of each target configuration item.

[0132] The state machine model can be pre-configured. Each piece of associated information can correspond to a verification module, which can serve as a verification node. After a verification node is successfully verified, it can jump to the next node to continue verifying the associated information corresponding to that node. For example, after successfully verifying the access rights corresponding to a target configuration item, the configuration information of the target configuration item can be verified.

[0133] The verification module corresponding to each piece of associated information can be encapsulated as a pluggable function or class.

[0134] When a verification node fails verification, the action of the target configuration item is aborted. In the process of verifying the configuration information of the target configuration item, if the required fields of the target configuration item in the configuration item information of the target configuration item are empty, the verification of the status information of the target configuration item's pre-dependency can be skipped.

[0135] When a verification node fails to verify, the reason for the verification failure is generated and recorded in the log.

[0136] Compared with the traditional "parallel concurrent verification" mechanism or disordered verification method, the configuration processing method of the baseboard management controller provided in this embodiment can prioritize the identification and termination of the process when "pre-failure conditions" such as insufficient permissions and illegal values ​​occur, saving invalid computing resources and avoiding wasting resources when the user has no permissions at all.

[0137] In one possible implementation, the method further includes:

[0138] Step S404: When there are multiple target configuration items, a state record table corresponding to each target configuration item is created for each target configuration item; wherein the state record table is used to record the target state of the target configuration item during the action process.

[0139] The status record table is used to record the target status of the target configuration item during the action. If there are multiple target configuration items, you can indicate the target status of the target configuration item to be recorded. If there are multiple fault causes, you can create a corresponding status record table for each target configuration item. Each target configuration item has an independent status record table to ensure that each target configuration item is not confused.

[0140] As an example, a file system can be used to store a status record table, such as creating a separate text file or a comma-separated values ​​(CSV) file for each target configuration item to record the target status of the target configuration item during the action process.

[0141] In the configuration processing method of the baseboard management controller provided in this embodiment, each target configuration item has an independent status record table, ensuring that each target configuration item will not be confused.

[0142] In one possible implementation, the method further includes:

[0143] Step S501: Send the target state of the target configuration item during the action process to the display interface.

[0144] The display interface is the visual presentation area where users interact with the BMC. This can take the form of a graphical user interface (GUI). It includes information such as the target status and color of a configuration item, allowing users to intuitively understand the operation of the item.

[0145] In specific implementations, the target status of the target configuration item during the operation process can be obtained in real time or periodically, and its current status can be determined by monitoring the target configuration item's operation log and other information. For example, if the target configuration item is being imported, the log records of the import operation can be checked to determine whether it is in the "waiting for import" state, "import execution" state, or "import completed" state.

[0146] Encapsulate the acquired target state. This can be done by converting it into a specific data format, such as JSON or XML. For example, encapsulate the target state into a JSON object containing information such as the target configuration item's action process and target state. Send the encapsulated target state data to the display interface. This can be achieved through network communication (such as HTTP requests or WebSocket connections). For example, if the display interface is a web application, the system can send the target state data via HTTP requests to a web server, which then passes the data to the front-end page for display.

[0147] Step S502 : determining a target color of a target configuration item corresponding to the target state according to the target state and a preset color of the target configuration item.

[0148] The color of the preset target configuration item can be a pre-set color used to distinguish different target states of the target configuration item on the display interface. Each target state of the target configuration item has its corresponding preset color.

[0149] During implementation, you can establish a mapping relationship between target states and target colors. For example, you can define a mapping table to map different target states to different colors. For example, map "Waiting for Import" to gray, "Configuration Item Verification" to blue, "Import Execution" to yellow, "Import Completed" to green, "Import Failed" to red, "Verification Failed" to orange, "Fault Recovery" to light green, and so on.

[0150] Step S503: Update the current color of the target configuration item according to the target color.

[0151] Generate a corresponding color update instruction based on the determined target color. The color update instruction must include the identifier of the target configuration item and the target color information to accurately update the color of the corresponding target configuration item. For example, generate a instruction to specify that the color of the target configuration item ConfigItem_001 be updated to green.

[0152] The baseboard management controller configuration processing method provided in this embodiment maps the target status of a target configuration item to a specific color, allowing users to quickly understand the current status of the configuration item without having to view detailed text descriptions. Furthermore, when multiple target configuration items are running, the color can be used to quickly locate the target configuration item with a problem.

[0153] In one possible implementation, step S501 includes:

[0154] Step S5011: When the target configuration item performs an action, a WebSocket connection is established.

[0155] WebSocket is a full-duplex communication protocol over a single TCP connection. It allows real-time, bidirectional data transmission between a server and a client. Once a WebSocket connection is established, data can be sent to the recipient at any time without waiting for a request from the recipient.

[0156] In practice, the target status of the target configuration item can be monitored in real time. When the target configuration item is detected to have started executing an action, the process of establishing a WebSocket connection is triggered. Specifically, on the web interface side (client), JavaScript code can be used to initiate a WebSocket connection request to the server.

[0157] Step S5012: Using the WebSocket connection, the target state of the target configuration item during the action is sent to the Web interface.

[0158] Get the target status of the target configuration item in real time during the action. Encapsulate the obtained target status so that it can be sent to the web interface through a WebSocket connection.

[0159] In a possible implementation, the web interface may further display a progress bar of the target configuration item, wherein the progress bar of the target configuration item may display the action process of the target configuration item in real time.

[0160] The configuration processing method of the baseboard management controller provided in this embodiment is that when the status of the target configuration item changes, the server can immediately push the latest status information to the Web interface through the WebSocket connection, so that the user can see the action process and current status of the configuration item in real time, reducing latency.

[0161] In one possible implementation, a detailed report document including all configuration items may be generated.

[0162] After the target configuration item action is completed, a report is generated that includes the status, failure reasons, and time consumption of all configuration items. This report supports formats such as JSON, CSV, and Markdown. The report can also include charts (trend statistics for failed items). This report can include statistics by error type during the target configuration item action. This report summarizes the error types (such as permission type and format type) that failed during the target configuration item action, and displays the frequency of failures during the target configuration item action.

[0163] In one possible implementation, the method further includes:

[0164] Step S601: Obtain the error code field corresponding to the associated information of the target configuration item.

[0165] The error field indicates a code that identifies a specific error type. When an error occurs during the action of a target configuration item, a corresponding error field is generated, which uniquely identifies the error. The error code field can contain numbers, letters, or a combination of these. Different error codes correspond to different error conditions.

[0166] During specific implementation, when a problem occurs in the target configuration item action, the error code field can be found and extracted from the log.

[0167] Step S602 : determining a target solution corresponding to the error code field from an initial error solution table; wherein the initial error solution table includes an association relationship between the error code field and a preset solution.

[0168] Step S603: Write the target solution into the log.

[0169] The initial error resolution table may indicate a predefined initial error resolution table, which includes associations between error code fields and predefined resolutions. The initial error resolution table may be created by developers or operations personnel based on past experience and solutions to common problems, allowing them to quickly identify corresponding resolutions when errors occur.

[0170] A preset solution is a pre-defined solution or procedure for an error code field. A target solution is a measure to resolve an error code field.

[0171] Based on the error code field obtained, the initial error resolution table is queried. This can be done by executing a SQL query directly in the database or by searching an in-memory data structure. After determining the target resolution corresponding to the error code field, the target resolution is written to the log.

[0172] The configuration processing method of the baseboard management controller provided in this embodiment can determine the corresponding target solution according to the error code field after determining the error code field, thereby facilitating the correction of the target configuration item action error.

[0173] In one possible implementation, the method further includes:

[0174] Step S604: When there is no correlation between the error code field and the preset solution, a target error solution table is obtained based on the error code field and the initial error solution table using a neural network model.

[0175] Query the initial error resolution table to check whether the error code field has a corresponding preset resolution in the table. If the query result is empty, that is, no preset resolution associated with the error code field is found, it is determined that there is no association between the error code field and the preset resolution.

[0176] When there is no correlation between the error code field and the preset solution, collect the data corresponding to all 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 and 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 is also required. Use the preprocessed error code field and the initial error solution table to construct the input data set of the neural network model. Using the neural network model, the target error solution table is obtained based on the error code field and the initial error solution table.

[0177] After determining the target error solution table, you can continue to determine the solution corresponding to the error code field based on the target error solution table.

[0178] The configuration processing method of the baseboard management controller provided in this embodiment is capable of processing error code fields in real time by a neural network model, and quickly generating corresponding target error resolution measures, thereby reducing the time for manual search and judgment and improving the efficiency of error resolution.

[0179] In this embodiment, a configuration processing device for a baseboard management controller is also provided. The device is used to implement the above-mentioned embodiments and preferred embodiments. The details that have been described will not be repeated here. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.

[0180] This embodiment provides a configuration processing device for a baseboard management controller, which includes: an acquisition module, which is used to obtain association information of a target configuration item when an action is performed on a target configuration item among multiple configuration items to be acted upon; wherein the association 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; a determination module, which is used to determine, based on the association information of the target configuration item, a configuration item status corresponding to the association information of the target configuration item; wherein the configuration item status is a success status or a failure status corresponding to the association information; and an update module, which is used to update the current status of the target configuration item based on the configuration item status.

[0181] In one possible implementation, the determination module includes: a first determination unit, configured to determine whether the target configuration item needs to stop the action based on the associated information of the target configuration item; a second determination unit, configured to stop the action of the target configuration item if the target configuration item needs to stop the action, and determine the configuration item status as a failure state corresponding to the associated information; and a third determination unit, configured to determine the configuration item status as a success state corresponding to the associated information if the target configuration item does not need to stop the action.

[0182] In one possible implementation, the first determination unit includes: a first acquisition subunit, used to obtain the user's unique authentication identifier when logging in and the access rights corresponding to the target configuration item; a first determination subunit, used to determine the target access rights corresponding to the unique authentication identifier based on the association relationship between the unique authentication identifier and the preset access rights and the unique authentication identifier; and a second determination subunit, used to determine that the target configuration item needs to stop action when the target access rights are lower than the access rights corresponding to the target configuration item.

[0183] In one possible implementation, the associated information also includes: configuration information of the target configuration item; and the first determination unit includes: a third determination subunit, used to determine the target configuration information of the target configuration item based on the association relationship between the target configuration item and the preset configuration information, and the target configuration item; wherein the target configuration information is configuration information that the target configuration item does not need to stop the action; and a fourth determination subunit, used to determine 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.

[0184] In one possible implementation, the configuration information of the target configuration item includes the configuration item format and the configuration item value, and accordingly, the target configuration information includes the target format and the target value range; and a fourth determination subunit is used to determine that the target configuration item needs to stop action when any one of the following conditions is met: the configuration item format is different from the target format, and the configuration item value is not within the target value range.

[0185] In one possible implementation, the associated information also includes: status information of the pre-dependency of the target configuration item; and the above-mentioned first determination unit includes: a fifth determination sub-unit, which is used to determine that the target configuration item needs to stop action 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.

[0186] In one possible implementation, the above-mentioned device also includes: a directed dependency graph acquisition module, used to obtain a directed dependency graph corresponding to the target configuration item; wherein the directed dependency graph indicates the pre-dependencies of the target configuration item; and a pre-dependency determination module, used to determine the pre-dependencies of the target configuration item based on the target configuration item and the directed dependency graph when the target configuration item is in action.

[0187] In a possible implementation, the apparatus further includes: a dependency determination module configured to determine that the target configuration item needs to stop action when there is a circular dependency between the target configuration item and a pre-dependency of the target configuration item in the directed dependency graph corresponding to the target configuration item.

[0188] In one possible implementation, the associated information also includes: currently available resources; and the first determination unit includes: a second acquisition subunit, used to obtain target available resources corresponding to the target configuration item; wherein the target available resources are resources for which the target configuration item does not require stopping action; and a sixth determination subunit, used to determine, based on a comparison result between the target available resources and the currently available resources, whether the target configuration item requires stopping action.

[0189] In one possible implementation, the currently available resources include the current remaining memory, the current remaining disk space, the current network bandwidth, and the current thread pool state. Accordingly, the target available resources include: the target remaining memory, the target remaining disk space, the target network bandwidth, and the target thread pool state; and a sixth determination subunit is used to determine that the target configuration item needs to stop action 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 state does not satisfy the target thread pool state.

[0190] In one possible implementation, the associated information also includes: a version range of the target configuration item; and the above-mentioned first determination unit includes: a third acquisition sub-unit, used to obtain the firmware version of the baseboard management controller; a seventh determination sub-unit, used to determine that the target configuration item needs to stop action when the version existing in the version range of the target configuration item does not support the firmware version of the baseboard management controller.

[0191] In one possible implementation, the apparatus further includes: a fault type determination module configured to determine the fault type of the target configuration item based on the associated 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 based on 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.

[0192] In one possible implementation, the apparatus further includes: a state determination module configured to determine, based on the action of the target configuration item, a target state corresponding to each action process of the target configuration item during the action; wherein the target state is a waiting import state, a configuration item verification state, an import execution state, an import completion state, an import failure state, a verification failure state, or a fault recovery state.

[0193] In one possible implementation, the apparatus further includes: a creation module configured to create, for each target configuration item when there are multiple target configuration items, 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.

[0194] In one possible implementation, the above-mentioned device also includes: a status sending module, which is used to send the target status of the target configuration item during the action process to the display interface; a color determination module, which is used to determine the target color of the target configuration item corresponding to the target status based on the target status and the preset color of the target configuration item; and a color update module, which is used to update the current color of the target configuration item according to the target color.

[0195] In one possible implementation, the status sending module includes: an establishment unit, configured to establish a WebSocket connection when the target configuration item performs an action; and a status sending unit, configured to send the target status of the target configuration item during the action to the Web interface using the WebSocket connection.

[0196] In one possible implementation, the above-mentioned device also includes: an error code field acquisition module, used to obtain the error code field corresponding to the associated information of the target configuration item; a solution determination module, used 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; and a writing module, used to write the target solution into the log.

[0197] In one possible implementation, the above-mentioned device also includes: a neural network module, which is used to use a neural network model to obtain a target error solution table based on the error code field and the initial error solution table when there is no correlation between the error code field and the preset solution.

[0198] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0199] The configuration processing device of the baseboard management controller in this embodiment is presented in the form of a functional unit, where the functional unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0200] An embodiment of the present invention further provides a computer device having the configuration processing device of the baseboard management controller.

[0201] See also Figure 4 , Figure 4 is a structural diagram of a computer device provided by an optional embodiment of the present invention, such as Figure 4 As shown, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components utilize different buses to communicate with each other and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in the memory or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Equally, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 4 A processor 10 is taken as an example.

[0202] The processor 10 may be a central processing unit, a network processor, or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic, or any combination thereof.

[0203] The memory 20 stores instructions that can be executed by at least one processor 10, so as to enable at least one processor 10 to execute the method shown in the above embodiment.

[0204] The memory 20 may include a program storage area and a data storage area, wherein 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 based on the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0205] 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 also include a combination of the above types of memory.

[0206] 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 via a bus or other means. Figure 4 The bus connection is taken as an example.

[0207] The input device 30 can receive input digital or character information and generate key signal input related to user settings and function control of the computer device. Examples include a touch screen, keypad, mouse, trackpad, touchpad, pointing stick, one or more mouse buttons, trackball, joystick, etc. The output device 40 may include a display device, auxiliary lighting devices (e.g., LEDs), and tactile feedback devices (e.g., vibration motors). Such display devices include, but are not limited to, liquid crystal displays, light emitting diodes, monitors, and plasma displays. In some optional embodiments, the display device may be a touch screen.

[0208] The computer device further includes a communication interface for the computer device to communicate with other devices or a communication network.

[0209] The embodiment of the present invention also provides a computer-readable storage medium. The above-mentioned method according to the embodiment of the present invention can be implemented in hardware, firmware, or implemented as a computer code that can be recorded in a storage medium, or implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the method 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 can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. 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. When the software or computer code is accessed and executed by a computer, a processor or hardware, the method shown in the above embodiment is implemented.

[0210] A portion of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the form in which the computer program instruction exists in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc. Accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium that can be accessed by the computer.

[0211] Although the embodiments of the present invention have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention. Such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A configuration processing method for a baseboard management controller, characterized in that: The method comprises: When a target configuration item among multiple pending configuration items is to be acted upon, associated information of the target configuration item is obtained; wherein the associated information includes access rights corresponding to the target configuration item, the action includes import or export, the target configuration item is any one of the multiple pending configuration items, and the associated information includes access rights corresponding to the target configuration item, configuration information of the target configuration item, status information of pre-dependencies of the target configuration item, currently available resources, and version range of the target configuration item; Determine, based on the association information of the target configuration item, a configuration item status corresponding to the association information of the target configuration item; wherein the configuration item status is a success status or a failure status corresponding to the association information; Updating the current state of the target configuration item according to the configuration item state; The determining, based on the association information of the target configuration item, the configuration item status corresponding to the association information of the target configuration item includes: Determine whether the target configuration item needs to stop the action based on the associated information of the target configuration item; wherein, when the target configuration item is undergoing a verification process, the order in which the target configuration item is verified based on the associated information of the target configuration item is as follows: step 1: verifying the access rights corresponding to the target configuration item; step 2: after the access rights corresponding to the target configuration item are successfully verified, verifying the configuration information of the target configuration item; step 3: after the configuration information of the target configuration item is successfully verified, verifying the status information of the pre-dependencies of the target configuration item; step 4: after the status information of the pre-dependencies of the target configuration item is successfully verified, verifying the currently available resources; and step 5: after the currently available resources are successfully verified, verifying the version range 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 state of the configuration item as the failure state corresponding to the associated information; If the target configuration item does not need to stop the action, the configuration item state is determined to be the success state corresponding to the associated information; The associated information also includes: currently available resources; and determining whether the target configuration item needs to stop the action based on the associated information of the target configuration item, including: Get the target available resources corresponding to the target configuration item; the target available resources are the resources that do not require stopping actions for the target configuration item; Based on the comparison results of the target available resources and the current available resources, it is determined that the target configuration item needs to stop the action; The current available resources include the current remaining memory, the current remaining disk space, the current network bandwidth, and the current thread pool state. Correspondingly, the target available resources include the target remaining memory, the target remaining disk space, the target network bandwidth, and the target thread pool state. The step of determining that the target configuration item needs to stop action based on the comparison result between the target available resources and the current available resources includes: 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 state does not satisfy the target thread pool state, it is determined that the target configuration item needs to stop the action.

2. The configuration processing method of the baseboard management controller according to claim 1, characterized in that: Determining whether the target configuration item needs to stop an action based on the associated information of the target configuration item includes: Obtain the user's unique authentication identifier when logging in and the access rights corresponding to the target configuration item; Determining the target access permission corresponding to the unique authentication identifier based on 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, it is determined that the target configuration item needs to stop the action.

3. The configuration processing method of the baseboard management controller according to claim 1, characterized in that: The associated information further includes: configuration information of the target configuration item; and determining whether the target configuration item needs to stop the action based on the associated information of the target configuration item includes: Determining target configuration information of the target configuration item based on the association relationship between the target configuration item and the preset configuration information and the target configuration item; wherein the target configuration information is configuration information for which the target configuration item does not require a stop action; When the configuration information of the target configuration item does not conform to the target configuration information, it is determined that the target configuration item needs to stop the action.

4. The configuration processing method of the baseboard management controller according to claim 3, characterized in that: The configuration information of the target configuration item includes a configuration item format and a configuration item value. Accordingly, the target configuration information includes a target format and a target value range. When the configuration information of the target configuration item does not conform to the target configuration information, determining that the target configuration item needs to stop the action includes: When any one of the following conditions holds true: the configuration item format is different from the target format, or the configuration item value is not within the target value range, it is determined that the target configuration item needs to stop the action.

5. The configuration processing method of the baseboard management controller according to claim 1, characterized in that: The associated information also includes: status information of a pre-dependent item of the target configuration item; and determining whether the target configuration item needs to stop the action based on the associated information of the target configuration item, including: 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, it is determined that the target configuration item needs to stop the action.

6. The configuration processing method of the baseboard management controller according to claim 5, characterized in that: The method further comprises: Obtaining a directed dependency graph corresponding to a target configuration item; wherein the directed dependency graph indicates a pre-dependency item of the target configuration item; When the target configuration item is in action, the pre-dependencies of the target configuration item are determined according to the target configuration item and the directed dependency graph.

7. The configuration processing method of the baseboard management controller according to claim 5, characterized in that: The method further comprises: When there is a circular dependency between the target configuration item and a pre-dependency item of the target configuration item in the directed dependency graph corresponding to the target configuration item, it is determined that the target configuration item needs to stop the action.

8. The configuration processing method of a baseboard management controller according to claim 1, characterized in that: The associated information also includes: a version range of the target configuration item; and determining whether the target configuration item needs to stop the action based on the associated information of the target configuration item, including: Get the firmware version of the baseboard management controller; When the version existing in the version range of the target configuration item does not support the firmware version of the baseboard management controller, it is determined that the target configuration item needs to stop the action.

9. The configuration processing method of a baseboard management controller according to any one of claims 2 to 8, characterized in that: If the target configuration item needs to stop the action, after stopping the action of the target configuration item, the method further includes: Determine the fault type of the target configuration item based on the associated information of the target configuration item; According to the fault type of the target configuration item, a fault cause corresponding to the fault type of the target configuration item is determined, and the fault cause corresponding to the fault type of the target configuration item is recorded in a log.

10. The configuration processing method of the baseboard management controller according to claim 9, characterized in that: The method further comprises: Based on the action of the target configuration item, determine the target state corresponding to each action process of the target configuration item during the action; where the target state is waiting for import status, configuration item verification status, import execution status, import completion status, import failure status, verification failure status or fault recovery status.

11. The configuration processing method of the baseboard management controller according to claim 10, characterized in that: The method further comprises: When there are multiple target configuration items, a state record table corresponding to each target configuration item is created respectively; wherein the state record table is used to record the target state of the target configuration item during the action process.

12. The configuration processing method of the baseboard management controller according to claim 10, characterized in that: The method further comprises: Send the target status of the target configuration item during the action to the display interface; Determining a target color of the target configuration item corresponding to the target state according to the target state and a preset color of the target configuration item; Update the current color of the target configuration item according to the target color.

13. The configuration processing method of the baseboard management controller according to claim 12, characterized in that: The sending of the target state of the target configuration item during the action to the display interface includes: When the target configuration item takes action, a WebSocket connection is established; Use the WebSocket connection to send the target status of the target configuration item during the action to the web interface.

14. The configuration processing method of a baseboard management controller according to claim 1, characterized in that: The method further comprises: Get the error code field corresponding to the associated information of the target configuration item; Determining a target solution corresponding to the error code field from an initial error solution table; wherein the initial error solution table includes an association relationship between the error code field and the preset solution; Write the target solution to the log.

15. The configuration processing method of the baseboard management controller according to claim 14, characterized in that: The method further comprises: When there is no correlation between the error code field and the preset solution, a neural network model is used to obtain a target error solution table based on the error code field and the initial error solution table.

16. A configuration processing device for a baseboard management controller, characterized in that: The device comprises: An acquisition module, configured to acquire associated information of a target configuration item among multiple pending configuration items when an action is taken; wherein the associated information includes access rights corresponding to the target configuration item, the action includes import or export, the target configuration item is any one of the multiple pending configuration items, and the associated information includes access rights corresponding to the target configuration item, configuration information of the target configuration item, status information of pre-dependencies of the target configuration item, currently available resources, and version range of the target configuration item; A determination module, configured to determine, based on the association information of the target configuration item, a configuration item status corresponding to the association information of the target configuration item; wherein the configuration item status is a success status or a failure status corresponding to the association information; An updating module, configured to update the current state of the target configuration item according to the configuration item state; The determination module includes: a first determination unit, configured to determine whether the target configuration item needs to stop the action based on the associated information of the target configuration item; a second determination unit, configured to stop the action of the target configuration item if the target configuration item needs to stop the action, and determine the configuration item status as a failure status corresponding to the associated information; a third determination unit, configured to determine the configuration item status as a success status corresponding to the associated information if the target configuration item does not need to stop the action; wherein, when the target configuration item is undergoing a verification process, the order in which the target configuration item is verified based on the associated information of the target configuration item is the following: step 1: verifying the access rights corresponding to the target configuration item; step 2: after the access rights corresponding to the target configuration item are successfully verified, verifying the configuration information of the target configuration item; step 3: after the configuration information of the target configuration item is successfully verified, verifying the status information of the pre-dependencies of the target configuration item; step 4: after the status information of the pre-dependencies of the target configuration item are successfully verified, verifying the currently available resources; and step 5: after the currently available resources are successfully verified, verifying the version range of the target configuration item; The associated information further includes: currently available resources; and the first determining unit includes: a second obtaining subunit, configured to obtain target available resources corresponding to the target configuration item; wherein the target available resources are resources for which the target configuration item does not require a stop action; and a sixth determining subunit, configured to determine, based on a comparison result between the target available resources and the currently available resources, that the target configuration item requires a stop action; The currently available resources include the current remaining memory, the current remaining disk space, the current network bandwidth and the current thread pool state. Accordingly, the target available resources include: the target remaining memory, the target remaining disk space, the target network bandwidth and the target thread pool state; and a sixth determination subunit, which is used to determine that the target configuration item needs to stop action 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 state does not satisfy the target thread pool state.

17. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the configuration processing method of the baseboard management controller according to any one of claims 1 to 15 by executing the computer instructions.

18. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the configuration processing method of the baseboard management controller according to any one of claims 1 to 15.

19. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to enable a computer to execute the configuration processing method of the baseboard management controller according to any one of claims 1 to 15.

Citation Information

Patent Citations

  • Method and system for flexibly configuring baseboard management controller and medium

    CN112631673A

  • Management method and device based on configuration center and storage medium

    CN114254324A