Port information generation method, apparatus, device, and storage medium
By acquiring and analyzing port change and historical information, and using a natural language model to adjust the anomaly fields, complete port information is generated, solving the problem of missing information in port detection and ensuring the normal execution of the detection script.
Patent Information
- Application Number
- CN202311068296.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-23
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2043-08-23
AI Technical Summary
In the operation and maintenance scenario of the data management center, the port anomaly detection task may result in partial loss of port information due to network transmission interruption or information loss, which will affect the normal execution of the detection script.
By acquiring change and historical information of the target port, the location of abnormal fields is detected, and based on the historical content and relationships of the abnormal fields, the port information is adjusted and generated using a natural language model to supplement missing fields.
It effectively solves the problem of abnormal detection scripts caused by missing port information, and enables normal port detection to be performed even when there is a lack or omission of operation and maintenance information.
Smart Images

Figure CN116881317B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of computer and the technical field of finance, in particular to a port information generation method, device, equipment, medium and program product. BACKGROUND
[0002] In the operation and maintenance scene of the data management center, a large number of switch ports are involved, and the abnormal detection of a large number of ports is generally completed by executing a port abnormality detection script.
[0003] The correspondence between the port and the information point is also one of the port abnormality detection tasks, but in the process of synchronously uploading the port operation and maintenance information, if the network transmission is interrupted or the transmission information is missing, the port information will be partially missing, which will cause the port detection script to fail to execute normally. SUMMARY
[0004] In view of the above problems, the present disclosure provides a port information generation method, device, equipment, medium and program product.
[0005] According to a first aspect of the present disclosure, a port information generation method is provided, comprising: in response to a change operation performed by a target object on operation and maintenance information of a target port, obtaining change information and historical information of the target port; detecting the change information to determine the position of an abnormal field; obtaining the historical content of the abnormal field by querying the historical information according to the position of the abnormal field; and adjusting the abnormal field based on the historical content of the abnormal field to generate port information.
[0006] According to an embodiment of the present disclosure, the adjustment of the abnormal field based on the historical content of the abnormal field to generate the port information comprises: obtaining the association relationship between the abnormal field and other fields in the change information based on the historical content of the abnormal field; and adjusting the abnormal field according to the other fields based on the association relationship to generate the port information.
[0007] According to an embodiment of the present disclosure, the adjustment of the abnormal field according to the other fields based on the association relationship to generate the port information comprises: determining a target field associated with the abnormal field from the other fields based on the association relationship; and adjusting the abnormal field according to the target field to generate the port information.
[0008] According to an embodiment of the present disclosure, the adjustment of the abnormal field based on the historical content of the abnormal field to generate the port information comprises: inputting the historical content of the abnormal field and the historical information into a natural language model to obtain a candidate associated field associated with the historical content in the historical information; and adjusting the abnormal field according to the candidate associated field to generate the port information.
[0009] According to an embodiment of the present disclosure, the adjusting the abnormal field according to the candidate association field, generating the port information comprises: adjusting the abnormal field according to the candidate association field, generating a candidate field; inputting the candidate field and the change information into a natural language model to obtain an association degree of the candidate field and the change information; determining a target content of the abnormal field from the candidate field based on the association degree; and filling the target content into a position of the abnormal field to generate the port information.
[0010] According to an embodiment of the present disclosure, the detecting the change information and determining the position of the abnormal field comprises: segmenting the change information according to a predetermined template to obtain a plurality of fields; and determining the position of the abnormal field according to an association relationship between the plurality of fields.
[0011] According to an embodiment of the present disclosure, the plurality of fields comprise a device name field, a network address field, and a device location field; and the determining the position of the abnormal field according to the association relationship between the plurality of fields comprises: extracting a first name identifier field and a first location identifier field from the network address field; querying a second name identifier field and a second location identifier field according to the device name field and the device location field; matching the first name identifier field with the second name identifier field to obtain a position of a name abnormal field; and matching the first location identifier field with the second location identifier field to obtain a position of a location abnormal field.
[0012] A second aspect of the present disclosure provides a device for generating port information, comprising: an obtaining module, a detecting module, a querying module, and a generating module. The obtaining module is configured to obtain change information and historical information of a target port in response to a change operation performed by a target object on operation and maintenance information of the target port. The detecting module is configured to detect the change information and determine a position of an abnormal field. The querying module is configured to obtain historical content of the abnormal field by querying the historical information according to the position of the abnormal field. The generating module is configured to adjust the abnormal field based on the historical content of the abnormal field and generate port information.
[0013] According to an embodiment of the present disclosure, the generating module can comprise a first obtaining unit and a first generating unit. The first obtaining unit is configured to obtain an association relationship between the abnormal field and other fields in the change information based on the historical content of the abnormal field. The first generating unit is configured to adjust the abnormal field according to the other fields based on the association relationship and generate the port information.
[0014] According to an embodiment of the present disclosure, the first generating unit comprises a first determining subunit and a first generating subunit. The first determining subunit is configured to determine a target field associated with the abnormal field from the other fields based on the association relationship. The first generating subunit is configured to adjust the abnormal field according to the target field and generate the port information.
[0015] According to an embodiment of the present disclosure, the generating module can include a second obtaining unit and a second generating unit. The second obtaining unit is configured to input the historical content of the abnormal field and the historical information into the natural language model to obtain a candidate associated field associated with the historical content in the historical information. The second generating unit is configured to adjust the abnormal field according to the candidate associated field to generate the port information.
[0016] According to an embodiment of the present disclosure, the second generating unit can include an adjusting subunit, an associating subunit, a second determining subunit and a filling subunit. The adjusting subunit is configured to adjust the abnormal field according to the candidate associated field to generate a candidate field. The associating subunit is configured to input the candidate field and the change information into the natural language model to obtain an association degree of the candidate field and the change information. The second determining subunit is configured to determine a target content of the abnormal field from the candidate field based on the association degree. The filling subunit is configured to fill the target content into a position of the abnormal field to generate the port information.
[0017] According to an embodiment of the present disclosure, the detecting module can include a segmenting unit and a determining unit. The segmenting unit is configured to segment the change information according to a predetermined template to obtain a plurality of fields. The determining unit is configured to determine the position of the abnormal field according to an association relationship between the plurality of fields.
[0018] According to an embodiment of the present disclosure, the plurality of fields include a device name field, a network address field and a device location field; and the determining unit includes an extracting subunit, a querying subunit, a first matching subunit and a second matching subunit. The extracting subunit is configured to extract a first name identifier field and a first location identifier field from the network address field. The querying subunit is configured to query a second name identifier field and a second location identifier field according to the device name field and the device location field. The first matching subunit is configured to match the first name identifier field and the second name identifier field to obtain a position of a name abnormal field. The second matching subunit is configured to match the first location identifier field and the second location identifier field to obtain a position of a location abnormal field.
[0019] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory 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 perform the above-mentioned method for generating port information.
[0020] A fourth aspect of the present disclosure further provides a computer-readable storage medium having stored executable instructions, which, when executed by a processor, cause the processor to perform the above-mentioned method for generating port information.
[0021] The fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the above-mentioned method for generating port information.
[0022] According to the embodiments of the present disclosure, by detecting the change information, determining the abnormal field, and adjusting the abnormal field according to the historical content of the abnormal field in the historical information, the missing field in the operation and maintenance information of the target port during the change process is supplemented, which can effectively solve the technical problem that the normal execution of the port detection script is affected due to the missing of the port information, and realize that the detection of the target port can be normally executed even if the operation and maintenance information of the target port is missing or omitted. BRIEF DESCRIPTION OF DRAWINGS
[0023] The above and other objects, features and advantages of the present disclosure will become more apparent from the following description when taken in conjunction with the accompanying drawings, in which:
[0024] Figure 1 An application scenario diagram of the method, device, equipment, medium and program product for generating port information according to the embodiments of the present disclosure is schematically shown;
[0025] Figure 2 A flowchart of the method for generating port information according to the embodiments of the present disclosure is schematically shown;
[0026] Figure 3 A schematic diagram of generating port information according to the embodiments of the present disclosure is schematically shown;
[0027] Figure 4 A schematic diagram of generating port information according to another embodiment of the present disclosure is schematically shown;
[0028] Figure 5 A structural block diagram of the device for generating port information according to the embodiments of the present disclosure is schematically shown; and
[0029] Figure 6 A block diagram of an electronic device suitable for implementing the method for generating port information according to the embodiments of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0030] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary, and are not intended to limit the scope of the present disclosure. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. However, it will be apparent to those skilled in the art that one or more embodiments can be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques have been omitted to avoid unnecessarily obscuring the concept of the present disclosure.
[0031] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. The terms “comprising,” “including,” etc., as used herein indicate the presence of the stated features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0032] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.
[0033] When using expressions such as "at least one of A, B, and C", they should generally be interpreted in accordance with the meaning that is commonly understood by a person skilled in the art (e.g., "a system having at least one of A, B, and C" should include, but is not limited to, a system having A alone, a system having B alone, a system having C alone, a system having A and B, a system having A and C, a system having B and C, and / or a system having A, B, and C, etc.).
[0034] During the port maintenance process in the data center, a large amount of maintenance information is transmitted to the server through the network every day to achieve synchronization of maintenance information between various terminal devices in the data center.
[0035] However, during the synchronization of operation and maintenance information, the inventors discovered that when operation and maintenance information is updated on a certain port, the relevant operation and maintenance personnel may make oversights when modifying the operation and maintenance information on the terminal device. For example, they may only modify a certain field in an operation and maintenance information without simultaneously modifying the related fields, resulting in information mismatch or missing information.
[0036] In the technical solution of this invention, the user information (including but not limited to user personal information, user image information, user device information, such as location information) and data (including but not limited to data used for analysis, stored data, and displayed data) involved are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of related data all comply with the relevant laws, regulations, and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entry points for users to choose to authorize or refuse.
[0037] Therefore, the embodiment of the present disclosure provides a port information generation method, comprising: in response to a change operation performed by a target object on operation and maintenance information of a target port, obtaining change information and historical information of the target port; detecting the change information to determine the position of an abnormal field; obtaining the historical content of the abnormal field by querying the historical information according to the position of the abnormal field; and adjusting the abnormal field based on the historical content of the abnormal field to generate the port information.
[0038] Figure 1 The application scenario diagram of the port information generation method, apparatus, device, medium and program product according to the embodiment of the present disclosure is schematically shown.
[0039] As shown in the figure, Figure 1 The application scenario 100 according to the embodiment can include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104 and a server 105. The network 104 is a medium for providing a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103 and the server 105. The network 104 can include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0040] The user can use the first terminal device 101, the second terminal device 102, the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0041] The first terminal device 101, the second terminal device 102, the third terminal device 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers and desktop computers, etc.
[0042] The server 105 can be a server providing various services, such as a background management server supporting the website browsed by the user using the first terminal device 101, the second terminal device 102, the third terminal device 103 (only as an example). The background management server can analyze and process the received user request data, etc., and feed back the processing result (such as a web page, information or data generated according to the user request, etc.) to the terminal device.
[0043] It should be noted that the port information generation method provided by the embodiments of the present disclosure can generally be executed by the server 105. Accordingly, the port information generation apparatus provided by the embodiments of the present disclosure can generally be arranged in the server 105. The port information generation method provided by the embodiments of the present disclosure can also be executed by a server or a server cluster different from the server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, the port information generation apparatus provided by the embodiments of the present disclosure can also be arranged in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and / or the server 105.
[0044] It should be understood that Figure 1 The number of terminal devices, networks and servers in the above scenario is only illustrative. According to the implementation needs, there can be any number of terminal devices, networks and servers.
[0045] The port information generation method of the embodiments of the present disclosure will be described in detail below based on Figure 1 the scenario described above. Figures 2 to 4
[0046] Figure 2 An illustrative flowchart of the port information generation method according to the embodiments of the present disclosure is shown.
[0047] As shown in Figure 2 , the port information generation method of this embodiment includes operations S210-S240.
[0048] In operation S210, in response to a change operation performed by a target object on the operation and maintenance information of a target port, the change information and the historical information of the target port are obtained.
[0049] In operation S220, the change information is detected to determine the position of the abnormal field.
[0050] In operation S230, according to the position of the abnormal field, the historical content of the abnormal field is obtained by querying the historical information.
[0051] In operation S240, the abnormal field is adjusted based on the historical content of the abnormal field, and the port information is generated.
[0052] According to the embodiments of the present disclosure, the target object can be a relevant operation and maintenance personnel who changes the operation and maintenance information of the target port. The change information of the target port can be the changed information generated after the target object performs the change operation on the operation and maintenance information. The historical information can be the operation and maintenance information before the target object performs the change operation on the operation and maintenance information and the historical operation and maintenance record information of the target port.
[0053] According to an embodiment of the present disclosure, the field in the change information that does not match the field format template in the detection script of the target port can be determined as an abnormal field by matching the field format in the change information with the field format template according to the field format template of the target port. The mapping relationship between the field attribute and the field format can be configured in the field format template.
[0054] For example, in the field format template, the field of a certain attribute should be a 7-character field, but in the change information, the field of the attribute is 5 characters. It can be determined that the position of the attribute field is the position of the abnormal field.
[0055] According to an embodiment of the present disclosure, the content corresponding to the abnormal field position in the field format template can be determined by querying the historical information.
[0056] For example, by querying the historical information, it can be determined that the historical content corresponding to the abnormal field position is the correspondence between the target port and the information point, that is, "the information point corresponding to port A1 is information point P1". When the change operation is performed, the modified change information is "the information point is information point P2". It can be queried from the historical information that the missing content in the field is the identification of the port and the predetermined field "corresponding to". The abnormal field in the change information can be supplemented based on the historical content corresponding to the abnormal field queried, and the generated port information is "the information point corresponding to port A1 is information point P2".
[0057] According to an embodiment of the present disclosure, by detecting the change information, determining the abnormal field, and adjusting the historical content of the abnormal field in the historical information, the missing field in the operation and maintenance information of the target port during the change process can be supplemented, which can effectively solve the technical problem that the normal execution of the port detection script is affected due to the missing port information, and the detection of the target port can still be normally executed in the case that the operation and maintenance information of the target port is missing or omitted.
[0058] According to an embodiment of the present disclosure, based on the historical content of the abnormal field, the abnormal field is adjusted to generate the port information, which can include the following operations: based on the historical content of the abnormal field, the association relationship between the abnormal field and other fields in the change information is obtained; and based on the association relationship, the abnormal field is adjusted according to the other fields to generate the port information.
[0059] According to embodiments of this disclosure, port information is generally presented in a table format, with certain relationships between information describing the target port within the same row. For example, the target port information may include device location, device name, device IP address, and the correspondence between information points and ports. Specifically, certain fields in the device IP address have a one-to-one correspondence with the device name and device location. For example, the nth field in the IP address of device T may be a device identifier code, and the (n+1)th field may be a device location identifier code.
[0060] According to embodiments of this disclosure, in the change information, the abnormal field can be the device location, for example, it can be "empty". By querying the historical content corresponding to the abnormal field, it can be determined that there is a correlation between the content of the abnormal field and the device IP address. Based on this correlation, the correct content corresponding to the abnormal field can be retrieved from the device IP address field, the content of the abnormal field can be corrected, and the correct port information can be generated.
[0061] For example: based on the association relationship, determine the target field that is related to the abnormal field from other fields; and adjust the abnormal field according to the target field to generate port information.
[0062] Figure 3 A schematic diagram illustrating the generation of port information according to an embodiment of the present disclosure is shown.
[0063] like Figure 3 As shown, in embodiment 300, historical information 301 can be "Device location: 1a / 2b, Device IP address information: 101 / 25 / 1a / 2b / mm". Change information 302 can be "Device location: empty, Device IP address information: 101 / 25 / 7n / 3c / mm". Since the 3rd and 4th fields in the device IP address information in the historical information correspond to the device location, the target field 303 can be determined as "7n / 3c" from the device IP address information in the change information. The target field "7n / 3c" is then filled into the position of the abnormal field in the change information, i.e., "Device location: empty". The resulting port information 304 is "Device location: 7n / 3c, Device IP address information: 101 / 25 / 7n / 3c / mm".
[0064] According to embodiments of this disclosure, the data association between abnormal fields and other fields can be determined through historical content, thereby enabling the extraction of content from other fields for adjusting abnormal fields, improving the integrity of port information, and reducing the impact of missing port information on the execution of port detection scripts.
[0065] In a case where there are many associated fields in the historical content associated with the abnormal field, the natural language processing model can be used to select, from the many associated fields, a field with the highest matching degree with other fields in the change information as the content of the abnormal field.
[0066] According to an embodiment of the present disclosure, adjusting the abnormal field based on the historical content of the abnormal field and generating the port information can include: inputting the historical content of the abnormal field and the historical information into a natural language model to obtain candidate associated fields associated with the historical content in the historical information; and adjusting the abnormal field based on the candidate associated fields and generating the port information.
[0067] According to an embodiment of the present disclosure, the natural language model can be a convolutional neural network model based on NLP (Natural Language Processing, NLP). The natural language model can be used to obtain fields with a higher degree of association of the historical content of the abnormal field in each piece of historical information.
[0068] According to an embodiment of the present disclosure, the natural language model can be used to filter the candidate associated fields from the historical information based on the probability of the same field appearing in the same historical information.
[0069] For example, the identifier of the information point P1 and the identifier of the port A1 have a higher probability of appearing in the same historical information, so it can be determined that the field associated with the port A1 should be the information point P1.
[0070] In a case where there are many candidate associated fields, the candidate associated fields can be respectively filled in the position of the abnormal field of the change information, and then the natural language model can be used to analyze the degree of association between the fields in the filled information.
[0071] According to an embodiment of the present disclosure, adjusting the abnormal field based on the candidate associated fields can include the following operations: adjusting the abnormal field based on the candidate associated fields to generate a candidate field; inputting the candidate field and the change information into the natural language model to obtain the degree of association between the candidate field and the change information; determining the target content of the abnormal field from the candidate field based on the degree of association; and filling the target content in the position of the abnormal field to generate the port information.
[0072] Figure 4 An illustrative diagram of generating the port information according to another embodiment of the present disclosure is shown.
[0073] As Figure 4As shown, in the embodiment 400, the abnormal field can be "XX corresponding port is port Al", and the candidate association field associated with the identification of port Al can include: the identification 401 of information point P1, the identification 402 of information point P2. The candidate association field can be filled into the position of the abnormal field to generate the candidate field F1 403 "information point P1 corresponding port is port Al", the candidate field F2 404 "information point P2 corresponding port is port Al". The candidate field F1 and the change information, the candidate field F2 and the change information are sequentially input into the natural language processing model, and the association degree S1 405 of the candidate field F1 with other fields in the change information and the association degree S2 406 of the candidate field F2 with other fields in the change information can be obtained.
[0074] According to the embodiments of the present disclosure, the content of the candidate field with a greater association degree with other fields in the change information can be determined as the target content 407 of the abnormal field, and the target content is filled into the position of the abnormal field to generate the port information 408.
[0075] According to the embodiments of the present disclosure, the association relationship between different fields in the port operation and maintenance information can be mined by using the natural language model, and based on the association relationship, the accuracy of filling the abnormal field in the port operation and maintenance information can be improved.
[0076] According to the embodiments of the present disclosure, the detection of the change information and the determination of the position of the abnormal field can include the following operations: the change information is segmented according to a predetermined template to obtain a plurality of fields; and the position of the abnormal field is determined according to the association relationship between the plurality of fields.
[0077] According to the embodiments of the present disclosure, the field attributes in the change information can be defined in the predetermined template, and the change information is segmented according to the field attributes.
[0078] For example, the change information can include the device location, the device name, the device IP address, and the corresponding relationship between the information point and the port, and the change information can be divided into four fields corresponding to the above attribute information.
[0079] According to the embodiments of the present disclosure, the association relationship between the fields can represent the data association of the content in different fields with the content in other fields. For example, a certain field in the device IP address represents the identification of the device location.
[0080] According to embodiments of this disclosure, determining the location of an abnormal field based on the association between multiple fields may include: extracting a first name identifier field and a first location identifier field from a network address field; querying a second name identifier field and a second location identifier field based on a device name field and a device location field; matching the first name identifier field with the second name identifier field to obtain the location of the abnormal name field; and matching the first location identifier field with the second location identifier field to obtain the location of the abnormal location field.
[0081] For example, the change information could be "Device Name: Switch, Device Location: Area A 102, Device IP Address: 11 / 22 / a103 / M". Extract the device name field "11" and the device location field "103a" from the device IP address "11 / 22 / a103 / M".
[0082] Based on the device name "switch", the name identifier found is "11". Based on the device location "Area A 102", the location identifier found is a102. Since the location identifier of the device location is different from the location identifier field in the device IP address, the abnormal fields can be identified as the device location field and the device IP address field.
[0083] According to embodiments of this disclosure, by matching the correspondence between different fields in port operation and maintenance information, the location of abnormal fields can be found quickly and accurately so as to correct them in a timely manner, thereby reducing the impact of changes in operation and maintenance information on the execution of port anomaly detection tasks.
[0084] Based on the above-described method for generating port information, this disclosure also provides a device for generating port information. The following will be combined with... Figure 5 The device is described in detail.
[0085] Figure 5 A schematic block diagram of a port information generation apparatus according to an embodiment of the present disclosure is shown.
[0086] like Figure 5 As shown, the port information generation device 500 of this embodiment includes an acquisition module 510, a detection module 520, a query module 530, and a generation module 540.
[0087] The acquisition module 510 is used to acquire the change information and historical information of the target port in response to the change operation performed by the target object on the operation and maintenance information of the target port. In one embodiment, the acquisition module 510 can be used to perform the operation S210 described above, which will not be repeated here.
[0088] The detection module 520 is configured to detect the change information and determine the position of the abnormal field. In an embodiment, the detection module 520 can be configured to perform the operation S220 described above, and details are not repeated here.
[0089] The query module 530 is configured to obtain the historical content of the abnormal field by querying the historical information according to the position of the abnormal field. In an embodiment, the query module 530 can be configured to perform the operation S230 described above, and details are not repeated here.
[0090] The generation module 540 is configured to adjust the abnormal field based on the historical content of the abnormal field and generate the port information. In an embodiment, the generation module 540 can be configured to perform the operation S240 described above, and details are not repeated here.
[0091] According to an embodiment of the present disclosure, the generation module can include a first obtaining unit and a first generation unit. The first obtaining unit is configured to obtain an association relationship between the abnormal field and other fields in the change information based on the historical content of the abnormal field. The first generation unit is configured to adjust the abnormal field according to the other fields based on the association relationship and generate the port information.
[0092] According to an embodiment of the present disclosure, the first generation unit includes a first determination sub-unit and a first generation sub-unit. The first determination sub-unit is configured to determine a target field associated with the abnormal field from the other fields based on the association relationship. The first generation sub-unit is configured to adjust the abnormal field according to the target field and generate the port information.
[0093] According to an embodiment of the present disclosure, the generation module can include a second obtaining unit and a second generation unit. The second obtaining unit is configured to input the historical content of the abnormal field and the historical information into a natural language model to obtain a candidate associated field in the historical information associated with the historical content. The second generation unit is configured to adjust the abnormal field according to the candidate associated field and generate the port information.
[0094] According to an embodiment of the present disclosure, the second generation unit can include an adjustment sub-unit, an association sub-unit, a second determination sub-unit and a filling sub-unit. The adjustment sub-unit is configured to adjust the abnormal field according to the candidate associated field and generate a candidate field. The association sub-unit is configured to input the candidate field and the change information into the natural language model to obtain an association degree of the candidate field and the change information. The second determination sub-unit is configured to determine a target content of the abnormal field from the candidate field based on the association degree. The filling sub-unit is configured to fill the target content into the position of the abnormal field and generate the port information.
[0095] According to an embodiment of the present disclosure, the detecting module can include a splitting unit and a determining unit. The splitting unit is configured to split the change information according to a predetermined template to obtain a plurality of fields. The determining unit is configured to determine the position of the abnormal field according to the association relationship between the plurality of fields.
[0096] According to an embodiment of the present disclosure, the plurality of fields include a device name field, a network address field, and a device location field; and the determining unit includes an extracting subunit, a querying subunit, a first matching subunit, and a second matching subunit. The extracting subunit is configured to extract a first name identifier field and a first location identifier field from the network address field. The querying subunit is configured to query a second name identifier field and a second location identifier field according to the device name field and the device location field. The first matching subunit is configured to match the first name identifier field with the second name identifier field to obtain the position of the name abnormal field. The second matching subunit is configured to match the first location identifier field with the second location identifier field to obtain the position of the location abnormal field.
[0097] According to an embodiment of the present disclosure, any one or more of the obtaining module 510, the detecting module 520, the querying module 530, and the generating module 540 can be combined in one module, or any one of them can be split into multiple modules. Alternatively, at least part of the function of one or more of these modules can be combined with at least part of the function of other modules, and implemented in one module. According to an embodiment of the present disclosure, at least one of the obtaining module 510, the detecting module 520, the querying module 530, and the generating module 540 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 chip, a system on substrate, a system on package, an application specific integrated circuit (ASIC), or any other reasonable way of hardware or firmware that can be integrated or packaged, or any one of software, hardware, and firmware or any appropriate combination of any one or more of them. Alternatively, at least one of the obtaining module 510, the detecting module 520, the querying module 530, and the generating module 540 can be at least partially implemented as a computer program module that can perform corresponding functions when the computer program module is run.
[0098] Figure 6 A block diagram of an electronic device suitable for implementing the method for generating port information according to an embodiment of the present disclosure is schematically shown.
[0099] As Figure 6As shown, the electronic device 600 according to the embodiments of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a read only memory (ROM) 602 or a program loaded into a random access memory (RAM) 603 from a storage section 608. The processor 601 can include, for example, 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 so on. The processor 601 can also include an on-board memory for cache use. The processor 601 can include a single processing unit or multiple processing units for executing different actions of the method processes according to the embodiments of the present disclosure.
[0100] In the RAM 603, various programs and data required for the operation of the electronic device 600 are stored. The processor 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. The processor 601 performs various operations of the method processes according to the embodiments of the present disclosure by executing the programs in the ROM 602 and / or the RAM 603. Note that the programs can also be stored in one or more memories other than the ROM 602 and the RAM 603. The processor 601 can also perform various operations of the method processes according to the embodiments of the present disclosure by executing the programs stored in the one or more memories.
[0101] According to the embodiments of the present disclosure, the electronic device 600 can further include an input / output (I / O) interface 605, which is also connected to the bus 604. The electronic device 600 can further include one or more of the following components connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a display such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as necessary. A removable recording medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 610 as necessary, so that a computer program read out therefrom is installed in the storage section 608 as necessary.
[0102] The present disclosure also provides a computer readable storage medium, which can be included in the device / apparatus / system described in the above embodiments; or can exist separately without being assembled into the device / apparatus / system. The above computer readable storage medium carries one or more programs, which when executed, implement the method according to the embodiments of the present disclosure.
[0103] According to an embodiment of the present disclosure, the computer readable storage medium can be a nonvolatile computer readable storage medium, for example, can include but not limited to: a portable computer diskette, 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 disc read only memory (CD-ROM), an optical storage device, a magnetic storage device, or any appropriate combination thereof. In the present disclosure, the computer readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device. For example, according to an embodiment of the present disclosure, the computer readable storage medium can include one or more memories such as the ROM 602 and / or the RAM 603 described above and / or one or more memory other than the ROM 602 and the RAM 603.
[0104] Embodiments of the present disclosure also include a computer program product, which includes a computer program containing program codes for executing the methods shown in the flowcharts. When the computer program product is run in a computer system, the program codes are used to make the computer system implement the item recommendation method provided by the embodiments of the present disclosure.
[0105] The above functions defined in the system / device of the embodiments of the present disclosure are performed when the computer program is executed by the processor 601. According to an embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by computer program modules.
[0106] In one embodiment, the computer program can rely on tangible storage media such as optical storage media, magnetic storage media, etc. In another embodiment, the computer program can also be transmitted, distributed, and downloaded in the form of signals on a network medium, and be downloaded and installed through the communication part 609, and / or be installed from the detachable medium 611. The program codes contained in the computer program can be transmitted by any appropriate network medium, including but not limited to: wireless, wired, etc., or any appropriate combination thereof.
[0107] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or be installed from the detachable medium 611. When the computer program is executed by the processor 601, the above functions defined in the system of the embodiments of the present disclosure are performed. According to an embodiment of the present disclosure, the system, device, apparatus, module, unit, etc. described above can be implemented by computer program modules.
[0108] According to embodiments of the present disclosure, program code of the computer program for performing the methods provided by the embodiments of the present disclosure can be written in any combination of one or more programming languages, and can be implemented in a computer program product. Specifically, the computer program can be implemented in a high-level procedural and / or object-oriented programming language, and / or in assembly / machine language. The programming language includes, but is not limited to, Java, C++, python, “C” language, or similar programming languages. The program code can execute entirely on the user's computing device, partly on the user's device, and partly on a remote computing device, or entirely on the remote computing device or server. In the latter scenario, the remote computing device can be connected to the user's computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computing device, such as through the Internet using an Internet Service Provider (ISP).
[0109] The computer program product of the present disclosure can be a computer program product, which is a machine-readable medium (or computer readable medium) having stored therein a sequence of instructions executable by a machine such as a personal digital assistant (PDA), a laptop, a desktop computer, or a server. Alternatively, the computer program product can be a propagated signal per se generated by using the program code, and the program code can be stored on a machine-readable medium that can be read by a machine such as a personal digital assistant (PDA), a laptop, a desktop computer, or a server. The program code of the computer program product defines a function, preferably a corresponding action, and / or implements the elements / object / means for performing this function or a part thereof as disclosed in the embodiments of the present disclosure. The program code can be executed by using one or more processors.
[0110] Those skilled in the art will understand that features of the various embodiments and / or claims of the present disclosure can be combined or / and integrated with one another, even though such a combination or integration is not expressly disclosed in the present disclosure. In particular, the features of the various embodiments and / or claims of the present disclosure can be combined or / and integrated with one another in any combination, without departing from the spirit and teachings of the present disclosure. All such combinations and / or integrations are within the scope of the present disclosure.
[0111] The above describes embodiments of the present disclosure. However, these embodiments are merely for illustrative purposes, and are not intended to limit the scope of the present disclosure. Although each embodiment is described above separately, this does not mean that the measures in each embodiment cannot be used advantageously in combination. The scope of the present disclosure is defined by the appended claims and their equivalents. Those skilled in the art can make various substitutions and modifications without departing from the scope of the present disclosure, and these substitutions and modifications should all fall within the scope of the present disclosure.
Claims
1. A method for generating port information, comprising: In response to a change operation performed by the target object on the operation and maintenance information of the target port, the change information and historical information of the target port are obtained; The changed information is inspected to determine the location of the abnormal fields; Based on the location of the abnormal field, the historical content of the abnormal field can be obtained by querying the historical information; as well as The abnormal field is adjusted based on its historical content to generate the port information, including: Based on the historical content of the abnormal field, the association between the abnormal field and other fields in the change information is obtained; Based on the aforementioned association, the abnormal fields are adjusted according to the other fields to generate the port information, including: Based on the aforementioned association, target fields that are associated with the abnormal field are determined from the other fields; The abnormal field is adjusted according to the target field to generate the port information.
2. The method according to claim 1, wherein, The step of adjusting the abnormal field based on its historical content to generate the port information further includes: The historical content of the abnormal field and the historical information are input into a natural language model to obtain candidate associated fields in the historical information that are related to the historical content; and The abnormal field is adjusted based on the candidate association field to generate the port information.
3. The method according to claim 2, wherein, The step of adjusting the abnormal field based on the candidate association field to generate the port information includes: The abnormal fields are adjusted based on the candidate association fields to generate candidate fields; The candidate fields and the change information are input into the natural language model to obtain the degree of correlation between the candidate fields and the change information; and Based on the degree of correlation, the target content of the abnormal field is determined from the candidate fields; The target content is filled into the position of the abnormal field to generate the port information.
4. The method according to claim 1, wherein, The step of detecting the changed information and determining the location of abnormal fields includes: The change information is segmented according to a predetermined template to obtain multiple fields; and The location of the abnormal field is determined based on the relationships between the multiple fields.
5. The method according to claim 4, wherein, The plurality of fields includes a device name field, a network address field, and a device location field; determining the location of the abnormal field based on the association between the plurality of fields includes: Extract the first name identifier field and the first location identifier field from the network address field; Based on the device name field and the device location field, the second name identifier field and the second location identifier field are retrieved; Match the first name identifier field with the second name identifier field to obtain the location of the name anomaly field; and The first location identifier field is matched with the second location identifier field to obtain the location of the location anomaly field.
6. A device for generating port information, comprising: The acquisition module is used to acquire the change information and historical information of the target port in response to the change operation performed by the target object on the operation and maintenance information of the target port; The detection module is used to detect the change information and determine the location of abnormal fields; The query module is used to obtain the historical content of the abnormal field by querying the historical information based on the location of the abnormal field. as well as A generation module is used to adjust the exception field based on its historical content to generate the port information, wherein the generation module includes: The first obtaining unit is used to obtain the association relationship between the abnormal field and other fields in the change information based on the historical content of the abnormal field; A first generation unit is configured to generate the port information by adjusting the abnormal field according to the other fields based on the association relationship, wherein the first generation unit includes: The first determining subunit is used to determine, based on the association relationship, a target field that is associated with the abnormal field from the other fields; The first generation subunit is used to adjust the abnormal field according to the target field and generate the port information.
7. An electronic device, comprising: One or more processors; 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 perform the method according to any one of claims 1 to 5.
8. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, cause the processor to perform the method according to any one of claims 1 to 5.
9. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Abnormality detection method and device, equipment and medium
CN114218283A
Method, apparatus and electronic device for annotating information of structured document
US20210390133A1