+

CN116708178A - Method, device, equipment, medium and product for backtracking change history of network equipment - Google Patents

Method, device, equipment, medium and product for backtracking change history of network equipment Download PDF

Info

Publication number
CN116708178A
CN116708178A CN202310826297.6A CN202310826297A CN116708178A CN 116708178 A CN116708178 A CN 116708178A CN 202310826297 A CN202310826297 A CN 202310826297A CN 116708178 A CN116708178 A CN 116708178A
Authority
CN
China
Prior art keywords
configuration
information
change
network device
configuration information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310826297.6A
Other languages
Chinese (zh)
Inventor
杨靖
张泽唯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202310826297.6A priority Critical patent/CN116708178A/en
Publication of CN116708178A publication Critical patent/CN116708178A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0859Retrieval of network configuration; Tracking network configuration history by keeping history of different configuration generations or by rolling back to previous configuration versions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure provides a backtracking method, device, equipment, medium and product of network equipment change history, which relate to the technical field of science and technology operation and maintenance and can be applied to the technical field of finance and science, wherein the method comprises the following steps: and acquiring first configuration information and second configuration information of the network equipment, wherein the first configuration information represents the current configuration of the network equipment, and the second configuration information represents the historical configuration of the network equipment. And comparing the first configuration information with the second configuration information to obtain configuration difference information. And acquiring a plurality of pieces of change information from the historical configuration to the time period corresponding to the current configuration in the change management system. The configuration difference information is matched with a plurality of pieces of change information, and change information related to the configuration difference information is determined.

Description

网络设备变更历史的回溯方法、装置、设备、介质及产品Method, device, equipment, medium and product for tracing back the change history of network equipment

技术领域Technical Field

本公开涉及科技运维技术领域,可以应用于金融科技技术领域,特别涉及一种网络设备变更历史的回溯方法、装置、设备、介质及产品。The present disclosure relates to the field of science and technology operation and maintenance technology, can be applied to the field of financial technology technology, and particularly to a method, device, equipment, medium and product for tracing back the change history of network equipment.

背景技术Background Art

在金融企业,尤其是银行,网络系统需要时刻保持高稳定性运行,网络设备的配置更改往往需要经过严格审批流程,变更事由、操作步骤、配置命令需要上传到变更管理系统审批并记录。随着业务系统的不断更新迭代,业务访问需求不断变化,网络变更(尤其是防火墙策略变更)往往十分频繁,长此以往,变更系统累积了海量历史变更,使得从其中检索某条变更信息十分困难。而在内外部审计时,往往需要针对某条配置回溯历史变更,现有的回溯方法一般是到历年的海量变更中搜寻相关变更,对比变更实施方案逐一排查,网络变更溯源十分困难。In financial enterprises, especially banks, network systems need to maintain high stability at all times. Configuration changes of network equipment often need to go through a strict approval process. The reasons for the changes, operating steps, and configuration commands need to be uploaded to the change management system for approval and record. With the continuous update and iteration of business systems, business access requirements are constantly changing, and network changes (especially firewall policy changes) are often very frequent. Over time, the change system has accumulated a large amount of historical changes, making it very difficult to retrieve a certain change information from it. During internal and external audits, it is often necessary to trace back historical changes for a certain configuration. The existing backtracking method generally searches for related changes in the massive changes over the years, and checks them one by one by comparing the change implementation plans. It is very difficult to trace the source of network changes.

发明内容Summary of the invention

有鉴于此,本公开的主要目的是提供一种网络设备变更历史的回溯方法、装置、设备、介质及产品,旨在至少部分解决现有回溯方方法溯源困难技术问题。In view of this, the main purpose of the present disclosure is to provide a method, device, equipment, medium and product for tracing back the change history of network equipment, aiming to at least partially solve the technical problem of the difficulty of tracing the source of existing tracing methods.

为实现上述目的,本公开实施例的第一方面提供一种网络设备变更历史的回溯方法,包括:获取网络设备的第一配置信息和第二配置信息,其中,所述第一配置信息表征所述网络设备的当前配置,所述第二配置信息表征所述网络设备的历史配置;将所述第一配置信息和所述第二配置信息进行对比,得到配置差异信息;获取变更管理系统中历史配置到当前配置对应的时间段内的多个变更信息;将所述配置差异信息与所述多个变更信息进行匹配,确定与所述配置差异信息关联的变更信息。To achieve the above-mentioned purpose, the first aspect of an embodiment of the present disclosure provides a method for tracing the change history of a network device, comprising: obtaining first configuration information and second configuration information of a network device, wherein the first configuration information represents the current configuration of the network device, and the second configuration information represents the historical configuration of the network device; comparing the first configuration information with the second configuration information to obtain configuration difference information; obtaining multiple change information within a time period corresponding to the historical configuration to the current configuration in a change management system; matching the configuration difference information with the multiple change information to determine the change information associated with the configuration difference information.

根据本公开的实施例,所述获取网络设备的第一配置信息和第二配置信息包括:获取需要监控配置的网络设备的设备信息,其中,所述设备信息包括IP地址、设备名和配置抓取方式;采用所述配置抓取方式抓取需要监控配置的网络设备的第一配置信息和第二配置信息;按照抓取的时间对所述第一配置信息和所述第二配置信息进行存储。According to an embodiment of the present disclosure, the method of obtaining the first configuration information and the second configuration information of a network device includes: obtaining device information of a network device that needs to be monitored and configured, wherein the device information includes an IP address, a device name, and a configuration capture method; using the configuration capture method to capture the first configuration information and the second configuration information of the network device that needs to be monitored and configured; and storing the first configuration information and the second configuration information according to the capture time.

根据本公开的实施例,所述配置抓取方式包括:登录网管系统下载所述网络设备的所述第一配置信息和所述第二配置信息;或者登录所述网络设备,通过文件传输协议或简单文件传输协议传输所述第一配置信息和所述第二配置信息;或者;登录所述网络设备输入命令进行抓取。According to an embodiment of the present disclosure, the configuration capture method includes: logging into the network management system to download the first configuration information and the second configuration information of the network device; or logging into the network device and transmitting the first configuration information and the second configuration information through a file transfer protocol or a simple file transfer protocol; or; logging into the network device and entering a command to capture.

根据本公开的实施例,所述将所述第一配置信息和所述第二配置信息进行对比,得到配置差异信息包括:获取需要监控配置的网络设备的设备信息,其中,所述设备信息包括IP地址、设备名和配置编码格式;根据所述配置编码格式对所述第一配置信息和所述第二配置信息进行逐行解析;将解析后的所述第一配置信息和解析后的所述第二配置信息进行逐行对比,提取所述第一配置信息和所述第二配置信息中的差异部分,得到所述配置差异信息;以所述IP地址、所述设备名以及检查时间为索引,对所述配置差异信息进行存储。According to an embodiment of the present disclosure, the comparing the first configuration information and the second configuration information to obtain configuration difference information includes: obtaining device information of a network device that needs to be monitored and configured, wherein the device information includes an IP address, a device name, and a configuration coding format; parsing the first configuration information and the second configuration information line by line according to the configuration coding format; comparing the parsed first configuration information and the parsed second configuration information line by line, extracting the difference between the first configuration information and the second configuration information, and obtaining the configuration difference information; and storing the configuration difference information with the IP address, the device name, and the inspection time as indexes.

根据本公开的实施例,所述方法还包括:将所述配置差异信息输入网页渲染引擎,生成超文本标记语言文件;在所述超文本标记语言文件中添加第一标签、第二标签和第三标签,其中,所述第一标签用于标记当前新增的配置,所述第二标签用于标记当前删除的配置,所述第三标签用于标记当前更改的配置。According to an embodiment of the present disclosure, the method also includes: inputting the configuration difference information into a web page rendering engine to generate a hypertext markup language file; adding a first tag, a second tag and a third tag in the hypertext markup language file, wherein the first tag is used to mark the currently newly added configuration, the second tag is used to mark the currently deleted configuration, and the third tag is used to mark the currently changed configuration.

根据本公开的实施例,所述方法还包括:为所述第一标签添加第一超链接,为所述第二标签添加第二超链接,为所述第三标签添加第三超链接,其中,所述第一超链接、所述第二超链接和所述第三超链接分别用于定位对应标签标记的配置信息。According to an embodiment of the present disclosure, the method also includes: adding a first hyperlink to the first tag, adding a second hyperlink to the second tag, and adding a third hyperlink to the third tag, wherein the first hyperlink, the second hyperlink and the third hyperlink are respectively used to locate configuration information marked by corresponding tags.

根据本公开的实施例,所述将所述配置差异信息与所述多个变更信息进行匹配包括:分别提取每个变更信息中的变更单号、变更申请用户、变更事由和实施方案;逐一解析每个实施方案,确定每个实施方案是否与所述配置差异信息关联;响应于所述实施方案与所述配置差异信息关联,将与所述实施方案对应的变更单号、变更申请用户和变更事由添加至所述配置差异信息。According to an embodiment of the present disclosure, matching the configuration difference information with the multiple change information includes: extracting the change order number, change application user, change reason and implementation plan in each change information respectively; parsing each implementation plan one by one to determine whether each implementation plan is associated with the configuration difference information; in response to the implementation plan being associated with the configuration difference information, adding the change order number, change application user and change reason corresponding to the implementation plan to the configuration difference information.

根据本公开的实施例,所述逐一解析每个实施方案,确定每个实施方案是否与所述配置差异信息关联包括:分别采用自然语言处理模型对每个所述实施方案中的文本内容进行处理,以提取每个所述实施方案中对对应网络设备的操作命令;将所述配置差异信息与每一个所述操作命令进行矢量匹配,来计算所述配置差异信息与每一个所述操作命令之间的相似度;确定与大于预设阈值的相似度对应的实施方案与所述配置差异信息关联。According to an embodiment of the present disclosure, parsing each implementation scheme one by one to determine whether each implementation scheme is associated with the configuration difference information includes: using a natural language processing model to process the text content in each implementation scheme to extract the operation commands for the corresponding network device in each implementation scheme; performing vector matching on the configuration difference information and each operation command to calculate the similarity between the configuration difference information and each operation command; and determining that the implementation scheme corresponding to the similarity greater than a preset threshold is associated with the configuration difference information.

根据本公开的实施例,所述分别采用自然语言处理模型对每个所述实施方案中的文本内容进行处理包括:根据每个实施方案的文件后缀选择相应的解析引擎对所述实施方案进行解析。According to an embodiment of the present disclosure, the adopting of a natural language processing model to process the text content in each of the implementation schemes includes: selecting a corresponding parsing engine according to the file suffix of each implementation scheme to parse the implementation scheme.

根据本公开的实施例,所述方法包括:在确定没有与所述配置差异信息匹配的变更信息的情况下,向终端发送提醒信息,其中,所述提醒信息用于提醒用户手动填写变更信息。According to an embodiment of the present disclosure, the method includes: in the case of determining that there is no change information matching the configuration difference information, sending reminder information to the terminal, wherein the reminder information is used to remind the user to manually fill in the change information.

本公开实施例第二方面提供一种网络设备变更历史的回溯装置,包括:第一获取模块,用于获取网络设备的第一配置信息和第二配置信息,其中,所述第一配置信息表征所述网络设备的当前配置,所述第二配置信息表征所述网络设备的历史配置;对比模块,用于将所述第一配置信息和所述第二配置信息进行对比,得到配置差异信息;第二获取模块,用于获取变更管理系统中历史配置到当前配置对应的时间段内的多个变更信息;匹配模块,用于将所述配置差异信息与所述多个变更信息进行匹配,确定与所述配置差异信息关联的变更信息。A second aspect of an embodiment of the present disclosure provides a device for tracing the change history of a network device, comprising: a first acquisition module, used to acquire first configuration information and second configuration information of a network device, wherein the first configuration information represents a current configuration of the network device, and the second configuration information represents a historical configuration of the network device; a comparison module, used to compare the first configuration information and the second configuration information to obtain configuration difference information; a second acquisition module, used to acquire multiple change information within a time period corresponding to a historical configuration to a current configuration in a change management system; and a matching module, used to match the configuration difference information with the multiple change information to determine the change information associated with the configuration difference information.

本公开实施例第三方面提供一种电子设备,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,其中,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器执行根据上述网络设备变更历史的回溯方法。A third aspect of an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute a backtracking method based on the above-mentioned network device change history.

本公开实施例第四方面提供一种计算机可读存储介质,所述计算机可读存储介质上存储有可执行指令,该指令被处理器执行时使处理器执行根据上述网络设备变更历史的回溯方法。A fourth aspect of an embodiment of the present disclosure provides a computer-readable storage medium, on which executable instructions are stored. When the instructions are executed by a processor, the processor executes a backtracking method based on the above-mentioned network device change history.

本公开实施例第五方面提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现根据上述网络设备变更历史的回溯方法。A fifth aspect of an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements a backtracking method based on the above-mentioned network device change history.

根据本公开实施例提供的网络设备变更历史的回溯方法、装置、设备、介质及产品,至少具备以下有益效果:The network device change history backtracking method, apparatus, device, medium and product provided by the embodiments of the present disclosure have at least the following beneficial effects:

由于通过将网络设备的当前配置与历史配置进行对比,获得配置差异信息,再将配置差异信息仅与对应时间段内的多个变更信息直接关联,因此,能够快速地获取当前配置的变更信息,从而提高网络设备变更检索效率,方便管理人员进行网络变更历史回溯,持续提高网络变更管理水平,提升金融企业网络稳定性。By comparing the current configuration of the network device with the historical configuration to obtain configuration difference information, and then directly associating the configuration difference information with multiple change information within the corresponding time period, it is possible to quickly obtain change information of the current configuration, thereby improving the efficiency of network device change retrieval, facilitating management personnel to trace back the history of network changes, continuously improving the level of network change management, and enhancing the network stability of financial enterprises.

基于设备信息,能够快速获取配置信息的抓取方式,从而实现了配置信息的高效抓取。通过设置多种配置信息的抓取方式,能够满足不同场景下的抓取需求,从而提高了回溯方法的灵活性。Based on the device information, the configuration information can be quickly obtained, thereby realizing efficient capture of the configuration information. By setting a variety of configuration information capture methods, the capture requirements in different scenarios can be met, thereby improving the flexibility of the backtracking method.

基于设备信息,能够快速获取配置信息的配置编码格式,从而实现了配置信息的高效解析。进一步地,对获取的配置差异信息转化为超文本标记语言文件的形式并且以不同的标签标记不同的配置差异信息,能够方便直观地对差异配置进行对比。通过为每一标签设置对应的超链接,能够通过点击超链接快递跳转至对应的配置差异信息,从而实现配置差异信息的高效查询。Based on the device information, the configuration encoding format of the configuration information can be quickly obtained, thereby realizing efficient parsing of the configuration information. Furthermore, the obtained configuration difference information is converted into a hypertext markup language file and different configuration difference information is marked with different tags, which can conveniently and intuitively compare the difference configurations. By setting a corresponding hyperlink for each tag, it is possible to jump to the corresponding configuration difference information by clicking the hyperlink, thereby realizing efficient query of the configuration difference information.

由于仅仅通过解析变更信息中的实施方案将变更信息与配置差异信息关联,关联涉及的数据量小,从而提高了变更历史回溯的效率。Since the change information is associated with the configuration difference information only by parsing the implementation plan in the change information, the amount of data involved in the association is small, thereby improving the efficiency of change history backtracking.

通过计算变更信息与配置差异信息之间的相似度来确定变更信息与配置异常信息是否关联,能够准确地确定与配置差异信息关联的配置信息,从而提高了变更历史回溯的准确性。By calculating the similarity between the change information and the configuration difference information to determine whether the change information is associated with the configuration exception information, the configuration information associated with the configuration difference information can be accurately determined, thereby improving the accuracy of change history backtracking.

采用自然语言处理模型对每个所述实施方案中的文本内容进行处理,能够适用于不同格式的实施方案,避免对于不同的模块设置不同的解析模板,提高了历史变更回溯的效率。The text content in each of the implementation schemes is processed using a natural language processing model, which can be applied to implementation schemes in different formats, avoids setting different parsing templates for different modules, and improves the efficiency of historical change backtracking.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图示出的结构获得其他的附图。In order to more clearly illustrate the embodiments of the present disclosure 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, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.

图1示意性示出了根据本公开实施例的网络设备变更历史的回溯方法及装置的系统架构100;FIG1 schematically shows a system architecture 100 of a method and apparatus for tracing back a network device change history according to an embodiment of the present disclosure;

图2示意性示出了根据本公开一实施例的网络设备变更历史的回溯方法的流程图;FIG2 schematically shows a flow chart of a method for tracing back a network device change history according to an embodiment of the present disclosure;

图3示意性示出了根据本公开实施例的操作S201中获取网络设备的第一配置信息和第二配置信息的流程图;FIG3 schematically shows a flow chart of obtaining first configuration information and second configuration information of a network device in operation S201 according to an embodiment of the present disclosure;

图4示意性示出了根据本公开实施例的具体配置信息抓取的三种方式的流程;FIG4 schematically shows the process of three methods of capturing specific configuration information according to an embodiment of the present disclosure;

图5示意性示出了根据本公开实施例的操作S202中的将第一配置信息和第二配置信息进行对比的流程图;FIG5 schematically shows a flow chart of comparing the first configuration information with the second configuration information in operation S202 according to an embodiment of the present disclosure;

图6示意性示出了根据本公开另一实施例的网络设备变更历史的回溯方法流程图;FIG6 schematically shows a flow chart of a method for tracing back a network device change history according to another embodiment of the present disclosure;

图7示意性示出了根据本公开又一实施例的网络设备变更历史的回溯方法流程图;FIG7 schematically shows a flow chart of a method for tracing back a network device change history according to another embodiment of the present disclosure;

图8示意性示出了根据本公开实施例的操作S204中将配置差异信息与多个变更信息进行匹配的流程图;FIG8 schematically shows a flow chart of matching configuration difference information with multiple change information in operation S204 according to an embodiment of the present disclosure;

图9示意性示出了根据本公开实施例的操作S802中逐一解析每个实施方案来确定每个实施方案是否与配置差异信息关联的流程图;FIG9 schematically shows a flowchart of parsing each implementation scheme one by one to determine whether each implementation scheme is associated with configuration difference information in operation S802 according to an embodiment of the present disclosure;

图10示意性示出了根据本公开一实施例的网络设备变更历史的回溯装置的框图;FIG10 schematically shows a block diagram of a device for tracing back a change history of a network device according to an embodiment of the present disclosure;

图11示意性示出了根据本公开另一实施例的网络设备变更历史的回溯装置的框图;FIG11 schematically shows a block diagram of a device for tracing back a change history of a network device according to another embodiment of the present disclosure;

图12示意性示出了根据本公开实施例的适于实现上文描述的方法的电子设备的框图。FIG12 schematically shows a block diagram of an electronic device suitable for implementing the method described above according to an embodiment of the present disclosure.

具体实施方式DETAILED DESCRIPTION

以下,将参照附图来描述本公开的实施例。但是应该理解,这些描述只是示例性的,而并非要限制本公开的范围。在下面的详细描述中,为便于解释,阐述了许多具体的细节以提供对本公开实施例的全面理解。然而,明显地,一个或多个实施例在没有这些具体细节的情况下也可以被实施。此外,在以下说明中,省略了对公知结构和技术的描述,以避免不必要地混淆本公开的概念。Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

在此使用的术语仅仅是为了描述具体实施例,而并非意在限制本公开。在此使用的术语“包括”、“包含”等表明了所述特征、步骤、操作和/或部件的存在,但是并不排除存在或添加一个或多个其他特征、步骤、操作或部件。The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "include", "comprising", etc. used herein indicate the existence of the features, steps, operations and/or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

在此使用的所有术语(包括技术和科学术语)具有本领域技术人员通常所理解的含义,除非另外定义。应注意,这里使用的术语应解释为具有与本说明书的上下文相一致的含义,而不应以理想化或过于刻板的方式来解释。All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

在使用类似于“A、B和C等中至少一个”这样的表述的情况下,一般来说应该按照本领域技术人员通常理解该表述的含义来予以解释(例如,“具有A、B和C中至少一个的系统”应包括但不限于单独具有A、单独具有B、单独具有C、具有A和B、具有A和C、具有B和C、和/或具有A、B、C的系统等)。在使用类似于“A、B或C等中至少一个”这样的表述的情况下,一般来说应该按照本领域技术人员通常理解该表述的含义来予以解释(例如,“具有A、B或C中至少一个的系统”应包括但不限于单独具有A、单独具有B、单独具有C、具有A和B、具有A和C、具有B和C、和/或具有A、B、C的系统等)。In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and/or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and/or A, B, C, etc.).

附图中示出了一些方框图和/或流程图。应理解,方框图和/或流程图中的一些方框或其组合可以由计算机程序指令来实现。这些计算机程序指令可以提供给通用计算机、专用计算机或其他可编程数据一致性修复装置的处理器,从而这些指令在由该处理器执行时可以创建用于实现这些方框图和/或流程图中所说明的功能/操作的装置。本公开的技术可以硬件和/或软件(包括固件、微代码等)的形式来实现。另外,本公开的技术可以采取存储有指令的计算机可读存储介质上的计算机程序产品的形式,该计算机程序产品可供指令执行系统使用或者结合指令执行系统使用。Some block diagrams and/or flow charts are shown in the accompanying drawings. It should be understood that some boxes or combinations thereof in the block diagrams and/or flow charts can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data consistency repair device, so that these instructions can create a device for implementing the functions/operations described in these block diagrams and/or flow charts when executed by the processor. The technology of the present disclosure can be implemented in the form of hardware and/or software (including firmware, microcode, etc.). In addition, the technology of the present disclosure can take the form of a computer program product on a computer-readable storage medium storing instructions, which can be used by an instruction execution system or used in combination with an instruction execution system.

在本公开的技术方案中,所涉及的信息的收集、存储、使用、加工、传输、提供、公开和应用等处理,均符合相关法律法规的规定,采取了必要保密措施,且不违背公序良俗。In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision, disclosure and application of the information involved are in compliance with the provisions of relevant laws and regulations, necessary confidentiality measures are taken, and do not violate public order and good morals.

在本公开的技术方案中,若需要获取用户个人信息,在获取或采集用户个人信息之前,均获取了用户的授权或同意。In the technical solution of the present disclosure, if it is necessary to obtain user personal information, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.

针对相关技术中存在的技术问题,本公开实施例提供了一种网络设备变更历史的回溯方法,应用于服务端,包括:获取网络设备的第一配置信息和第二配置信息,其中,第一配置信息表征网络设备的当前配置,第二配置信息表征网络设备的历史配置。将第一配置信息和第二配置信息进行对比,得到配置差异信息。获取变更管理系统中历史配置到当前配置对应的时间段内的多个变更信息。将配置差异信息与多个变更信息进行匹配,确定与配置差异信息关联的变更信息。In response to the technical problems existing in the related technologies, the embodiments of the present disclosure provide a method for tracing the change history of a network device, which is applied to a server, and includes: obtaining first configuration information and second configuration information of a network device, wherein the first configuration information represents the current configuration of the network device, and the second configuration information represents the historical configuration of the network device. Compare the first configuration information and the second configuration information to obtain configuration difference information. Obtain multiple change information within the time period corresponding to the historical configuration to the current configuration in the change management system. Match the configuration difference information with the multiple change information to determine the change information associated with the configuration difference information.

图1示意性示出了根据本公开实施例的网络设备变更历史的回溯方法及装置的系统架构100。需要注意的是,图1所示仅为可以应用本公开实施例的系统架构的示例,以帮助本领域技术人员理解本公开的技术内容,但并不意味着本公开实施例不可以用于其他设备、系统、环境或场景。FIG1 schematically shows a system architecture 100 of a method and apparatus for tracing back the change history of a network device according to an embodiment of the present disclosure. It should be noted that FIG1 is only an example of a system architecture to which the embodiment of the present disclosure can be applied, to help those skilled in the art understand the technical content of the present disclosure, but does not mean that the embodiment of the present disclosure cannot be used in other devices, systems, environments or scenarios.

如图1所示,根据该实施例的系统架构100可以包括终端101,存储设备102,网络103和服务器104。网络103用于终端101,存储设备102与服务器104之间提供通信链路。As shown in Fig. 1, the system architecture 100 according to this embodiment may include a terminal 101, a storage device 102, a network 103 and a server 104. The network 103 is used to provide a communication link between the terminal 101, the storage device 102 and the server 104.

终端101例如可以是带有触摸显示屏的电子设备,例如可以包括手机、电脑、智能柜机,用户可以通过在触摸显示屏上点击对应的功能框或输入变更历史的回溯请求发起网络设备的变更历史溯源。终端101例如可以配置结果展示单元以展示变更历史溯源的结果信息。The terminal 101 may be, for example, an electronic device with a touch screen, such as a mobile phone, a computer, or an intelligent cabinet. The user may initiate the change history tracing of the network device by clicking a corresponding function box on the touch screen or inputting a change history backtracking request. The terminal 101 may be configured with a result display unit to display the result information of the change history tracing.

存储设备102可以用于存储变更历史溯源过程中的各种信息。存储设备102例如可以包括:网络设备信息存储单元、配置存储单元、配置差异信息存储单元。网络设备信息存储单元用于存放需要监控配置的网络设备信息,包括设备类型、IP地址、设备名、配置抓取方式、配置编码格式。配置存储单元用于储存网络设备的配置信息,存储时可以按日期建立相应目录,每天配置均存储至日期对应目录。配置差异信息存储单元用于记录每台网络设备的配置差异信息,例如可以包括设备名、IP地址、配置差异部分、检查时间、变更单号、变更事由等。The storage device 102 can be used to store various information in the change history tracing process. The storage device 102 may include, for example: a network device information storage unit, a configuration storage unit, and a configuration difference information storage unit. The network device information storage unit is used to store the network device information that needs to be monitored and configured, including the device type, IP address, device name, configuration capture method, and configuration encoding format. The configuration storage unit is used to store the configuration information of the network device. When storing, the corresponding directory can be established by date, and the daily configuration is stored in the directory corresponding to the date. The configuration difference information storage unit is used to record the configuration difference information of each network device, for example, it may include the device name, IP address, configuration difference part, inspection time, change order number, change reason, etc.

网络103可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。其中有线方式例如可以是采用线缆及以下多种接口中的任一种连接:光纤通道、红外线接口、D型数据接口、串行接口、USB接口、USB Type-C接口或Dock接口,无线方式例如可以是采用无线通信方式连接的,其中的无线通信例如可采用蓝牙、Wi-Fi、Infrared、ZigBee等多个无线技术标准中的任一个。The network 103 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc. The wired mode may be, for example, a cable and any of the following interfaces: optical fiber channel, infrared interface, D-type data interface, serial interface, USB interface, USB Type-C interface or Dock interface, and the wireless mode may be, for example, a wireless communication mode, wherein the wireless communication may be, for example, any of multiple wireless technology standards such as Bluetooth, Wi-Fi, Infrared, ZigBee, etc.

服务器104可以是提供各种服务的服务器,例如网络设备的变更历史溯源的后台管理服务器(仅为示例)。服务器104例如可以设置配置抓取单元、配置信息分析对比单元、变更检索单元和通知发送单元。服务器104通过网络103接收终端101发送的变更历史的回溯请求,根据变更历史的回溯请求执行网络设备的变更历史溯源,并将产生的配置差异信息、添加变更信息后的配置差异信息通过网络103发送至存储设备102存储。在执行网络设备的变更历史溯源的过程中,服务器104的配置抓取单元通过网络103获取网络设备的第一配置信息、第二配置信息,通过变更检索单元获取变更管理系统中历史配置到当前配置对应的时间段内的多个变更信息,基于配置信息分析对比单元将第一配置信息和第二配置信息进行对比,得到配置差异信息,将配置差异信息与多个变更信息进行匹配,确定与配置差异信息关联的变更信息。The server 104 may be a server that provides various services, such as a background management server for tracing the change history of network devices (only as an example). The server 104 may, for example, be provided with a configuration capture unit, a configuration information analysis and comparison unit, a change retrieval unit, and a notification sending unit. The server 104 receives a request for tracing back the change history sent by the terminal 101 through the network 103, performs tracing back the change history of the network device according to the request for tracing back the change history, and sends the generated configuration difference information and the configuration difference information after adding the change information to the storage device 102 for storage through the network 103. In the process of executing the tracing back the change history of the network device, the configuration capture unit of the server 104 obtains the first configuration information and the second configuration information of the network device through the network 103, obtains multiple change information corresponding to the time period from the historical configuration to the current configuration in the change management system through the change retrieval unit, compares the first configuration information and the second configuration information based on the configuration information analysis and comparison unit, obtains the configuration difference information, matches the configuration difference information with the multiple change information, and determines the change information associated with the configuration difference information.

需要说明的是,本公开实施例所提供的网络设备变更历史的回溯方法可以由服务器104执行。相应地,本公开实施例所提供的网络设备变更历史的回溯装置可以设置于服务器104中。或者,本公开实施例所提供的网络设备变更历史的回溯方法也可以由不同于服务器104且能够与终端101和/或服务器104通信的服务器或服务器集群执行。相应地,本公开实施例所提供的网络设备变更历史的回溯装置也可以设置于不同于服务器104且能够与终端101和/或转服务器104通信的服务器或服务器集群中。或者,本公开实施例所提供的网络设备变更历史的回溯法也可以部分由服务器104执行,部分由终端101执行。相应的,本公开实施例所提供的网络设备变更历史的回溯装置也可以部分设置于服务器104中,部分设置于终端101中。It should be noted that the method for tracing back the history of network device changes provided in the embodiment of the present disclosure can be executed by the server 104. Accordingly, the device for tracing back the history of network device changes provided in the embodiment of the present disclosure can be set in the server 104. Alternatively, the method for tracing back the history of network device changes provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 104 and can communicate with the terminal 101 and/or the server 104. Accordingly, the device for tracing back the history of network device changes provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 104 and can communicate with the terminal 101 and/or the transfer server 104. Alternatively, the method for tracing back the history of network device changes provided in the embodiment of the present disclosure can also be partially executed by the server 104 and partially executed by the terminal 101. Correspondingly, the device for tracing back the history of network device changes provided in the embodiment of the present disclosure can also be partially set in the server 104 and partially set in the terminal 101.

应该理解,图1中的终端、存储设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端、存储设备、网络和服务器。It should be understood that the number of terminals, storage devices, networks and servers in Figure 1 is only illustrative. Any number of terminals, storage devices, networks and servers may be provided according to implementation requirements.

本公开实施例提供的网络设备变更历史的回溯方法,可以应用于金融科技领域。例如,对于金融机构而言,某金融企业部署有两台某一型号的防火墙作为边界防火墙,随着业务系统的不断变化,网管人员需要经常新增或删除防火墙策略,所有配置的调整均通过变更管理系统审批、记录。随着时间的推移,变更系统中会累积海量的防火墙历史变更,要想从变更系统中检索某条变更信息将十分困难。而采用本公开的实施例提供的网络设备变更历史的回溯方法,提高网络设备变更检索效率,方便管理员进行网络变更历史快速回溯。The network device change history backtracking method provided by the embodiments of the present disclosure can be applied to the field of financial technology. For example, for a financial institution, a financial enterprise deploys two firewalls of a certain model as border firewalls. As the business system continues to change, network administrators need to frequently add or delete firewall policies, and all configuration adjustments are approved and recorded through the change management system. As time goes by, a large amount of firewall history changes will accumulate in the change system, and it will be very difficult to retrieve a certain change information from the change system. The network device change history backtracking method provided by the embodiments of the present disclosure improves the efficiency of network device change retrieval and facilitates administrators to quickly trace back the network change history.

应当理解是,本公开实施例提供的网络设备变更历史的回溯方法不仅限于应用于金融科技领域,也可用于除金融领域之外的任意领域。上述描述只是示例性的,对于例涉及任何具有网络设备配置更改的领域,例如电子商务、商品推荐、物流等其他技术领域,都可以应用本公开实施例的网络设备变更历史的回溯方法。It should be understood that the network device change history backtracking method provided by the embodiment of the present disclosure is not limited to the financial technology field, but can also be used in any field other than the financial field. The above description is only exemplary, and the network device change history backtracking method of the embodiment of the present disclosure can be applied to any field with network device configuration changes, such as e-commerce, product recommendation, logistics and other technical fields.

以下将基于图1描述网络设备变更历史的回溯的场景,通过图2~图8对本公开实施例的网络设备变更历史的回溯方法进行详细描述。The following will describe a scenario of backtracking the change history of a network device based on FIG. 1 , and will describe in detail a method for backtracking the change history of a network device according to an embodiment of the present disclosure through FIGS. 2 to 8 .

图2示意性示出了根据本公开一实施例的网络设备变更历史的回溯方法的流程图。FIG2 schematically shows a flow chart of a method for tracing back a change history of a network device according to an embodiment of the present disclosure.

如图2所示,该网络设备变更历史的回溯方法例如可以包括操作S201~操作S204。As shown in FIG. 2 , the method for tracing back the change history of a network device may include, for example, operations S201 to S204 .

在操作S201,获取网络设备的第一配置信息和第二配置信息。In operation S201, first configuration information and second configuration information of a network device are acquired.

在本公开的实施例中,第一配置信息表征网络设备的当前配置,例如可以是当日的网络设备配置。第二配置信息表征网络设备的历史配置,例如可以是前一日的网络设备配置。第一配置信息和第二配置信息可以是在配置存储单元中按照日期建立相应目录,每天配置均存储至日期对应目录,因此,可以直接从配置存储单元中获取第一配置信息和第二配置信息。可以采用机器人流程自动化(Robotic Process Automation,RPA)获取第一配置信息和第二配置信息。In an embodiment of the present disclosure, the first configuration information represents the current configuration of the network device, for example, it may be the network device configuration of the day. The second configuration information represents the historical configuration of the network device, for example, it may be the network device configuration of the previous day. The first configuration information and the second configuration information may be a corresponding directory established in the configuration storage unit according to the date, and the daily configuration is stored in the directory corresponding to the date. Therefore, the first configuration information and the second configuration information may be directly obtained from the configuration storage unit. Robotic Process Automation (RPA) may be used to obtain the first configuration information and the second configuration information.

在操作S202,将第一配置信息和第二配置信息进行对比,得到配置差异信息。In operation S202, the first configuration information and the second configuration information are compared to obtain configuration difference information.

在本公开的实施例中,配置差异信息可以是文本信息,可以基于当前对比的时间进行存储。配置差异信息例如可以理解为第一配置信息中包含的路由信息与第二配置信息中包含的路由信息不一致,具体本公开不做限制,具体配置的更高需要根据实际应用需求操作。In an embodiment of the present disclosure, the configuration difference information may be text information, and may be stored based on the current comparison time. The configuration difference information may be understood, for example, as the routing information included in the first configuration information being inconsistent with the routing information included in the second configuration information, which is not specifically limited by the present disclosure, and the specific configuration needs to be operated according to actual application requirements.

在操作S203,获取变更管理系统中历史配置到当前配置对应的时间段内的多个变更信息。In operation S203, a plurality of change information within a time period corresponding to the historical configuration to the current configuration in the change management system is obtained.

例如,将当日记为t,也即当前配置对应的时间为t,则前一日可以记为(t-1),也即历史配置对应的时间为(t-1)。由此,可以登陆变更管理系统,检索出检查时间(t-1)日至检查时间t范围内网络的变更信息。检索变更信息的方式PRA技术登录变更管理系统进行检索。For example, if the current day is recorded as t, that is, the time corresponding to the current configuration is t, then the previous day can be recorded as (t-1), that is, the time corresponding to the historical configuration is (t-1). Therefore, you can log in to the change management system and retrieve the network change information from the inspection time (t-1) to the inspection time t. The method of retrieving change information is to log in to the change management system for retrieval.

在操作S204,将配置差异信息与多个变更信息进行匹配,确定与配置差异信息关联的变更信息。In operation S204, the configuration difference information is matched with the plurality of change information to determine the change information associated with the configuration difference information.

在本公开的实施例中,多个变更信息中可能存在与配置差异信息关联的变更信息,也可能不存在与配置差异信息关联的变更信息,对于存在与配置差异信息关联的变更信息的情况,可以将配置差异信息与关联的变更信息进行存储,对于不存在与配置差异信息关联的变更信息的情况,即可结束匹配流程。In an embodiment of the present disclosure, among the multiple change information, there may be change information associated with the configuration difference information, or there may not be change information associated with the configuration difference information. In the case where there is change information associated with the configuration difference information, the configuration difference information and the associated change information can be stored. In the case where there is no change information associated with the configuration difference information, the matching process can be terminated.

根据本公开的实施例,由于通过将网络设备的当前配置与历史配置进行对比,获得配置差异信息,再将配置差异信息仅仅与对应时间段内的多个变更信息直接关联,极大程度上减少了数据计算量,因此,能够快速地获取当前配置的变更信息,从而提高网络设备变更检索效率,方便管理人员进行网络变更历史回溯,持续提高网络变更管理水平,提升金融企业网络稳定性。According to the embodiments of the present disclosure, by comparing the current configuration of a network device with its historical configuration to obtain configuration difference information, and then directly associating the configuration difference information only with multiple change information within a corresponding time period, the amount of data calculation is greatly reduced. Therefore, the change information of the current configuration can be quickly obtained, thereby improving the efficiency of network device change retrieval, facilitating management personnel to trace back the history of network changes, continuously improving the level of network change management, and enhancing the network stability of financial enterprises.

图3示意性示出了根据本公开实施例的操作S201中获取网络设备的第一配置信息和第二配置信息的流程图。FIG. 3 schematically shows a flowchart of acquiring first configuration information and second configuration information of a network device in operation S201 according to an embodiment of the present disclosure.

如图3所示,操作S201中获取网络设备的第一配置信息和第二配置信息例如可以包括操作S301~操作S303。As shown in FIG. 3 , the acquisition of the first configuration information and the second configuration information of the network device in operation S201 may include, for example, operations S301 to S303 .

在操作S301,获取需要监控配置的网络设备的设备信息。In operation S301, device information of a network device that needs to be monitored and configured is obtained.

在操作S302,采用配置抓取方式抓取需要监控配置的网络设备的第一配置信息和第二配置信息。In operation S302, a configuration capture method is used to capture first configuration information and second configuration information of a network device that needs to be monitored and configured.

在操作S303,按照抓取的时间对第一配置信息和第二配置信息进行存储。In operation S303, the first configuration information and the second configuration information are stored according to the captured time.

在本公开的实施例中,设备信息例如可以包括设备类型、IP地址、设备名、配置抓取方式等。其中,设备类型、IP地址、设备名可以用于标注区分需要监控配置的网络设备,配置抓取方式用于指示当前网络设备的配置的具体获取方式。In the embodiments of the present disclosure, the device information may include, for example, the device type, IP address, device name, configuration capture method, etc. Among them, the device type, IP address, and device name can be used to mark and distinguish network devices that need to be monitored and configured, and the configuration capture method is used to indicate the specific method of obtaining the configuration of the current network device.

进一步地,配置抓取方式可以包括:登录网管系统下载网络设备的第一配置信息和第二配置信息。或者,登录网络设备,通过文件传输协议或简单文件传输协议传输第一配置信息和第二配置信息。或者,登录网络设备输入命令进行抓取。Furthermore, the configuration capture method may include: logging into the network management system to download the first configuration information and the second configuration information of the network device. Alternatively, logging into the network device and transmitting the first configuration information and the second configuration information via a file transfer protocol or a simple file transfer protocol. Alternatively, logging into the network device and inputting a command to capture.

图4示意性示出了根据本公开实施例的具体配置信息抓取的三种方式的流程。FIG. 4 schematically illustrates the processes of three specific configuration information capture methods according to an embodiment of the present disclosure.

如图4所示,例如,在抓取配置之前,获取当前的时间(例如日期),根据日期创建相应的目录。抓取过程中,判断是否已通过网管系统抓取配置信息,在存在网管系统抓取的情况下,可以直接从网管系统下载第一配置信息和第二配置信息。或者,发送指令登录网络设备,将包含有配置信息的配置文件传输至文件传输协议(File Transfer Protocol,FTP)服务器或(Trivial File Transfer Protocol,TFTP)服务器,从而获取第一配置信息和第二配置信息。或者,发送指令登录网络设备,输入show run/display current-configuration命令获取第一配置信息和第二配置信息。抓取结束后,将抓取的第一配置信息和第二配置信息保存至当前日期创建的目录,便于后续按照日期查询配置信息。As shown in Figure 4, for example, before grabbing the configuration, obtain the current time (such as date) and create a corresponding directory according to the date. During the grabbing process, determine whether the configuration information has been grabbed through the network management system. If the network management system has grabbed it, the first configuration information and the second configuration information can be downloaded directly from the network management system. Alternatively, send an instruction to log in to the network device, and transfer the configuration file containing the configuration information to the File Transfer Protocol (FTP) server or the Trivial File Transfer Protocol (TFTP) server to obtain the first configuration information and the second configuration information. Alternatively, send an instruction to log in to the network device and enter the show run/display current-configuration command to obtain the first configuration information and the second configuration information. After the grabbing is completed, save the grabbed first configuration information and the second configuration information to the directory created by the current date, so as to facilitate the subsequent query of the configuration information by date.

根据本公开的实施例,基于设备信息,能够快速获取配置信息的抓取方式,从而实现了配置信息的高效抓取。通过设置多种配置信息的抓取方式,能够满足不同场景下的抓取需求,从而提高了回溯方法的灵活性。According to the embodiments of the present disclosure, based on the device information, the configuration information capture method can be quickly obtained, thereby achieving efficient capture of the configuration information. By setting a variety of configuration information capture methods, the capture requirements in different scenarios can be met, thereby improving the flexibility of the backtracking method.

图5示意性示出了根据本公开实施例的操作S202中的将第一配置信息和第二配置信息进行对比的流程图。FIG. 5 schematically shows a flow chart of comparing the first configuration information with the second configuration information in operation S202 according to an embodiment of the present disclosure.

如图5所示,操作S202中的将第一配置信息和第二配置信息进行对比可以包括操作S501~操作S504。As shown in FIG. 5 , comparing the first configuration information with the second configuration information in operation S202 may include operations S501 to S504 .

在操作S501,获取需要监控配置的网络设备的设备信息,其中,设备信息包括IP地址、设备名和配置编码格式。In operation S501, device information of a network device that needs to be monitored and configured is obtained, wherein the device information includes an IP address, a device name, and a configuration encoding format.

在操作S502,根据配置编码格式对第一配置信息和第二配置信息进行逐行解析。In operation S502, the first configuration information and the second configuration information are parsed line by line according to the configuration encoding format.

在操作S503,将解析后的第一配置信息和解析后的第二配置信息进行逐行对比,提取第一配置信息和第二配置信息中的差异部分,得到配置差异信息。In operation S503, the parsed first configuration information and the parsed second configuration information are compared line by line, and the difference between the first configuration information and the second configuration information is extracted to obtain configuration difference information.

在操作S504,以IP地址、设备名以及检查时间为索引,对配置差异信息进行存储。In operation S504, the configuration difference information is stored using the IP address, device name, and inspection time as indexes.

在本公开的实施例中,对比得到的配置差异信息可以为文本信息。In the embodiment of the present disclosure, the configuration difference information obtained by comparison may be text information.

根据本公开的实施例,基于设备信息,能够快速获取配置信息的配置编码格式,从而实现了配置信息的高效解析。According to the embodiments of the present disclosure, the configuration encoding format of the configuration information can be quickly acquired based on the device information, thereby achieving efficient parsing of the configuration information.

图6示意性示出了根据本公开另一实施例的网络设备变更历史的回溯方法流程图。FIG6 schematically shows a flow chart of a method for tracing back the change history of a network device according to another embodiment of the present disclosure.

如图6所示,该网络设备变更历史的回溯方法例如还可以包括操作S601~操作S602。As shown in FIG. 6 , the method for tracing back the network device change history may also include operations S601 to S602 .

在操作S601,将配置差异信息输入网页渲染引擎,生成超文本标记语言文件。In operation S601, the configuration difference information is input into a web page rendering engine to generate a hypertext markup language file.

在操作S602,在超文本标记语言文件中添加第一标签、第二标签和第二标签。In operation S602, a first tag, a second tag, and a third tag are added to a hypertext markup language file.

在本公开的实施例中,第一标签用于标记当前新增的配置,第二标签用于标记当前删除的配置,第三标签用于标记当前更改的配置。In an embodiment of the present disclosure, the first tag is used to mark the currently newly added configuration, the second tag is used to mark the currently deleted configuration, and the third tag is used to mark the currently changed configuration.

例如,将当日配置与前一配置输入网页渲染引擎,生成记录两份配置及差异对比的超文本标记语言(Hyper Text Markup Language,HTML)文件,在HTML中以不通颜色标记出配置差异,当日新增配置标记为绿色,当日删除配置标记为红色,当日更改配置标记为黄色,并将该HTML文件也存入差异信息记录单元。For example, the current configuration and the previous configuration are input into the web rendering engine to generate a Hypertext Markup Language (HTML) file that records the two configurations and the difference comparison. The configuration differences are marked with different colors in the HTML. The newly added configuration on the day is marked in green, the deleted configuration on the day is marked in red, and the changed configuration on the day is marked in yellow. The HTML file is also stored in the difference information recording unit.

图7示意性示出了根据本公开又一实施例的网络设备变更历史的回溯方法流程图。FIG7 schematically shows a flow chart of a method for tracing back the change history of a network device according to yet another embodiment of the present disclosure.

如图7所示,该网络设备变更历史的回溯方法例如还可以包括操作S701。As shown in FIG. 7 , the method for tracing back the change history of a network device may further include operation S701 , for example.

在操作S701,为第一标签添加第一超链接,为第二标签添加第二超链接,为第三标签添加第三超链接。In operation S701, a first hyperlink is added to a first tag, a second hyperlink is added to a second tag, and a third hyperlink is added to a third tag.

在本公开的实施例中,第一超链接、第二超链接和第三超链接分别用于定位对应标签标记的配置信息。也即,第一超链接可以用于定位当前新增的配置,第二超链接可以用于定位当前删除的配置,第三超链接可以用于定位当前更改的配置。In the embodiment of the present disclosure, the first hyperlink, the second hyperlink and the third hyperlink are respectively used to locate the configuration information marked by the corresponding tag. That is, the first hyperlink can be used to locate the currently added configuration, the second hyperlink can be used to locate the currently deleted configuration, and the third hyperlink can be used to locate the currently modified configuration.

以下以python difflib模块为例,给出一个具体的示例为:The following uses the Python difflib module as an example to give a specific example:

基于这个示例,当前检查时间为2023年04月20日,因此,获取2023年04月20日的第一配置信息和2023年04月19日的第二配置信息进行匹配。应当理解,该示例只是一个具体的举例,并不用于限制本公开。Based on this example, the current check time is April 20, 2023, therefore, the first configuration information on April 20, 2023 and the second configuration information on April 19, 2023 are obtained for matching. It should be understood that this example is only a specific example and is not intended to limit the present disclosure.

根据本公开的实施例,对获取的配置差异信息转化为超文本标记语言文件的形式并且以不同的标签标记不同的配置差异信息,能够方便直观地对差异配置进行对比。通过为每一标签设置对应的超链接,能够通过点击超链接快递跳转至对应的配置差异信息,从而实现配置差异信息的高效查询。According to the embodiments of the present disclosure, the acquired configuration difference information is converted into a hypertext markup language file and different configuration difference information is marked with different tags, so that the difference configurations can be easily and intuitively compared. By setting a corresponding hyperlink for each tag, it is possible to jump to the corresponding configuration difference information by clicking the hyperlink, thereby realizing efficient query of the configuration difference information.

图8示意性示出了根据本公开实施例的操作S204中将配置差异信息与多个变更信息进行匹配的流程图。FIG. 8 schematically shows a flow chart of matching configuration difference information with multiple change information in operation S204 according to an embodiment of the present disclosure.

如图8所示,操作S204中将配置差异信息与多个变更信息进行匹配例如可以包括操作S801~操作S803。As shown in FIG. 8 , matching the configuration difference information with the multiple change information in operation S204 may include operations S801 to S803 , for example.

在操作S801,分别提取每个变更信息中的变更单号、变更申请用户、变更事由和实施方案。In operation S801, the change order number, change application user, change reason and implementation plan in each change information are extracted respectively.

在操作S802,逐一解析每个实施方案,确定每个实施方案是否与配置差异信息关联。In operation S802, each implementation scheme is parsed one by one to determine whether each implementation scheme is associated with configuration difference information.

在操作S803,响应于实施方案与配置差异信息关联,将与实施方案对应的变更单号、变更申请用户和变更事由添加至配置差异信息。In operation S803, in response to the implementation plan being associated with the configuration difference information, the change order number, change application user, and change reason corresponding to the implementation plan are added to the configuration difference information.

在本公开的实施例中,可以根据每个实施方案的文件后缀选择相应的解析引擎对实施方案进行解析。文件后缀例如可以是txt/doc/xls。由此,基于文件后缀可以快速确定实施方案的解析方式。In the embodiments of the present disclosure, a corresponding parsing engine can be selected according to the file suffix of each implementation scheme to parse the implementation scheme. The file suffix can be, for example, txt/doc/xls. Thus, the parsing method of the implementation scheme can be quickly determined based on the file suffix.

根据本公开的实施例,由于仅仅通过解析变更信息中的实施方案将变更信息与配置差异信息关联,关联涉及的数据量小,从而提高了变更历史回溯的效率。According to the embodiments of the present disclosure, since the change information is associated with the configuration difference information only by parsing the implementation scheme in the change information, the amount of data involved in the association is small, thereby improving the efficiency of change history backtracking.

图9示意性示出了根据本公开实施例的操作S802中逐一解析每个实施方案来确定每个实施方案是否与配置差异信息关联的流程图。FIG. 9 schematically shows a flowchart of parsing each implementation scheme one by one to determine whether each implementation scheme is associated with configuration difference information in operation S802 according to an embodiment of the present disclosure.

如图9所示,操作S802中逐一解析每个实施方案来确定每个实施方案是否与配置差异信息关联例如可以包括操作S901~操作S903。As shown in FIG. 9 , in operation S802 , parsing each implementation scheme one by one to determine whether each implementation scheme is associated with configuration difference information may include, for example, operations S901 to S903 .

在操作S901,分别采用自然语言处理模型对每个实施方案中的文本内容进行处理,以提取每个实施方案中对对应网络设备的操作命令。In operation S901, a natural language processing model is used to process the text content in each implementation scheme to extract operation commands for corresponding network devices in each implementation scheme.

在操作S902,将配置差异信息与每一个操作命令进行矢量匹配,来计算配置差异信息与每一个操作命令之间的相似度。In operation S902, vector matching is performed between the configuration difference information and each operation command to calculate the similarity between the configuration difference information and each operation command.

在操作S903,确定与大于预设阈值的相似度对应的实施方案与配置差异信息关联。In operation S903 , it is determined that the implementation scheme corresponding to the similarity greater than a preset threshold is associated with the configuration difference information.

在本公开的实施例中,由于不同的实施用户编写实施方案的格式不统一,而为每一格式的实施方案设置对应的解析引擎会使得操作复杂,降低网络设备变更历史的回溯效率。因此,可以使用自然语言处理模型对实施方案中的文本内容进行处理,提取出实施方案中对网络设备的操作命令,例如,某实施方案编排格式如表1所示:In the embodiments of the present disclosure, since different implementation users write implementation plans in different formats, setting a corresponding parsing engine for each implementation plan format will make the operation complicated and reduce the efficiency of tracing back the history of network device changes. Therefore, a natural language processing model can be used to process the text content in the implementation plan to extract the operation commands for the network device in the implementation plan. For example, the format of a certain implementation plan is shown in Table 1:

表1Table 1

解析时,只需提取“七、变更实施步骤”章节所含内容即可。应当理解,表1中实施方案的编排格式只是示例性的,具体可以根据实际应用场景进行调整,本公开不做限制。When parsing, it is only necessary to extract the contents contained in the section "VII. Change Implementation Steps". It should be understood that the arrangement format of the implementation plan in Table 1 is only exemplary and can be adjusted according to the actual application scenario, and this disclosure does not limit it.

进一步地,提取的配置差异信息与实施方案中的操作命令都可以是文本形式,可以对两段文本进行矢量匹配,以计算两段文本的相似度。例如,以下以python difflib模块为例,矢量匹配的过程可以为:Furthermore, the extracted configuration difference information and the operation command in the implementation scheme can both be in text form, and vector matching can be performed on the two texts to calculate the similarity of the two texts. For example, taking the python difflib module as an example, the vector matching process can be:

应当理解,该示例只是一个具体的举例,并不用于限制本公开。It should be understood that this example is only a specific example and is not intended to limit the present disclosure.

由于一个变更方案中可能涉及多台网络设备的操作,也可能多个变更对同一台网络设备进行配置,因此,可以通过设置比较阈值的方式来判断配置差异信息与变更信息是否关联。例如,比较阈值可以设置为0.3和0.03,在两段文本的相似度x大于等于0.3的情况下,可以认为该变更信息与当前网络设备配置变化有关联;在两段文本的相似度x大于等于0.03且小于0.3的情况下,则可以向管理员发送询问信息,待管理员进行确认该变更信息与当前网络设备配置变化是否关联;在两段文本的相似度x小于0.03,则认为该变更信息与当前网络设备配配置变化无关。Since a change plan may involve the operation of multiple network devices, or multiple changes may be made to configure the same network device, it is possible to determine whether the configuration difference information is associated with the change information by setting a comparison threshold. For example, the comparison threshold can be set to 0.3 and 0.03. When the similarity x of the two texts is greater than or equal to 0.3, it can be considered that the change information is associated with the current network device configuration change; when the similarity x of the two texts is greater than or equal to 0.03 and less than 0.3, an inquiry message can be sent to the administrator to confirm whether the change information is associated with the current network device configuration change; when the similarity x of the two texts is less than 0.03, it is considered that the change information is not associated with the current network device configuration change.

根据本公开的实施例,通过计算变更信息与配置差异信息之间的相似度来确定变更信息与配置异常信息是否关联,能够准确地确定与配置差异信息关联的配置信息,从而提高了变更历史回溯的准确性。According to an embodiment of the present disclosure, by calculating the similarity between the change information and the configuration difference information to determine whether the change information is associated with the configuration exception information, the configuration information associated with the configuration difference information can be accurately determined, thereby improving the accuracy of change history backtracking.

进一步地,在确定没有与配置差异信息匹配的变更信息的情况下,向终端发送提醒信息,其中,提醒信息用于提醒用户手动填写变更信息。Furthermore, when it is determined that there is no change information matching the configuration difference information, a reminder message is sent to the terminal, wherein the reminder message is used to remind the user to manually fill in the change information.

例如,提醒的方式例如可以是邮件、短信等。手动填写变更信息例如包括变更单号及变更事由等信息。For example, the reminder method may be an email, a text message, etc. Manually filling in the change information may include, for example, the change order number and the change reason.

在上述实施例的基础上,还可以以Web方式对配置差异信息进行展示,展示内容包括设备名,配置差异部分信息(文本形式),变更单号,变更事由,检查时间,管理人员可通过搜索功能,快速检索出某条配置的相关信息,包括配置新增日期,变更单号,变更事由等,并且可以通过点击超链接跳转至对应的HTML页面,在HTML页面以不通颜色标记出配置的新增、修改及删除,方面直观地对差异配置进行对比。Based on the above embodiment, the configuration difference information can also be displayed in a Web manner. The displayed content includes the device name, configuration difference information (text form), change order number, change reason, inspection time, and the management personnel can use the search function to quickly retrieve the relevant information of a certain configuration, including the configuration addition date, change order number, change reason, etc., and can jump to the corresponding HTML page by clicking a hyperlink. The configuration addition, modification and deletion are marked with different colors on the HTML page, which makes it easy to intuitively compare the difference configurations.

综上所述,本公实施例提供的网络设备变更历史的回溯方法能够提高网络设备变更检索效率,方便管理人员进行网络变更历史回溯,持续提高网络变更管理水平,提升金融企业网络稳定性。To sum up, the network device change history backtracking method provided by the present embodiment can improve the efficiency of network device change retrieval, facilitate management personnel to backtrack network change history, continuously improve the level of network change management, and enhance the network stability of financial enterprises.

基于图2~图9所示的网络设备变更历史的回溯方法,本公开实施例还提供一种网络设备变更历史的回溯装置,以下将基于图1描述的场景,通过图10~图11对本公开实施例的网络设备变更历史的回溯装置进行描述。Based on the network device change history backtracing method shown in Figures 2 to 9, the embodiment of the present disclosure also provides a network device change history backtracing device. The following will describe the network device change history backtracing device of the embodiment of the present disclosure through Figures 10 to 11 based on the scenario described in Figure 1.

图10示意性示出了根据本公开一实施例的网络设备变更历史的回溯装置的框图。FIG10 schematically shows a block diagram of a device for tracing back a change history of a network device according to an embodiment of the present disclosure.

如图10所示,网络设备变更历史的回溯装置1000可以包括第一获取模块1010、对比模块1020、第二获取模块1030以及匹配模块1040。As shown in FIG. 10 , the apparatus 1000 for tracing back the change history of a network device may include a first acquisition module 1010 , a comparison module 1020 , a second acquisition module 1030 , and a matching module 1040 .

第一获取模块1010,用于获取网络设备的第一配置信息和第二配置信息,其中,第一配置信息表征网络设备的当前配置,第一配置信息表征网络设备的历史配置。第一获取模块1010可以用于执行前文描述的操作S201,在此不再赘述。The first acquisition module 1010 is used to acquire first configuration information and second configuration information of the network device, wherein the first configuration information represents the current configuration of the network device and the second configuration information represents the historical configuration of the network device. The first acquisition module 1010 can be used to perform the operation S201 described above, which will not be repeated here.

对比模块1020,用于将第一配置信息和第二配置信息进行对比,得到配置差异信息。对比模块1020可以用于执行前文描述的操作S202,在此不再赘述。The comparison module 1020 is used to compare the first configuration information with the second configuration information to obtain configuration difference information. The comparison module 1020 can be used to perform the operation S202 described above, which will not be described in detail here.

第二获取模块1030,获取变更管理系统中历史配置到当前配置对应的时间段内的多个变更信息。第二获取模块1030可以用于执行前文描述的操作S203,在此不再赘述。The second acquisition module 1030 acquires multiple change information in the change management system within a time period corresponding to the historical configuration to the current configuration. The second acquisition module 1030 can be used to perform the operation S203 described above, which will not be described in detail here.

匹配模块1040,用于将配置差异信息与多个变更信息进行匹配,确定与配置差异信息关联的变更信息。匹配模块1040可以用于执行前文描述的操作S204,在此不再赘述。The matching module 1040 is used to match the configuration difference information with the multiple change information to determine the change information associated with the configuration difference information. The matching module 1040 can be used to perform the operation S204 described above, which will not be described in detail here.

图11示意性示出了根据本公开另一实施例的网络设备变更历史的回溯装置的框图。FIG11 schematically shows a block diagram of a device for tracing back a change history of a network device according to another embodiment of the present disclosure.

如图11所示,网络设备变更历史的回溯装置1000例如还可以包括生成模块1050、第一添加模块1060以及第二添加模块1070。As shown in FIG. 11 , the apparatus 1000 for tracing back the change history of a network device may further include, for example, a generating module 1050 , a first adding module 1060 , and a second adding module 1070 .

生成模块1050,用于将配置差异信息输入网页渲染引擎,生成超文本标记语言文件。生成模块1050可以用于执行前文描述的操作S601,在此不再赘述。The generation module 1050 is used to input the configuration difference information into the web page rendering engine to generate a hypertext markup language file. The generation module 1050 can be used to perform the operation S601 described above, which will not be described in detail here.

第一添加模块1060,在超文本标记语言文件中添加第一标签、第二标签和第二标签。其中,第一标签用于标记当前新增的配置,第二标签用于标记当前删除的配置,第三标签用于标记当前更改的配置。第一添加模块1060可以用于执行前文描述的操作S602,在此不再赘述。The first adding module 1060 adds a first tag, a second tag, and a third tag to the hypertext markup language file. The first tag is used to mark the currently newly added configuration, the second tag is used to mark the currently deleted configuration, and the third tag is used to mark the currently changed configuration. The first adding module 1060 can be used to perform the operation S602 described above, which will not be repeated here.

第二添加模块1070,为第一标签添加第一超链接,为第二标签添加第二超链接,为第三标签添加第三超链接。其中,第一超链接、第二超链接和第三超链接分别用于定位对应标签标记的配置信息。第二添加模块1070可以用于执行前文描述的操作S701,在此不再赘述。The second adding module 1070 adds a first hyperlink to the first tag, adds a second hyperlink to the second tag, and adds a third hyperlink to the third tag. The first hyperlink, the second hyperlink, and the third hyperlink are respectively used to locate the configuration information marked by the corresponding tags. The second adding module 1070 can be used to perform the operation S701 described above, which will not be repeated here.

根据本公开的实施例的模块、子模块、单元、子单元中的任意多个、或其中任意多个的至少部分功能可以在一个模块中实现。根据本公开实施例的模块、子模块、单元、子单元中的任意一个或多个可以被拆分成多个模块来实现。根据本公开实施例的模块、子模块、单元、子单元中的任意一个或多个可以至少被部分地实现为硬件电路,例如现场可编程门阵列(FPGA)、可编程逻辑阵列(PLA)、片上系统、基板上的系统、封装上的系统、专用集成电路(ASIC),或可以通过对电路进行集成或封装的任何其他的合理方式的硬件或固件来实现,或以软件、硬件以及固件三种实现方式中任意一种或以其中任意几种的适当组合来实现。或者,根据本公开实施例的模块、子模块、单元、子单元中的一个或多个可以至少被部分地实现为计算机程序模块,当该计算机程序模块被运行时,可以执行相应的功能。According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.

例如,第一获取模块1010、对比模块1020、第二获取模块1030、匹配模块1040、生成模块1050、第一添加模块1060以及第二添加模块1070中的任意多个可以合并在一个模块/单元/子单元中实现,或者其中的任意一个模块/单元/子单元可以被拆分成多个模块/单元/子单元。或者,这些模块/单元/子单元中的一个或多个模块/单元/子单元的至少部分功能可以与其他模块/单元/子单元的至少部分功能相结合,并在一个模块/单元/子单元中实现。根据本公开的实施例,第一获取模块1010、对比模块1020、第二获取模块1030、匹配模块1040、生成模块1050、第一添加模块1060以及第二添加模块1070中的至少一个可以至少被部分地实现为硬件电路,例如现场可编程门阵列(FPGA)、可编程逻辑阵列(PLA)、片上系统、基板上的系统、封装上的系统、专用集成电路(ASIC),或可以通过对电路进行集成或封装的任何其他的合理方式等硬件或固件来实现,或以软件、硬件以及固件三种实现方式中任意一种或以其中任意几种的适当组合来实现。或者,第一获取模块1010、对比模块1020、第二获取模块1030、匹配模块1040、生成模块1050、第一添加模块1060以及第二添加模块1070中的至少一个可以至少被部分地实现为计算机程序模块,当该计算机程序模块被运行时,可以执行相应的功能。For example, any multiple of the first acquisition module 1010, the comparison module 1020, the second acquisition module 1030, the matching module 1040, the generation module 1050, the first addition module 1060, and the second addition module 1070 can be combined in one module/unit/sub-unit for implementation, or any one of the modules/units/sub-units can be split into multiple modules/units/sub-units. Alternatively, at least part of the functions of one or more of these modules/units/sub-units can be combined with at least part of the functions of other modules/units/sub-units and implemented in one module/unit/sub-unit. According to an embodiment of the present disclosure, at least one of the first acquisition module 1010, the comparison module 1020, the second acquisition module 1030, the matching module 1040, the generation module 1050, the first addition module 1060, and the second addition module 1070 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or by any one of the three implementation methods of software, hardware, and firmware, or by a proper combination of any of them. Alternatively, at least one of the first acquisition module 1010, the comparison module 1020, the second acquisition module 1030, the matching module 1040, the generation module 1050, the first addition module 1060, and the second addition module 1070 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be performed.

需要说明的是,本公开的实施例中网络设备变更历史的回溯装置部分与本公开的实施例中网络设备变更历史的回溯方法部分是相对应的,其具体实施细节及带来的技术效果也是相同的,在此不再赘述。It should be noted that the network device change history backtracking device part in the embodiment of the present disclosure corresponds to the network device change history backtracking method part in the embodiment of the present disclosure, and their specific implementation details and technical effects are also the same, which will not be repeated here.

图12示意性示出了根据本公开实施例的适于实现上文描述的方法的电子设备的框图。图12示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Fig. 12 schematically shows a block diagram of an electronic device suitable for implementing the method described above according to an embodiment of the present disclosure. The electronic device shown in Fig. 12 is only an example and should not bring any limitation to the functions and scope of use of the embodiment of the present disclosure.

如图12所示,根据本公开实施例的电子设备1200包括处理器1201,其可以根据存储在只读存储器(ROM)1202中的程序或者从存储部分1208加载到随机访问存储器(RAM)1203中的程序而执行各种适当的动作和处理。处理器1201例如可以包括通用微处理器(例如CPU)、指令集处理器和/或相关芯片组和/或专用微处理器(例如,专用集成电路(ASIC)),等等。处理器1201还可以包括用于缓存用途的板载存储器。处理器1201可以包括用于执行根据本公开实施例的方法流程的不同动作的单一处理单元或者是多个处理单元。As shown in FIG12 , the electronic device 1200 according to an embodiment of the present disclosure includes a processor 1201, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1202 or a program loaded from a storage portion 1208 into a random access memory (RAM) 1203. The processor 1201 may, for example, include a general-purpose microprocessor (e.g., a CPU), an instruction set processor and/or a related chipset and/or a dedicated microprocessor (e.g., an application-specific integrated circuit (ASIC)), and the like. The processor 1201 may also include an onboard memory for caching purposes. The processor 1201 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

在RAM 1203中,存储有电子设备1200操作所需的各种程序和数据。处理器1201、ROM 1202以及RAM1203通过总线1204彼此相连。处理器1201通过执行ROM 1202和/或RAM1203中的程序来执行根据本公开实施例的方法流程的各种操作。需要注意,所述程序也可以存储在除ROM 1202和RAM 1203以外的一个或多个存储器中。处理器1201也可以通过执行存储在所述一个或多个存储器中的程序来执行根据本公开实施例的方法流程的各种操作。In RAM 1203, various programs and data required for the operation of electronic device 1200 are stored. Processor 1201, ROM 1202 and RAM 1203 are connected to each other through bus 1204. Processor 1201 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 1202 and/or RAM 1203. It should be noted that the program can also be stored in one or more memories other than ROM 1202 and RAM 1203. Processor 1201 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

根据本公开的实施例,电子设备1200还可以包括输入/输出(I/O)接口1205,输入/输出(I/O)接口1205也连接至总线1204。电子设备1200还可以包括连接至I/O接口1205的以下部件中的一项或多项:包括键盘、鼠标等的输入部分1206;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分1207;包括硬盘等的存储部分1208;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分1209。通信部分1209经由诸如因特网的网络执行通信处理。驱动器1210也根据需要连接至I/O接口1205。可拆卸介质1211,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器1210上,以便于从其上读出的计算机程序根据需要被安装入存储部分1208。According to an embodiment of the present disclosure, the electronic device 1200 may further include an input/output (I/O) interface 1205, which is also connected to the bus 1204. The electronic device 1200 may further include one or more of the following components connected to the I/O interface 1205: an input portion 1206 including a keyboard, a mouse, etc.; an output portion 1207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 1208 including a hard disk, etc.; and a communication portion 1209 including a network interface card such as a LAN card, a modem, etc. The communication portion 1209 performs communication processing via a network such as the Internet. A drive 1210 is also connected to the I/O interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1210 as needed, so that a computer program read therefrom is installed into the storage portion 1208 as needed.

根据本公开的实施例,根据本公开实施例的方法流程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读存储介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分1209从网络上被下载和安装,和/或从可拆卸介质1211被安装。在该计算机程序被处理器1201执行时,执行本公开实施例的系统中限定的上述功能。根据本公开的实施例,上文描述的系统、设备、装置、模块、单元等可以通过计算机程序模块来实现。According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1209, and/or installed from the removable medium 1211. When the computer program is executed by the processor 1201, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.

本公开还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的设备/装置/系统中所包含的;也可以是单独存在,而未装配入该设备/装置/系统中。上述计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被执行时,实现根据本公开实施例的方法。The present disclosure also provides a computer-readable storage medium, which may be included in the device/apparatus/system described in the above embodiments; or may exist independently without being assembled into the device/apparatus/system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

根据本公开的实施例,计算机可读存储介质可以是非易失性的计算机可读存储介质。例如可以包括但不限于:便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.

例如,根据本公开的实施例,计算机可读存储介质可以包括上文描述的ROM1202和/或RAM 1203和/或ROM 1202和RAM 1203以外的一个或多个存储器。For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 1202 and/or the RAM 1203 described above and/or one or more memories other than the ROM 1202 and the RAM 1203 .

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。本领域技术人员可以理解,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合,即使这样的组合或结合没有明确记载于本公开中。特别地,在不脱离本公开精神和教导的情况下,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合。所有这些组合和/或结合均落入本公开的范围。The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, two 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 box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions. It can be understood by those skilled in the art that the features recorded in the various embodiments and/or claims of the present disclosure can be combined and/or combined in a variety of ways, even if such a combination or combination is not explicitly recorded in the present disclosure. In particular, without departing from the spirit and teaching of the present disclosure, the features described in the various embodiments and/or claims of the present disclosure may be combined and/or combined in a variety of ways. All of these combinations and/or combinations fall within the scope of the present disclosure.

Claims (14)

1.一种网络设备变更历史的回溯方法,应用于服务端,包括:1. A method for backtracking the change history of network equipment, applied to the server, including: 获取网络设备的第一配置信息和第二配置信息,其中,所述第一配置信息表征所述网络设备的当前配置,所述第二配置信息表征所述网络设备的历史配置;Acquiring first configuration information and second configuration information of a network device, wherein the first configuration information represents a current configuration of the network device, and the second configuration information represents a historical configuration of the network device; 将所述第一配置信息和所述第二配置信息进行对比,得到配置差异信息;Comparing the first configuration information with the second configuration information to obtain configuration difference information; 获取变更管理系统中历史配置到当前配置对应的时间段内的多个变更信息;Obtain multiple change information in the time period from the historical configuration to the current configuration in the change management system; 将所述配置差异信息与所述多个变更信息进行匹配,确定与所述配置差异信息关联的变更信息。Matching the configuration difference information with the plurality of change information to determine change information associated with the configuration difference information. 2.根据权利要求1所述的网络设备变更历史的回溯方法,其中,所述获取网络设备的第一配置信息和第二配置信息包括:2. The retrospective method of network device change history according to claim 1, wherein said obtaining the first configuration information and the second configuration information of the network device comprises: 获取需要监控配置的网络设备的设备信息,其中,所述设备信息包括IP地址、设备名和配置抓取方式;Obtaining device information of a network device that needs to be monitored and configured, wherein the device information includes an IP address, a device name, and a configuration grabbing method; 采用所述配置抓取方式抓取需要监控配置的网络设备的第一配置信息和第二配置信息;Grabbing the first configuration information and the second configuration information of the network device that needs to be monitored and configured by using the configuration grabbing method; 按照抓取的时间对所述第一配置信息和所述第二配置信息进行存储。The first configuration information and the second configuration information are stored according to the captured time. 3.根据权利要求2所述的网络设备变更历史的回溯方法,其中,所述配置抓取方式包括:3. The retrospective method of network device change history according to claim 2, wherein the configuration capture method comprises: 登录网管系统下载所述网络设备的所述第一配置信息和所述第二配置信息;或者Log in to a network management system to download the first configuration information and the second configuration information of the network device; or 登录所述网络设备,通过文件传输协议或简单文件传输协议传输所述第一配置信息和所述第二配置信息;或者;log into the network device, and transmit the first configuration information and the second configuration information through a file transfer protocol or a simple file transfer protocol; or; 登录所述网络设备输入命令进行抓取。Log in to the network device and input commands to grab. 4.根据权利要求1所述的网络设备变更历史的回溯方法,其中,所述将所述第一配置信息和所述第二配置信息进行对比,得到配置差异信息包括:4. The retrospective method of network device change history according to claim 1, wherein said comparing said first configuration information with said second configuration information to obtain configuration difference information comprises: 获取需要监控配置的网络设备的设备信息,其中,所述设备信息包括IP地址、设备名和配置编码格式;Obtaining device information of network devices that need to be monitored and configured, wherein the device information includes IP addresses, device names and configuration encoding formats; 根据所述配置编码格式对所述第一配置信息和所述第二配置信息进行逐行解析;Analyzing the first configuration information and the second configuration information line by line according to the configuration encoding format; 将解析后的所述第一配置信息和解析后的所述第二配置信息进行逐行对比,提取所述第一配置信息和所述第二配置信息中的差异部分,得到所述配置差异信息;comparing the parsed first configuration information and the parsed second configuration information line by line, extracting the difference between the first configuration information and the second configuration information, and obtaining the configuration difference information ; 以所述IP地址、所述设备名以及检查时间为索引,对所述配置差异信息进行存储。The configuration difference information is stored using the IP address, the device name, and the checking time as indexes. 5.根据权利要求4所述的网络设备变更历史的回溯方法,所述方法还包括:5. The retrospective method of the network equipment change history according to claim 4, said method further comprising: 将所述配置差异信息输入网页渲染引擎,生成超文本标记语言文件;Inputting the configuration difference information into a web page rendering engine to generate a hypertext markup language file; 在所述超文本标记语言文件中添加第一标签、第二标签和第三标签,其中,所述第一标签用于标记当前新增的配置,所述第二标签用于标记当前删除的配置,所述第三标签用于标记当前更改的配置。Add a first tag, a second tag, and a third tag in the hypertext markup language file, wherein the first tag is used to mark the currently added configuration, and the second tag is used to mark the currently deleted configuration , the third label is used to mark the currently changed configuration. 6.根据权利要求5所述的网络设备变更历史的回溯方法,所述方法还包括:6. The retrospective method of the network equipment change history according to claim 5, said method further comprising: 为所述第一标签添加第一超链接,为所述第二标签添加第二超链接,为所述第三标签添加第三超链接,其中,所述第一超链接、所述第二超链接和所述第三超链接分别用于定位对应标签标记的配置信息。Add a first hyperlink to the first label, add a second hyperlink to the second label, and add a third hyperlink to the third label, wherein the first hyperlink, the second hyperlink The link and the third hyperlink are respectively used to locate the configuration information marked by the corresponding label. 7.根据权利要求1所述的网络设备变更历史的回溯方法,其中,所述将所述配置差异信息与所述多个变更信息进行匹配包括:7. The retrospective method for network device change history according to claim 1, wherein said matching said configuration difference information with said plurality of change information comprises: 分别提取每个变更信息中的变更单号、变更申请用户、变更事由和实施方案;Separately extract the change order number, change application user, change reason and implementation plan in each change information; 逐一解析每个实施方案,确定每个实施方案是否与所述配置差异信息关联;Analyzing each implementation scheme one by one, and determining whether each implementation scheme is associated with the configuration difference information; 响应于所述实施方案与所述配置差异信息关联,将与所述实施方案对应的变更单号、变更申请用户和变更事由添加至所述配置差异信息。In response to the association between the implementation solution and the configuration difference information, add the change order number, change application user, and change reason corresponding to the implementation solution to the configuration difference information. 8.根据权利要求7所述的网络设备变更历史的回溯方法,其中,所述逐一解析每个实施方案,确定每个实施方案是否与所述配置差异信息关联包括:8. The retrospective method of network device change history according to claim 7, wherein said parsing each implementation scheme one by one, and determining whether each implementation scheme is associated with the configuration difference information comprises: 分别采用自然语言处理模型对每个所述实施方案中的文本内容进行处理,以提取每个所述实施方案中对对应网络设备的操作命令;Using a natural language processing model to process the text content in each of the implementations, so as to extract the operation commands for the corresponding network devices in each of the implementations; 将所述配置差异信息与每一个所述操作命令进行矢量匹配,来计算所述配置差异信息与每一个所述操作命令之间的相似度;performing vector matching on the configuration difference information and each of the operation commands to calculate the similarity between the configuration difference information and each of the operation commands; 确定与大于预设阈值的相似度对应的实施方案与所述配置差异信息关联。It is determined that implementations corresponding to a similarity greater than a preset threshold are associated with the configuration difference information. 9.根据权利要求8所述的网络设备变更历史的回溯方法,其中,所述分别采用自然语言处理模型对每个所述实施方案中的文本内容进行处理包括:9. The retrospective method of network device change history according to claim 8, wherein said respectively adopting a natural language processing model to process the text content in each of said embodiments comprises: 根据每个实施方案的文件后缀选择相应的解析引擎对所述实施方案进行解析。According to the file suffix of each implementation, a corresponding analysis engine is selected to analyze the implementation. 10.根据权利要求1所述的网络设备变更历史的回溯方法,所述方法包括:10. The retrospective method of the network equipment change history according to claim 1, said method comprising: 在确定没有与所述配置差异信息匹配的变更信息的情况下,向终端发送提醒信息,其中,所述提醒信息用于提醒用户手动填写变更信息。When it is determined that there is no change information matching the configuration difference information, a reminder message is sent to the terminal, wherein the reminder message is used to remind the user to manually fill in the change information. 11.一种网络设备变更历史的回溯装置,包括:11. A retrospective device for changing history of network equipment, comprising: 第一获取模块,用于获取网络设备的第一配置信息和第二配置信息,其中,所述第一配置信息表征所述网络设备的当前配置,所述第二配置信息表征所述网络设备的历史配置;A first acquiring module, configured to acquire first configuration information and second configuration information of a network device, wherein the first configuration information represents a current configuration of the network device, and the second configuration information represents a configuration of the network device historical configuration; 对比模块,用于将所述第一配置信息和所述第二配置信息进行对比,得到配置差异信息;A comparing module, configured to compare the first configuration information with the second configuration information to obtain configuration difference information; 第二获取模块,用于获取变更管理系统中历史配置到当前配置对应的时间段内的多个变更信息;The second obtaining module is used to obtain a plurality of change information in the time period corresponding to the historical configuration to the current configuration in the change management system; 匹配模块,用于将所述配置差异信息与所述多个变更信息进行匹配,确定与所述配置差异信息关联的变更信息。A matching module, configured to match the configuration difference information with the plurality of change information, and determine change information associated with the configuration difference information. 12.一种电子设备,包括:12. An electronic device comprising: 一个或多个处理器;one or more processors; 存储装置,用于存储一个或多个程序,storage means for storing one or more programs, 其中,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器执行根据权利要求1~10中任一项所述的方法。Wherein, when the one or more programs are executed by the one or more processors, the one or more processors are made to execute the method according to any one of claims 1-10. 13.一种计算机可读存储介质,所述计算机可读存储介质上存储有可执行指令,该指令被处理器执行时使处理器执行根据权利要求1~10中任一项所述的方法。13. A computer-readable storage medium, wherein executable instructions are stored on the computer-readable storage medium, and when the instructions are executed by a processor, the processor executes the method according to any one of claims 1-10. 14.一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现根据权利要求1~10中任一项所述的方法。14. A computer program product comprising a computer program, the computer program implementing the method according to any one of claims 1-10 when executed by a processor.
CN202310826297.6A 2023-07-06 2023-07-06 Method, device, equipment, medium and product for backtracking change history of network equipment Pending CN116708178A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310826297.6A CN116708178A (en) 2023-07-06 2023-07-06 Method, device, equipment, medium and product for backtracking change history of network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310826297.6A CN116708178A (en) 2023-07-06 2023-07-06 Method, device, equipment, medium and product for backtracking change history of network equipment

Publications (1)

Publication Number Publication Date
CN116708178A true CN116708178A (en) 2023-09-05

Family

ID=87839200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310826297.6A Pending CN116708178A (en) 2023-07-06 2023-07-06 Method, device, equipment, medium and product for backtracking change history of network equipment

Country Status (1)

Country Link
CN (1) CN116708178A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117312689A (en) * 2023-11-29 2023-12-29 山东阳光普众信息科技有限公司 Information management platform management analysis method and system, storage medium and intelligent terminal
CN118467558A (en) * 2024-05-24 2024-08-09 浪潮卓数大数据产业发展有限公司 A method, device and medium for updating basic data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030149756A1 (en) * 2002-02-06 2003-08-07 David Grieve Configuration management method and system
CN110659297A (en) * 2019-08-13 2020-01-07 上海陆家嘴国际金融资产交易市场股份有限公司 Data processing method, data processing device, computer equipment and storage medium
CN111767173A (en) * 2020-06-30 2020-10-13 平安科技(深圳)有限公司 Network equipment data processing method, device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030149756A1 (en) * 2002-02-06 2003-08-07 David Grieve Configuration management method and system
CN110659297A (en) * 2019-08-13 2020-01-07 上海陆家嘴国际金融资产交易市场股份有限公司 Data processing method, data processing device, computer equipment and storage medium
CN111767173A (en) * 2020-06-30 2020-10-13 平安科技(深圳)有限公司 Network equipment data processing method, device, computer equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117312689A (en) * 2023-11-29 2023-12-29 山东阳光普众信息科技有限公司 Information management platform management analysis method and system, storage medium and intelligent terminal
CN117312689B (en) * 2023-11-29 2024-02-02 山东阳光普众信息科技有限公司 Information management platform management analysis method and system, storage medium and intelligent terminal
CN118467558A (en) * 2024-05-24 2024-08-09 浪潮卓数大数据产业发展有限公司 A method, device and medium for updating basic data

Similar Documents

Publication Publication Date Title
US11960575B1 (en) Data processing for machine learning using a graphical user interface
US11546380B2 (en) System and method for creation and implementation of data processing workflows using a distributed computational graph
US11886430B1 (en) Intent-based natural language processing system
US11023511B1 (en) Mobile device composite interface for dual-sourced incident management and monitoring system
US10917389B2 (en) Trusted tunnel bridge
US12225049B2 (en) System and methods for integrating datasets and automating transformation workflows using a distributed computational graph
US11196839B1 (en) System and method for classifying API requests in API processing systems using a tree configuration
US11921799B1 (en) Generating and using alert definitions
CN113987074A (en) Distributed service full-link monitoring method and device, electronic equipment and storage medium
US11093837B2 (en) Event forecasting
CN116708178A (en) Method, device, equipment, medium and product for backtracking change history of network equipment
US11669533B1 (en) Inferring sourcetype based on match rates for rule packages
US11620541B1 (en) Custom use case framework in computer analytics system
US11580138B2 (en) Virtual research platform
US10757186B2 (en) Uploading user and system data from a source location to a destination location
US11729074B1 (en) Online data decomposition
CN112818026B (en) Data integration method and device
KR100817562B1 (en) Indexing method of large log files, a computer-readable recording medium containing the same, and an indexing system for performing the same
US20230319062A1 (en) System and method for predicting investigation queries based on prior investigations
CN117271584A (en) Data processing method and device, computer readable storage medium and electronic equipment
US12079304B1 (en) Online data forecasting
CN115567601A (en) Request processing method and device, electronic equipment and storage medium
Trapp et al. Private Data Hub
CN119828932A (en) Text display method and device
CN118296023A (en) Data comparison method, device, equipment, medium and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载