CN112787851A - Equipment interconnection information verification method based on custom library - Google Patents

Equipment interconnection information verification method based on custom library Download PDF

Info

Publication number
CN112787851A
CN112787851A CN202011584674.2A CN202011584674A CN112787851A CN 112787851 A CN112787851 A CN 112787851A CN 202011584674 A CN202011584674 A CN 202011584674A CN 112787851 A CN112787851 A CN 112787851A
Authority
CN
China
Prior art keywords
self
information
data
equipment
library
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011584674.2A
Other languages
Chinese (zh)
Inventor
郑鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Unicloud Technology Co Ltd
Original Assignee
Unicloud 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 Unicloud Technology Co Ltd filed Critical Unicloud Technology Co Ltd
Priority to CN202011584674.2A priority Critical patent/CN112787851A/en
Publication of CN112787851A publication Critical patent/CN112787851A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0866Checking the configuration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Design And Manufacture Of Integrated Circuits (AREA)

Abstract

The invention provides a self-defined library-based equipment interconnection information verification method, which adopts a self-defined Python library mode to realize the collection of the interconnection information of the equipment of the current network and sequentially writes the collected information into a database; after all the interconnection information of the existing network equipment is collected, the collected information in the database is compared with the planning information, so that the output of error information is realized. The equipment interconnection information verification method based on the custom library can effectively verify the accuracy between equipment connecting lines, effectively overcomes the defect that the equipment connecting lines of a data center cannot be quickly verified, and improves the deployment efficiency of the data center.

Description

Equipment interconnection information verification method based on custom library
Technical Field
The invention belongs to the technical field of internet, and particularly relates to a device interconnection information verification method based on a custom library.
Background
Data center equipment interconnects after putting on the shelf, and in order to ensure that interconnected equipment interconnection circuit goes on according to the programming table, need use a large amount of manpowers to carry out the on-the-spot check-up, waste time and energy, under the condition that has personnel lacked, can't guarantee very high accuracy. In order to solve the problems that a planning connecting line is inconsistent with a real connecting line and manual detection errors are difficult to realize during data center construction. Meanwhile, in order to ensure that the planning data is consistent with the real current network data and improve the online research and development efficiency, the purpose of rapidly detecting the wrong connection line is achieved through programmed detection.
Disclosure of Invention
In view of the above, the present invention aims to provide a method for verifying device interconnection information based on a custom library, so as to solve the problems that a planned connection line is inconsistent with a real connection line and manual detection errors are difficult to achieve during data center construction.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a device interconnection information verification method based on a custom library comprises the following steps:
s1, after the Agent is started, logging in the network equipment, and if the network equipment can not be logged in, executing the step S2; if normal login is possible, go to step S3;
s2, outputting an error by an Agent;
s3, writing related data information into a database through a self-defined Python library;
and S4, comparing all the warehoused data with the planning table, if the data is the same as the planning table information, not operating, and if the data is different, marking the planning table.
Further, the specific method of step 3 is as follows:
s3.1, acquiring an Ifindex-interface name dictionary and an equipment name tuple of the network equipment through a self-defined Python library, and writing the acquired information into a database through the self-defined Python library;
s3.2, acquiring LLDP information of the network equipment through a self-defined Python library to obtain a local terminal interface dictionary, an opposite terminal interface dictionary and an opposite terminal interface name dictionary of the network equipment, acquiring corresponding relations among a local terminal interface, an opposite terminal interface and an opposite terminal system name through operating the three dictionaries, and writing the data into a database through a self-defined database writing method;
and S3.3, acquiring the Ifindex-interface mode dictionary through a self-defined Python library, and writing the data into a database through a self-defined data writing method.
Compared with the prior art, the equipment interconnection information verification method based on the custom library has the following advantages:
(1) the equipment interconnection information verification method based on the custom library can effectively verify the accuracy between equipment connecting lines, effectively overcomes the defect that the equipment connecting lines of a data center cannot be quickly verified, and improves the deployment efficiency of the data center.
(2) The equipment interconnection information verification method based on the custom library develops the custom library, and is convenient for collecting and warehousing equipment information; through the automatic mode, realized the quick check-up of equipment line.
(3) According to the equipment interconnection information verification method based on the custom library, rapid verification of equipment interconnection is achieved automatically, and efficiency and accuracy of data center deployment are greatly improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of an algorithm for selecting a message queue for use by an Agent according to an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on those shown in the drawings, and are used only for convenience in describing the present invention and for simplicity in description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and thus, are not to be construed as limiting the present invention. Furthermore, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first," "second," etc. may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless otherwise specified.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art through specific situations.
The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
The noun explains:
and the Agent is used for starting a server for executing the program, logging in the network equipment, collecting the information of the network equipment, processing the data, warehousing, comparing and outputting error reporting information.
A network device: the cloud network is characterized by comprising switches, routers, firewalls and load balancing.
Ifindex: the index value of the physical interface of the network equipment is the only mark of the interface of the network equipment.
LLDP: link layer discovery protocols. The Protocol organizes the Information of the local device (including main capability, Management address, device identifier, interface identifier, etc.) into different TLVs (Type/Length/Value), and encapsulates the TLVs into LLDPDU (Link Layer Discovery Protocol Data Unit), and distributes the TLVs to the neighbors directly connected with the local device, and the neighbors receive the Information and then store the Information in the form of standard MIB (Management Information Base) for the network Management system to inquire and judge the communication status of the Link.
Python is a cross-platform computer programming language.
A self-defined library-based equipment interconnection information verification method is characterized in that a self-defined Python library mode is adopted to realize the collection of the interconnection information of the equipment of the current network, and the collected information is sequentially written into a database; after all the interconnection information of the existing network equipment is collected, the collected information in the database is compared with the planning information, so that the output of error information is realized.
A method for verifying device interconnection information based on a custom library is disclosed, as shown in FIG. 1, and comprises the following steps:
s1, after the Agent is started, logging in the network equipment, and if the network equipment can not be logged in, executing the step S2; if normal login is possible, go to step S3;
s2, Agent outputs error report (aim: confirming the reason of error report, and amending the basic information of network equipment according to the reason);
s3, writing related data information into a database through a self-defined Python library;
s3.1, acquiring an Ifindex-interface name dictionary and an equipment name tuple of the network equipment through a self-defined Python library, and writing the acquired information into a database through the self-defined Python library;
s3.2, acquiring LLDP information of the network equipment through a self-defined Python library to obtain a local terminal interface dictionary, an opposite terminal interface dictionary and an opposite terminal interface name dictionary of the network equipment, acquiring corresponding relations among a local terminal interface, an opposite terminal interface and an opposite terminal system name through operating the three dictionaries, and writing the data into a database through a self-defined database writing method;
s3.3, acquiring an Ifindex-interface mode dictionary through a self-defined Python library, and writing the data into a database through a self-defined data writing method;
and S4, comparing all the data warehoused in the step S3 with the planning sheet, if the data is the same as the data in the planning sheet, not performing operation, and if the data is different from the data in the planning sheet, performing marking processing on the planning sheet.
According to the scheme, a self-defined library is developed, so that the equipment information is conveniently collected and put in a warehouse; through the automatic mode, realized the quick check-up of equipment line.
According to the scheme, the accuracy between equipment connection lines can be effectively verified, the defect that the data center equipment connection lines cannot be quickly verified is effectively overcome, and the efficiency of data center deployment is improved.
The first embodiment is as follows: as shown in figure 1 of the drawings, in which,
s1, after the Agent is started, logging in the network equipment, and if the network equipment can not be logged in, executing the step S2; if normal login is possible, go to step S3;
s2, outputting an error by an Agent;
s3, writing related data information into a database through a self-defined Python library; s3.1, collecting the port name and the interface mode of the equipment through a self-defined Python library, and performing associated warehousing by taking Ifindex at the home terminal as a keyword;
s3.2, collecting the equipment system name, the home terminal interface Ifindex and the home terminal interface name through a self-defined Python library, then performing association warehousing by taking the home terminal port name as a keyword, and finally performing association warehousing by taking the home terminal Ifindex as the keyword;
s3.3, collecting the device home terminal interface name, the opposite terminal interface name and the opposite terminal system name through a self-defined Python library, performing association warehousing by taking the home terminal port name as a keyword, and finally performing association warehousing by taking the home terminal Ifindex as the keyword;
s4, comparing all the data in storage in the step S3 with the data in the initial planning table, and when the Agent judges that the data are the same, not operating; if the two data are different, marking the initial planning table.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (2)

1. A device interconnection information verification method based on a custom library is characterized in that: the method comprises the following steps:
s1, after the Agent is started, logging in the network equipment, and if the network equipment can not be logged in, executing the step S2; if normal login is possible, go to step S3;
s2, outputting an error by an Agent;
s3, writing related data information into a database through a self-defined Python library;
and S4, comparing all the data warehoused in the step S3 with the planning table, if the data is the same as the planning table information, not performing operation, and if the data is different, performing marking processing on the planning table.
2. The method for verifying the device interconnection information based on the custom library according to claim 1, wherein: the specific method of the step 3 comprises the following steps:
s3.1, acquiring an Ifindex-interface name dictionary and an equipment name tuple of the network equipment through a self-defined Python library, and writing the acquired information into a database through the self-defined Python library;
s3.2, acquiring LLDP information of the network equipment through a self-defined Python library to obtain a local terminal interface dictionary, an opposite terminal interface dictionary and an opposite terminal interface name dictionary of the network equipment, acquiring corresponding relations among a local terminal interface, an opposite terminal interface and an opposite terminal system name through operating the three dictionaries, and writing the data into a database through a self-defined database writing method;
and S3.3, acquiring the Ifindex-interface mode dictionary through a self-defined Python library, and writing the data into a database through a self-defined data writing method.
CN202011584674.2A 2020-12-28 2020-12-28 Equipment interconnection information verification method based on custom library Pending CN112787851A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011584674.2A CN112787851A (en) 2020-12-28 2020-12-28 Equipment interconnection information verification method based on custom library

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011584674.2A CN112787851A (en) 2020-12-28 2020-12-28 Equipment interconnection information verification method based on custom library

Publications (1)

Publication Number Publication Date
CN112787851A true CN112787851A (en) 2021-05-11

Family

ID=75752937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011584674.2A Pending CN112787851A (en) 2020-12-28 2020-12-28 Equipment interconnection information verification method based on custom library

Country Status (1)

Country Link
CN (1) CN112787851A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106301891A (en) * 2016-08-02 2017-01-04 中国银联股份有限公司 A kind of configuring information of network appliance processing method and processing device
US20180069763A1 (en) * 2015-01-27 2018-03-08 Moogsoft Inc. Agent technology system with monitoring policy
CN111343021A (en) * 2020-02-27 2020-06-26 中国移动通信集团江苏有限公司 Method, device, equipment and medium for generating network topology structure

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180069763A1 (en) * 2015-01-27 2018-03-08 Moogsoft Inc. Agent technology system with monitoring policy
CN106301891A (en) * 2016-08-02 2017-01-04 中国银联股份有限公司 A kind of configuring information of network appliance processing method and processing device
CN111343021A (en) * 2020-02-27 2020-06-26 中国移动通信集团江苏有限公司 Method, device, equipment and medium for generating network topology structure

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
颜伟: "基于Python的交换机实时监控系统的设计与实现", 《通信技术》 *

Similar Documents

Publication Publication Date Title
CN107040413B (en) Method for positioning fault of communication link of process layer of intelligent substation
CN112564964B (en) Fault link detection and recovery method based on software defined network
US20120303767A1 (en) Automated configuration of new racks and other computing assets in a data center
CN102123044A (en) Detection device and method of network topology consistency based on topology discovery technology
WO2007147327A1 (en) Method, system and apparatus of fault location for communicaion apparatus
CN112291075B (en) Network fault positioning method and device, computer equipment and storage medium
CN108462587A (en) A kind of network topology treating method and apparatus
CN102223251A (en) Collecting and analyzing method for network operation and maintenance and business processing device
ES2942019T3 (en) Procedure for detection and identification of equipment that communicates according to a Modbus protocol and communication controller to implement said procedure
CN106202535A (en) A kind of method and system of the detection of RRD data base
CN106848452A (en) A kind of electrokinetic cell fault display method and electrokinetic cell fault display device
CN107094091A (en) A kind of intelligent substation station level network configuration method of calibration and system
CN112311574B (en) Network topology connection checking method, device and equipment
CN112787851A (en) Equipment interconnection information verification method based on custom library
CN110474821A (en) Node failure detection method and device
CN111641536B (en) Online testing and diagnosing method for Internet of things equipment
CN113660560B (en) Intelligent substation process layer switch topology real-time verification method
CN105843917A (en) Medical data dictionary standardization method and system based on cloud service
CN108304292A (en) A kind of method and system of nodal test hard disk disk sequence
CN112468336A (en) Network quality monitoring and early warning method, device, terminal and storage medium
CN109617598A (en) A kind of OLT device intelligence acceptance method, storage medium and terminal
CN217821309U (en) Data center-based data acquisition system and edge hardware
CN113452537B (en) Fault positioning method and device based on model
CN103368779A (en) Method for inspecting network attribute collection
CN114338378B (en) Configuration verification method for multi-domain software defined network

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210511

RJ01 Rejection of invention patent application after publication