Equipment configuration method, electronic equipment, program product and storage medium

By comparing the device configuration data consistently and managing the editing interface in the centralized management platform, the problem of inconsistent device configuration and platform storage configuration is solved, management capabilities and configuration efficiency are improved, and unified management of device-side configuration is realized.

CN119011393APending Publication Date: 2024-11-22BEIJING TOPSEC NETWORK SECURITY TECH +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411108959.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In the prior art, the device configuration is inconsistent with the configuration of the centralized management platform storage, resulting in failure of configuration issuance and limited management capabilities, and users cannot manage the configuration through the centralized management platform after modifying the configuration on the device side.

Method used

By comparing the first configuration data of the configuration device in a centralized management platform consistently with the second configuration data, target configuration data is generated, and configuration inconsistency is resolved before issuing configurations, avoid configuration conflicts and errors, and providing an editing interface to unify Manage device side configuration.

Benefits of technology

It improves the management capabilities and equipment configuration efficiency of the centralized management platform, avoids the failure of configuration issuance, reduces the difficulty of user operation management, and realizes unified management of equipment and platform configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011393A_ABST
    Figure CN119011393A_ABST
Patent Text Reader

Abstract

Embodiments of the invention provide a device configuration method, an electronic device, a program product and a storage medium, applied to a centralized management platform, the method comprising: in response to a configuration request of a first user, obtaining first configuration data of a to-be-configured device stored in the centralized management platform, and current second configuration data of the to-be-configured device; performing consistency comparison on the first configuration data and the second configuration data; and generating target configuration data based on the comparison result and the configuration request, and sending the target configuration data to the to-be-configured device, so that the to-be-configured device is configured based on the target configuration data. The centralized management platform can know whether the configuration stored by the platform is consistent with the actual configuration of the equipment or not before the configuration is issued, and configuration inconsistency can be found without troubleshooting after the configuration is issued mistakenly. And meanwhile, failure of configuration issuing of the centralized management platform due to the fact that the user modifies the configuration of the to-be-configured equipment at the equipment side is avoided, and the management capability of the platform and the equipment configuration efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a device configuration method, electronic device, program product and storage medium. Background Art

[0002] Enterprise management requires the use of a centralized management platform to centrally manage various devices in the IT (Information Technology) network, such as network devices and security devices. The centralized management platform that provides centralized management and operation capabilities provides great convenience for enterprise users and improves the efficiency of equipment operation and maintenance. However, in related technologies, since the device itself also provides a configuration management interface for enterprise users to perform configuration management, there are configurations on the device that are not issued through the centralized management platform, and these configurations cannot be managed by the centralized management platform, which limits the capabilities of the centralized management platform. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a device configuration method, an electronic device, a program product and a storage medium to solve at least one of the above-mentioned technical problems.

[0004] A first aspect of an embodiment of the present application provides a device configuration method, which is applied to a centralized management platform, and the method includes:

[0005] In response to a configuration request from a first user, obtaining first configuration data of a device to be configured stored in the centralized management platform and current second configuration data of the device to be configured;

[0006] performing consistency comparison between the first configuration data and the second configuration data;

[0007] Generate target configuration data based on the comparison result and the configuration request, and send the target configuration data to the device to be configured, so that the device to be configured is configured based on the target configuration data.

[0008] In the above implementation process, when the first user initiates a configuration request for the device to be configured through the centralized management platform, the centralized management platform first compares whether the first configuration data of the device to be configured stored on the local side is consistent with the second configuration data of the device to be configured, and then adaptively generates the target configuration data based on the comparison result and the configuration request. In this way, the centralized management platform can know whether the configuration stored in the platform is consistent with the actual configuration of the device before issuing the configuration, and there is no need to check after the configuration is issued to find out the configuration inconsistency. At the same time, it also avoids the situation where the centralized management platform configuration fails to be issued because the user modifies the configuration of the device to be configured on the device side, thereby improving the platform's management capabilities and equipment configuration efficiency.

[0009] Furthermore, the second configuration data is input by the second user at the device to be configured before or at the same time as the first user inputs the configuration request.

[0010] In the above implementation process, the centralized management platform obtains the second configuration data configured by the second user, and generates the target configuration data based on the second user configuration and the configuration request, thereby avoiding conflicts caused by multiple parties simultaneously configuring device configurations and achieving conflict management. At the same time, it also avoids configuration errors sent by the centralized management platform, improving the management capability of the platform and the efficiency of device configuration.

[0011] Further, the obtaining of first configuration data of the device to be configured stored in the centralized management platform and current second configuration data of the device to be configured; and comparing the first configuration data with the second configuration data for consistency include:

[0012] Acquire the first configuration data, and generate a first command line based on the first configuration data;

[0013] Acquire a second command line generated based on the second configuration data;

[0014] The first command line is compared with the second command line for consistency.

[0015] In the above implementation process, by converting the configuration data into command lines for consistency comparison, the configuration data comparison work is greatly simplified, thereby further improving the device configuration efficiency.

[0016] Furthermore, the method further comprises:

[0017] Determining an unadapted command line of the centralized management platform from the second command line;

[0018] The unadapted command line is stored in a preset configuration library.

[0019] In the above implementation process, the unadapted command line that the centralized management platform cannot recognize is determined from the second command line, and the configuration library of the centralized management platform is updated based on the unadapted command line, which is automatically included in the platform management, thereby maintaining the consistency between the centralized management platform and the device configuration.

[0020] Further, the comparison result indicates that the first configuration data is consistent with the second configuration data, and the generating target configuration data based on the comparison result and the configuration request includes:

[0021] It is determined that the configuration data carried in the configuration request is the target configuration data.

[0022] In the above implementation process, when it is determined that the first configuration data is consistent with the second configuration data, the configuration data carried in the configuration request is sent to the device to be configured, which can avoid failure in configuration data sending, improve the success rate of configuration data sending, and improve the management capability of the centralized management platform.

[0023] Further, the comparison result indicates that the first configuration data is inconsistent with the second configuration data, and the generating target configuration data based on the comparison result and the configuration request includes:

[0024] Outputting inquiry information to the first user whether to accept the second configuration data;

[0025] If the query result indicates that the second configuration data is accepted, determining that the target configuration data includes the configuration data carried in the configuration request;

[0026] If the query result indicates that the second configuration data is not accepted, the target configuration data is generated based on the configuration data carried in the configuration request and the first configuration data.

[0027] In the above implementation process, the first user has the authority to decide whether to accept the second configuration data. This allows the user to solve the problem of inconsistent configurations through the centralized management platform, improving the management capabilities of the centralized management platform. At the same time, if the first user accepts the second configuration data, the centralized management platform can control the configuration rollback of the device to be configured, and the user does not need to perform operation management on the device side alone, reducing the difficulty of user operation management.

[0028] Further, the inquiry result indicates acceptance of the second configuration data, and the method further includes:

[0029] outputting an editing interface for the second configuration data so that the first user can edit the second configuration data through the editing interface; the target configuration data includes the edited second configuration data and the configuration data carried in the configuration request; and / or

[0030] The first configuration data stored in the centralized management platform is updated to the second configuration data.

[0031] In the above implementation process, the editing function of the second configuration data is provided, so that the configuration issued on the device side can also be managed and modified uniformly through the centralized management platform, improving the management function of the centralized management platform. In addition, the configuration data stored in the centralized management platform is synchronized as the second configuration data, avoiding the problem of inconsistent configuration data on both sides.

[0032] A second aspect of an embodiment of the present application provides an electronic device, the electronic device is equipped with a centralized management platform, the centralized management platform is communicatively connected with a device to be configured, and the electronic device includes:

[0033] processor;

[0034] a memory for storing processor-executable instructions;

[0035] Wherein, when the processor calls the executable instruction, it implements the operation of any method described in the first aspect.

[0036] A third aspect of the embodiments of the present application provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, any method described in the first aspect is implemented.

[0037] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the steps of any method described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 An application scenario of a device configuration method provided in an embodiment of the present application;

[0040] Figure 2 A schematic diagram of a device configuration method provided in an embodiment of the present application;

[0041] Figure 3-Figure 6 A flowchart of another device configuration method provided in an embodiment of the present application;

[0042] Figure 7 A hardware structure diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0044] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0045] The centralized management platform has the ability to manage and configure multiple devices. The so-called device configuration includes, but is not limited to, the device's port configuration, interface configuration, policy configuration, and mode configuration. At the same time, the device itself also provides a configuration management interface for users to perform configuration management. This will lead to the following problems:

[0046] 1. There are configurations on the device that are not issued through the centralized management platform, and these configurations cannot be managed by the centralized management platform;

[0047] 2. Even if the configuration is sent to the device through the centralized management platform, the user can modify the sent configuration on the device side, resulting in inconsistency between the configuration on the device and the configuration stored in the centralized management platform.

[0048] In addition, it is understandable that initially all the configuration libraries on the device were issued through the centralized management platform, and the configuration stored on the centralized management platform was consistent with the actual configuration of the device. Later, during the online operation of the device, the user modified the device configuration by directly logging into the device, but the centralized management platform did not know that the device configuration had been modified. Then when the user configures the device again through the centralized management platform, the configuration issued by the centralized management platform may fail due to the inconsistency between the actual configuration of the device and the configuration stored on the management platform. Among them, the reasons for the failure of configuration issuance include: 1) the object to be modified or deleted does not exist; 2) the object to be added already exists; 3) the object to be deleted is referenced by other policies, resulting in inability to delete.

[0049] In addition, the inconsistency between the actual configuration of the device and the configuration stored in the centralized management platform is generally discovered after troubleshooting when the centralized management platform is centrally configuring the device due to configuration errors, and it is impossible to avoid the errors in advance.

[0050] It can be seen that the inconsistency between the actual configuration of the device and the configuration stored in the centralized management platform will ultimately limit the ability of the centralized management platform and make it unable to better achieve the goal of managing the device.

[0051] At present, when the actual configuration of the device is inconsistent with the configuration stored in the centralized management platform, the general solution is to modify the configuration on the device to make it consistent with the configuration stored in the centralized management platform. However, such a solution requires operation and management on the device alone and cannot be handled through the centralized management platform, which increases the complexity of user operation and management.

[0052] In order to at least solve the above-mentioned technical problems, the present application provides a device configuration method. Figure 1 FIG. 4 shows an application scenario of the configuration method. Figure 1 As shown, the centralized management platform 110 is connected to multiple devices 120. The centralized management platform 110 refers to a software platform for managing devices installed on a server or server cluster. The devices 120 include, for example, but are not limited to network devices, security devices, etc. The centralized management platform 110 and the devices 120 can be connected to each other through a network or other means, and this application does not limit this.

[0053] Among them, the centralized management platform 110 and the device 120 both provide a configuration management interface for the user to perform configuration management. The configuration management interface is, for example, a web management interface. In addition to the configuration management interface, the user can also perform configuration management directly through the command line. This application does not make any restrictions here. The user is, for example, a manager, a technician, etc., and this application does not make any restrictions here.

[0054] For example, in the configuration management interface provided by the centralized management platform 110, a device selection / input area, a configuration area, and a display area may be included. The configuration area may include a check item, a value input box, a command line input box, etc. The user may select or input the device to be configured in the device selection / input area, and may configure the device to be configured in the configuration area. The display area may display the configuration status of the device.

[0055] For another example, in the configuration management interface provided by the device 120, a configuration area and a display area may be included. The configuration area may include a check item, a value input box, a command line input box, etc. The user may configure the device in the configuration area. The display area may display the configuration of the device.

[0056] This application provides a device configuration method, which is applied to Figure 1 The centralized management platform 110 includes: Figure 2 Steps 210 to 230 are shown.

[0057] Step 210: In response to a configuration request from a first user, first configuration data of the device to be configured and current second configuration data of the device to be configured stored in the centralized management platform are obtained.

[0058] The first user can initiate a configuration request for the device to be configured on the centralized management platform. The device to be configured is Figure 1 Any device in the plurality of devices 120 shown.

[0059] Exemplarily, when the first user selects or inputs a device to be configured in the centralized management platform, for example, in the configuration management interface, it is deemed that the first user has initiated a configuration request for the device to be configured, triggering execution of step 210 .

[0060] It should be noted that when step 210 is triggered, the first user may have input or not input the configuration data of the device to be configured. If the first user has input the configuration data of the device to be configured, the configuration request carries the input configuration data. If the first user has not input the configuration data of the device to be configured, the centralized management platform may also first execute steps 210-220 to obtain the consistency comparison result. While the centralized management platform is executing steps 210-220, the first user may continue to input the configuration data of the device to be configured on the centralized management platform. After completing the input, the centralized management platform carries the configuration data into the configuration request to obtain a configuration request carrying the configuration data.

[0061] The centralized management platform obtains the stored first configuration data of the device to be configured and the current second configuration data of the device to be configured in response to the configuration request of the first user for the device to be configured.

[0062] It is understandable that, since the centralized management platform is used to manage the configuration of each device, the centralized management platform can store the configuration data of each device it manages. The configuration data of each device can be stored locally on the server where the centralized management platform is located, or in a corresponding database, and this application does not impose any restrictions on this. When the user does not modify the device configuration on the device side, the configuration data stored in the centralized management platform is consistent with the actual configuration data of the device.

[0063] Based on this, the obtaining of the first configuration data of the device to be configured stored in the centralized management platform is to read the first configuration data of the device to be configured.

[0064] The current second configuration data of the device to be configured refers to the actual configuration data of the device to be configured. The second configuration data can be sent by the device to be configured to the centralized management platform. In this way, the acquisition of the current second configuration data of the device to be configured is to receive the second configuration data sent by the device to be configured.

[0065] Step 220: Compare the first configuration data with the second configuration data for consistency.

[0066] After the first configuration data and the second configuration data are obtained, they may be compared for consistency to obtain a comparison result.

[0067] Exemplarily, if the comparison result indicates that the first configuration data is consistent with the second configuration data, it means that after the centralized management platform historically sent the first configuration data, no user modified the configuration of the device to be configured on the device side. Conversely, if the comparison result indicates that the first configuration data is inconsistent with the second configuration data, it means that after the centralized management platform historically sent the first configuration data, a user modified the configuration data of the device to be configured on the device side to the second configuration data.

[0068] Step 230: Generate target configuration data based on the comparison result and the configuration request, and send the target configuration data to the device to be configured, so that the device to be configured is configured based on the target configuration data.

[0069] As described above, the configuration request input by the first user carries the configuration data for the device to be configured. In step 230, based on the consistency comparison result between the first configuration data and the second configuration data and the configuration data in the configuration request, the target configuration data is generated. That is, when the centralized management platform generates the target configuration data, in addition to considering the configuration request input by the first user, it also considers the comparison result, and adaptively generates the target configuration data according to the comparison result to avoid configuration delivery errors.

[0070] It can be seen that in a device configuration method provided by an embodiment of the present application, when a first user initiates a configuration request for a device to be configured through a centralized management platform, the centralized management platform first compares whether the first configuration data of the device to be configured stored on the local side is consistent with the second configuration data of the device to be configured, and then adaptively generates the target configuration data based on the comparison result and the configuration request. In this way, the centralized management platform can know whether the configuration stored in the platform is consistent with the actual configuration of the device before issuing the configuration, and there is no need to check after an error is issued in the configuration to find out the configuration inconsistency. At the same time, it also avoids the situation where the centralized management platform fails to issue the configuration because the user modifies the configuration of the device to be configured on the device side, thereby improving the management capability of the platform and the efficiency of device configuration.

[0071] The following is a detailed description of steps 210 to 230.

[0072] Regarding the current second configuration data of the device to be configured, in some embodiments, the second configuration data is input by the second user at the device to be configured before the first user inputs the configuration request.

[0073] The first configuration data is the configuration data that the centralized management platform has historically sent to the device to be configured. After the centralized management platform has historically sent the first configuration data, before the first user initiates a configuration request on the centralized management platform, the second user inputs the second configuration data on the device to be configured, and the device to be configured modifies the local configuration based on the second configuration data. At this time, the first user and the second user can be the same user or different users.

[0074] It can be seen that this embodiment compares the stored first configuration data with the modified second configuration data of the device to be configured for consistency before issuing the configuration on the centralized management platform. There is no need to check after an error is issued in the configuration to discover configuration inconsistencies, thereby avoiding configuration errors in advance and improving the management capabilities of the platform.

[0075] In some embodiments, the second configuration data is input by a second user at the device to be configured while the first user inputs a configuration request.

[0076] At this time, the first user and the second user are different users, and the first user and the second user configure the device to be configured at the same time on different sides. In view of the situation where two users configure the same device to be configured at the same time, this embodiment proposes that the centralized management platform obtains the second configuration data configured by the second user, and generates the target configuration data based on the second user configuration and the configuration request, thereby avoiding conflicts caused by multiple parties configuring the device to be configured at the same time and achieving conflict management. At the same time, it also avoids errors in the configuration sent by the centralized management platform, and improves the management capability of the platform and the efficiency of device configuration.

[0077] In some embodiments, the device to be configured may directly send the second configuration data to the centralized management platform, and the centralized management platform may also directly compare the first configuration data with the second configuration data for consistency.

[0078] In addition, in some embodiments, the device to be configured may also send the second configuration data to the centralized management platform in the form of a command line, and the centralized management platform may then compare the first configuration data with the second configuration data in the form of a command line for consistency. Based on this, a device configuration method provided by the present application may include: Figure 3 Steps 310 to 340 are shown.

[0079] Step 310: In response to a configuration request from a first user, obtaining first configuration data of a device to be configured stored in the centralized management platform, and generating a first command line based on the first configuration data;

[0080] Step 320: Obtain a second command line generated based on the current second configuration data of the device to be configured;

[0081] Step 330: Compare the first command line with the second command line for consistency;

[0082] Step 340: Generate target configuration data based on the comparison result and the configuration request, and send the target configuration data to the device to be configured, so that the device to be configured is configured based on the target configuration data.

[0083] The implementation process of step 340 is specifically described in the implementation process of step 230 in the above embodiment, which will not be repeated here.

[0084] In this embodiment, after the centralized management platform obtains the stored first configuration data, it can convert the first configuration data into a first command line according to the normal processing flow of issuing configuration commands. The specific process of converting configuration data into a command line can be referred to in related technologies and will not be expanded here.

[0085] It is understandable that when the centralized management platform sends the first configuration data in the past, it converts the first configuration data into a command line and then sends the command line to the device to be configured. After receiving the command line, the device to be configured can perform configuration based on the command line and store the command line.

[0086] In addition, when a user modifies the configuration of the device to be configured on the device side, the configuration data input by the user will also be converted into a new command line first, and the device to be configured will then be configured based on the new command line. At this time, the device to be configured can update the historically stored command line to the new command line. It can be seen that the device to be configured stores a command line corresponding to the current second configuration data, that is, the second command line.

[0087] After the centralized management platform has historically issued the first configuration data, if the configuration of the device to be configured has not been modified, the first configuration data is consistent with the second configuration data, and the first command line is also consistent with the second command line. On the contrary, if the configuration of the device to be configured has been modified, the first configuration data is inconsistent with the second configuration data, the first command line is also inconsistent with the second command line, and the second command line is generated by the device to be configured based on the second configuration data.

[0088] The first command line and the second command line may be command line strings. Comparing the first command line with the second command for consistency is actually comparing the two strings for consistency to determine whether the two strings are the same, thereby determining whether the first configuration data is the same as the second configuration data. For example, determining whether the two strings are the same may include determining whether the lengths of the two strings are the same, and whether the corresponding characters at each position are the same. For the specific determination process, please refer to the relevant technology and will not be expanded here.

[0089] It can be seen that this embodiment greatly simplifies the configuration data comparison work by converting the configuration data into command lines for consistency comparison, thereby further improving the device configuration efficiency.

[0090] exist Figure 3 Based on the embodiments shown, in some embodiments, the method may further include: Figure 4 Steps 410 - 420 are shown.

[0091] Step 410: Determine the unadapted command line of the centralized management platform from the second command line.

[0092] The so-called unadapted command line refers to a command line that the centralized management platform fails to recognize. In some cases, as the device functions are iteratively updated, the configurable objects may be added to the configurable items of the device, the number of configurable parameters may be modified, the value range of the parameters may be modified, and so on. For example, a keyword that the centralized management platform does not recognize appears in the command line; for example, the number of configurable parameters for a certain function is increased in the command line; for another example, the value of a parameter in the command line exceeds the originally set value range. The command lines in these cases are all described as unadapted command lines.

[0093] Exemplarily, if the first command line is consistent with the second command line, the second command line does not have an unadapted command line, and steps 410 to 420 are not performed. If the first command line is inconsistent with the second command line, the second command line may or may not have an unadapted command line.

[0094] As an example, a changed command line that is inconsistent with the first command line may be first determined from the second command line, and then an unadapted command line may be identified from the changed command line.

[0095] Step 420: Store the unadapted command line in a preset configuration library.

[0096] The centralized management platform may be pre-configured with a configuration library for storing configurable items of each device, including but not limited to configurable objects, configurable parameters, parameter value ranges, etc. When an unadapted command line is identified from the second command line, the unadapted command line may be stored in the configuration library, thereby automatically bringing the unadapted command line into management.

[0097] For example, the centralized management platform can update the configurable items in the configuration library based on the unadapted command line. Alternatively, before updating the configurable items, the configurable item update confirmation information can be output to the user. After the user confirms the update, the configuration library is updated based on the unadapted command line.

[0098] It is understandable that when the configurable items of the device change, they may not be updated to the centralized management platform in a timely manner. However, the user can configure the device based on the changed configurable items on the device side, and the configuration will take effect in the device. Therefore, in this embodiment, when the first command line is inconsistent with the second command line, the unadapted command line that the centralized management platform cannot recognize is determined from the second command line, and the configuration library of the centralized management platform is updated based on the unadapted command line, and it is automatically included in the platform management, so as to maintain the consistency between the centralized management platform and the device configuration.

[0099] Regarding the generation of the target configuration data in steps 230 and 340, based on any of the above embodiments, if the comparison result indicates that the first configuration data is consistent with the second configuration data, for example, the first command line is consistent with the second command line, then step 230 may specifically include:

[0100] It is determined that the configuration data carried in the configuration request is the target configuration data.

[0101] If the first configuration data is consistent with the second configuration data, it means that the configuration data stored in the centralized management platform of the device to be configured is consistent with the actual configuration data of the device to be configured, and no user has modified the first configuration data on the device side after the centralized management platform has sent the first configuration data in the past. At this time, it can be determined that the configuration data carried in the configuration request input by the first user is the target configuration data.

[0102] Exemplarily, sending the target configuration data to the device to be configured may specifically include: generating a target command line based on the target configuration data, and sending the target command line to the device to be configured, so that the device to be configured is configured based on the target command line.

[0103] Optionally, the device to be configured can also store the target command line while being configured based on the target command line. In this way, the target command line stored this time can be used as the second command line required for the centralized management platform to configure the device to be configured next time.

[0104] It can be seen that this embodiment sends the configuration data carried in the configuration request to the device to be configured when it is determined that the first configuration data is consistent with the second configuration data, which can avoid failure in configuration data sending, improve the success rate of configuration data sending, and improve the management capability of the centralized management platform.

[0105] Regarding the generation of the target configuration data in steps 230 and 340, based on any of the above embodiments, if the comparison result indicates that the first configuration data is inconsistent with the second configuration data, for example, the first command line is consistent with the second command line, then step 230 may specifically include the following steps: Figure 5 Steps 510 - 522 are shown.

[0106] Step 510: Outputting inquiry information to the first user whether to accept the second configuration data.

[0107] Exemplarily, the centralized management platform may output inquiry information to the first user through a human-computer interaction interface, for example, outputting the inquiry information in the form of a pop-up window in the configuration management interface. The inquiry information may carry the second configuration data. Optionally, the part of the second configuration data that is different from the first configuration data may be marked to prompt the first user. In this way, the first user may learn the current actual configuration of the device to be configured through the inquiry information. At the same time, the first user may input the inquiry result in the human-computer interaction interface to indicate whether to accept the second configuration data. The centralized management platform selects to execute step 521 or step 522 according to the inquiry result.

[0108] Step 521: If the query result indicates that the second configuration data is accepted, determine that the target configuration data includes the configuration data carried in the configuration request.

[0109] If the first user accepts the configuration modification on the device side, it can be determined that the target configuration data at least includes the configuration data carried in the configuration request.

[0110] Step 522: If the query result indicates that the second configuration data is not accepted, the target configuration data is generated based on the configuration data carried in the configuration request and the first configuration data.

[0111] If the first user does not accept the configuration modification on the device side, the target configuration data can be generated based on the configuration data carried by the configuration request and the first configuration data. For example, the target configuration data can include the configuration data carried by the configuration request and the first configuration data. The configuration data carried by the configuration request can also be merged with the first configuration data to generate the target configuration data.

[0112] In this way, the device to be configured may first set the device configuration to the first configuration data, and then set it to the configuration data carried in the configuration request.

[0113] Optionally, the target configuration data may include two parts, the first part is the first configuration data, and the second part is the configuration data carried in the configuration request. The two parts are sent to the device to be configured by the centralized management platform in sequence. For example, if the query result indicates that the second configuration data is not accepted, the centralized management platform may first send the first configuration data in the target configuration data to the device to be configured, instructing the device to be configured to modify the configuration to the first configuration data. Then, after the first user completes the configuration data input, the configuration data in the target configuration data is sent to the device to be configured, instructing the device to be configured to modify the configuration to the configuration data.

[0114] Exemplarily, sending the target configuration data to the device to be configured may specifically include: generating a target command line based on the target configuration data, and sending the target command line to the device to be configured, so that the device to be configured is configured based on the target command line.

[0115] It can be seen that in this embodiment, when the first configuration data is inconsistent with the second configuration data, the centralized management platform inquires the first user, and the first user has the authority to accept the second configuration data. This allows the user to solve the problem of inconsistent configurations through the centralized management platform, improving the management capabilities of the centralized management platform. At the same time, when the first user accepts the second configuration data, the centralized management platform can control the configuration rollback of the device to be configured, and the user does not need to perform operation management on the device side alone, reducing the difficulty of user operation management.

[0116] In addition, in step 521, when the query result indicates that the second configuration data is accepted, the method may further include the steps of:

[0117] An editing interface for the second configuration data is output, so that the first user can edit the second configuration data through the editing interface.

[0118] Exemplarily, the part of the second configuration data that is different from the first configuration data can be marked in the editing interface to prompt the first user that the marked part has changed. In the editing interface, the first user can further edit and modify the second configuration data.

[0119] Based on this, in step 521, the target configuration data includes the edited second configuration data and the configuration data carried in the configuration request. In this way, the device to be configured can be configured based on the edited second configuration data and the configuration data carried in the configuration request.

[0120] It can be seen that this embodiment provides an editing function for the second configuration data, so that the configuration issued on the device side can also be uniformly managed and modified through the centralized management platform, thereby improving the management function of the centralized management platform.

[0121] In addition, in step 521, when the query result indicates that the second configuration data is accepted, the method may further include the steps of:

[0122] The first configuration data stored in the centralized management platform is updated to the second configuration data.

[0123] When the first user accepts the second configuration data, in order to maintain configuration consistency, the first configuration data stored in the centralized management platform can be updated to the second configuration data. After the first user sends the target configuration data, the stored configuration data can be updated to the target configuration data.

[0124] In addition, in the case where the first user accepts the second configuration data, if the first user modifies the second configuration data through the editing interface, the centralized management platform may update the stored first configuration data to the modified second configuration data to maintain configuration consistency.

[0125] It can be seen that in this embodiment, when the first user accepts the second configuration data, the configuration data stored in the centralized management platform is synchronized with the second configuration data, thereby avoiding the problem of inconsistent configuration data on both sides.

[0126] In addition, the present application also provides a device configuration method, the process of which is as follows: Figure 6 As shown in the figure, Administrator 1 configures the network security device on the centralized management platform. Administrator 2 directly modifies the configuration on the network security device and saves the configuration. Administrator 2 may perform operations before Administrator 1 or at the same time as Administrator 1.

[0127] When administrator 2 performs configuration on the device side, the device to be configured will convert the configuration data entered by administrator 2 into the second command line, and perform configuration based on the second command line, while also storing the second command line. When administrator 1 enters a configuration request on the centralized management platform, the centralized management platform synchronizes the current second command line of the network security device. At the same time, the centralized management platform obtains the configuration data of the stored network security device, and converts the stored configuration data into the first command line according to the normal processing flow of issuing configuration commands.

[0128] Then, the first command line is compared with the second command line to identify the command line that sends the change. If there is an unadapted command line in the second command line that cannot be identified by the centralized management platform, it is stored in a preset configuration library for automatic management.

[0129] When the first command line is consistent with the second command line, the centralized management platform sends the target command line to the network security device according to the configuration data carried in the configuration request.

[0130] When the first command line is inconsistent with the second command line, the centralized management platform prompts the administrator 1 whether to accept the configuration of the administrator 2 on the device side, and the administrator accepts the configuration by default.

[0131] If administrator 1 accepts, the centralized management platform modifies the stored configuration data to the configuration data corresponding to the second command line. Optionally, the centralized management platform can provide an editing interface to administrator 1, and administrator 1 can modify the second command line or its corresponding configuration data in the editing interface. The centralized management platform can send the target command line to the network security device according to the configuration data carried by the configuration request, or according to the configuration data carried by the configuration request and the configuration data modified in the editing interface.

[0132] If administrator 1 does not accept, the centralized management platform instructs the network security device to modify the configuration to the configuration data stored in the centralized management platform, and sends the target command line to the network security device according to the configuration data carried in the configuration request.

[0133] It can be seen that the device configuration method provided in this embodiment solves the consistency problem between the device side configuration and the platform side configuration; the inconsistency of the configurations on both sides can be discovered in advance before the configuration is issued, without having to wait until the configuration is issued and an error occurs before discovering it through troubleshooting; it is possible to effectively manage the consistency problem through a centralized management platform when the configurations on both sides are inconsistent; and it is possible for users to uniformly solve all configuration problems on the device on the centralized management platform.

[0134] Based on a device configuration method described in any of the above embodiments, the present application also provides: Figure 7 A schematic diagram of the structure of an electronic device is shown in FIG. The electronic device is equipped with a centralized management platform, and the centralized management platform is in communication connection with the device to be configured. The electronic device is, for example, a server. Figure 7 At the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to implement a device configuration method described in any of the above embodiments.

[0135] Based on a device configuration method described in any of the above embodiments, the present application also provides a computer program product, which includes one or more computer programs or instructions. The computer program or instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. When the computer program is executed by a processor, a device configuration method described in any of the above embodiments is implemented.

[0136] The present application also provides a computer storage medium, which stores a computer program. When the computer program is executed by a processor, it can be used to execute a device configuration method described in any of the above embodiments.

[0137] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0138] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0139] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0140] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0141] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0142] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. A device configuration method, It is characterized in that Applied to a centralized management platform, the method comprises: In response to a configuration request from a first user, obtaining first configuration data of a device to be configured stored in the centralized management platform and current second configuration data of the device to be configured; performing consistency comparison between the first configuration data and the second configuration data; Generate target configuration data based on the comparison result and the configuration request, and send the target configuration data to the device to be configured, so that the device to be configured is configured based on the target configuration data.

2. The method according to claim 1, It is characterized in that The second configuration data is input by the second user at the device to be configured before or at the same time as the first user inputs the configuration request.

3. The method according to claim 1, It is characterized in that The step of acquiring first configuration data of the device to be configured and current second configuration data of the device to be configured stored in the centralized management platform; Comparing the first configuration data with the second configuration data for consistency, including: Acquire the first configuration data, and generate a first command line based on the first configuration data; Acquire a second command line generated based on the second configuration data; The first command line is compared with the second command line for consistency.

4. The method according to claim 3, It is characterized in that The method further comprises: Determining an unadapted command line of the centralized management platform from the second command line; The unadapted command line is stored in a preset configuration library.

5. The method according to claim 1 or 2, It is characterized in that The comparison result indicates that the first configuration data is consistent with the second configuration data, and generating target configuration data based on the comparison result and the configuration request includes: It is determined that the configuration data carried in the configuration request is the target configuration data.

6. The method according to claim 1 or 2, It is characterized in that The comparison result indicates that the first configuration data is inconsistent with the second configuration data, and generating target configuration data based on the comparison result and the configuration request includes: Outputting inquiry information to the first user whether to accept the second configuration data; If the query result indicates that the second configuration data is accepted, determining that the target configuration data includes the configuration data carried in the configuration request; If the query result indicates that the second configuration data is not accepted, the target configuration data is generated based on the configuration data carried in the configuration request and the first configuration data.

7. The method according to claim 6, It is characterized in that The query result indicates that the second configuration data is accepted, and the method further includes: outputting an editing interface for the second configuration data so that the first user can edit the second configuration data through the editing interface; the target configuration data includes the edited second configuration data and the configuration data carried in the configuration request; and / or The first configuration data stored in the centralized management platform is updated to the second configuration data.

8. An electronic device, It is characterized in that The electronic device is equipped with a centralized management platform, the centralized management platform is in communication connection with the device to be configured, and the electronic device includes: processor; a memory for storing processor-executable instructions; Wherein, when the processor calls the executable instructions, the operation of any method described in claims 1-7 is implemented.

9. A computer program product, It is characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, It is characterized in that Computer instructions are stored thereon, and when the computer instructions are executed by a processor, the steps of any method described in claims 1-7 are implemented.