Network equipment configuration baseline management and control system

By configuring a baseline management and control system through network equipment, devices that do not meet the baseline configuration specifications can be automatically acquired and repaired, which solves the problems of low configuration inspection and repair efficiency and difficult management in the existing technology, and realizes the automation of equipment of different manufacturers' brands and system versions. Adapt and repair.

CN118945052APending Publication Date: 2024-11-12CHINA MERCHANTS BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410959090.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively manage and automatically repair network equipment that does not meet the baseline configuration specifications, resulting in huge workload, difficult management, low efficiency, and easy inspection misses, which cannot be ensured. The quality of the execution process and results is reliable.

Method used

A network equipment configuration baseline management and control system is proposed, including equipment change management services, equipment asset management services, equipment configuration baseline inspection and correction services, baseline rule standard parameter library and equipment connection database, which can automatically obtain equipment that does not meet the baseline configuration specifications. Correction commands are automatically generated based on the placeholder parameters in the baseline rule standard parameter library and automatically issued to the target network device for baseline configuration correction.

Benefits of technology

It realizes automated repair of equipment that does not comply with baseline configuration specifications, adapts to equipment from different manufacturers and different system versions, improves the efficiency and accuracy of configuration inspection and repair, and reduces management difficulty.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945052A_ABST
    Figure CN118945052A_ABST
Patent Text Reader

Abstract

The invention discloses a network equipment configuration baseline management and control system, and relates to the technical field of equipment control. An equipment change management service obtains a baseline configuration group to be corrected and target equipment when detecting an inspection trigger instruction; generating a target baseline configuration command through the baseline rule standard parameter library, the target equipment information and the correction type corresponding to the baseline configuration group to be corrected, and issuing the target baseline configuration command to the equipment configuration baseline check and correction service; and the equipment configuration baseline checking and correction service acquires a target driving parameter according to the target equipment information when detecting a target baseline configuration command, and sends the target baseline configuration command to target network equipment corresponding to the to-be-corrected baseline configuration group through the target driving parameter. The target baseline configuration command for correcting the to-be-corrected baseline configuration group which does not conform to the baseline configuration specification is automatically generated according to the target equipment information, so that the target network equipment which does not conform to the baseline configuration specification is automatically repaired.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of equipment control technology, and in particular to a network equipment configuration baseline management and control system. Background Art

[0002] Currently in the network communication industry, because different network devices usually have different configuration languages, different security performance, different auxiliary functions and different system vulnerabilities, large and medium-sized enterprises and institutions have a huge workload and difficult management for configuration security compliance checks on a large number of different network devices. In addition, the efficiency is low and it is easy to miss items in the inspection, making it impossible to ensure the execution process, rigorous compliance and reliable quality of the execution results.

[0003] Therefore, how to provide a baseline control solution for automatically repairing devices that do not meet the baseline configuration specifications has become an urgent problem to be solved. Summary of the invention

[0004] The main purpose of this application is to provide a network equipment configuration baseline management and control system, aiming to solve the technical problem of how to provide a baseline management and control solution for automatically repairing equipment that does not meet the baseline configuration specifications.

[0005] To achieve the above-mentioned purpose, the present application proposes a network equipment configuration baseline management and control system, which includes: equipment change management service, equipment asset management service, equipment configuration baseline inspection and correction service, baseline rule standard parameter library and equipment connection database;

[0006] The device change management service is used to obtain the baseline configuration group to be modified and the target device information from the device asset management service when the inspection trigger instruction is detected;

[0007] The device change management service is further used to generate a target baseline configuration command through the baseline rule standard parameter library, the target device information and the correction type corresponding to the baseline configuration group to be corrected, and send the target baseline configuration command to the device configuration baseline checking and correction service;

[0008] The device configuration baseline checking and correction service is used to obtain target drive parameters from the device connection database according to the target device information when the target baseline configuration command is detected;

[0009] The device configuration baseline checking and correction service is further used to send the target baseline configuration command to the target network device corresponding to the baseline configuration group to be corrected through the target drive parameter.

[0010] In one embodiment, the system further comprises: a device asset information database, a device configuration baseline rule database, and a device configuration database;

[0011] The device asset management service is used to traverse all device objects in the device asset information database to obtain the target device information corresponding to the target network device when the inspection trigger instruction is detected;

[0012] The device asset management service is further used to traverse and match all baseline rules in the device configuration baseline rule database according to the target device information to obtain the target baseline rule corresponding to the target network device;

[0013] The device asset management service is further used to traverse the target baseline rule to obtain a target baseline configuration group;

[0014] The device asset management service is further used to obtain the latest configuration file corresponding to the target network device from the device configuration database, and perform regular matching on the baseline configuration regular item corresponding to the target baseline configuration group through the latest configuration file;

[0015] The device asset management service is further used to determine the baseline configuration group to be revised in the target baseline configuration group according to the regular matching result.

[0016] In one embodiment, the system further includes a device configuration automatic backup service;

[0017] The device configuration automatic backup service is used to traverse all device objects in the device asset information database to obtain the preset device information corresponding to all device objects when a backup trigger instruction is detected;

[0018] The device configuration automatic backup service is further used to obtain preset drive parameters from the device connection database according to the preset device information;

[0019] The device configuration automatic backup service is further used to establish a connection with all the device objects according to the preset drive parameters, and obtain the device full configuration echo corresponding to all the device objects;

[0020] The device configuration automatic backup service is further used to generate a preset configuration file corresponding to all the device objects according to the device full configuration echo, and store the preset configuration file in the device configuration database.

[0021] In one embodiment, the system further comprises a device configuration baseline rule management service;

[0022] The device change management service is further used to generate a parameter change request according to the change rule parameters input by the user, and send the parameter change request to the device configuration baseline rule management service;

[0023] The device configuration baseline rule management service is further used to perform preset parameter verification on the change rule parameters according to the baseline rule standard parameter data model and constraints when receiving the parameter change request;

[0024] The device configuration baseline rule management service is also used to obtain the target parameter change authorization level corresponding to the change rule parameter from the device configuration baseline rule database when the preset parameter verification passes, and determine the change process approval result of the change rule parameter according to the target change authorization level.

[0025] In one embodiment, the device change management service is further used to generate a rule change request according to the device configuration baseline rule change input by the user, and send the rule change request to the device configuration baseline rule management service;

[0026] The device configuration baseline rule management service is further used to perform preset rule conflict check on the changed device configuration baseline rule according to the device configuration baseline rule data model and constraints when receiving the rule change request;

[0027] The device configuration baseline rule management service is also used to obtain the target rule change authorization level corresponding to the device configuration baseline rule change from the device configuration baseline rule database when the preset rule conflict check passes, and determine the change process approval result of the change rule parameter according to the target rule change authorization level.

[0028] In one embodiment, the system further comprises: a device version risk baseline management service and a device version risk baseline database;

[0029] The device version risk baseline management service is used to obtain an update baseline configuration group corresponding to the update baseline rule when a preset baseline rule update instruction is detected and the update baseline rule is a device configuration baseline rule;

[0030] The device version risk baseline management service is further used to obtain a defective device version risk baseline matching the update baseline configuration group from the device version risk baseline database;

[0031] The device version risk baseline management service is further used to perform a preset regular intersection judgment on the defective baseline configuration group corresponding to the defective device version risk baseline and all baseline configuration groups in the device configuration database;

[0032] The device version risk baseline management service is also used to generate baseline rule and risk baseline conflict verification results based on regular intersection judgment results.

[0033] In one embodiment, the system further comprises a device configuration baseline rules database;

[0034] The device version risk baseline management service is further used to determine whether the defect regular expression corresponding to the updated baseline rule meets the preset stability condition when a preset baseline rule update instruction is detected and the updated baseline rule is a device version risk baseline rule;

[0035] The device version risk baseline management service is further used to obtain an update device configuration baseline rule that matches the device information corresponding to the update baseline rule from the device configuration baseline rule database if the defect regular expression corresponding to the update baseline rule does not meet the preset stability condition, and obtain the corresponding update baseline configuration group according to the update device configuration baseline rule;

[0036] The device version risk baseline management service is further used to obtain a defective device configuration baseline rule matching the updated baseline configuration group from the device configuration baseline rule database;

[0037] The device version risk baseline management service is further used to perform a preset regular intersection judgment on the defective baseline configuration group corresponding to the defective device configuration baseline rule and all baseline configuration groups in the device configuration database;

[0038] The device version risk baseline management service is also used to generate baseline rule and risk baseline conflict verification results based on regular intersection judgment results.

[0039] In one embodiment, the device configuration baseline rule management service is further used to obtain a first updated configuration baseline corresponding to the updated baseline rule when a preset baseline rule update instruction is detected and the updated baseline rule is a device configuration baseline rule;

[0040] The device configuration baseline rule management service is further used to obtain a first modified baseline configuration group from the device configuration database according to the device information of the first updated configuration baseline;

[0041] The device configuration baseline rule management service is further configured to traverse and match the first configuration baseline of the stock rules in the device configuration baseline rule database through the device information of the first updated configuration baseline to obtain a first stock baseline configuration group;

[0042] The device configuration baseline rule management service is further used to perform a preset regular intersection judgment on the first modified baseline configuration group and the first stock baseline configuration group, and generate a baseline rule entry or change conflict verification result according to the regular intersection judgment result.

[0043] In one embodiment, the device configuration baseline rule management service is further used to obtain a second updated configuration baseline corresponding to the updated baseline rule when a preset baseline rule update instruction is detected and the updated baseline rule is a device configuration baseline rule;

[0044] The device configuration baseline rule management service is further used to obtain a second modified baseline configuration group from the device configuration database according to the device information of the second updated configuration baseline;

[0045] The device configuration baseline rule management service is further configured to traverse and match the second configuration baseline of the stock rule through the device information of the second updated configuration baseline to obtain a second stock baseline configuration group;

[0046] The device configuration baseline rule management service is further used to perform a preset regular intersection judgment on the second modified baseline configuration group and the second stock baseline configuration group, and generate the baseline rule entry or change conflict verification result according to the regular intersection judgment result.

[0047] In one embodiment, the device change management service is further used to obtain the device configuration change text and the changed device information corresponding to the changed device when a configuration change instruction is detected;

[0048] The device change management service is further used to obtain preset device configuration baseline rules corresponding to all devices from the device configuration baseline rule database;

[0049] The device change management service is further used to traverse and match the preset device configuration baseline rule according to the changed device information to obtain the device configuration baseline rule to be verified;

[0050] The device change management service is further used to generate current configuration baseline information according to the configuration baseline rule of the device to be verified and the baseline rule standard parameter library;

[0051] The device change management service is further used to perform preset text matching on the current configuration baseline information and the device configuration change text to obtain a change baseline conflict verification result.

[0052] The present application provides a network device configuration baseline management and control system, which includes: an equipment change management service, an equipment asset management service, an equipment configuration baseline inspection and correction service, a baseline rule standard parameter library and an equipment connection database; the equipment change management service is used to obtain the baseline configuration group to be corrected and the target device information from the equipment asset management service when a check trigger instruction is detected; the equipment change management service is also used to generate a target baseline configuration command through the baseline rule standard parameter library, the target device information and the correction type corresponding to the baseline configuration group to be corrected, and send the target baseline configuration command to the equipment configuration baseline inspection and correction service; the equipment configuration baseline inspection and correction service is used to obtain the target drive parameter from the equipment connection database according to the target device information when the target baseline configuration command is detected; the equipment configuration baseline inspection and correction service is also used to send the target baseline configuration command to the target network device corresponding to the baseline configuration group to be corrected through the target drive parameter. This application can automatically obtain the baseline configuration group to be corrected that does not meet the baseline configuration specification, and then automatically generate the target baseline configuration command to correct the baseline configuration group to be corrected that does not meet the baseline configuration specification according to the correction type of the baseline configuration group to be corrected, the target device information of the target network device, and the placeholder parameters in the baseline rule standard parameter library, and then automatically send the target baseline configuration to the target network device for baseline configuration correction. Therefore, this application can automatically repair devices that do not meet the baseline configuration specification, and can also automatically repair the baseline according to the target device information to achieve the effect of adapting to devices of different manufacturers and brands and different system versions and being scalable. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0054] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0055] Figure 1 A first structural block diagram of a first embodiment of a network device configuration baseline management and control system of the present invention;

[0056] Figure 2 A first flow chart of a first embodiment of a network device configuration baseline management and control system of the present invention;

[0057] Figure 3 A second flow chart of the first embodiment of the network device configuration baseline management and control system of the present invention;

[0058] Figure 4 A first structural block diagram of a second embodiment of a network device configuration baseline management and control system according to the present invention;

[0059] Figure 5 A first flow chart of a second embodiment of a network device configuration baseline management and control system according to the present invention;

[0060] Figure 6 A second structural block diagram of the second embodiment of the network device configuration baseline management and control system of the present invention;

[0061] Figure 7 A second flow chart of the second embodiment of the network device configuration baseline management and control system of the present invention;

[0062] Figure 8 A third structural block diagram of the second embodiment of the network device configuration baseline management and control system of the present invention;

[0063] Fig. 9 A first structural block diagram of a third embodiment of a network device configuration baseline management and control system according to the present invention;

[0064] Fig.10 A first flow chart of a third embodiment of a network device configuration baseline management and control system according to the present invention;

[0065] Fig.11 A second flow chart of a third embodiment of a network device configuration baseline management and control system according to the present invention;

[0066] Fig.12 A third flow chart of a third embodiment of a network device configuration baseline management and control system according to the present invention;

[0067] Fig.13 A schematic diagram of the operating architecture of the network device configuration baseline management and control system of the present invention.

[0068] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0069] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0070] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0071] The main solution of this application is: to propose a network equipment configuration baseline management and control system, the system includes: equipment change management service, equipment asset management service, equipment configuration baseline inspection and correction service, baseline rule standard parameter library and equipment connection database; equipment change management service, used to obtain the baseline configuration group to be corrected and the target device from the equipment asset management service when the inspection trigger instruction is detected; the equipment change management service is also used to generate the target baseline configuration command through the baseline rule standard parameter library, the target device information and the correction type corresponding to the baseline configuration group to be corrected, and send the target baseline configuration command to the equipment configuration baseline inspection and correction service; the equipment configuration baseline inspection and correction service is used to obtain the target drive parameters from the equipment connection database according to the target device information when the target baseline configuration command is detected; the equipment configuration baseline inspection and correction service is also used to send the target baseline configuration command to the target network device corresponding to the baseline configuration group to be corrected through the target drive parameters.

[0072] In the existing baseline management and control process, manual configuration acquisition, inspection and correction are often used, which is labor-intensive, inaccurate, inefficient and difficult to manage. In addition, the current configuration baseline inspection and repair methods used in the industry only support the inspection and repair of device configurations of a single system version for the same manufacturer brand, without considering that there may be differences in device configuration languages ​​between different system versions of the same manufacturer brand, and do not support the inspection and repair of device configurations of multiple system versions of the same manufacturer brand.

[0073] In order to solve the above problems, the present application can automatically obtain the baseline configuration group to be corrected that does not meet the baseline configuration specification, and then automatically generate the target baseline configuration command to correct the baseline configuration group to be corrected that does not meet the baseline configuration specification according to the correction type of the baseline configuration group to be corrected, the target device information of the target network device, and the placeholder parameters in the baseline rule standard parameter library, and then automatically send the target baseline configuration to the target network device for baseline configuration correction. Therefore, the present embodiment can automatically repair the device that does not meet the baseline configuration specification, and can also automatically repair the baseline according to the target device information to achieve the effect of adapting to devices of different manufacturers and brands and different system versions and being scalable.

[0074] The embodiment of the present invention provides a network device configuration baseline management and control system, referring to Figure 1 , Figure 1 A first structural block diagram of the first embodiment of the network device configuration baseline management and control system of the present invention.

[0075] like Figure 1 As shown, in this embodiment, the network device configuration baseline management and control system includes: device change management service, device asset management service, device configuration baseline inspection and correction service, baseline rule standard parameter library and device connection database;

[0076] The device change management service is used to obtain the baseline configuration group to be modified and the target device information from the device asset management service when the inspection trigger instruction is detected;

[0077] The device change management service is further used to generate a target baseline configuration command through the baseline rule standard parameter library, the target device information and the correction type corresponding to the baseline configuration group to be corrected, and send the target baseline configuration command to the device configuration baseline checking and correction service;

[0078] The device configuration baseline checking and correction service is used to obtain target drive parameters from the device connection database according to the target device information when the target baseline configuration command is detected;

[0079] The device configuration baseline checking and correction service is further used to send the target baseline configuration command to the target network device corresponding to the baseline configuration group to be corrected through the target drive parameter.

[0080] It should be noted that the above-mentioned services or databases included in the network equipment configuration baseline management and control system (referred to as the management and control system) provided in this embodiment are abstracted services or databases to describe the external functions and data dependencies required for the implementation of this application, and are not limited by the name meaning of the abstracted services or databases. As long as a service or data conforms to the functions or features described in the present invention and meets the external functions and data dependencies required for the implementation of the present invention, it can correspond to one or more conditions in the preconditions.

[0081] It should be understood that the device change management service in this embodiment may include a device configuration remote delivery function module, which can remotely connect to the device through SSH (Secure Shell) or HTTPS (Hypertext Transfer Protocol Secure) according to the account password and driver provided by the device connection database and implement the configuration delivery and echo reception. The choice of SSH or HTTPS depends on the device's support for remote connection, and is adapted by the remote connection driver corresponding to the device version. The above-mentioned device connection database can store the device account password and remote connection driver of each network device, where the remote connection driver implements the parsing adaptation of device operation commands and echoes, such as full configuration query commands.

[0082] It is easy to understand that in this embodiment, the control system can perform regular checks on each network device to check whether there are devices that do not meet the baseline configuration specifications in each network device, and when it is found that there are devices that do not meet the baseline configuration specifications, that is, the above-mentioned target network devices, the specific configuration items that do not meet the specifications in the target network devices are screened out and combined into a whole and then saved to the device asset management service. Therefore, the above-mentioned baseline configuration group to be corrected and the target device information can be the overall configuration items and device information that do not meet the specifications corresponding to the devices that do not meet the baseline configuration specifications.

[0083] Therefore, in this embodiment, the automatic generation of the device configuration baseline correction configuration can be triggered by the device configuration baseline scheduled inspection task, and the device change management service can receive the baseline configuration group and target device detailed information that need to be corrected from the device asset management service when the device configuration baseline scheduled inspection task is detected to be triggered, that is, when the trigger instruction is detected.

[0084] It is understandable that the configuration baseline inspection and repair method currently used in the industry does not take into account the possible differences in device configuration language between different system versions of the same manufacturer brand, and does not support device configuration inspection and repair of multiple system versions of the same manufacturer brand. Therefore, in the management and control system proposed in this embodiment, considering that there may be differences in device configuration language between different system versions of the same manufacturer brand, the configuration baseline information of different system versions can be entered for the same manufacturer brand when creating and modifying the configuration baseline, and the corresponding configuration baseline information is obtained according to the manufacturer brand and system version when performing the inspection, thereby achieving the adaptation and scalability of device configuration baseline inspection for different manufacturer brands and their different system versions. Therefore, the above-mentioned target device information can include the tenant, manufacturer brand, system version, management IP and other device information of the target network device, and it is easy to understand that in this embodiment, the device asset management service and the supporting device asset information database support multi-tenancy, and realize the entry of the full amount of device asset information that needs to be checked for configuration baseline under each tenant, so as to achieve the effect of adapting to devices of different manufacturer brands and different system versions and being scalable.

[0085] It should be understood that the modification type of the above-mentioned baseline configuration group to be modified can be to include the configuration baseline or to exclude the configuration baseline. Therefore, the device change management service can determine whether the baseline configuration group to be modified belongs to the configuration baseline to be included or the configuration baseline to be excluded.

[0086] If the baseline configuration group to be corrected belongs to the configuration baseline that should be included, then obtain the configuration clearing command and configuration generating command in the baseline configuration group to be corrected, and query the placeholder parameters in the baseline rule standard parameter library filling command to generate a complete old configuration clearing command and a new configuration generating command that can be issued. The complete old configuration clearing command and the new configuration generating command form the configuration baseline correction configuration, that is, the above-mentioned target baseline configuration command;

[0087] If the baseline configuration group to be corrected belongs to the configuration baseline that should be excluded, then obtain the configuration clearing command corresponding to the baseline configuration group to be corrected, and query the placeholder parameters in the baseline rule standard parameter library to fill in the command to generate a complete old configuration clearing command that can be issued, and use this as the configuration baseline correction configuration, that is, the target baseline configuration command mentioned above. The automatic generation process of the configuration baseline correction configuration corresponding to the target baseline configuration command can be as follows: Figure 2 As shown, Figure 2 A first flow chart of the first embodiment of the network device configuration baseline management and control system of the present invention.

[0088] It is easy to understand that in order to realize the automatic repair of the network configuration baseline of the target network device, the management and control system also needs to send the generated target baseline configuration command to the target network device. In this embodiment, the automatic sending of the device configuration baseline correction configuration can be manually triggered by the operator through the device configuration remote sending function module of the above-mentioned device change management service or automatically triggered by setting a timer, and the automatic sending operation of the device configuration baseline correction configuration can be performed by the above-mentioned device configuration baseline inspection and correction service.

[0089] Specifically, when the user manually triggers or automatically triggers the task of automatically sending the device configuration baseline correction configuration, the device configuration baseline check and correction service can obtain the target device and the configuration information to be sent transmitted by the device change management service, and query the target network device’s corresponding manufacturer brand, system version, management IP and other target device information from the device asset management service; then, based on the obtained manufacturer brand and system version of the target device, obtain the corresponding device remote connection driver and account password from the device connection database, that is, the above-mentioned target driver parameters. The device configuration baseline check and correction service can then select SSH or HTTPS based on the device remote connection driver startup, and use the device management IP of the target network device as the destination address to open a remote connection. After successfully connecting to the target network device and passing the account password authentication, it will send the target baseline configuration command, and receive the echo through the configuration content in the target baseline configuration command, so as to realize the automatic correction of the baseline configuration group to be corrected in the target network device. The process of automatically sending the configuration baseline correction configuration based on the target baseline configuration command can be as follows: Figure 3 As shown, Figure 3 A second flow chart of the first embodiment of the network device configuration baseline management and control system of the present invention.

[0090] In addition, the device configuration baseline check and correction service can record detailed information such as the command issued, the echo content, and the issuance time, so that subsequent operators can review each automatic baseline correction process.

[0091] In this implementation, a baseline configuration group to be corrected that does not conform to the baseline configuration specification can be automatically obtained, and then a target baseline configuration command for correcting the baseline configuration group to be corrected that does not conform to the baseline configuration specification is automatically generated based on the correction type of the baseline configuration group to be corrected, the target device information of the target network device, and the placeholder parameters in the baseline rule standard parameter library, and then the target baseline configuration is automatically sent to the target network device for baseline configuration correction.

[0092] Therefore, this embodiment can automatically repair devices that do not meet the baseline configuration specifications, and can also automatically repair the baseline according to the target device information to achieve the effect of adapting to devices of different manufacturers' brands and different system versions and being scalable.

[0093] The present embodiment discloses a network device configuration baseline management and control system, which includes: an equipment change management service, an equipment asset management service, an equipment configuration baseline inspection and correction service, a baseline rule standard parameter library, and an equipment connection database; the equipment change management service is used to obtain the baseline configuration group to be corrected and the target device information from the equipment asset management service when a check trigger instruction is detected; the equipment change management service is also used to generate a target baseline configuration command through the baseline rule standard parameter library, the target device information, and the correction type corresponding to the baseline configuration group to be corrected, and send the target baseline configuration command to the equipment configuration baseline inspection and correction service; the equipment configuration baseline inspection and correction service is used to obtain the target drive parameter from the equipment connection database according to the target device information when the target baseline configuration command is detected; the equipment configuration baseline inspection and correction service is also used to send the target baseline configuration command to the target network device corresponding to the baseline configuration group to be corrected through the target drive parameter. Therefore, in this embodiment, the baseline configuration group to be corrected that does not conform to the baseline configuration specification can be automatically obtained, and then the target baseline configuration command for correcting the baseline configuration group to be corrected that does not conform to the baseline configuration specification is automatically generated according to the correction type of the baseline configuration group to be corrected, the target device information of the target network device, and the placeholder parameters in the baseline rule standard parameter library, and then the target baseline configuration is automatically sent to the target network device for baseline configuration correction. Therefore, this embodiment can automatically repair the device that does not conform to the baseline configuration specification, and can also automatically repair the baseline according to the target device information to achieve the effect of adapting to devices of different manufacturers and brands and different system versions and being scalable.

[0094] Reference Figure 4 , Figure 4 The first structural block diagram of the second embodiment of the network device configuration baseline management and control system of the present invention is based on the above Figure 1 The illustrated embodiment provides a second embodiment of the network device configuration baseline management and control system of the present invention.

[0095] It is easy to understand that, in addition to realizing automated repair of network devices that do not comply with baseline configuration specifications, this embodiment can also automatically identify the compliance of the baseline configuration of network devices, that is, this embodiment can check whether there is a configuration baseline to be corrected in each network device before automatically generating a configuration baseline to be corrected and automatically issuing a configuration file (such as a target baseline configuration command).

[0096] Therefore, if Figure 4 As shown, in this embodiment, the system further includes: a device asset information database, a device configuration baseline rule database, and a device configuration database;

[0097] The device asset management service is used to traverse all device objects in the device asset information database to obtain the target device information corresponding to the target network device when the inspection trigger instruction is detected;

[0098] The device asset management service is further used to traverse and match all baseline rules in the device configuration baseline rule database according to the target device information to obtain the target baseline rule corresponding to the target network device;

[0099] The device asset management service is further used to traverse the target baseline rule to obtain a target baseline configuration group;

[0100] The device asset management service is further used to obtain the latest configuration file corresponding to the target network device from the device configuration database, and perform regular matching on the baseline configuration regular item corresponding to the target baseline configuration group through the latest configuration file;

[0101] The device asset management service is further used to determine the baseline configuration group to be revised in the target baseline configuration group according to the regular matching result.

[0102] It can be understood that in this embodiment, when the device asset management service detects that the device configuration self-baseline scheduled inspection task is triggered, that is, when the inspection trigger instruction is detected, it first queries all device objects in the device asset database for traversal, obtains the tenant, manufacturer brand, system version, management IP and other device information of the currently traversed device, and then obtains the target device information corresponding to the target network device. Then, all device configuration baseline rules in the device configuration baseline rule database are queried to screen out the baseline configuration group that is consistent with the tenant, manufacturer brand, and system version of the target network device and the baseline rules that are consistent with other device matching conditions, that is, the above-mentioned target baseline rules.

[0103] Then, the device asset management service can traverse the matched target baseline rules, and obtain the baseline configuration groups corresponding to the configuration baselines that should be included and excluded in the current traversed rules according to the manufacturer brand and system version of the currently traversed device, that is, the above-mentioned target baseline configuration group.

[0104] Then the device asset management service can query the device configuration database to obtain the latest configuration file of the target network device. In the process of regular matching the baseline configuration regular item corresponding to the target baseline configuration group through the latest configuration file, the latest configuration corresponding to the target network device must first be obtained from the latest configuration file. Since the latest configuration file can be divided into multiple file formats, based on this, there are multiple processing methods for obtaining the latest configuration from the latest configuration file in this embodiment, as shown below:

[0105] 1) If the configuration file is determined to be a compressed file based on the file suffix (such as F5's (.ucs) suffix, (.im) suffix compressed file), call the decompression tool to decompress it layer by layer until all the files in it cannot be decompressed completely.

[0106] 2) If a single configuration file is obtained, the text content in the file is read as the latest configuration of the target network device;

[0107] 3) If multiple configuration files are obtained that are nested in one or more directories, the text contents in all files are recursively read layer by layer, and all the contents are spliced ​​with empty lines as intervals, and the spliced ​​text contents are used as the latest configuration of the target network device.

[0108] After obtaining the latest configuration of the target network device, the device asset management service can traverse each baseline configuration regular item in the target baseline configuration group corresponding to the configuration baseline that should be included and the configuration baseline that should be excluded, and then perform regular matching with the latest full configuration of the device after filling in parameters according to the rule standard parameter dictionary, and record the matching results of each baseline configuration regular item with the device configuration and the overall matching results of each baseline configuration group.

[0109] For a certain device configuration baseline rule, it should include that each baseline configuration regular item in the baseline configuration group in the configuration baseline should match all device configurations, and at the same time, it should exclude that each baseline configuration regular item in the baseline configuration group in the configuration baseline should not match all device configurations, so that it can be considered to meet the baseline requirements. Otherwise, it does not meet the baseline requirements. At this time, the device asset management service needs to send each group of unmatched baseline configuration groups, that is, the above-mentioned baseline configuration groups to be corrected, to the device change management service for automatic generation of configuration baseline correction configurations. The device configuration baseline regular inspection execution process corresponding to the baseline configuration group to be corrected can be as follows: Figure 5 As shown, Figure 5 A first flow chart of the second embodiment of the network device configuration baseline management and control system of the present invention.

[0110] Therefore, this embodiment supports the inspection and repair of multi-file configurations. Considering that the configurations of some devices are split into multiple configuration files by the device system during backup, such as F5, which splits the configuration into multiple configuration files such as bigip.conf and bigip_base.conf and then compresses and packages them into compressed files with a .ucs suffix during backup. The solution proposed in this embodiment can realize the inspection and repair of multi-file configurations by recursively decompressing the compressed files of such multi-file configurations and splicing the text contents of multiple files.

[0111] In addition, the present embodiment also supports cross-line matching of configuration text and baseline. Considering that the configuration of some devices is not a line-by-line configuration with lines as the basic unit, but a series of independent cross-line configuration units, there are dependencies between the contexts in the configuration units, and a single line of content may also appear in other configuration units that are unrelated to the current configuration unit. Therefore, it is not identifiable and comparable, and cannot be used as a baseline for matching. For example, the basic unit of F5 configuration is a configuration unit consisting of a configuration unit header and a configuration unit body encapsulated by "{}". The solution proposed in this embodiment can achieve cross-line matching of configuration text and baseline by supporting cross-line regular matching when creating baseline configuration regular items and full-text matching when regular matching configuration text.

[0112] It is easy to understand that the above-mentioned equipment configuration self-baseline scheduled check in the management and control system can be triggered once a day through a scheduled task, and the scheduled task can be set between the end of the equipment configuration change peak period and the beginning of the business peak period. However, this scheduled task should be set after the automatic backup of the equipment configuration is completed, that is, this embodiment needs to obtain the latest configuration files of all network devices before performing the scheduled check. Therefore, the management and control system in this embodiment can also regularly back up the data of network devices, refer to Figure 6 , Figure 6 A second structural block diagram of a second embodiment of the network device configuration baseline management and control system of the present invention. In this embodiment, the system further includes an automatic device configuration backup service;

[0113] The device configuration automatic backup service is used to traverse all device objects in the device asset information database to obtain the preset device information corresponding to all device objects when a backup trigger instruction is detected;

[0114] The device configuration automatic backup service is further used to obtain preset drive parameters from the device connection database according to the preset device information;

[0115] The device configuration automatic backup service is further used to establish a connection with all the device objects according to the preset drive parameters, and obtain the device full configuration echo corresponding to all the device objects;

[0116] The device configuration automatic backup service is further used to generate a preset configuration file corresponding to all the device objects according to the device full configuration echo, and store the preset configuration file in the device configuration database.

[0117] It should be understood that for devices that support configuration backup through full configuration query commands, when the automatic backup schedule task is triggered, that is, when the device configuration automatic backup service detects the backup trigger instruction, it can first query all device objects in the device asset database to traverse and obtain the manufacturer brand, system version, management IP and other information of the currently traversed device, that is, the above-mentioned preset device information.

[0118] Then, the device configuration automatic backup service will query the corresponding device connection account and password, the device remote connection driver and the full configuration query command from the device connection database according to the obtained device manufacturer brand and system version, that is, the above-mentioned preset driver parameters. Then, according to the driver, select the SSH or HTTPS protocol to establish a remote connection with all devices with the management IP of all devices as the destination address. After successfully connecting to the device and completing the account and password authentication, you can send a full configuration query command to obtain the full configuration echo of all device objects.

[0119] Finally, the device configuration automatic backup service can generate preset configuration files corresponding to all device objects based on the full configuration echo, and store the preset configuration files in the device configuration database and record the collection time.

[0120] For a few devices that do not support configuration backup through full configuration query commands due to outdated versions, you can set the scheduled backup configuration system settings and the backup file sending address system settings on the device. The device will back up the device configuration regularly and send the backed-up configuration to the set backup file dedicated file system. The monitoring scanning program of the backup file dedicated file system will sense the writing of new files. After the file is written, the configuration file will be stored in the device configuration database and the collection time will be recorded. The automatic backup process of device configuration corresponding to all network devices can be as follows: Figure 7 As shown, Figure 7 A second flow chart of the second embodiment of the network device configuration baseline management and control system of the present invention.

[0121] It should be understood that the above-mentioned equipment change management service can realize the construction of the application approval process for adding and changing baseline rule standard parameters, the application approval process for equipment configuration change, the application approval process for issuing equipment configuration baseline correction configuration, and the application approval process for adding and changing equipment configuration baseline rules. Relevant work order applications can be created through the external system call interface, and the external system can be called in the application approval process to realize data interaction.

[0122] Reference Figure 8 , Figure 8 The third structural block diagram of the second embodiment of the network device configuration baseline management and control system of the present invention, in this embodiment, the system also includes a device configuration baseline rule management service;

[0123] The device change management service is further used to generate a parameter change request according to the change rule parameters input by the user, and send the parameter change request to the device configuration baseline rule management service;

[0124] The device configuration baseline rule management service is further used to perform preset parameter verification on the change rule parameters according to the baseline rule standard parameter data model and constraints when receiving the parameter change request;

[0125] The device configuration baseline rule management service is also used to obtain the target parameter change authorization level corresponding to the change rule parameter from the device configuration baseline rule database when the preset parameter verification passes, and determine the change process approval result of the change rule parameter according to the target change authorization level.

[0126] As an implementable method, in this embodiment, the device change management service is further used to generate a rule change request according to the device configuration baseline rule change input by the user, and send the rule change request to the device configuration baseline rule management service;

[0127] The device configuration baseline rule management service is further used to perform preset rule conflict check on the changed device configuration baseline rule according to the device configuration baseline rule data model and constraints when receiving the rule change request;

[0128] The device configuration baseline rule management service is also used to obtain the target rule change authorization level corresponding to the device configuration baseline rule change from the device configuration baseline rule database when the preset rule conflict check passes, and determine the change process approval result of the change rule parameter according to the target rule change authorization level.

[0129] It is easy to understand that in this embodiment, by setting up the process of application approval for adding and changing baseline rule standard parameters and the process of application approval for adding and changing equipment configuration baseline rules in the equipment change management service, in this embodiment, the equipment configuration baseline rule changes and the baseline rule standard parameter library changes implement a unified single in-transit change system, that is, when there is an in-transit equipment configuration baseline rule change work order application or a baseline rule standard parameter library change work order application, no new equipment configuration baseline rule change work order application or baseline rule standard parameter library change application shall be created.

[0130] Specifically, when the operator needs to add or modify the baseline rule standard parameters, he or she must fill in the parameter content on the front-end page of the equipment change management service. The equipment change management service creates a work order application for adding, modifying or deleting the baseline rule standard parameters based on the change rule parameters entered by the user, that is, the above-mentioned parameter change request, and forwards the work order creation application to the equipment configuration baseline rule management service after submission.

[0131] The device configuration baseline rule management service can perform preset parameter verification on the parameter content of the submitted change rule parameters according to the baseline rule standard parameter data model and constraints. If the constraint verification fails, the work order creation fails and the specific reason is returned. If all constraints are met, that is, the preset parameter verification passes, the device configuration baseline rule database is queried to obtain the highest baseline change authorization level that references the parameter rule to determine the change process approval result.

[0132] It should be noted that, in this embodiment, the setting contents of the above baseline rule standard parameter library data model and constraints can be as follows:

[0133] The baseline rule standard parameter library is used to store the standard parameters that need to be extracted from each configuration baseline rule, which is convenient for centralized management and consistency. The baseline rule standard parameter library contains four core attributes: the tenant to which the parameter belongs, the parameter name, the parameter value, and the parameter change authorization level. When creating or changing, all three attributes are required except the parameter change authorization level. The parameter change authorization level should be read-only and automatically assigned by the system. The tenant to which the parameter belongs and the parameter name form a joint primary key, which is globally unique.

[0134] 1) The tenant to which the parameter belongs is the headquarters or a branch structure, indicating that the parameter is created and managed by the employees of the department. Each parameter is visible only to the tenant to which the parameter belongs.

[0135] 2) The parameter names of the baseline rule standard parameter library must be globally unique under the tenant to which the rule belongs. This refers to the placeholder markers in the baseline configuration regular items, baseline configuration group clearing commands, and baseline configuration group generation commands. It is agreed that the placeholder markers are wrapped with "${" and "}" in the baseline configuration regular items, baseline configuration group clearing commands, and baseline configuration group generation commands to distinguish them from other contents.

[0136] 3) The parameter value of the baseline rule standard parameter library is a regular expression of the actual value of the standard parameter.

[0137] 4) The parameter change authorization level should be the change authorization level corresponding to the highest baseline level rule in all device configuration baseline rules that are using the parameter. When the parameter is newly created and not used by any rule, the parameter change authorization level should be assigned the value of "Change requires approval by the department's network security management team leader".

[0138] Therefore, this implementation can realize the extraction, construction and unified management of the configuration baseline standard parameter library to ensure the global consistency of parameters. Considering that there may be many common parameters in different configuration baselines, some of which may contain a large number of network segments or IP parameters, it is easy to make mistakes during entry and modification, resulting in inconsistencies in parameters between baselines, which will cause other impacts and are difficult to troubleshoot. The solution proposed in this embodiment realizes the extraction and unified management of such common standard parameters, which can ensure the global consistency of parameters.

[0139] It is easy to understand that when the target parameter change authorization level is "unchangeable", the work order creation fails and returns the specific reason. Otherwise, the highest baseline change authorization level is assigned to the corresponding parameter change authorization level; the parameter change authorization level of the unreferenced baseline rule standard parameter is assigned "change requires approval by the network security management team leader". Then, the work order is transferred back to the device change management service to complete the work order creation, and the device change management service is notified to dispatch the work order to the corresponding handler according to the "parameter change authorization level" attribute.

[0140] When the authorization level for target parameter change is "change requires expert group review", the work order will be distributed to all members of the department's network expert group and the applicant will be notified to organize an expert group review. All experts must reach a consensus at the review meeting. If no consensus is reached, the applicant must withdraw the work order based on the review opinion, modify the content of the change review plan and resubmit it for review, or abandon the change. If the applicant abandons the change, there is no need to modify and submit the work order after the withdrawal. After all experts reach a consensus, they must all approve the work order application on the device change management service system. After that, the work order will continue to be forwarded by the device change management service to the device configuration baseline rule management service to realize the change of the baseline rule standard parameters in the baseline rule standard parameter library.

[0141] When the authorization level for target parameter changes is "Changes require review by the network security management team", the work order will be distributed to all members of the department's network security management team and the applicant will be notified to organize a review within the team. All members of the review meeting must reach a consensus. If no consensus is reached, the applicant must withdraw the work order based on the review opinion, modify the content of the change review plan and resubmit it for review, or abandon the change. If the applicant abandons the change, there is no need to modify and submit the work order after the withdrawal. After all members reach a consensus, they must all approve the work order application on the device change management service system. After that, the work order will continue to be forwarded by the device change management service to the device configuration baseline rule management service to implement changes to the baseline rule standard parameters in the baseline rule standard parameter library.

[0142] When the target parameter change authorization level is "Changes require approval by the leader of the network security management team", the work order will be sent to the leader of the network security management team for approval. If the leader of the network security management team disagrees after approval on the device change management service system, the work order will be returned to the applicant. The applicant can modify the change review plan content according to the approval opinion and resubmit the review, or abandon the change. If the applicant abandons the change, there is no need to modify and submit the work order. After the leader of the network security management team approves and agrees on the device change management service system, the work order will continue to be forwarded by the device change management service to the device configuration baseline rule management service to realize the addition or change of the baseline rule standard parameters in the baseline rule standard parameter library.

[0143] When approving the device configuration baseline rule change process, the operator still needs to fill in the rule content on the front-end page of the device change management service. Then the device change management service creates a work order application for adding, modifying or deleting the device configuration baseline rule based on the changed device configuration baseline rule, which is the above-mentioned rule change request.

[0144] After the work order creation application is submitted, it is forwarded to the device configuration baseline rule management service. The device configuration baseline rule management service performs preset rule conflict checks on the rule content submitted in the rule change request based on the device configuration baseline rule data model and constraints. Specifically, it can perform configuration baseline and version risk baseline conflict checks and configuration baseline entry and change conflict checks.

[0145] When the constraint check fails or the conflict check fails, that is, the preset rule conflict check fails, the work order creation fails and the specific reason is returned; when all constraints are met and the conflict check succeeds, that is, the preset rule conflict check passes, the target rule change authorization level corresponding to the device configuration baseline rule is obtained from the device configuration baseline rule database, and the target rule change authorization level corresponding to the device configuration baseline rule is obtained according to the target database to determine the change process approval result of the change rule parameters.

[0146] It should be noted that, in this embodiment, the setting contents of the above-mentioned device configuration baseline rule data model and constraints may be as follows:

[0147] First, the existing solution does not support customized flexible screening of inspection devices. The configuration baseline inspection and repair methods currently used in the industry are mostly applicable to security compliance-related configuration baselines, requiring all devices to meet these baselines. It does not support some configuration baselines in other scenarios that do not require global application. To solve this problem, in this embodiment, the device configuration baselines can be divided into two categories: "management configuration" and "business configuration".

[0148] Among them, the management configuration baseline is a type of configuration baseline that meets relevant global, mandatory and basic requirements, including security configuration baselines, monitoring configuration baselines, etc. The management configuration baseline should be a globally unified configuration baseline. Modifying the baseline has a large impact and should be kept stable for a long time and changed with caution. The addition, modification and deletion of management configuration baselines require strict control, such as configuration baselines related to security compliance and monitoring collection. The business configuration baseline is a non-tool, non-management standardized configuration baseline for equipment used in a specific type of business, or related to the role or region of the device. Compared with the management configuration baseline, the business configuration baseline is non-global and more flexible and diverse. It can meet the medium- and short-term configuration baseline requirements. Baselines can be added, modified and deleted as needed, such as configuration baselines related to QoS assurance and traffic scheduling for an important business.

[0149] Therefore, this embodiment supports customized flexible screening of inspection devices. The solution proposed in this embodiment takes into account that in addition to security compliance and monitoring collection related scenarios that require relevant global configuration baselines, there are also some situations where configuration baselines do not need to be applied globally. Therefore, it supports customized flexible screening of inspection devices for configuration baseline inspection based on device attributes and attribute values.

[0150] Furthermore, in the device configuration baseline rule data model and constraints, the device configuration baseline rule includes basic attributes such as the tenant to which the rule belongs, the rule type, the baseline change authorization level, the baseline rule name, the baseline rule detailed requirements, the specified tenant range, the device screening condition, the configuration baseline table to be included, the configuration baseline table to be excluded, and the rule administrator. When creating or changing, the tenant to which the rule belongs, the rule type, the baseline change authorization level, the baseline rule name, the baseline rule detailed requirements, and the rule administrator attributes are all required to be filled in, and one of the configuration baseline table to be included and the configuration baseline table to be excluded must be filled in. The tenant to which the rule belongs and the baseline rule name form a joint primary key, which is globally unique.

[0151] 1) The tenant to which the rule belongs can be the headquarters or a branch structure, indicating that the rule is created and managed by the employees of the department.

[0152] 2) When the tenant to which the rule belongs is the headquarters, the rule type value is "management configuration" or "business configuration". When the tenant to which the rule belongs is a branch, the rule type value can only be "business configuration". This achieves global unified management of the headquarters management configuration class baseline and avoids management conflicts between the headquarters and branches.

[0153] 3) When the rule type value is "Management Configuration", the rule is visible to all tenants; when the rule type value is "Business Configuration", the rule is visible only to the tenant to which the rule belongs.

[0154] 4) The baseline change authorization level specifies what kind of authorization is required when the baseline rules are adjusted and changed, such as deletion, modification, and addition.

[0155] 5) When the rule type is set to "management configuration", the baseline level is set to "unchangeable, and changes require review by the department's network expert group". The "unchangeable" baseline rules refer to baseline rules that cannot be changed in principle once created, meet regulatory policy requirements, and meet legal and regulatory requirements. When created, they require review by the department's network expert group;

[0156] When the rule type is set to "Business Configuration", the baseline level is set to one of the following: Changes require review by the department's network expert group, Changes require review by the department's network security management team, and Changes require approval by the department's network security management team leader. The authorization levels of Cannot be changed, Changes require review by the department's network expert group, Changes require review by the department's network security management team, and Changes require approval by the department's network security management team leader are lowered in order.

[0157] 6) The baseline rule name must be globally unique under the tenant to which the rule belongs and be a brief description of the current baseline requirement.

[0158] 7) Detailed requirements for baseline rules provide a detailed description of the background and requirements of the current baseline rules.

[0159] 8) The specified tenant scope should be a list type, indicating which tenants the rule applies to. When the rule type value is "Management Configuration", the specified tenant scope should select all tenants; when the rule type value is "Business Configuration" and the rule tenant value is headquarters, one or more tenants can be selected as needed; when the rule type value is "Business Configuration" and the rule tenant value is not headquarters, only the tenant to which the current rule belongs can be selected.

[0160] 9) Equipment screening conditions are used to select equipment that meets specific conditions to apply to the current baseline. The attribute should be a dictionary (key-value pair) type. The key is the equipment asset attribute existing in the equipment asset database, and the value is the regular matching condition of the equipment attribute. There is an "and" relationship between multiple key-value pairs, that is, they must be met at the same time to be considered as meeting the conditions. When the rule type value is "management configuration", the equipment screening condition should be empty, that is, the equipment with specific conditions will not be selected; when the rule type value is "business configuration", the key-value pair screening condition can be configured as needed.

[0161] 10) The configuration baseline table should be a three-layer nested dictionary, with the outermost layer of the dictionary using the manufacturer brand of the managed device as the key and the system version configuration baseline dictionary under the corresponding manufacturer brand as the value. The second layer of the system version configuration baseline dictionary uses the system version of the manufacturer brand device managed by the department as the key, and adds a "default" key as the default key, and uses the configuration baseline information dictionary corresponding to the system version as the value. The third layer of the configuration baseline information dictionary contains a baseline configuration regular item group of string list type (its key is "baseConfigItems"), a baseline configuration group clearing command of string list type (its key is "clearConfigCommand"), and a baseline configuration group generation command of string list type (its key is "createConfigCommand"). In the baseline configuration regular item, baseline configuration group clearing command, and baseline configuration group generation command, it is agreed that the parameter name of the baseline rule standard parameter is wrapped with placeholders "${" and "}". The referenced baseline rule standard parameter must have been created under the current tenant of the baseline rule standard parameter library, and the baseline rule standard parameter referenced by the management configuration must be created by the headquarters tenant.

[0162] Similarly, the configuration baseline table that should be excluded is also a three-layer nested dictionary, the first two layers of which are consistent with the configuration baseline table that should be included, but the configuration baseline information dictionary in the third layer only contains a baseline configuration regular item group of string list type (its key is "baseConfigItems") and a baseline configuration group clearing command of string list type (its key is "clearConfigCommand"). In baseline configuration regular items and baseline configuration group clearing commands, it is agreed that the parameter names of baseline rule standard parameters are wrapped with placeholders "${" and "}". The referenced baseline rule standard parameters must have been created under the current tenant of the baseline rule standard parameter library, and the baseline rule standard parameters referenced by the management configuration must be created by the headquarters tenant.

[0163] The rule administrator is the rule creator by default, and changes to this attribute value do not affect the understanding and implementation of the invention method.

[0164] Therefore, this implementation supports multi-tenancy and tenant isolation, and adapts to the headquarters-branch organizational structure. Considering that tenant isolation can be better adapted to the headquarters-branch organizational structure, the solution proposed in this embodiment supports multi-tenant management of configuration baselines and extracted baseline standard parameters, which can be well adapted to the headquarters-branch organizational structure.

[0165] It should be understood that, unlike the change process of the baseline rule standard parameters, this embodiment needs to add the baseline rule standard parameter information referenced by the baseline configuration regular item, baseline configuration group clearing command and baseline configuration group generating command in the change device configuration baseline rule to the work order when the preset rule conflict check is passed, and return it to the device change management service to complete the final work order creation. The device change management service then dispatches the rule change request to the corresponding processor according to the target rule change authorization level notification corresponding to the change device configuration baseline rule. Therefore, in this embodiment, the generation method of the change process approval result can be as follows:

[0166] 1) When the work order application is for adding a new rule and the corresponding baseline change authorization level is "unchangeable", or the target rule change authorization level is "change requires expert group review", the work order will be distributed to all members of the department's network expert group and the applicant will be notified to organize an expert group review. The experts in the review meeting must reach a consensus. If no consensus is reached, the applicant must withdraw the work order based on the review opinion, modify the content of the change review plan and resubmit it for review, or abandon the change. If the applicant abandons the change, there is no need to modify and submit the work order after the withdrawal. After all experts reach a consensus, they must all approve the work order application on the device change management service system. After that, the work order will continue to be forwarded by the device change management service to the device configuration baseline rule management service to realize the addition or change of the device configuration baseline rule in the device configuration baseline rule database.

[0167] 2) When the change authorization level is "Changes require review by the network security management team", the work order will be distributed to all members of the department's network security management team and the applicant will be notified to organize a review within the team. All members of the review meeting must reach a consensus. If no consensus is reached, the applicant must withdraw the work order based on the review opinion, modify the content of the change review plan and resubmit it for review, or abandon the change. If the applicant abandons the change, there is no need to modify and submit the work order after the withdrawal. After all members reach a consensus, they must all approve the work order application on the device change management service system. After that, the work order will continue to be forwarded by the device change management service to the device configuration baseline rule management service to realize the addition or change of the device configuration baseline rules in the device configuration baseline rule database.

[0168] 3) When the change authorization level is "Changes require approval by the leader of the network security management team", the work order will be sent to the leader of the network security management team for approval. If the leader of the network security management team disagrees after approval on the device change management service system, the work order will be returned to the applicant. The applicant can modify the content of the change review plan based on the approval opinion and resubmit the review, or abandon the change. If the applicant abandons the change, there is no need to modify and submit the work order. After the leader of the network security management team approves and agrees on the device change management service system, the work order will continue to be forwarded by the device change management service to the device configuration baseline rule management service to realize the addition or change of the device configuration baseline rules in the device configuration baseline rule database.

[0169] This implementation method can achieve hierarchical and classified management of configuration baselines. The solution proposed in this embodiment distinguishes between management-related configurations such as security compliance, monitoring and collection, and other business-related configurations of the configuration baseline, and implements different hierarchical authorization control for configurations of different categories and usage scenarios.

[0170] This embodiment discloses that the system also includes: an equipment asset information database, an equipment configuration baseline rule database and an equipment configuration database; an equipment asset management service, which is used to traverse all equipment objects in the equipment asset information database when an inspection trigger instruction is detected, and obtain target equipment information corresponding to the target network equipment; the equipment asset management service is also used to traverse and match all baseline rules in the equipment configuration baseline rule database according to the target equipment information, and obtain the target baseline rule corresponding to the target network equipment; the equipment asset management service is also used to traverse the target baseline rule to obtain the target baseline configuration group; the equipment asset management service is also used to obtain the latest configuration file corresponding to the target network equipment from the equipment configuration database, and perform regular matching on the baseline configuration regular item corresponding to the target baseline configuration group through the latest configuration file; the equipment asset management service is also used to determine the baseline configuration group to be corrected in the target baseline configuration group according to the regular matching result. The system also includes an automatic device configuration backup service; the automatic device configuration backup service is used to traverse all device objects in the device asset information database when a backup trigger instruction is detected to obtain preset device information corresponding to all device objects; the automatic device configuration backup service is also used to obtain preset drive parameters from the device connection database according to the preset device information; the automatic device configuration backup service is also used to establish connections with all device objects according to the preset drive parameters to obtain the full device configuration echo corresponding to all device objects; the automatic device configuration backup service is also used to generate a preset configuration file corresponding to all device objects according to the full device configuration echo, and store the preset configuration file in the device configuration database. Therefore, this embodiment supports the inspection and repair of multi-file configurations, as well as cross-line matching of configuration texts and baselines.

[0171] In addition, the system in this embodiment also includes a device configuration baseline rule management service; the device change management service is also used to generate a parameter change request based on the change rule parameters input by the user, and send the parameter change request to the device configuration baseline rule management service; the device configuration baseline rule management service is also used to perform preset parameter verification on the change rule parameters according to the baseline rule standard parameter data model and constraints when receiving the parameter change request; the device configuration baseline rule management service is also used to obtain the target parameter change authorization level corresponding to the change rule parameters from the device configuration baseline rule database when the preset parameter verification passes, and determine the change process approval result of the change rule parameters according to the target change authorization level. The device change management service is also used to generate a rule change request based on the change device configuration baseline rule input by the user, and send the rule change request to the device configuration baseline rule management service;

[0172] The device configuration baseline rule management service is also used to perform preset rule conflict check on the changed device configuration baseline rule according to the device configuration baseline rule data model and constraints when a rule change request is received; the device configuration baseline rule management service is also used to obtain the target rule change authorization level corresponding to the changed device configuration baseline rule from the device configuration baseline rule database when the preset rule conflict check passes, and determine the change process approval result of the changed rule parameter according to the target rule change authorization level. Therefore, this embodiment can realize the extraction, construction and unified management of the configuration baseline standard parameter library to ensure the global consistency of parameters; this embodiment supports multi-tenancy and tenant isolation, and adapts to the headquarters-branch organizational structure; this embodiment can realize the hierarchical and classified management of configuration baselines.

[0173] Reference Fig. 9 , Fig. 9 The first structural block diagram of the third embodiment of the network device configuration baseline management and control system of the present invention is based on the above Figure 1 The first embodiment shown or Figure 4 The second embodiment shown proposes a third embodiment of the network device configuration baseline management and control system of the present invention.

[0174] It should be understood that, from the above second embodiment, when the device configuration baseline rule needs to be changed, a preset rule conflict check, i.e., a device configuration baseline conflict check, needs to be performed. In this embodiment, the device configuration baseline conflict check may include a configuration baseline and version risk baseline conflict check and a configuration baseline entry and change conflict check method. Therefore, in this embodiment, the system also includes: a device version risk baseline management service and a device version risk baseline database;

[0175] The device version risk baseline management service is used to obtain an update baseline configuration group corresponding to the update baseline rule when a preset baseline rule update instruction is detected and the update baseline rule is a device configuration baseline rule;

[0176] The device version risk baseline management service is further used to obtain a defective device version risk baseline matching the update baseline configuration group from the device version risk baseline database;

[0177] The device version risk baseline management service is further used to perform a preset regular intersection judgment on the defective baseline configuration group corresponding to the defective device version risk baseline and all baseline configuration groups in the device configuration database;

[0178] The device version risk baseline management service is also used to generate baseline rule and risk baseline conflict verification results based on regular intersection judgment results.

[0179] As an implementable method, in this embodiment, the system further includes a device configuration baseline rule database;

[0180] The device version risk baseline management service is further used to determine whether the defect regular expression corresponding to the updated baseline rule meets the preset stability condition when a preset baseline rule update instruction is detected and the updated baseline rule is a device version risk baseline rule;

[0181] The device version risk baseline management service is further used to obtain an update device configuration baseline rule that matches the device information corresponding to the update baseline rule from the device configuration baseline rule database if the defect regular expression corresponding to the update baseline rule does not meet the preset stability condition, and obtain the corresponding update baseline configuration group according to the update device configuration baseline rule;

[0182] The device version risk baseline management service is further used to obtain a defective device configuration baseline rule matching the updated baseline configuration group from the device configuration baseline rule database;

[0183] The device version risk baseline management service is further used to perform a preset regular intersection judgment on the defective baseline configuration group corresponding to the defective device configuration baseline rule and all baseline configuration groups in the device configuration database;

[0184] The device version risk baseline management service is also used to generate baseline rule and risk baseline conflict verification results based on regular intersection judgment results.

[0185] It should be understood that the device version risk baseline management service and the device version risk baseline database in this embodiment are a management system and a database of device version risk baselines.

[0186] The device version risk baseline can be detailed information on each known defect of the device version, which is released and provided by the equipment manufacturers of each brand. The specific attributes should include: device brand, system version, defect number, defect level, risk level, risk and impact scope details, defect configuration regular matching item group, repair or avoidance measures, whether there is a fixed system version, and whether there is a risk in the equipment in production.

[0187] Among them, the defect number is the unique defect code provided by the equipment manufacturer when the defect is released; the defect level is the level of the event that will be triggered after the defect is triggered; the risk level is the high, medium and low possibility of the defect being triggered; the defect configuration regular matching expression refers to the complete regular matching expression of one or more configuration items that will definitely or have a high probability of triggering the defect under the current system version. Except for the defect configuration regular matching item expression, which is not required and can be completed according to the actual situation, the other attributes should be required attributes.

[0188] In this embodiment, when the device configuration baseline rule management service detects that the updated baseline rule is the device configuration baseline rule, that is, the device configuration baseline rule needs to be added and modified, it can send a preset baseline rule update instruction to the device version risk baseline management service, and the device version risk baseline management service verifies that the updated baseline rule should include conflicts between the configuration baseline and all device version risk baselines. The specific process can be as follows:

[0189] First, the update baseline rule should include various manufacturer brands and their system versions in the configuration baseline, and each set of baseline configuration groups is obtained, that is, the above-mentioned update baseline configuration group.

[0190] Then query the device version risk baseline database to obtain all device version risk baselines that are consistent with the manufacturer brand and system version of the current baseline configuration group, and obtain the device version risk baseline that contains the defective configuration regular matching expression attribute value, that is, the defective device version risk baseline that matches the updated baseline configuration group.

[0191] Then, the defective device version risk baselines are traversed one by one, and the preset regular intersection judgment between the defective baseline configuration group corresponding to the defective device version risk baseline and all baseline configuration groups in the device configuration database is performed one by one. The process of the preset regular intersection judgment can be as follows:

[0192] For each baseline configuration item in the traversed baseline configuration group, query the baseline rule standard parameter library to replace the placeholder standard parameters; then judge whether the regular matching range of the baseline configuration regular item and the matching range of the defect configuration regular matching expression have an intersection. If during the traversal process, the judgment result is that there is an intersection conflict, then record each group of conflict details, and determine that the baseline rule and risk baseline conflict verification result is a verification failure, and it is not allowed to create or modify the device configuration baseline rule, and return the verification failure and verification conflict details to the caller of the inspection process; if during the traversal process, all comparisons have no intersection conflicts, then the baseline rule and risk baseline conflict verification result is determined to be a verification success, and the device configuration baseline rule can continue to be created or modified, and the verification success is returned to the caller of the inspection process.

[0193] When the device configuration baseline rule management service detects that the updated baseline rule is the device version risk baseline rule, that is, the device version risk baseline rule needs to be added or modified, it can send a preset baseline rule update instruction to the device version risk baseline management service. The device version risk baseline management service verifies the target network device version risk baseline and all device configuration baseline rules should include the configuration baseline conflict. The specific process can be as follows:

[0194] First, it is necessary to determine whether the defect regular expression corresponding to the update baseline rule meets the preset stability condition. Specifically, it is necessary to determine whether the defect configuration regular matching expression attribute value is empty. If it is empty, there is no need to check and verify, the process ends, and the verification is returned successful.

[0195] If the defect configuration regular matching expression attribute value is not empty, it does not meet the preset stability condition. At this time, it is necessary to query all device configuration baseline rules in the device configuration baseline rule database, filter out the device configuration baseline rules that are consistent with the target network device version risk baseline manufacturer brand and system version, that is, the updated device configuration baseline rules that match the device information corresponding to the updated baseline rules, and then obtain the corresponding baseline configuration group in the configuration baseline, that is, the updated baseline configuration group. Then traverse the device configuration baseline rule database to obtain the defect device configuration baseline rules that match the updated baseline configuration group.

[0196] Then, this embodiment can traverse the baseline configuration groups in the configuration baseline that should be included in the updated baseline configuration group, query the baseline rule standard parameter library for each baseline configuration regular item in the traversed baseline configuration group to replace the placeholder standard parameters therein, and then judge whether the regular matching range of the baseline configuration regular item has an intersection with the defect configuration regular matching expression matching range of the defect baseline configuration group.

[0197] If, during the traversal process, the judgment result is that there is an intersection conflict, each group of conflict details will be recorded, and the baseline rule and risk baseline conflict verification result will be judged as verification failure, and then the equipment change management service interface will be called to automatically create a configuration baseline rule change work order request and assign it to the risk rule administrator. The rule administrator will choose to optimize the equipment configuration baseline rule or repair the risk and handle the work order accordingly based on a comprehensive assessment of whether there are risks in the current and future equipment in production, the feasibility of repairing the risks, and the feasibility of baseline changes. If all the comparisons show that there is no intersection conflict, the baseline rule and risk baseline conflict verification result is judged to be verification success, and verification success is returned.

[0198] In addition, the comparison and judgment of the regular expression matching range can be implemented through a third-party library (such as Python pyformlang library) based on regular expression equivalence analysis algorithms such as Kleene algorithm, Myhill-Nerode algorithm, Aho-Corasick algorithm, etc. The process of the above preset rule conflict check can be as follows: Fig.10 As shown, Fig.10 A first flow chart of the third embodiment of the network device configuration baseline management and control system of the present invention.

[0199] Therefore, this implementation supports conflict detection between configuration baseline and device version risk baseline. Considering that the device version risk baseline is the detailed information of each known defect of the device version, the configuration baseline should avoid logical conflicts with known device version defects when adding and modifying it. The solution proposed in this embodiment uses a third-party library based on regular expression equivalence analysis algorithms such as Kleene algorithm, Myhill-Nerode algorithm, Aho-Corasick algorithm, etc. to determine the intersection of the regular matching range of the configuration baseline and the risk baseline, thereby realizing conflict detection between the configuration baseline and the device version risk baseline.

[0200] As an implementable method, in this embodiment, the device configuration baseline rule management service is further used to obtain a first updated configuration baseline corresponding to the updated baseline rule when a preset baseline rule update instruction is detected and the updated baseline rule is a device configuration baseline rule;

[0201] The device configuration baseline rule management service is further used to obtain a first modified baseline configuration group from the device configuration database according to the device information of the first updated configuration baseline;

[0202] The device configuration baseline rule management service is further configured to traverse and match the first configuration baseline of the stock rules in the device configuration baseline rule database through the device information of the first updated configuration baseline to obtain a first stock baseline configuration group;

[0203] The device configuration baseline rule management service is further used to perform a preset regular intersection judgment on the first modified baseline configuration group and the first stock baseline configuration group, and generate a baseline rule entry or change conflict verification result according to the regular intersection judgment result.

[0204] As an implementable method, in this embodiment, the device configuration baseline rule management service is further used to obtain a second updated configuration baseline corresponding to the updated baseline rule when a preset baseline rule update instruction is detected and the updated baseline rule is a device configuration baseline rule;

[0205] The device configuration baseline rule management service is further used to obtain a second modified baseline configuration group from the device configuration database according to the device information of the second updated configuration baseline;

[0206] The device configuration baseline rule management service is further configured to traverse and match the second configuration baseline of the stock rule through the device information of the second updated configuration baseline to obtain a second stock baseline configuration group;

[0207] The device configuration baseline rule management service is further used to perform a preset regular intersection judgment on the second modified baseline configuration group and the second stock baseline configuration group, and generate the baseline rule entry or change conflict verification result according to the regular intersection judgment result.

[0208] It is easy to understand that in order to ensure the overall stability of the management and control system, the present embodiment can also perform configuration baseline entry and change conflict checks, that is, when the update baseline rule is to add or modify the device configuration baseline rule, the device configuration baseline rule management service can verify that the current update baseline rule should exclude the configuration baseline (that is, the above-mentioned first update configuration baseline) and other existing rules should include the configuration baseline (that is, the above-mentioned first configuration baseline) conflicts and verify that the current update baseline rule should include the configuration baseline (that is, the above-mentioned second update configuration baseline) and other existing rules should exclude the configuration baseline (that is, the above-mentioned second configuration baseline) conflicts.

[0209] First, when checking the conflict between the first updated configuration baseline and the first configuration baseline, the device configuration baseline rule management service must traverse and extract each baseline configuration group corresponding to each manufacturer brand and each system version in the first updated configuration baseline, obtain the first modified baseline configuration group, and record the traversed first modified baseline configuration group as Ga.

[0210] Then, the device configuration baseline rule management service queries all other existing device configuration baseline rules in the device configuration baseline rule database, that is, the above-mentioned existing rules, and filters out the device configuration baseline rules that should include the baseline configuration group with the same manufacturer brand and system version as the first modified baseline configuration group Ga in the configuration baseline, and obtains the first existing baseline configuration group, which is recorded as Gi.

[0211] Therefore, the device configuration baseline rule management service performs a preset regular intersection judgment on the first modified baseline configuration group and the first stock baseline configuration group, and generates a baseline rule entry or change conflict verification result according to the regular intersection judgment result, which may be:

[0212] Traverse each baseline configuration regular item in the baseline configuration groups Ga and Gi, query the baseline rule standard parameter library to replace the placeholder standard parameters, and judge whether the regular matching range of the baseline configuration regular item in Ga intersects with the regular matching range of the baseline configuration item in Gi.

[0213] If there is an intersection conflict during the traversal process, the detailed information of each group of conflicts is recorded, and it is determined that the baseline rule and the risk baseline conflict verification has failed. The creation or modification of the target network device configuration baseline rule is not allowed, and the verification failure and verification conflict details are returned to the caller.

[0214] If no intersection exists after the traversal is completed, the baseline rule entry or change conflict check is determined to be successful, and the device configuration baseline rule is allowed to continue to be created or modified, and the verification success is returned to the caller.

[0215] Similarly, when the device configuration baseline rule management service verifies the conflict between the second updated configuration baseline and the second configuration baseline, it must traverse and extract each baseline configuration group corresponding to each manufacturer brand and each system version in the second updated configuration baseline, obtain the second modified baseline configuration group, and record the traversed second modified baseline configuration group as Gb.

[0216] Then, the inventory is traversed and queried to filter out the device configuration baseline rules that should be excluded from the configuration baseline and have the same manufacturer brand and system version as the current baseline configuration group Gb, and the second inventory baseline configuration group is obtained and recorded as Gj.

[0217] Therefore, the device configuration baseline rule management service performs a preset regular intersection judgment on the second modified baseline configuration group and the second stock baseline configuration group, and generates a baseline rule entry or change conflict verification result according to the regular intersection judgment result, which may be:

[0218] Traverse each baseline configuration regular item in the baseline configuration groups Gb and Gj, query the baseline rule standard parameter library to replace the placeholder standard parameter, and determine whether the regular matching range of the baseline configuration regular item in Gb intersects with the regular matching range of the baseline configuration item in Gj.

[0219] If there is an intersection conflict during the traversal process, the detailed information of each group of conflicts is recorded, and it is determined that the baseline rule and the risk baseline conflict verification has failed. The creation or modification of the target network device configuration baseline rule is not allowed, and the verification failure and verification conflict details are returned to the caller.

[0220] If no intersection exists after the traversal is completed, the baseline rule entry or change conflict check is determined to be successful, and the device configuration baseline rule is allowed to continue to be created or modified, and the verification success is returned to the caller.

[0221] The comparison and judgment of the regular expression matching range can also be realized through a third-party library (such as Python pyformlang library) based on regular expression equivalence analysis algorithms such as Kleene algorithm, Myhill-Nerode algorithm, Aho-Corasick algorithm, etc. The process of pre-configured baseline entry and change conflict check can be as follows: Fig.11 As shown, Fig.11 A second flow chart of the third embodiment of the network device configuration baseline management and control system of the present invention.

[0222] This implementation supports conflict detection for baseline entry and changes. Considering that when multiple configuration baselines exist at the same time, there may be logical conflicts between the requirements of the baselines due to human entry errors or other factors. Therefore, the solution proposed in this embodiment, when adding and changing baselines, uses a third-party library based on regular expression equivalence analysis algorithms such as Kleene algorithm, Myhill-Nerode algorithm, Aho-Corasick algorithm, etc. to determine the intersection of regular matching ranges between configuration baselines, thereby realizing conflict detection for baseline entry and change.

[0223] As an implementable method, in this embodiment, the device change management service is further used to obtain the device configuration change text and the changed device information corresponding to the changed device when a configuration change instruction is detected;

[0224] The device change management service is further used to obtain preset device configuration baseline rules corresponding to all devices from the device configuration baseline rule database;

[0225] The device change management service is further used to traverse and match the preset device configuration baseline rule according to the changed device information to obtain the device configuration baseline rule to be verified;

[0226] The device change management service is further used to generate current configuration baseline information according to the configuration baseline rule of the device to be verified and the baseline rule standard parameter library;

[0227] The device change management service is further used to perform preset text matching on the current configuration baseline information and the device configuration change text to obtain a change baseline conflict verification result.

[0228] It is easy to understand that in order to ensure the external stability of the management and control system, this embodiment can also perform a device configuration change baseline conflict check, that is, when the configuration of any network device that the management and control system is responsible for monitoring changes, the device configuration baseline rule management service can verify the current configuration change and all device configuration baseline rules should include the conflict of the configuration baseline and verify the current configuration change and all device configuration baseline rules should exclude the conflict of the configuration baseline. This process is executed by the device change management service.

[0229] First, you need to obtain the changed device information and device configuration change execution script content corresponding to the target device, that is, the above-mentioned device configuration change text, and query all device configuration baseline rules from the device configuration baseline rule database, that is, the preset device configuration baseline rules corresponding to all devices.

[0230] When verifying the conflict between the current configuration change and the configuration baseline that should be included in all device configuration baseline rules, it is necessary to traverse and match the preset device configuration baseline rules to filter out the device configuration baseline rules that should include the baseline configuration group that has the same changed device information as the target device manufacturer brand, system version, etc., that is, the device configuration baseline rules to be verified.

[0231] At this time, the current configuration baseline information can be a configuration baseline group clearing command, so the device change management service can obtain the configuration baseline group clearing command corresponding to the device configuration baseline rule to be verified and query the baseline rule standard parameter library to replace the placeholder standard parameters in the configuration baseline group clearing command in the configuration baseline to generate the current configuration baseline group clearing command.

[0232] Afterwards, the device change management service can perform preset text matching on the current configuration baseline group clear command and the device configuration change text. For example, at this time, the duplicate rate of the current configuration baseline group clear command in the device configuration change text can be calculated through a text similarity algorithm. If the obtained duplicate rate is greater than the set threshold, it is considered that there is a conflict between the configuration baseline and the changed configuration. Each group of conflict details is recorded, and it is determined that the device configuration change baseline conflict check has failed, the change application is not allowed to be submitted, and the verification failure and verification conflict details are returned to the caller; if the obtained duplicate rate is less than the set threshold, there is no conflict between the configuration baseline and the changed configuration that can be detected by the current method, and it is determined that the device configuration change baseline conflict check is successful, the change application is allowed to be submitted, and the verification success is returned to the caller.

[0233] When the device change management service verifies the conflicts between the current configuration changes and all device configuration baseline rules that should exclude the configuration baseline, it can also filter out the device configuration baseline rules to be verified that should exclude the configuration baseline and have the baseline configuration group consistent with the changed device information.

[0234] At this time, the current configuration baseline information can be a configuration baseline regular item, so the device change management service can obtain the configuration baseline regular item corresponding to the device configuration baseline rule to be verified and query the baseline rule standard parameter library to replace the placeholder standard parameters in the configuration baseline regular item in the configuration baseline to generate the current configuration baseline regular item.

[0235] Afterwards, the device change management service can perform preset text matching on the current configuration baseline group clear command and the device configuration change text. For example, at this time, the configuration baseline regular item can be executed to match the device configuration change text. If the match is successful, it is considered that there is a conflict between the configuration baseline and the changed configuration. Each group of conflict details is recorded, and it is determined that the device configuration change baseline conflict check has failed, and the change application is not allowed to be submitted. The verification failure and verification conflict details are returned; if the match fails, it is considered that there is no conflict between the configuration baseline and the changed configuration that can be detected by the current method, and the device configuration change baseline conflict check is determined to be successful, and the change application is allowed to be submitted, and the verification success is returned.

[0236] The above-mentioned text similarity algorithm refers to a mature and publicly available text similarity algorithm based on cosine similarity, Jaccard similarity, Levenshtein distance, etc. The process of checking the baseline conflict of the above-mentioned device configuration change can be as follows: Fig.12 As shown, Fig.12 A third flow chart of the third embodiment of the network device configuration baseline management and control system of the present invention.

[0237] It should be noted that the above-mentioned device configuration change baseline conflict check method may not be able to adapt to all configuration change situations. For example, the configuration command of F5 is quite different from the generated configuration content. When the change requires adding some configurations that should be excluded in the baseline to a certain F5, the configuration baseline regular item cannot match the configuration change script of F5. Therefore, conflicts that are not detected by the current method need to be manually reviewed in the subsequent approval and change review stages.

[0238] This implementation supports baseline conflict detection for device configuration changes. Considering that changes in device configuration should avoid logical conflicts with existing configuration baselines. The solution proposed in this embodiment calculates the correlation between the current configuration baseline information and the device configuration change execution script based on mature and publicly available text similarity algorithms such as cosine similarity, Jaccard similarity, and Levenshtein distance, and combines the regular matching of the configuration baseline and the device configuration change execution script, thereby achieving conflict detection between the device configuration change and the configuration baseline to a certain extent.

[0239] This embodiment discloses that the system also includes: a device version risk baseline management service and a device version risk baseline database; the device version risk baseline management service is used to obtain an update baseline configuration group corresponding to the update baseline rule when a preset baseline rule update instruction is detected and the update baseline rule is a device configuration baseline rule; the device version risk baseline management service is also used to obtain a defective device version risk baseline that matches the update baseline configuration group from the device version risk baseline database; the device version risk baseline management service is also used to perform a preset regular intersection judgment on the defective baseline configuration group corresponding to the defective device version risk baseline and all baseline configuration groups in the device configuration database; the device version risk baseline management service is also used to generate a baseline rule and risk baseline conflict verification result based on the regular intersection judgment result. The system also includes a device configuration baseline rule database; a device version risk baseline management service, which is also used to determine whether the defect regular expression corresponding to the update baseline rule meets the preset stability condition when a preset baseline rule update instruction is detected and the update baseline rule is a device version risk baseline rule; the device version risk baseline management service is also used to obtain the updated device configuration baseline rule that matches the device information corresponding to the update baseline rule from the device configuration baseline rule database if the defect regular expression corresponding to the update baseline rule does not meet the preset stability condition, and obtain the corresponding update baseline configuration group according to the updated device configuration baseline rule; the device version risk baseline management service is also used to obtain the defective device configuration baseline rule that matches the update baseline configuration group from the device configuration baseline rule database; the device version risk baseline management service is also used to perform a preset regular intersection judgment on the defective baseline configuration group corresponding to the defective device configuration baseline rule and all baseline configuration groups in the device configuration database; the device version risk baseline management service is also used to generate a baseline rule and risk baseline conflict verification result based on the regular intersection judgment result. This implementation method supports configuration baseline and device version risk baseline conflict detection.

[0240] In addition, in this embodiment, the device configuration baseline rule management service is also used to obtain a first updated configuration baseline corresponding to the updated baseline rule when a preset baseline rule update instruction is detected and the updated baseline rule is a device configuration baseline rule; the device configuration baseline rule management service is also used to obtain a first modified baseline configuration group from a device configuration database based on device information of the first updated configuration baseline; the device configuration baseline rule management service is also used to traverse and match the first configuration baseline of the existing rules in the device configuration baseline rule database through the device information of the first updated configuration baseline to obtain a first existing baseline configuration group; the device configuration baseline rule management service is also used to perform a preset regular intersection judgment on the first modified baseline configuration group and the first existing baseline configuration group, and generate a baseline rule entry or change conflict verification result based on the regular intersection judgment result. The device configuration baseline rule management service is also used to obtain a second updated configuration baseline corresponding to the updated baseline rule when a preset baseline rule update instruction is detected and the updated baseline rule is a device configuration baseline rule; the device configuration baseline rule management service is also used to obtain a second modified baseline configuration group from a device configuration database according to the device information of the second updated configuration baseline; the device configuration baseline rule management service is also used to traverse and match the second configuration baseline of the stock rule through the device information of the second updated configuration baseline to obtain a second stock baseline configuration group; the device configuration baseline rule management service is also used to perform a preset regular intersection judgment on the second modified baseline configuration group and the second stock baseline configuration group, and generate a baseline rule entry or change conflict verification result according to the regular intersection judgment result. The device change management service is also used to obtain the device configuration change text and the changed device information corresponding to the changed device when a configuration change instruction is detected; the device change management service is also used to obtain the preset device configuration baseline rules corresponding to all devices from the device configuration baseline rule database; the device change management service is also used to traverse and match the preset device configuration baseline rules according to the changed device information to obtain the device configuration baseline rules to be verified; the device change management service is also used to generate the current configuration baseline information according to the device configuration baseline rules to be verified and the baseline rule standard parameter library; the device change management service is also used to perform preset text matching on the current configuration baseline information and the device configuration change text to obtain the change baseline conflict verification result. Therefore, this embodiment supports device configuration change baseline conflict detection.

[0241] For example, to help understand the technical concept or technical principle of the baseline control system after combining this embodiment with the above-mentioned embodiments 1 to 3, please refer to Fig.13 , Fig.13 A schematic diagram of the operation architecture of the network device configuration baseline management and control system of the present invention is provided, which is as follows:

[0242] like Fig.13As shown, the overall architecture of the scheme or system according to the present invention can include: equipment change management service and its equipment configuration remote delivery function module, equipment configuration automatic backup service, equipment asset management service, equipment version and risk baseline management service, equipment configuration baseline rule management service, equipment configuration baseline inspection and correction service, and related front-end systems of various services, as well as equipment asset information database, equipment connection database (i.e. Fig.13 The database includes multiple data sources such as the device account password and remote connection driver database, device configuration database, device change information database, device configuration baseline rule database, and baseline rule standard parameter database.

[0243] Among them, the related services and data relationships are as follows Fig.13 As shown. Specifically, the equipment change management service and the supporting equipment change information database provide process management for equipment change work order application and work order approval, change plan records, call external system interfaces for data interaction, call its equipment configuration remote delivery function module to deliver configuration to the equipment, etc. In the overall architecture, it is responsible for: providing an interface to realize the automatic creation of work order requests for equipment configuration baseline modification configurations and the subsequent approval process and automatic configuration delivery; responsible for providing equipment configuration baseline rules and baseline rule standard parameters for the addition and change of work order application and approval process and the subsequent automatic call of the equipment configuration baseline rule management service interface to synchronize work order data; responsible for automatically calling the equipment configuration baseline rule management service interface to perform equipment configuration change baseline conflict check before submitting the equipment configuration change work order application.

[0244] The device configuration automatic backup service and the supporting device configuration database obtain device information from the device asset management service, obtain device account password and remote connection driver information from the device connection database, collect network device configurations regularly through SSH or HTTPS, realize daily automatic device configuration backup, and provide backup device configuration for device configuration baseline inspection and correction services.

[0245] The equipment configuration baseline rule management service and the supporting equipment configuration baseline rule database and baseline rule standard parameter library provide management interfaces such as addition, deletion, modification and query of equipment configuration baseline rules and baseline rule standard parameters, as well as the implementation of related constraint verification, and provide equipment configuration change baseline conflict check, configuration baseline and version risk baseline conflict check, configuration baseline entry and change conflict check, and prepare equipment configuration baseline rules and baseline rule standard parameter data for equipment configuration baseline check and correction services.

[0246] The device configuration baseline check and correction service is a full-volume match check of the device configuration baseline rules and the device backup configuration that is performed on a daily basis. It is responsible for outputting the device configuration baseline check result report and outputting the device configuration baseline correction configuration, and calling the device change management service interface to trigger the automatic creation of a work order request for the device configuration baseline correction configuration. After the rule administrator confirms and completes the change information, the change application is submitted. After the work order has been reviewed for change and authorized by the system, it will be sent to the network device by the device configuration remote delivery function module of the device change management service to achieve the final configuration correction.

[0247] The equipment asset management service and the supporting equipment asset information database manage all the equipment that each tenant needs to perform configuration baseline checks on, and are responsible for providing equipment information query services to multiple services such as equipment change management services, equipment configuration automatic backup services, equipment version and risk baseline management services, and equipment configuration baseline checks and correction services.

[0248] The device version and risk baseline management service and the supporting device version risk baseline database provide detailed information on known defects in each version of each manufacturer's brand device, and are responsible for providing data for configuration baseline and version risk baseline conflict checks.

[0249] Through the above services and the mutual calls between services, the overall closed-loop control of device configuration baseline checking and correction is achieved.

[0250] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0251] The above are only specific implementations 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.

[0252] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0253] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0254] The above are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A network equipment configuration baseline management and control system, characterized in that: The system includes: equipment change management services, equipment asset management services, equipment configuration baseline inspection and correction services, baseline rule standard parameter library and equipment connection database; The device change management service is used to obtain the baseline configuration group to be modified and the target device information from the device asset management service when the inspection trigger instruction is detected; The device change management service is further used to generate a target baseline configuration command through the baseline rule standard parameter library, the target device information and the correction type corresponding to the baseline configuration group to be corrected, and send the target baseline configuration command to the device configuration baseline checking and correction service; The device configuration baseline checking and correction service is used to obtain target drive parameters from the device connection database according to the target device information when the target baseline configuration command is detected; The device configuration baseline checking and correction service is further used to send the target baseline configuration command to the target network device corresponding to the baseline configuration group to be corrected through the target drive parameter.

2. The network device configuration baseline management and control system according to claim 1, characterized in that: The system also includes: a device asset information database, a device configuration baseline rule database, and a device configuration database; The device asset management service is used to traverse all device objects in the device asset information database to obtain the target device information corresponding to the target network device when the inspection trigger instruction is detected; The device asset management service is further used to traverse and match all baseline rules in the device configuration baseline rule database according to the target device information to obtain the target baseline rule corresponding to the target network device; The device asset management service is further used to traverse the target baseline rule to obtain a target baseline configuration group; The device asset management service is further used to obtain the latest configuration file corresponding to the target network device from the device configuration database, and perform regular matching on the baseline configuration regular item corresponding to the target baseline configuration group through the latest configuration file; The device asset management service is further used to determine the baseline configuration group to be revised in the target baseline configuration group according to the regular matching result.

3. The network device configuration baseline management and control system according to claim 2, characterized in that: The system also includes an automatic device configuration backup service; The device configuration automatic backup service is used to traverse all device objects in the device asset information database to obtain the preset device information corresponding to all device objects when a backup trigger instruction is detected; The device configuration automatic backup service is further used to obtain preset drive parameters from the device connection database according to the preset device information; The device configuration automatic backup service is further used to establish a connection with all the device objects according to the preset drive parameters, and obtain the device full configuration echo corresponding to all the device objects; The device configuration automatic backup service is further used to generate a preset configuration file corresponding to all the device objects according to the device full configuration echo, and store the preset configuration file in the device configuration database.

4. The network device configuration baseline management and control system according to claim 3, characterized in that: The system also includes a device configuration baseline rule management service; The device change management service is further used to generate a parameter change request according to the change rule parameters input by the user, and send the parameter change request to the device configuration baseline rule management service; The device configuration baseline rule management service is further used to perform preset parameter verification on the change rule parameters according to the baseline rule standard parameter data model and constraints when receiving the parameter change request; The device configuration baseline rule management service is also used to obtain the target parameter change authorization level corresponding to the change rule parameter from the device configuration baseline rule database when the preset parameter verification passes, and determine the change process approval result of the change rule parameter according to the target change authorization level.

5. The network device configuration baseline management and control system according to claim 4, characterized in that: The device change management service is further used to generate a rule change request according to the device configuration baseline rule change input by the user, and send the rule change request to the device configuration baseline rule management service; The device configuration baseline rule management service is further used to perform preset rule conflict check on the changed device configuration baseline rule according to the device configuration baseline rule data model and constraints when receiving the rule change request; The device configuration baseline rule management service is also used to obtain the target rule change authorization level corresponding to the device configuration baseline rule change from the device configuration baseline rule database when the preset rule conflict check passes, and determine the change process approval result of the change rule parameter according to the target rule change authorization level.

6. The network device configuration baseline management and control system according to claim 5, characterized in that: The system also includes: a device version risk baseline management service and a device version risk baseline database; The device version risk baseline management service is used to obtain an update baseline configuration group corresponding to the update baseline rule when a preset baseline rule update instruction is detected and the update baseline rule is a device configuration baseline rule; The device version risk baseline management service is further used to obtain a defective device version risk baseline matching the update baseline configuration group from the device version risk baseline database; The device version risk baseline management service is further used to perform a preset regular intersection judgment on the defective baseline configuration group corresponding to the defective device version risk baseline and all baseline configuration groups in the device configuration database; The device version risk baseline management service is also used to generate baseline rule and risk baseline conflict verification results based on regular intersection judgment results.

7. The network device configuration baseline management and control system according to claim 6, characterized in that: The system also includes a device configuration baseline rules database; The device version risk baseline management service is further used to determine whether the defect regular expression corresponding to the updated baseline rule meets the preset stability condition when a preset baseline rule update instruction is detected and the updated baseline rule is a device version risk baseline rule; The device version risk baseline management service is further used to obtain an update device configuration baseline rule that matches the device information corresponding to the update baseline rule from the device configuration baseline rule database if the defect regular expression corresponding to the update baseline rule does not meet the preset stability condition, and obtain the corresponding update baseline configuration group according to the update device configuration baseline rule; The device version risk baseline management service is further used to obtain a defective device configuration baseline rule matching the updated baseline configuration group from the device configuration baseline rule database; The device version risk baseline management service is further used to perform a preset regular intersection judgment on the defective baseline configuration group corresponding to the defective device configuration baseline rule and all baseline configuration groups in the device configuration database; The device version risk baseline management service is also used to generate baseline rule and risk baseline conflict verification results based on regular intersection judgment results.

8. The network device configuration baseline management and control system according to claim 7, characterized in that: The device configuration baseline rule management service is further configured to, when a preset baseline rule update instruction is detected and the updated baseline rule is a device configuration baseline rule, obtain a first updated configuration baseline corresponding to the updated baseline rule; The device configuration baseline rule management service is further used to obtain a first modified baseline configuration group from the device configuration database according to the device information of the first updated configuration baseline; The device configuration baseline rule management service is further configured to traverse and match the first configuration baseline of the stock rules in the device configuration baseline rule database through the device information of the first updated configuration baseline to obtain a first stock baseline configuration group; The device configuration baseline rule management service is further used to perform a preset regular intersection judgment on the first modified baseline configuration group and the first stock baseline configuration group, and generate a baseline rule entry or change conflict verification result according to the regular intersection judgment result.

9. The network device configuration baseline management and control system according to claim 8, characterized in that: The device configuration baseline rule management service is further configured to, when a preset baseline rule update instruction is detected and the updated baseline rule is a device configuration baseline rule, obtain a second updated configuration baseline corresponding to the updated baseline rule; The device configuration baseline rule management service is further used to obtain a second modified baseline configuration group from the device configuration database according to the device information of the second updated configuration baseline; The device configuration baseline rule management service is further configured to traverse and match the second configuration baseline of the stock rule through the device information of the second updated configuration baseline to obtain a second stock baseline configuration group; The device configuration baseline rule management service is further used to perform a preset regular intersection judgment on the second modified baseline configuration group and the second stock baseline configuration group, and generate the baseline rule entry or change conflict verification result according to the regular intersection judgment result.

10. The network device configuration baseline management and control system according to claim 9, characterized in that: The device change management service is further used to obtain the device configuration change text and the changed device information corresponding to the changed device when a configuration change instruction is detected; The device change management service is further used to obtain preset device configuration baseline rules corresponding to all devices from the device configuration baseline rule database; The device change management service is further used to traverse and match the preset device configuration baseline rule according to the changed device information to obtain the device configuration baseline rule to be verified; The device change management service is further used to generate current configuration baseline information according to the configuration baseline rule of the device to be verified and the baseline rule standard parameter library; The device change management service is further used to perform preset text matching on the current configuration baseline information and the device configuration change text to obtain a change baseline conflict verification result.