CN115277406A - Work order tracing method and device, computer equipment, storage medium and program product - Google Patents

Work order tracing method and device, computer equipment, storage medium and program product Download PDF

Info

Publication number
CN115277406A
CN115277406A CN202210870040.6A CN202210870040A CN115277406A CN 115277406 A CN115277406 A CN 115277406A CN 202210870040 A CN202210870040 A CN 202210870040A CN 115277406 A CN115277406 A CN 115277406A
Authority
CN
China
Prior art keywords
configuration
configuration rule
configuration file
work order
rule
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
CN202210870040.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 CN202210870040.6A priority Critical patent/CN115277406A/en
Publication of CN115277406A publication Critical patent/CN115277406A/en
Pending legal-status Critical Current

Links

Images

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/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models

Abstract

The application relates to a work order tracing method, a work order tracing device, computer equipment, a storage medium and a program product. The method is applied to the technical field of the Internet of things, the computer equipment receives a current first configuration file sent by the network equipment, and determines a configuration rule changed in the first configuration file according to the first configuration file and a last received second configuration file; thereby associating the changed configuration rule with the change requirement work order; the first configuration file is a file generated by the network equipment according to the currently acquired change demand work order. According to the method and the device, after the network equipment generates the first configuration file according to the currently acquired change requirement work order, the changed configuration rule in the first configuration file is determined according to the first configuration file and the second configuration file, so that the changed configuration rule is associated with the change requirement work order, the source tracing of the existing network equipment configuration change requirement work order is realized, and convenience is provided for operation and maintenance work such as follow-up inquiry and troubleshooting.

Description

Work order tracing method and device, computer equipment, storage medium and program product
Technical Field
The application relates to the technical field of internet of things, in particular to a work order tracing method, a work order tracing device, computer equipment, a storage medium and a program product.
Background
With the gradual increase of the current traffic, the network scale and complexity are improved, and the number of work orders required by the change of network equipment is gradually increased. In order to better verify the result of changing configuration, eliminate network access failure and manage the existing network configuration, the work order of change requirements needs to be traced.
The existing network configuration change is based on a work order submitted by an applicant to perform relevant change requirement analysis, change scheme preparation, change scheme examination and change implementation actions, namely a series of scheme configuration changes are finally issued to network equipment, and the change work order is finished, but the existing network configuration change cannot realize an effective change requirement work order tracing function.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a method, an apparatus, a computer device, a storage medium, and a program product for tracing a work order, which can provide technical support for daily operation and maintenance of a network device and a work order required for change.
In a first aspect, the present application provides a work order tracing method, including:
receiving a current first configuration file sent by network equipment, wherein the first configuration file is a file generated by the network equipment according to a current change demand work order, and the first configuration file comprises at least one configuration rule;
determining a configuration rule changed in the first configuration file according to the first configuration file and a second configuration file received last time;
and associating the changed configuration rule with the change requirement work order.
In one embodiment, the determining, according to the first configuration file and the second configuration file received last time, the configuration rule that is changed in the first configuration file includes:
analyzing the first configuration file to obtain the at least one configuration rule;
comparing the at least one configuration rule with a corresponding configuration rule in the second configuration file to obtain a comparison result;
and determining the changed configuration rule according to the comparison result.
In one embodiment, the determining, according to the comparison result, the changed configuration rule includes:
and if the comparison result shows that the first configuration file comprises the newly added configuration rule, taking the newly added configuration rule as the changed configuration rule.
In one embodiment, the determining the changed configuration rule according to the comparison result includes:
and if the comparison result is that the first configuration file does not include the configuration rule in the second configuration file, taking the configuration rule which is not included in the second configuration file in the first configuration file as the changed configuration rule.
In one embodiment, the determining the changed configuration rule according to the comparison result includes:
if the comparison result is that the first configuration file comprises the modified configuration rule, taking the modified configuration rule as the changed configuration rule;
and the modified configuration rule is a rule obtained by modifying the configuration rule in the second configuration file.
In one embodiment, the associating the changed configuration rule with the change requirement work order includes:
determining identification information corresponding to the modified configuration rule, and determining a target work order identification which is the same as the identification information;
comparing the modified configuration rule with a candidate change demand work order to determine a candidate change demand work order which is the same as the modified configuration rule from the candidate change demand work order, wherein the candidate change demand work order is a change demand work order corresponding to the target work order identifier;
and associating the modified configuration rule with the candidate change requirement work order with the same modified configuration rule.
In a second aspect, the present application further provides a work order tracing apparatus, the apparatus includes:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a current first configuration file sent by network equipment, the first configuration file is a file generated by the network equipment according to a current change demand work order, and the first configuration file comprises at least one configuration rule;
the determining module is used for determining a configuration rule changed in the first configuration file according to the first configuration file and a second configuration file received last time;
and the association module is used for associating the changed configuration rule with the change requirement work order.
In a third aspect, the present application further provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the following steps when executing the computer program:
receiving a current first configuration file sent by network equipment, wherein the first configuration file is a file generated by the network equipment according to a current change demand work order, and the first configuration file comprises at least one configuration rule;
determining a configuration rule changed in the first configuration file according to the first configuration file and a second configuration file received last time;
and associating the changed configuration rule with the change requirement work order.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
receiving a current first configuration file sent by network equipment, wherein the first configuration file is a file generated by the network equipment according to a current change demand work order, and the first configuration file comprises at least one configuration rule;
determining a configuration rule changed in the first configuration file according to the first configuration file and a second configuration file received last time;
and associating the changed configuration rule with the change requirement work order.
In a fifth aspect, the present application further provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of:
receiving a current first configuration file sent by network equipment, wherein the first configuration file is a file generated by the network equipment according to a current change demand work order, and the first configuration file comprises at least one configuration rule;
determining a configuration rule changed in the first configuration file according to the first configuration file and a second configuration file received last time;
and associating the changed configuration rule with the change requirement work order.
The work order tracing method, the work order tracing device, the computer equipment, the storage medium and the computer program product are applied to the technical field of the Internet of things, wherein the computer equipment receives a current first configuration file sent by the network equipment, and determines a configuration rule changed in the first configuration file according to the first configuration file and a last received second configuration file; thereby associating the changed configuration rule with the change requirement work order. The first configuration file is a file generated by the network device according to the change demand work order acquired at the current time, wherein the first configuration file comprises at least one configuration rule. Due to the fact that the network scale is continuously enlarged, the network equipment is rapidly expanded, in the application, after the network equipment generates a first configuration file according to a change demand work order obtained at the present time, the network equipment can be configured, and then a configuration rule changed in the first configuration file is determined according to the first configuration file and a second configuration file received at the last time, so that the configuration rule changed is associated with the change demand work order, the source tracing of the change demand work order configured by the existing network equipment is achieved, and great convenience is provided for a series of follow-up operation and maintenance work such as inquiry, troubleshooting and the like.
Drawings
FIG. 1 is a diagram of an application environment for the work order tracing method in one embodiment;
FIG. 2 is a schematic flow chart diagram of a work order tracing method in one embodiment;
FIG. 3 is a flow diagram illustrating the process of determining configuration rules for changes in a first configuration file, according to one embodiment;
FIG. 4 is a flow diagram that illustrates associating changed configuration rules with a change requirement work order, according to an embodiment;
FIG. 5 is a block diagram of a work order tracing apparatus in one embodiment;
FIG. 6 is a diagram of the internal structure of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It should be noted that the work order tracing method, apparatus, computer device, storage medium, and program product disclosed in the present application may be applied in the technical field of the internet of things or other technical fields.
The existing network configuration change is based on a change requirement work order (SD order) submitted by an applicant to perform related change requirement analysis, change scheme preparation, change scheme verification and change implementation actions, namely, a series of scheme configuration changes are finally issued to network equipment, the network equipment is configured according to the change requirement work order, and the operation of the change requirement work order is finished, so that the change configuration result cannot be verified, the failure of network access cannot be eliminated, and the management of the existing network configuration is difficult.
The work order tracing method provided by the embodiment of the application can be applied to the application environment shown in fig. 1. The application environment comprises a computer device which can be a server, and the internal structure diagram of the computer device can be shown in FIG. 1. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used for storing data related to the change demand work order and the configuration file. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a work order tracing method. The server may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers.
In one embodiment, as shown in fig. 2, a work order tracing method is provided, which is described by taking the example that the method is applied to the computer device in fig. 1, and includes the following steps:
s201, receiving a current first configuration file sent by the network device, wherein the first configuration file is a file generated by the network device according to a current change demand work order, and the first configuration file comprises at least one configuration rule.
Optionally, the change demand work order includes application change demand work order identification information, change time, change reason, and change application demand elements, where the change application demand elements include basic elements such as a source address, a source port, a destination address, a destination port, and a service type. For example, the policy table of the network firewall device is composed of a series of policy rules, where the rules mainly include five basic elements, such as five elements (five tuples), a source address, a destination address, a source port, a destination port, and a service type, and therefore, when the network firewall device is configured, the corresponding configuration rule in the generated first configuration file should also include the above five basic elements, and the rule composed of these elements sets operations executed on the firewall by a packet of some network communications. There are two general operations, permit (permit) and deny (deny), which determine whether the packet can be passed through the firewall, thus playing the role of protecting the network security.
Optionally, the configuration rule includes elements such as configuration rule identification information, a source address, a source port, a destination address, a destination port, and a service type.
In this embodiment, the network device may be logged in the computer device, the work order change request may be issued to the network device, and the network device may be configured according to the work order request. For example, at 22:00-23:00, issuing the requirement of the change work order to the network equipment, and configuring the network equipment.
In this embodiment, the first configuration file may be collected regularly every day, and the computer device receives the current first configuration file sent by the network device. For example, 7:00, collecting the first configuration file and sending the first configuration file to the computer equipment.
S202, determining the changed configuration rule in the first configuration file according to the first configuration file and the second configuration file received last time.
In this embodiment, the configuration rule changed in the first configuration file is determined according to the first configuration file and the second configuration file received last time. Namely, the configuration rule changed in the first configuration file is determined according to the configuration files of the front time node and the rear time node. Assume, at 2022.0706 22:00-23:00, issuing the requirement of the changed work order to the network equipment, configuring the network equipment, and in 7 of 2022.0707: 00 a first configuration file is acquired, 22 at 2022.0705: 00-23:00, issuing the requirement of the changed work order to the network equipment, configuring the network equipment, and in 7 of 2022.0706: 00 collects a second configuration file.
In this embodiment, the first configuration file is analyzed to obtain the configuration rule corresponding to the first configuration file, and the configuration rule corresponding to the first configuration file is compared with the configuration rule corresponding to the second configuration file to determine the configuration rule that is changed in the first configuration file. Optionally, the configuration rule corresponding to the second configuration file may be stored in the database after being analyzed, and when performing comparison, the configuration rule is directly obtained.
In this embodiment, the configuration rule changed in the first configuration file is determined according to the first configuration file and the second configuration file received last time. For example, if the first configuration file includes configuration rule 1, configuration rule 2, and configuration rule 3, and the second configuration file includes configuration rule 1 and configuration rule 2, it is determined that configuration rule 3 is the configuration rule that has been changed in the first configuration file.
S203, the changed configuration rule is associated with the change requirement work order.
In this embodiment, the configuration rule has identification information (i.e., the first ID number of the configuration rule), the change requirement work order has work order identification information (i.e., the second ID number of the change requirement work order), and the subsequent configuration plan preparation needs to be based on the application requirement element in the change requirement work order, that is, the configuration plan issued to the network device and the change requirement and the application requirement element in the work order are finally implemented and correspond to each other one by one, so it is generally considered that the first ID number of the configuration rule and the second ID number of the change requirement work order are consistent before and after the configuration plan is configured, that is, the network device is configured according to the number 3 in the ID number of the change requirement work order, and the ID number of the configuration rule corresponding to the acquired first configuration file is also the number 3.
In this embodiment, the changed configuration rule and the change demand work order may be associated with each other according to the first ID number of the configuration rule and the second ID number of the change demand work order. Or comparing the specific elements in the changed configuration rule with the change application requirement elements in the change requirement work order one by one, and associating the changed configuration rule with the change requirement work order when the specific elements in the configuration rule are consistent with the change application requirement elements, so as to store the associated information in the database.
In the work order tracing method, in the technical field of the internet of things, computer equipment receives a current first configuration file sent by network equipment, and determines a configuration rule changed in the first configuration file according to the first configuration file and a last received second configuration file; thereby associating the changed configuration rule with the change requirement work order. The first configuration file is a file generated by the network device according to the change demand work order acquired at the current time, wherein the first configuration file comprises at least one configuration rule. Due to the fact that the network scale is continuously enlarged, the network equipment is rapidly expanded, in the application, after the network equipment generates a first configuration file according to a change demand work order obtained at the present time, the network equipment can be configured, and then a configuration rule changed in the first configuration file is determined according to the first configuration file and a second configuration file received at the last time, so that the configuration rule changed is associated with the change demand work order, the source tracing of the change demand work order configured by the existing network equipment is achieved, and great convenience is provided for a series of follow-up operation and maintenance work such as inquiry, troubleshooting and the like.
Fig. 3 is a schematic flowchart of an embodiment of a process for determining a configuration rule of a change in a first configuration file, and as shown in fig. 3, the embodiment of the present application relates to a possible implementation manner of how to determine a configuration rule of a change in a first configuration file according to the first configuration file and a second configuration file received last time, including the following steps:
s301, analyzing the first configuration file to obtain at least one configuration rule.
In this embodiment, the first configuration file is analyzed to obtain at least one configuration rule, and further, format conversion may be performed on a source address and a destination address in the configuration rule, and the converted configuration rule is stored. The Ip address (source address, destination address) is generally expressed in a dotted decimal system, for example, the Ip address is 78.26.35.3, and the Ip address can be divided into 4 binary numbers of 8 bits, that is, 32 bits, according to bytes.
Dot decimal notation: 78.26.35.3,
32-bit binary: 01001110.00011010.00100011.00000110
The 32 bit 2 is converted to decimal number, i.e. 1+ 2^31+ 1+ 2^28+ 1+ 2^27+ … … + 1+ 2^1 ^ 1310335747.
For example, P1 rule 1
Source Ip 83.67.42.14
Source Port 1-65535
Destination Ip 78.26.35.3
Destination Port 443
Protocol TCP
Action permit}
The format of the stored data and the associated fields (non-relational database) can be expressed as: { id:1, src: [1396910606, 1396910606], port: [443, 443], dst: [1310335747, 1310335747], pro: tcp, action: permit }.
S302, comparing at least one configuration rule with a corresponding configuration rule in the second configuration file to obtain a comparison result.
In this embodiment, the at least one configuration rule is compared with the corresponding configuration rule in the second configuration file to obtain a comparison result. At least one configuration rule in the first configuration file is compared with a corresponding configuration rule in the second configuration file, and the obtained comparison result may be that a certain configuration rule is added or reduced, or may be that a certain configuration rule is reduced while a certain configuration rule is added. Or that a change has occurred to a certain configuration rule in the second configuration file.
In this embodiment, for example, the configuration rule with the configuration rule identification information p _12345 in the second configuration file is represented as:
p_12345{rule name p_12345
Source Ip 67.45.13.126
Destination Ip 145.32.120.8
Destination Port 8088
Protocol TCP
Action permit}
the configuration rule with configuration rule identification information p _12345 in the first configuration file is represented as:
p_12345{rule name p_12345
Source Ip 67.45.13.126
Destination Ip1 145.32.120.8
Destination Ip2 78.89.67.3
Destination Port 8088
Protocol TCP
Action permit}
in this embodiment, according to the comparison between the configuration rule of p _12345 in the first profile and the configuration rule of p _12345 in the second profile, if a Destination address Destination Ip2 78.89.67.3 is newly added to the configuration rule of p _12345 in the first profile, the configuration rule of p _12345 in the first profile is changed.
S303, determining the changed configuration rule according to the comparison result.
In this embodiment, since the first configuration file may directly change the configuration rule, that is, add or subtract a configuration rule, or change a specific element of an existing configuration rule in the second configuration file, the comparison result may be divided into the following three cases. The comparison result may be that the first configuration file includes the newly added configuration rule, the comparison result is that the first configuration file does not include the configuration rule in the second configuration file, and the comparison result is that the first configuration file includes the modified configuration rule.
Specifically, determining the configuration rule that is changed according to the comparison result includes the following three ways:
the first mode is as follows: and if the comparison result shows that the first configuration file comprises the newly added configuration rule, taking the newly added configuration rule as the changed configuration rule.
In this embodiment, after the first configuration file is analyzed, the configuration rule corresponding to the first configuration file includes the configuration rule of p _12345, the configuration rule of p _12346, and the configuration rule of p _12347, and the configuration rule corresponding to the second first configuration file includes the configuration rule of p _12345 and the configuration rule of p _12346, so that the configuration rule of p _12347 in the first configuration file is the newly added configuration rule, and the configuration rule of p _12347 is the changed configuration rule.
The second mode is as follows: and if the comparison result is that the first configuration file does not include the configuration rule in the second configuration file, taking the configuration rule which is not included in the second configuration file in the first configuration file as the changed configuration rule.
In this embodiment, after analyzing the first configuration file, the configuration rule corresponding to the first configuration file is obtained to include the configuration rule of p _12345 and the configuration rule of p _12346, and the configuration rule corresponding to the second first configuration file includes the configuration rule of p _12345, the configuration rule of p _12346, and the configuration rule of p _12347, so that if the configuration rule of p _12347 is deleted from the first configuration file with respect to the second configuration file, the configuration rule of p _12347 is used as the changed configuration rule.
The third mode is as follows: if the comparison result is that the first configuration file comprises the modified configuration rule, taking the modified configuration rule as the changed configuration rule;
the modified configuration rule is obtained by modifying the configuration rule in the second configuration file.
In the present embodiment, the modified configuration rule is generally an addition or subtraction to three elements of the source address, the destination address and the destination port. For example, in S302, the configuration rule of p _12345 is to add a new destination address, or to reduce a source address. If other elements in the configuration rule change, the configuration is considered to be abnormal, and abnormal alarm information can be output.
In this embodiment, for example, the configuration rule with the configuration rule identification information p _12345 in the second configuration file is represented as:
p_12345{rule name p_12345
Source Ip 67.45.13.126
Destination Ip1 145.32.120.8
Destination Ip2 78.89.67.3
Destination Port 8088
Protocol TCP
Action permit}
the configuration rule with configuration rule identification information p _12345 in the first configuration file is represented as:
p_12345{rule name p_12345
Source Ip 67.45.13.126
Destination Ip 145.32.120.8
Destination Port 8088
Protocol TCP
Action permit}
in this embodiment, according to the comparison between the configuration rule of p _12345 in the first configuration file and the configuration rule of p _12345 in the second configuration file, if one Destination Ip2 78.89.67.3 is deleted from the configuration rule of p _12345 in the first configuration file, the comparison result is that the configuration rule of p _12345 in the first configuration file is changed.
The changed arrangement rule may be any one of the above three methods, may be a combination of any two methods, or may be any one of the three methods. When the three modes exist, namely the configuration rule corresponding to the first configuration file has a new configuration rule, a deleted configuration rule and a modified configuration rule compared with the configuration rule corresponding to the second configuration file.
In the embodiment of the application, a first configuration file is firstly analyzed to obtain at least one configuration rule, the at least one configuration rule is compared with a corresponding configuration rule in a second configuration file to obtain a comparison result, and when the comparison result shows that the first configuration file comprises a newly added configuration rule, the newly added configuration rule is used as a changed configuration rule; if the comparison result is that the first configuration file does not include the configuration rule in the second configuration file, taking the configuration rule which is not included in the second configuration file in the first configuration file as the changed configuration rule; if the comparison result is that the first configuration file comprises the modified configuration rule, taking the modified configuration rule as the changed configuration rule; the modified configuration rule is obtained by modifying the configuration rule in the second configuration file. The method divides the comparison result into three cases, and provides multiple possibilities.
Fig. 4 is a schematic flow chart illustrating associating a changed configuration rule with a change requirement work order in an embodiment, and as shown in fig. 4, the embodiment of the present application relates to a possible implementation manner of how to associate a changed configuration rule with a change requirement work order, which includes the following steps:
s401, determining identification information corresponding to the modified configuration rule, and determining a target work order identification identical to the identification information.
In this embodiment, the computer device determines, according to the third manner in S303, the identification information corresponding to the modified configuration rule, and because the identification information corresponding to the configuration rule corresponds to the identification information of the change-required work order, the computer device can directly determine the target work order identification with the same identification information. For example, if the identification information corresponding to the modified configuration rule is p _12345, the target work order that is the same as the identification information is identified as p _12345.
S402, comparing the modified configuration rule with the candidate change demand work order to determine the candidate change demand work order which is the same as the modified configuration rule from the candidate change demand work order, wherein the candidate change demand work order is the change demand work order corresponding to the target work order identifier.
And the candidate change demand work order is the change demand work order corresponding to the target work order identification. Taking the above S401 as an example, the candidate change demand work order is the change demand work order corresponding to the target work order identifier p _12345.
In this embodiment, since the modified configuration rule includes a modified source address, a modified destination port, and the like, a plurality of candidate change-requiring work orders may exist under the target work order identifier of the same identifier information, and the candidate change-requiring work orders correspond to different modified source addresses, modified destination addresses, and different work orders of the destination port, respectively, so that the modified configuration rule and the candidate change-requiring work orders are compared one by one, and a candidate change-requiring work order consistent with the modified configuration rule is determined from the candidate change-requiring work orders. For example, the candidate change demand work order is a change demand work order with a target work order identifier of p _12345, and the candidate change demand work order includes three different work orders, where the change demand work order 1 is a new source address, the change demand work order 2 is a new destination address, and the change demand work order 3 is a deleted destination address. And respectively comparing the modified configuration rule with the change requirement work order 1, the change requirement work order 2 and the change requirement work order 3, namely comparing each element in the modified configuration rule with the element in the change requirement work order one by one, thereby determining the candidate change requirement work order which is the same as the modified configuration rule.
And S403, associating the modified configuration rule with the candidate change requirement work order with the same modified configuration rule.
In this embodiment, the modified configuration rule is associated with the candidate change requirement work order having the same modified configuration rule. Assuming that the element in the modified arrangement rule is the same as the element in the change demand work order 1 in the change demand work order corresponding to p _12345, the change demand work order 1 in the change demand work order corresponding to p _12345 is associated with the modified arrangement rule.
It should be noted that, if the newly added configuration rule is used as the changed configuration rule, or the first configuration file does not include the configuration rule in the second configuration file as the changed configuration rule, and the changed configuration rule is associated with the change-requiring work order, because the newly added configuration rule and the deleted configuration rule have uniqueness, only the identification information of the changed configuration rule and the target work order identification identical to the identification information need to be determined, and the changed configuration rule is associated with the change-requiring work order according to the identification information and the target work order identification.
In the embodiment of the application, the modified configuration rule is compared with the candidate change demand work order by determining the identification information corresponding to the modified configuration rule and the target work order identification which is the same as the identification information, so that the candidate change demand work order which is the same as the modified configuration rule is determined from the candidate change demand work order. Method for producing a composite material
It should be noted that, for the acquisition of the configuration file of the network device, the analysis of the configuration file, and the acquisition of the difference data of the configuration file (i.e., the difference between the configuration rule in the first configuration file and the configuration rule in the second configuration file), a distributed queue (a queue technology) may be used to perform parallel operations, which do not affect each other, thereby improving the efficiency. And the acquired difference data and the related change demand work order data are stored in the mongodb database, and the mongodb database supports various types of data insertion and query, so that the experience effect is good.
It should be understood that, although the steps in the flowcharts related to the embodiments are shown in sequence as indicated by the arrows, the steps are not necessarily executed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the above embodiments may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the application also provides a work order tracing device for realizing the work order tracing method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the method, so that specific limitations in one or more embodiments of the work order tracing device provided below can be referred to the limitations of the work order tracing method in the foregoing, and details are not described herein again.
In one embodiment, as shown in fig. 5, there is provided a work order tracing apparatus, including: a receiving module 11, a determining module 12 and an associating module 13, wherein:
the receiving module 11 is configured to receive a current first configuration file sent by the network device, where the first configuration file is a file generated by the network device according to a current change demand work order acquired at the current time, and the first configuration file includes at least one configuration rule;
a determining module 12, configured to determine, according to the first configuration file and the second configuration file received last time, a configuration rule that is changed in the first configuration file;
and the association module 13 is configured to associate the changed configuration rule with the change requirement work order.
In one embodiment, the determining module includes:
the analysis unit is used for analyzing the first configuration file to obtain at least one configuration rule;
the first comparison unit is used for comparing at least one configuration rule with a corresponding configuration rule in the second configuration file to obtain a comparison result;
and the first determining unit is used for determining the changed configuration rule according to the comparison result.
In one embodiment, the first determining unit is further configured to take the newly added configuration rule as the changed configuration rule if the comparison result is that the first configuration file includes the newly added configuration rule.
In an embodiment, the first determining unit is further configured to, if the comparison result is that the configuration rule in the second configuration file is not included in the first configuration file, take the configuration rule in the second configuration file not included in the first configuration file as the changed configuration rule.
In an embodiment, the first determining unit is further configured to, if the comparison result is that the first configuration file includes the modified configuration rule, take the modified configuration rule as the changed configuration rule;
the modified configuration rule is obtained by modifying the configuration rule in the second configuration file.
In one embodiment, the association module includes:
the second determining unit is used for determining the identification information corresponding to the modified configuration rule and determining the target work order identification which is the same as the identification information;
the second comparison unit is used for comparing the modified configuration rule with the candidate change demand work order so as to determine the candidate change demand work order which is the same as the modified configuration rule from the candidate change demand work order, wherein the candidate change demand work order is the change demand work order corresponding to the target work order identifier;
and the association unit is used for associating the modified configuration rule with the candidate change requirement work order with the same modified configuration rule.
All or part of each module in the work order tracing device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a work order tracing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
receiving a current first configuration file sent by network equipment, wherein the first configuration file is a file generated by the network equipment according to a current change demand work order, and the first configuration file comprises at least one configuration rule;
determining a configuration rule changed in the first configuration file according to the first configuration file and a second configuration file received last time;
and associating the changed configuration rule with the change requirement work order.
In one embodiment, the processor when executing the computer program further performs the steps of:
analyzing the first configuration file to obtain at least one configuration rule;
comparing at least one configuration rule with a corresponding configuration rule in the second configuration file to obtain a comparison result;
and determining the changed configuration rule according to the comparison result.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and if the comparison result shows that the first configuration file comprises the newly added configuration rule, taking the newly added configuration rule as the changed configuration rule.
In one embodiment, the processor when executing the computer program further performs the steps of:
and if the comparison result is that the first configuration file does not include the configuration rule in the second configuration file, taking the configuration rule which is not included in the second configuration file in the first configuration file as the changed configuration rule.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
if the comparison result is that the first configuration file comprises the modified configuration rule, taking the modified configuration rule as the changed configuration rule;
the modified configuration rule is obtained by modifying the configuration rule in the second configuration file.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
determining identification information corresponding to the modified configuration rule, and determining a target work order identification which is the same as the identification information;
comparing the modified configuration rule with the candidate change demand work order to determine a candidate change demand work order which is the same as the modified configuration rule from the candidate change demand work order, wherein the candidate change demand work order is a change demand work order corresponding to the target work order identifier;
and associating the modified configuration rule with the candidate change requirement work order with the same modified configuration rule.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a current first configuration file sent by network equipment, wherein the first configuration file is a file generated by the network equipment according to a current change demand work order, and the first configuration file comprises at least one configuration rule;
determining a configuration rule changed in the first configuration file according to the first configuration file and a second configuration file received last time;
and associating the changed configuration rule with the change requirement work order.
In one embodiment, the computer program when executed by the processor further performs the steps of:
analyzing the first configuration file to obtain at least one configuration rule;
comparing at least one configuration rule with a corresponding configuration rule in the second configuration file to obtain a comparison result;
and determining the changed configuration rule according to the comparison result.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and if the comparison result shows that the first configuration file comprises the newly added configuration rule, taking the newly added configuration rule as the changed configuration rule.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and if the comparison result is that the first configuration file does not include the configuration rule in the second configuration file, taking the configuration rule which is not included in the second configuration file in the first configuration file as the changed configuration rule.
In one embodiment, the computer program when executed by the processor further performs the steps of:
if the comparison result is that the first configuration file comprises the modified configuration rule, taking the modified configuration rule as the changed configuration rule;
the modified configuration rule is obtained by modifying the configuration rule in the second configuration file.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining identification information corresponding to the modified configuration rule, and determining a target work order identification which is the same as the identification information;
comparing the modified configuration rule with the candidate change demand work order to determine a candidate change demand work order which is the same as the modified configuration rule from the candidate change demand work order, wherein the candidate change demand work order is a change demand work order corresponding to the target work order identifier;
and associating the modified configuration rule with the candidate change requirement work order with the same modified configuration rule.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, performs the steps of:
receiving a current first configuration file sent by network equipment, wherein the first configuration file is a file generated by the network equipment according to a current change demand work order, and the first configuration file comprises at least one configuration rule;
determining a configuration rule changed in the first configuration file according to the first configuration file and a second configuration file received last time;
and associating the changed configuration rule with the change requirement work order.
In one embodiment, the computer program when executed by the processor further performs the steps of:
analyzing the first configuration file to obtain at least one configuration rule;
comparing at least one configuration rule with a corresponding configuration rule in the second configuration file to obtain a comparison result;
and determining the changed configuration rule according to the comparison result.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and if the comparison result shows that the first configuration file comprises the newly added configuration rule, taking the newly added configuration rule as the changed configuration rule.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and if the comparison result is that the first configuration file does not include the configuration rule in the second configuration file, taking the configuration rule which is not included in the second configuration file in the first configuration file as the changed configuration rule.
In one embodiment, the computer program when executed by the processor further performs the steps of:
if the comparison result is that the first configuration file comprises the modified configuration rule, taking the modified configuration rule as the changed configuration rule;
the modified configuration rule is obtained by modifying the configuration rule in the second configuration file.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining identification information corresponding to the modified configuration rule, and determining a target work order identification which is the same as the identification information;
comparing the modified configuration rule with the candidate change demand work order to determine a candidate change demand work order which is the same as the modified configuration rule from the candidate change demand work order, wherein the candidate change demand work order is a change demand work order corresponding to the target work order identifier;
and associating the modified configuration rule with the candidate change requirement work order with the same modified configuration rule.
It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), magnetic Random Access Memory (MRAM), ferroelectric Random Access Memory (FRAM), phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A work order tracing method is characterized by comprising the following steps:
receiving a current first configuration file sent by network equipment, wherein the first configuration file is a file generated by the network equipment according to a current change demand work order, and the first configuration file comprises at least one configuration rule;
determining a configuration rule changed in the first configuration file according to the first configuration file and a second configuration file received last time;
and associating the changed configuration rule with the change requirement work order.
2. The method according to claim 1, wherein the determining the configuration rule changed in the first configuration file according to the first configuration file and the second configuration file received last time comprises:
analyzing the first configuration file to obtain the at least one configuration rule;
comparing the at least one configuration rule with a corresponding configuration rule in the second configuration file to obtain a comparison result;
and determining the changed configuration rule according to the comparison result.
3. The method of claim 2, wherein the determining the changed configuration rule according to the comparison result comprises:
and if the comparison result shows that the first configuration file comprises the newly added configuration rule, taking the newly added configuration rule as the changed configuration rule.
4. The method of claim 2, wherein determining the changed configuration rule according to the comparison comprises:
and if the comparison result is that the first configuration file does not include the configuration rule in the second configuration file, taking the configuration rule which is not included in the second configuration file in the first configuration file as the changed configuration rule.
5. The method of claim 2, wherein determining the changed configuration rule according to the comparison comprises:
if the comparison result is that the first configuration file comprises the modified configuration rule, taking the modified configuration rule as the changed configuration rule;
and the modified configuration rule is a rule obtained by modifying the configuration rule in the second configuration file.
6. The method of claim 5, wherein associating the changed configuration rule with the change requirements worksheet comprises:
determining identification information corresponding to the modified configuration rule, and determining a target work order identification which is the same as the identification information;
comparing the modified configuration rule with candidate change requirement work orders to determine the candidate change requirement work order which is the same as the modified configuration rule from the candidate change requirement work orders, wherein the candidate change requirement work order is the change requirement work order corresponding to the target work order identifier;
and associating the modified configuration rule with the candidate change requirement work order with the same modified configuration rule.
7. A work order traceability device, the device comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a current first configuration file sent by network equipment, the first configuration file is a file generated by the network equipment according to a current change demand work order, and the first configuration file comprises at least one configuration rule;
the determining module is used for determining the changed configuration rule in the first configuration file according to the first configuration file and the second configuration file received last time;
and the association module is used for associating the changed configuration rule with the change requirement work order.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 6 when executed by a processor.
CN202210870040.6A 2022-07-22 2022-07-22 Work order tracing method and device, computer equipment, storage medium and program product Pending CN115277406A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210870040.6A CN115277406A (en) 2022-07-22 2022-07-22 Work order tracing method and device, computer equipment, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210870040.6A CN115277406A (en) 2022-07-22 2022-07-22 Work order tracing method and device, computer equipment, storage medium and program product

Publications (1)

Publication Number Publication Date
CN115277406A true CN115277406A (en) 2022-11-01

Family

ID=83769370

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210870040.6A Pending CN115277406A (en) 2022-07-22 2022-07-22 Work order tracing method and device, computer equipment, storage medium and program product

Country Status (1)

Country Link
CN (1) CN115277406A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020038262A1 (en) * 2018-08-21 2020-02-27 阿里巴巴集团控股有限公司 Work order processing method and apparatus
CN111767173A (en) * 2020-06-30 2020-10-13 平安科技(深圳)有限公司 Network equipment data processing method and device, computer equipment and storage medium
CN113507392A (en) * 2021-07-22 2021-10-15 中国工商银行股份有限公司 Network operation and maintenance method, device, electronic equipment, medium and program product
CN114297038A (en) * 2021-12-29 2022-04-08 武汉思普崚技术有限公司 Method for continuously monitoring equipment configuration change
CN114461644A (en) * 2022-01-30 2022-05-10 中国农业银行股份有限公司 Data acquisition method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020038262A1 (en) * 2018-08-21 2020-02-27 阿里巴巴集团控股有限公司 Work order processing method and apparatus
CN111767173A (en) * 2020-06-30 2020-10-13 平安科技(深圳)有限公司 Network equipment data processing method and device, computer equipment and storage medium
CN113507392A (en) * 2021-07-22 2021-10-15 中国工商银行股份有限公司 Network operation and maintenance method, device, electronic equipment, medium and program product
CN114297038A (en) * 2021-12-29 2022-04-08 武汉思普崚技术有限公司 Method for continuously monitoring equipment configuration change
CN114461644A (en) * 2022-01-30 2022-05-10 中国农业银行股份有限公司 Data acquisition method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US11095451B2 (en) Optimal data storage configuration in a blockchain
US9202078B2 (en) Data perturbation and anonymization using one way hash
CN110750436B (en) Layered testing method and device, computer readable medium and electronic equipment
CN111177302B (en) Service bill processing method, device, computer equipment and storage medium
CN108769111A (en) A kind of server connection method, computer readable storage medium and terminal device
CN115470156A (en) RDMA-based memory use method, system, electronic device and storage medium
CN115659417A (en) Audit log storage method, audit log verification method, audit log storage device, audit log verification device and computer equipment
CN112182004A (en) Method and device for viewing data in real time, computer equipment and storage medium
CN111522821A (en) Dimension table data storage method and device, computer equipment and storage medium
CN114089921A (en) Power system data storage method and device, computer equipment and storage medium
WO2022012162A1 (en) Matrix operation-based data encryption method and apparatus, electronic device, and storage medium
CN116800671A (en) Data transmission method, apparatus, computer device, storage medium, and program product
CN115277406A (en) Work order tracing method and device, computer equipment, storage medium and program product
CN110851758A (en) Webpage visitor number statistical method and device
Le et al. AirCargoChain: a distributed and scalable data sharing approach of blockchain for air cargo
WO2019024238A1 (en) Range value data statistical method and system, electronic device, and computer readable storage medium
WO2015111225A1 (en) Component management system, component management device, component management method, and program
CN109783523B (en) Data processing method, device, equipment and storage medium
CN113194075B (en) Access request processing method, device, equipment and storage medium
CN112261134B (en) Network data access auditing method, device, equipment and storage medium
CN116450467A (en) Monitoring method and device for distributed system, computer equipment and storage medium
CN115589318A (en) Policy compression method, apparatus, device, storage medium and computer program product
CN115729790A (en) Flow observation method and device, computer equipment and storage medium
CN114745436A (en) Data acquisition method and device, computer equipment and storage medium
CN115866003A (en) Device control method, device, computer device and storage medium

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