CN112787839B - Port description modification method and device - Google Patents

Port description modification method and device Download PDF

Info

Publication number
CN112787839B
CN112787839B CN201911092880.9A CN201911092880A CN112787839B CN 112787839 B CN112787839 B CN 112787839B CN 201911092880 A CN201911092880 A CN 201911092880A CN 112787839 B CN112787839 B CN 112787839B
Authority
CN
China
Prior art keywords
network equipment
opposite
port description
information
port
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.)
Active
Application number
CN201911092880.9A
Other languages
Chinese (zh)
Other versions
CN112787839A (en
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.)
Unihub China Information Technology Co Ltd
Original Assignee
Unihub China Information Technology Co Ltd
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 Unihub China Information Technology Co Ltd filed Critical Unihub China Information Technology Co Ltd
Priority to CN201911092880.9A priority Critical patent/CN112787839B/en
Publication of CN112787839A publication Critical patent/CN112787839A/en
Application granted granted Critical
Publication of CN112787839B publication Critical patent/CN112787839B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • 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/0893Assignment of logical groups to network elements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks

Abstract

The invention provides a method and a device for modifying port description, wherein the method comprises the following steps: acquiring information of the local network equipment and port description of the opposite network equipment according to the connection relation between the local network equipment and the opposite network equipment; detecting port description of the opposite-end network equipment according to the information of the local-end network equipment; when the port description of the opposite-end network equipment is detected to be incorrect, the opposite-end network equipment information and a corresponding pre-configuration modification operation command are acquired; and logging in the opposite terminal network equipment according to the opposite terminal network equipment information, and modifying the port description of the opposite terminal network equipment according to the pre-configuration modification operation command. The technical scheme realizes the efficient modification of the port description according to the connection relation between the network devices, and improves the efficiency of port description modification.

Description

Port description modification method and device
Technical Field
The present invention relates to the field of port processing technologies, and in particular, to a method and an apparatus for modifying a port description.
Background
With the rapid development of the internet industry, the number of internet users is continuously increased, the service types are continuously increased, network devices of operators are more and more, and port description errors of a plurality of ports on the network devices are often caused. The device maintenance personnel generally determine which device a certain port of a certain device is connected to by port description after logging in the device. If the port description is incorrect, this can lead to misjudgment by maintenance personnel and possibly cause significant network failure.
At present, the maintenance and modification work of the port description adopts a manual mode to manually log in one piece of equipment for one piece of inspection, and if the port description is found to be wrong, the manual modification is low in efficiency.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method for modifying port description, which is used for modifying port description efficiently, and comprises the following steps:
acquiring information of the local network equipment and port description of the opposite network equipment according to the connection relation between the local network equipment and the opposite network equipment;
detecting port description of the opposite-end network equipment according to the local-end network equipment information;
when the port description of the opposite-end network equipment is detected to be incorrect, the opposite-end network equipment information and a corresponding pre-configuration modification operation command are acquired; logging in the opposite terminal network equipment according to the opposite terminal network equipment information, and modifying the port description of the opposite terminal network equipment according to the pre-configuration modification operation command.
The embodiment of the invention also provides a device for modifying the port description, which is used for modifying the port description efficiently, and comprises the following steps:
the acquisition unit is used for acquiring the information of the local terminal network equipment and the port description of the opposite terminal network equipment according to the connection relation between the local terminal network equipment and the opposite terminal network equipment;
the detection unit is used for detecting port description of the opposite-end network equipment according to the local-end network equipment information;
the modification unit is used for acquiring the opposite-end network equipment information and a corresponding pre-configuration modification operation command when the port description of the opposite-end network equipment is detected to be incorrect; logging in the opposite terminal network equipment according to the opposite terminal network equipment information, and modifying the port description of the opposite terminal network equipment according to the pre-configuration modification operation command.
The embodiment of the invention also provides computer equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the modification method of the port description when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program for executing the modification method of the port description.
The technical scheme provided by the embodiment of the invention is as follows: acquiring information of the local network equipment and port description of the opposite network equipment according to the connection relation between the local network equipment and the opposite network equipment; detecting port description of the opposite-end network equipment according to the information of the local-end network equipment; when the port description of the opposite-end network equipment is detected to be incorrect, the opposite-end network equipment information and a corresponding pre-configuration modification operation command are acquired; according to the opposite terminal network equipment information, logging in the opposite terminal network equipment, and according to the preconfigured modification operation command, modifying the port description of the opposite terminal network equipment, the port description is modified efficiently according to the connection relation between the network equipment, and the efficiency of port description modification is improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method of modifying port descriptions in an embodiment of the invention;
FIG. 2 is a schematic diagram of an interface for port description modification worksheets in an embodiment of the present invention;
FIG. 3 is a schematic diagram of an interface for port description modification of work order details in an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a port description modifying apparatus in an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a flow chart of a modification method of port description in the embodiment of the invention, as shown in fig. 1, the method includes the following steps:
step 101: acquiring information of the local network equipment and port description of the opposite network equipment according to the connection relation between the local network equipment and the opposite network equipment;
step 102: detecting port description of the opposite-end network equipment according to the local-end network equipment information;
step 103: when the port description of the opposite-end network equipment is detected to be incorrect, the opposite-end network equipment information and a corresponding pre-configuration modification operation command are acquired; logging in the opposite terminal network equipment according to the opposite terminal network equipment information, and modifying the port description of the opposite terminal network equipment according to the pre-configuration modification operation command.
The technical scheme provided by the embodiment of the invention is as follows: acquiring information of the local network equipment and port description of the opposite network equipment according to the connection relation between the local network equipment and the opposite network equipment; detecting port description of the opposite-end network equipment according to the information of the local-end network equipment; when the port description of the opposite-end network equipment is detected to be incorrect, the opposite-end network equipment information and a corresponding pre-configuration modification operation command are acquired; according to the opposite terminal network equipment information, logging in the opposite terminal network equipment, and according to the preconfigured modification operation command, modifying the port description of the opposite terminal network equipment, the port description is modified efficiently according to the connection relation between the network equipment, and the efficiency of port description modification is improved.
In one embodiment, detecting the port description of the peer network device according to the home network device information may include:
comparing the content of the port description of the opposite terminal network equipment with the information of the local terminal network equipment;
when the port description of the opposite-end network equipment is detected to be incorrect, the opposite-end network equipment information and a corresponding pre-configuration modification operation command are acquired; logging in to the opposite terminal network device according to the opposite terminal network device information, and modifying the port description of the opposite terminal network device according to the preconfigured modification operation command may include:
when the fact that the content of the port description of the opposite-end network equipment is inconsistent with the local-end network equipment information is detected, the opposite-end network equipment information and a corresponding pre-configuration modification operation command are obtained; logging in the opposite terminal network equipment according to the opposite terminal network equipment information, and modifying the content of the port description of the opposite terminal network equipment according to the pre-configuration modification operation command.
In specific implementation, the method for detecting the port description content of the opposite-end network equipment and the scheme for modifying the port description content further improve the efficiency of port description modification and further improve the correctness of network configuration.
In one embodiment, the home network device information may include: aliases of the home network devices;
comparing the content of the port description of the opposite terminal network device with the information of the local terminal network device can include: and comparing the preset content of the port description of the opposite-end network equipment with the alias of the local-end network equipment.
In the implementation, the scheme for detecting the port description content of the opposite-end network equipment further improves the efficiency of port description modification and further improves the correctness of network configuration.
In one embodiment, detecting the port description of the peer network device according to the home network device information may include:
according to the local network equipment information, comparing the port description format of the opposite terminal network equipment with a predefined port description specification format;
when the port description of the opposite-end network equipment is detected to be incorrect, the opposite-end network equipment information and a corresponding pre-configuration modification operation command are acquired; logging in to the opposite terminal network device according to the opposite terminal network device information, and modifying the port description of the opposite terminal network device according to the preconfigured modification operation command may include:
when the fact that the port description format of the opposite-end network equipment is inconsistent with the pre-defined port description specification format is detected, opposite-end network equipment information and a corresponding pre-configuration modification operation command are obtained; logging in the opposite terminal network equipment according to the opposite terminal network equipment information, and modifying the format of the port description of the opposite terminal network equipment according to the pre-configuration modification operation command.
In specific implementation, the port description format normalization of the opposite-end network equipment and the scheme for modifying the port description format are detected, so that the efficiency of port description modification is further improved, and the correctness of network configuration is further improved.
In one embodiment, the home network device information may include: the port type and port name of the home network device;
according to the home network device information, comparing the port description format of the opposite network device with a predefined port description specification format may include:
analyzing the port of the local network equipment;
and comparing the analyzed port format of the local network equipment with the local network equipment information according to a predefined port description standard format.
In specific implementation, the scheme for detecting the normalization of the port description format of the opposite-end network equipment further improves the efficiency of port description modification and further improves the correctness of network configuration.
In specific implementation, the method for modifying port description provided by the embodiment of the invention can further include:
acquiring opposite-end network equipment information and port description of the local-end network equipment according to the connection relation between the local-end network equipment and the opposite-end network equipment;
detecting port description of the local terminal network equipment according to the opposite terminal network equipment information;
when the port description of the local network equipment is detected to be incorrect, acquiring the local network equipment information and a corresponding pre-configuration modification operation command; logging in the local network equipment according to the local network equipment information, and modifying the port description of the local network equipment according to the pre-configuration modification operation command.
The home network device may be a first end network device and the peer network device may be a second end network device. The detailed scheme for modifying the port description of the home network device refers to the scheme for modifying the port description of the peer network device, and will not be described herein.
An example is presented below in conjunction with fig. 2 and 3 to facilitate an understanding of how the invention may be practiced.
1. Firstly, the interconnection relation of the devices is passed, and the device port is connected to which device is obtained, namely, according to the interconnection relation, the network device of the local terminal is determined to be connected to which network device, and the information of the local terminal and the opposite terminal device and the port description information are obtained.
In specific implementation, the device connection relationship is obtained: the information of the local terminal equipment and the opposite terminal equipment and the information of the connection relation of the local terminal equipment and the opposite terminal equipment can be obtained through the special line discovery or the circuit connection relation of the network manager or an excel import mode. Includes the contents of the fields shown in Table 1 below:
TABLE 1
In specific implementation, the opposite end in table 1 above is an uplink device port.
According to the connection relation between the local network device and the opposite network device, the local network device information and the port description of the opposite network device can be obtained as follows:
the following five fields are taken, for example:
the equipment manufacturer at the home terminal: hua Cheng Ji (Chinese character)
Aliases of the local equipment: LNYKO-nanlouzonghejifang-ZH-OLT001-MA5680T
The port of the local terminal equipment is as follows: 1-0-19-0
The opposite terminal equipment: LNYKO-MA-CMNET-BAS06-DSQME60X
The opposite end port: gigabit Ethernet4/0/9
Description of the opposite port: to- [ LNYKO-nanlouzonghejifang-ZH-OLT001-MA5680T ]10GE-1-0-19-0.
2. Next, according to the home network device information, a port description of the opposite network device is detected.
1. First, the correctness of the port description content is checked for comparison, for example: the content in the "opposite end port description" [ ] is compared with the "home device alias".
2. Secondly, the normalization of the port description format is detected, for example: format after "opposite port description" [ ]: and analyzing the port type, namely the port of the local equipment, and comparing the port of the local equipment with the port of the local equipment imported by excel.
3. And then, when the port description of the opposite-end network equipment is detected to be incorrect, remotely logging in the opposite-end network equipment, and modifying the port description of the opposite-end network equipment according to a pre-configured modification operation command.
In specific implementation, the port description automatic configuration management, namely, the modification of the port description of the opposite-end network equipment can be implemented in a mode of generating a work order, so that convenience is improved.
As shown in fig. 2, a work order may be generated according to the above data of the device connection relationship according to the peer device, and the same peer device is a work order.
The work order state is: no execution, waiting for deployment, in deployment, completion, failure, partial success;
automatically executing the port configuration modification by default by the system;
if the port description comparisons under the devices are all consistent, then the state is set to no execution;
error information: equipment login failure, equipment absence, command execution failure, unsupported equipment manufacturer, incorrect data format;
default reverse order sorting is carried out according to the creation time;
and support operations such as viewing work order details, viewing work order history status, viewing task logs, configuration previews, configuration issuing, voiding, forced completion, and the like.
As shown in fig. 3, the detailed information of the work order can be viewed by clicking the right button, including the following fields:
and (d) comparing whether the two types of data are consistent: consistency, inconsistency, error:
if there is an error data, if the device is fully configured, then the work order status is also partially successful, and the error information is: the data format is incorrect. If this device fails all configurations, the work order status is failed.
The preconfigured modification operation command is exemplified below.
Take Hua as an example of the device: (note: configuration command supported device model: NE5000E, NE40E,9212E,9312, me 60).
The following general configuration description applies to all the devices:
■ Description of whether system-view image is executed after login (entering immediate effect mode):
example 1:
< LNSY-PB-CMNET-RT01-HN1NE5KE > system-view? /(is)? Determine if the following can be entered immediately Mode of becoming effective immediately (immediately become active mode)// return result: this row indicates that < cr > can be entered;
<LNSY-PB-CMNET-RT01-HN1NE5KE>system-view immediately;
enter system view, return user view with return command. (enter system view, return user view with return command);
[LNSY-PB-CMNET-RT01-HN1NE5KE]。
example 2:
example 1 illustrates a case where an immediatery can be input, and this is an example where an immediatery is not required to be input.
< LNDAD-MA-CMNET-BAS08-DGLME60X > system-view? /(is)? Determining whether an immediately < cr >// return result can be entered later, only this line indicating that entry is not possible;
<LNDAD-MA-CMNET-BAS08-DGLME60X>system-view;
enter system view, return user view with Ctrl +z (enter system view, return user view with ctrl+z);
[LNDAD-MA-CMNET-BAS08-DGLME60X]。
■ The exiting configuration command states:
a quick-to-mode;
Save。
the execute command is as follows:
the opposite terminal equipment can only be the Huacheng equipment, otherwise, the configuration report is wrong: unsupported equipment manufacturers;
logging in 'opposite terminal equipment': LNYKO-MA-CMNET-BAS06-DSQME60X;
system-view;
interface GigabitEthernet4/0/9// into "opposite port";
the description To- [ LNYKO-nanlouzonghejiffang-ZH-OLT 001-MA5680T ] GE-1-0-19-0// execution modification port description is automatically spliced by an automatic configuration system according To the provided rule;
the port type defaults to GE at the time of configuration.
In conclusion, the batch modification is carried out according to different preset commands corresponding to different equipment manufacturer models. Due to the number of device models, only examples are mainly given herein: hua is a preset command for NE5000E, NE40E,9212E,9312, me 60.
In addition, in describing configuration description of ports of the embodiment of the present invention:
1) LNYKO-nanlouzonghejiffang-ZH-OLT 001-MA 5680T-local device alias;
2) 1-0-19-0, the local end equipment port;
3) GE- - -Port type.
Based on the same inventive concept, the embodiment of the invention also provides a device for modifying port description, as described in the following embodiment. Since the principle of the port description modifying device for solving the problem is similar to that of the port description modifying method, the implementation of the port description modifying device can refer to the implementation of the port description modifying method, and the repetition is omitted. As used below, the term "unit" or "module" may be a combination of software and/or hardware that implements the intended function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 4 is a schematic structural diagram of a port description modifying apparatus according to an embodiment of the present invention, as shown in fig. 4, the apparatus includes:
an obtaining unit 01, configured to obtain information of a home network device and a port description of a peer network device according to a connection relationship between the home network device and the peer network device;
a detection unit 02, configured to detect, according to the home network device information, a port description of the peer network device;
a modifying unit 03, configured to obtain information of the peer network device and a corresponding pre-configuration modification operation command when detecting that the port description of the peer network device is incorrect; logging in the opposite terminal network equipment according to the opposite terminal network equipment information, and modifying the port description of the opposite terminal network equipment according to the pre-configuration modification operation command.
In one embodiment, the detection unit may specifically be configured to: comparing the content of the port description of the opposite terminal network equipment with the information of the local terminal network equipment;
the modification unit may specifically be configured to: when the fact that the content of the port description of the opposite-end network equipment is inconsistent with the local-end network equipment information is detected, the opposite-end network equipment information and a corresponding pre-configuration modification operation command are obtained; logging in the opposite terminal network equipment according to the opposite terminal network equipment information, and modifying the content of the port description of the opposite terminal network equipment according to the pre-configuration modification operation command.
In one embodiment, the home network device information may include: aliases of the home network devices; the detection unit may specifically be configured to: and comparing the preset content of the port description of the opposite-end network equipment with the alias of the local-end network equipment.
In one embodiment, the detection unit may specifically be configured to: according to the local network equipment information, comparing the port description format of the opposite terminal network equipment with a predefined port description specification format;
the modification unit may specifically be configured to: when the fact that the port description format of the opposite-end network equipment is inconsistent with the pre-defined port description specification format is detected, opposite-end network equipment information and a corresponding pre-configuration modification operation command are obtained; logging in the opposite terminal network equipment according to the opposite terminal network equipment information, and modifying the format of the port description of the opposite terminal network equipment according to the pre-configuration modification operation command.
In one embodiment, the home network device information includes: the port type and port name of the home network device; the detection unit may specifically be configured to:
analyzing the port of the local network equipment;
and comparing the analyzed port format of the local network equipment with the local network equipment information according to a predefined port description standard format.
The embodiment of the invention also provides computer equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the modification method of the port description when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program for executing the modification method of the port description.
The technical scheme provided by the embodiment of the invention has the beneficial technical effects that: through the interconnection relation of the devices, port descriptions are automatically and efficiently modified in batches for the devices in the network, so that a great amount of time of maintenance personnel is reduced, and the correctness of network configuration is improved.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, and various modifications and variations can be made to the embodiments of the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for modifying a port description, comprising:
acquiring information of the local network equipment and port description of the opposite network equipment according to the connection relation between the local network equipment and the opposite network equipment; the method comprises the steps of obtaining the port description of the network equipment information and the opposite-end network equipment and the connection relation of the network equipment information and the opposite-end network equipment through special line discovery, circuit connection relation or excel import mode of a network manager;
detecting port description of opposite-end network equipment according to the local-end network equipment information;
when the port description of the opposite-end network equipment is detected to be incorrect, the opposite-end network equipment information and a corresponding pre-configuration modification operation command are acquired; according to the opposite terminal network equipment information, remotely logging in the opposite terminal network equipment, and modifying the port description of the opposite terminal network equipment according to the pre-configuration modification operation command, wherein the modification of the port description of the opposite terminal network equipment is implemented in a mode of generating a work order, the work order is generated according to the opposite terminal equipment, and the same opposite terminal equipment is a work order; the work order state includes: no execution, waiting for deployment, in deployment, completion, failure, partial success.
2. The method for modifying a port description according to claim 1, wherein detecting the port description of the peer network device based on the home network device information comprises:
comparing the content of the port description of the opposite terminal network equipment with the information of the local terminal network equipment;
when the port description of the opposite-end network equipment is detected to be incorrect, the opposite-end network equipment information and a corresponding pre-configuration modification operation command are acquired; logging in the opposite terminal network equipment according to the opposite terminal network equipment information, and modifying the port description of the opposite terminal network equipment according to the pre-configuration modification operation command, wherein the method comprises the following steps:
when the fact that the content of the port description of the opposite-end network equipment is inconsistent with the local-end network equipment information is detected, the opposite-end network equipment information and a corresponding pre-configuration modification operation command are obtained; logging in the opposite terminal network equipment according to the opposite terminal network equipment information, and modifying the content of the port description of the opposite terminal network equipment according to the pre-configuration modification operation command.
3. The method for modifying a port description according to claim 2, wherein the home network device information includes: aliases of the home network devices;
comparing the content of the port description of the opposite terminal network device with the information of the local terminal network device, including: and comparing the preset content of the port description of the opposite-end network equipment with the alias of the local-end network equipment.
4. The method for modifying a port description according to claim 1, wherein detecting the port description of the peer network device based on the home network device information comprises:
according to the local network equipment information, comparing the port description format of the opposite terminal network equipment with a predefined port description specification format;
when the port description of the opposite-end network equipment is detected to be incorrect, the opposite-end network equipment information and a corresponding pre-configuration modification operation command are acquired; logging in the opposite terminal network equipment according to the opposite terminal network equipment information, and modifying the port description of the opposite terminal network equipment according to the pre-configuration modification operation command, wherein the method comprises the following steps:
when the fact that the port description format of the opposite-end network equipment is inconsistent with the pre-defined port description specification format is detected, opposite-end network equipment information and a corresponding pre-configuration modification operation command are obtained; logging in the opposite terminal network equipment according to the opposite terminal network equipment information, and modifying the format of the port description of the opposite terminal network equipment according to the pre-configuration modification operation command.
5. The method for modifying a port description of claim 4, wherein the home network device information comprises: the port type and port name of the home network device;
according to the local network device information, comparing the port description format of the opposite network device with a predefined port description specification format, including:
analyzing the port of the local network equipment;
and comparing the analyzed port format of the local network equipment with the local network equipment information according to a predefined port description standard format.
6. A port description modifying apparatus, comprising:
the acquisition unit is used for acquiring the information of the local terminal network equipment and the port description of the opposite terminal network equipment according to the connection relation between the local terminal network equipment and the opposite terminal network equipment; the method comprises the steps of obtaining the port description of the network equipment information and the opposite-end network equipment and the connection relation of the network equipment information and the opposite-end network equipment through special line discovery, circuit connection relation or excel import mode of a network manager;
the detection unit is used for detecting port description of the opposite-end network equipment according to the local-end network equipment information;
the modification unit is used for acquiring the opposite-end network equipment information and a corresponding pre-configuration modification operation command when the port description of the opposite-end network equipment is detected to be incorrect; according to the opposite-end network equipment information, remotely logging in the opposite-end network equipment, and according to the pre-configuration modification operation command, modifying port description of the opposite-end network equipment; the method comprises the steps that port description of opposite terminal network equipment is modified, the port description is implemented in a mode of generating a work order, the work order is generated according to the opposite terminal equipment, and the same opposite terminal equipment is a work order; the work order state includes: no execution, waiting for deployment, in deployment, completion, failure, partial success.
7. The port description modifying apparatus according to claim 6, wherein the detecting unit is specifically configured to: comparing the content of the port description of the opposite terminal network equipment with the information of the local terminal network equipment;
the modification unit is specifically configured to: when the fact that the content of the port description of the opposite-end network equipment is inconsistent with the local-end network equipment information is detected, the opposite-end network equipment information and a corresponding pre-configuration modification operation command are obtained; logging in the opposite terminal network equipment according to the opposite terminal network equipment information, and modifying the content of the port description of the opposite terminal network equipment according to the pre-configuration modification operation command.
8. The port description modifying apparatus according to claim 6, wherein the detecting unit is specifically configured to: according to the local network equipment information, comparing the port description format of the opposite terminal network equipment with a predefined port description specification format;
the modification unit is specifically configured to: when the fact that the port description format of the opposite-end network equipment is inconsistent with the pre-defined port description specification format is detected, opposite-end network equipment information and a corresponding pre-configuration modification operation command are obtained; logging in the opposite terminal network equipment according to the opposite terminal network equipment information, and modifying the format of the port description of the opposite terminal network equipment according to the pre-configuration modification operation command.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 5 when executing the computer program.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program for executing the method of any one of claims 1 to 5.
CN201911092880.9A 2019-11-11 2019-11-11 Port description modification method and device Active CN112787839B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911092880.9A CN112787839B (en) 2019-11-11 2019-11-11 Port description modification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911092880.9A CN112787839B (en) 2019-11-11 2019-11-11 Port description modification method and device

Publications (2)

Publication Number Publication Date
CN112787839A CN112787839A (en) 2021-05-11
CN112787839B true CN112787839B (en) 2023-07-25

Family

ID=75749674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911092880.9A Active CN112787839B (en) 2019-11-11 2019-11-11 Port description modification method and device

Country Status (1)

Country Link
CN (1) CN112787839B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338413B (en) * 2021-12-30 2024-01-26 中国工商银行股份有限公司 Method, device and storage medium for determining topological relation of equipment in network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1805408A (en) * 2005-01-14 2006-07-19 华为技术有限公司 Quick route switching method and apparatus for network node devices
CN101374360A (en) * 2008-09-12 2009-02-25 深圳华为通信技术有限公司 Multiport multiplexing method, apparatus and system
WO2009056019A1 (en) * 2007-11-01 2009-05-07 Huawei Technologies Co., Ltd. Method and apparatus of resource management of signaling connection control part user adaptation layer procotol
CN102123104A (en) * 2011-04-14 2011-07-13 福建星网锐捷网络有限公司 Network device configuration correcting method and network device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1805408A (en) * 2005-01-14 2006-07-19 华为技术有限公司 Quick route switching method and apparatus for network node devices
WO2009056019A1 (en) * 2007-11-01 2009-05-07 Huawei Technologies Co., Ltd. Method and apparatus of resource management of signaling connection control part user adaptation layer procotol
CN101374360A (en) * 2008-09-12 2009-02-25 深圳华为通信技术有限公司 Multiport multiplexing method, apparatus and system
CN102123104A (en) * 2011-04-14 2011-07-13 福建星网锐捷网络有限公司 Network device configuration correcting method and network device

Also Published As

Publication number Publication date
CN112787839A (en) 2021-05-11

Similar Documents

Publication Publication Date Title
US9727407B2 (en) Log analytics for problem diagnosis
US10268570B2 (en) Methods, systems, and computer readable media for automated generation of test files and testing network equipment using same
CN110119350B (en) Software development kit testing method, device and equipment and computer storage medium
CN112115051A (en) Page traversal detection method, device and equipment for application and readable storage medium
CN109165156B (en) Bar code testing method and device and terminal equipment
CN111476582B (en) Defective product processing method and device and computer readable storage medium
CN112953983A (en) SFTP transmission method and device
CN112787839B (en) Port description modification method and device
US20170161181A1 (en) Testing support system, and testing support method
CN112311574A (en) Method, device and equipment for checking network topology connection
CN105786677A (en) Apparatus and method for detecting abnormal connection
US10778550B2 (en) Programmatically diagnosing a software defined network
CN112817883A (en) Method, device and system for adapting interface platform and computer readable storage medium
CN112115055A (en) Multi-machine automatic testing method and device and computer equipment
CN114268569B (en) Configurable network operation and maintenance acceptance test method and device
CN111400245B (en) Art resource migration method and device
CN115080387A (en) Front-end visual debugging method, system, equipment and readable storage medium
CN110855526B (en) Method and device for detecting data source connection, storage medium and electronic equipment
CN113238940A (en) Interface test result comparison method, device, equipment and storage medium
CN112052184A (en) Automatic generation method and device for test script and storage medium
CN116382968B (en) Fault detection method and device for external equipment
CN112040009B (en) Design draft uploading method, system, equipment and storage medium
CN114816876A (en) Automatic test system for server Redfish interface specification
CN115250249B (en) IPv6 Ready-based automatic testing method, device, medium and equipment
CN111078543B (en) System dynamic test method and test device

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
GR01 Patent grant
GR01 Patent grant