CN115242595A - Network device discovery method, device, electronic device and storage medium - Google Patents

Network device discovery method, device, electronic device and storage medium Download PDF

Info

Publication number
CN115242595A
CN115242595A CN202210843161.1A CN202210843161A CN115242595A CN 115242595 A CN115242595 A CN 115242595A CN 202210843161 A CN202210843161 A CN 202210843161A CN 115242595 A CN115242595 A CN 115242595A
Authority
CN
China
Prior art keywords
network
address
network equipment
equipment
address list
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
CN202210843161.1A
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.)
Shanghai Grandage Data System Co ltd
Original Assignee
Shanghai Grandage Data System 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 Shanghai Grandage Data System Co ltd filed Critical Shanghai Grandage Data System Co ltd
Priority to CN202210843161.1A priority Critical patent/CN115242595A/en
Publication of CN115242595A publication Critical patent/CN115242595A/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/02Standardisation; Integration
    • H04L41/024Standardisation; Integration using relational databases for representation of network management data, e.g. managing via structured query language [SQL]
    • 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

Abstract

The embodiment of the application discloses a network device discovery method and device, electronic equipment and a storage medium. Sending an Internet Protocol (IP) address list query instruction to at least two network management terminals, and receiving an IP address list of network equipment of a self management network segment fed back by the corresponding network management terminal; different network management ends manage different network segments; and comparing the IP address list corresponding to each network management end with the IP addresses of the locally stored network equipment to obtain the IP addresses of the newly added network equipment. The embodiment of the application improves the effectiveness of network equipment discovery.

Description

Network device discovery method, device, electronic device and storage medium
Technical Field
Embodiments of the present disclosure relate to computer technologies, and in particular, to a method and an apparatus for discovering a network device, an electronic device, and a storage medium.
Background
When the internet is developed rapidly, with the increase of service demands, network equipment is expanded continuously, and the timely discovery of the network equipment is the first step of effectively monitoring the network equipment.
In the prior art, due to the isolation between different network segments, a network service end cannot effectively discover network devices in different network segments.
Disclosure of Invention
The application provides a network device discovery method, a network device discovery device, an electronic device and a storage medium, so as to improve the effectiveness of network device discovery.
In a first aspect, an embodiment of the present application provides a network device discovery method, which is applied to a network server, and the network device discovery method includes:
sending an Internet Protocol (IP) address list query instruction to at least two network management terminals, and receiving an IP address list of network equipment of a self management network segment fed back by the corresponding network management terminal; different network management ends manage different network segments;
and comparing the IP address list corresponding to each network management end with the IP addresses of the locally stored network equipment to obtain the IP addresses of the newly added network equipment.
In a second aspect, an embodiment of the present application provides a network device discovery method, which is applied to a network management end, and the network device discovery method includes:
acquiring an IP address list query instruction sent by a network server;
feeding back an IP address list of network equipment of a network segment managed by the network server to the network server so that the network server compares the IP address list fed back by different network management ends with the IP address of the locally stored network equipment to obtain the IP address of the newly added network equipment;
wherein, different network management terminals manage different network segments.
In a third aspect, an embodiment of the present application further provides a network device discovery apparatus, configured at a network service end, where the network device discovery apparatus includes:
the IP address list acquisition module is used for sending an internet protocol address IP address list query instruction to at least two network management terminals and receiving an IP address list of the network equipment of the self management network segment fed back by the corresponding network management terminal; different network management ends manage different network segments;
and the IP address increasing module is used for comparing the IP address list corresponding to each network management end with the IP address of the locally stored network equipment to obtain the IP address of the newly added network equipment.
In a fourth aspect, an embodiment of the present application provides a network device discovery apparatus configured at a network management end, where the network device discovery method includes:
the query instruction acquisition module is used for acquiring an IP address list query instruction sent by a network server;
the IP address list feedback module feeds back an IP address list of the network equipment of the network segment managed by the network server to the network server so that the network server compares the IP address list fed back by different network management ends with the IP address of the locally stored network equipment to obtain the IP address of the newly added network equipment;
wherein, different network management terminals manage different network segments.
In a fifth aspect, an embodiment of the present application further provides an electronic device, where the electronic device includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement any one of the network device discovery methods provided by the embodiments of the present application.
In a sixth aspect, embodiments of the present application further provide a storage medium including computer-executable instructions, which when executed by a computer processor, are configured to perform any one of the network device discovery methods provided by the embodiments of the present application.
According to the method and the device, the IP address list query instruction of the internet protocol address is sent to at least two network management terminals, and the IP address list of the network equipment of the self management network segment fed back by the corresponding network management terminal is received, wherein the network segments managed by different network management terminals are different, so that the IP address lists of the network equipment in different network segments can be obtained, and the isolation between different network segments is overcome. And comparing the IP address list corresponding to each network management end with the IP addresses of the network equipment stored locally, finding IP addresses which do not exist in the IP addresses of the network equipment stored locally at the network service end through comparison to obtain the IP addresses of the newly added network equipment, and finding the newly added network equipment through the IP addresses of the network equipment according to the corresponding relation between the IP addresses and the network equipment. The problem that in the prior art, due to the isolation between different network segments, a network server cannot effectively discover network equipment in an isolated area is solved, and the effect of improving the effectiveness of network equipment discovery is achieved.
Drawings
Fig. 1 is a flowchart of a network device discovery method in a first embodiment of the present application;
fig. 2 is a flowchart of a network device discovery method in the second embodiment of the present application;
fig. 3 is a flowchart of a network device discovery method in a third embodiment of the present application;
fig. 4 is a flowchart of a network device discovery method in the fourth embodiment of the present application;
fig. 5 is a schematic structural diagram of a network device discovery apparatus in a fifth embodiment of the present application;
fig. 6 is a schematic structural diagram of a network device discovery apparatus according to a sixth embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device in a seventh embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort shall fall within the protection scope of the present application.
It should be noted that the terms "first" and "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be implemented in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a network device discovery method according to an embodiment of the present application, where the method is applicable to a case of discovering a new network device, and the method may be executed by a network device discovery apparatus, which may be implemented by software and/or hardware and is specifically configured in a network server.
Referring to fig. 1, the network device discovery method applied to a network server specifically includes the following steps:
s110, sending an IP address list query instruction to at least two network management terminals, and receiving an IP address list of network equipment of a self management network segment fed back by the corresponding network management terminal; wherein, different network management terminals manage different network segments.
The network management terminal is a service terminal for managing network devices in different network segments, and each network segment corresponds to one network management terminal. The network management end monitors the network equipment in the management network segment, automatically generates a notification message of a corresponding type when the network equipment is connected to a network or has an error report, and sends the notification message to the network management end of the corresponding network segment, and after receiving the notification message of the network equipment, the network management end extracts an IP Address (Internet Protocol Address) in the notification message and generates an IP Address list.
The network server sends an IP address list query instruction to the network management terminals according to a preset period, the number of the network management terminals is at least 2, and specifically, the number of the network management terminals is determined by the number of network segments in a monitoring range of the network server. The preset period may be set according to actual needs, for example, the period may be 8 hours, 1 day, or 1 week, and the like, and may be set according to the number of network management terminals and the frequency increase of the network device, and the present application is not particularly limited thereto. After receiving the query instruction sent by the network service end, the network management end sends the IP address list of the network equipment of the self management network segment to the network service end, and the network service end receives the IP address list fed back by each corresponding network management end.
A network may be divided into multiple segments, and network devices in different network segments have regional isolation, so it is difficult to timely and effectively discover network devices in multiple isolated regions. Because different network management ends manage different network segments, the network service end can overcome the defect that the network devices in different network segments have regional isolation by receiving the IP address lists of the network devices of the self-management network segments fed back by the different network management ends.
And S120, comparing the IP address list corresponding to each network management end with the IP addresses of the locally stored network equipment to obtain the IP addresses of the newly added network equipment.
The locally stored network device IP address is a network device IP address stored in the network server, that is, the network server has found and stored the network device IP address before receiving the IP address list of the network device fed back by each network management terminal.
The network server compares the IP address list corresponding to each network management terminal with the locally stored network equipment IP, and when the IP address which does not exist in the locally stored network equipment IP addresses is obtained through comparison, the IP address is the logic address of the network equipment in the network, and when a newly added IP address appears in the network, the fact that the newly added network equipment exists in the network is indicated, so that the IP address is the IP address of the newly added network equipment.
In an optional embodiment, comparing the IP address list corresponding to each network management end with the IP address of the network device locally stored in the network service end includes: carrying out duplicate removal on the IP addresses in each IP address list to obtain the IP address to be analyzed; and taking the IP address to be analyzed which does not exist in the IP addresses of the network equipment locally stored by the network server as the IP address of the newly added network equipment.
Multiple repeated IP addresses may appear in the IP address list, which may increase the workload of subsequent comparison with the IP address of the network device locally stored at the server, and reduce the discovery efficiency of the new device. Therefore, the network service end performs deduplication on the IP addresses in the IP address lists, that is, removes the repeated IP addresses in the IP address lists, and takes the IP addresses subjected to deduplication processing in the IP address lists as the IP addresses to be analyzed.
And comparing the IP address to be analyzed with the IP address of the network equipment locally stored by the network server. Specifically, if the comparison result is that the IP address to be analyzed exists in the IP addresses of the network devices locally stored by the network server, it indicates that the IP address to be analyzed is not the IP address of the newly added network device, and no processing is required; and if the comparison result shows that the IP address to be analyzed does not exist in the IP addresses of the network equipment stored locally at the network service end, the IP address to be analyzed is the IP address of the newly added network equipment, and the IP address to be analyzed is used as the IP address of the newly added network equipment and is stored locally at the network service end.
When the IP addresses to be analyzed which do not exist in the IP addresses of the network equipment which is locally stored by the network service end are found by comparison, the IP addresses to be analyzed which do not exist in the IP addresses of the network equipment which is locally stored by the network service end are indicated to be newly allocated in the network, namely, new network equipment is added in the network, the IP addresses to be analyzed which do not exist in the IP addresses of the network equipment which is locally stored by the network service end are the IP addresses of the newly added network equipment, and the newly added network equipment is monitored and timely found according to the uniqueness of the IP addresses.
According to the technical scheme of the embodiment, the IP address list query instruction of the internet protocol address is sent to at least two network management terminals, and the IP address lists of the network devices of the self management network segments fed back by the corresponding network management terminals are received, wherein the network segments managed by different network management terminals are different, so that the IP address lists of the network devices in different network segments can be obtained, and the isolation between different network segments is overcome. And comparing the IP address list corresponding to each network management end with the IP addresses of the network equipment stored locally, finding IP addresses which do not exist in the IP addresses of the network equipment stored locally at the network service end through comparison to obtain the IP addresses of the newly added network equipment, and finding the newly added network equipment through the IP addresses of the network equipment according to the corresponding relation between the IP addresses and the network equipment. The problem that in the prior art, due to the isolation among different network segments, a network server cannot effectively discover network equipment in different network segments is solved, and the effect of improving the effectiveness of network equipment discovery is achieved.
Example two
Fig. 2 is a flowchart of a flowchart method of a network device discovery method provided in the second embodiment of the present application, and the technical solution of the present embodiment is further refined based on the above technical solution.
Further, the network device discovery method further includes: acquiring associated information of the newly added network equipment, wherein the associated information comprises at least one of equipment name, serial number and equipment model; establishing a mapping relation between the associated information and the IP address corresponding to the newly added network equipment; and determining the network equipment clusters with the same IP address according to the mapping relation.
Referring to fig. 2, a network device discovery method includes:
s210, sending an internet protocol address IP address list query instruction to at least two network management terminals, and receiving an IP address list of network equipment of a self management network segment fed back by the corresponding network management terminal; wherein, different network management terminals manage different network segments.
S220, comparing the IP address list corresponding to each network management end with the IP addresses of the locally stored network equipment to obtain the IP addresses of the newly added network equipment.
S230, acquiring the associated information of the newly added network equipment, wherein the associated information comprises at least one of the equipment name, the serial number and the equipment model.
The association information is device identification information associated with the network device. For example, the association information may be at least one of a device name, a serial number, a device model number, and the like, wherein the serial number may uniquely identify the network device, and the serial number may be preferentially selected as the association information. And after the network server side obtains the IP address of the newly added network equipment, sending an associated information query instruction of the newly added network equipment to the network management side according to the IP address of the newly added network equipment to obtain the associated information of the newly added network equipment.
S240, establishing a mapping relation between the associated information and the IP address corresponding to the newly added network equipment.
And establishing a mapping relation with the corresponding IP address according to the acquired associated information, and storing the mapping relation in a local database. The mapping relation can record the name, serial number, equipment model and other information of the network equipment corresponding to the IP address, and the number of the network equipment is at least one.
And S250, determining the network equipment clusters with the same IP address according to the mapping relation.
The network device cluster is a cluster formed by a plurality of network devices. The same IP address can establish a mapping relation with at least one network device, when the same IP address establishes a mapping relation with a plurality of network devices, the plurality of network devices share one IP address, and a network device cluster with the same IP address is determined according to the mapping relation.
According to the technical scheme of the embodiment, the associated information of the newly added network equipment is obtained, the mapping relation between the associated information and the IP address corresponding to the newly added network equipment is established, the associated information can uniquely identify the equipment information of the network equipment, the network equipment cluster with the same IP address is determined through the mapping relation, and the network equipment information corresponding to the IP address of the newly added network equipment is perfected.
In an optional embodiment, the network device discovery method further includes: monitoring the associated information of each network device in the IP address of the locally stored network device, wherein the associated information comprises at least one of the device name, the serial number and the device model; if new associated information exists under the same IP address, establishing a mapping relation between the new associated information and the corresponding IP address; and determining newly-added network equipment in the network equipment cluster with the same IP address according to the mapping relation.
The network server monitors the associated information of each network device in the locally stored network device IP address according to a preset period, that is, the associated information of each network device in the locally stored network device IP address is obtained without finding the IP address of the newly added network device. It should be noted that the period for monitoring the associated information of each network device in the locally stored network device IP address may be the same as or different from the period for acquiring the IP address list, and this is not specifically limited in this application.
If new associated information exists under the same IP address, for example, a new serial number indicates that a network device is added under the IP address, a mapping relation is established between the new associated information and the corresponding IP address. The association information includes at least one of a device name, a serial number, and a device model number. And the network equipment corresponding to the new associated information and the original network equipment under the P address form a network equipment cluster of the IP address, and the newly added network equipment in the network equipment cluster with the same IP address is determined according to the mapping relation.
It should be noted that, if the original associated information in the IP address does not exist, that is, it is monitored that the original associated information does not exist in the IP address, it is indicated that the network device corresponding to the associated information has been removed from the network device cluster corresponding to the IP address, and at this time, the associated information is deleted, so that the storage resource of the network server can be saved, and meanwhile, the network device information can be updated in time. By deleting the nonexistent associated information and establishing the mapping relation between the new associated information and the corresponding IP address, the corresponding associated information can be automatically updated under the condition that the network equipment is replaced, and the accuracy of the mapping relation between the associated information stored by the network server and the corresponding IP address is guaranteed.
The method can effectively discover the newly added network equipment by monitoring the associated information of each network equipment in the locally stored network equipment IP address, can discover the new associated information existing under the IP address in time, and can discover the newly added network equipment under the same IP address.
EXAMPLE III
Fig. 3 is a flowchart of a network device discovery method according to a third embodiment of the present application, where the present embodiment is applicable to a case of discovering a new network device, and the method may be executed by a network device discovery apparatus, and the apparatus may be implemented by software and/or hardware and is specifically configured in a network management end.
S310, acquiring an IP address list inquiry instruction sent by the network server.
And the network management terminal receives the IP address list query instruction sent by the network service terminal and queries the IP address list in the local database.
In an alternative embodiment, the list of IP addresses is generated based on: acquiring a notification message which is sent by network equipment in a managed network segment based on a Simple Network Management Protocol (SNMP) and comprises IP address information; the IP address information is extracted from the notification message and stored in the device information base.
SNMP (Simple network management protocol) is an application layer protocol defined by the internet architecture committee in RFC 1157. SNMP is used to exchange management information between network devices. Net-SNMP is an open-source SNMP implementation, and can provide two applications.
The network device is provided with a SNMP (Net-SNMP Agent, an application provided by Net-SNMP) and is an SNMP Agent which can listen to SNMP requests. Specifically, a snmpd auto-trigger function may be set, which is used to send a notification message of a corresponding type that is automatically triggered when a network device is connected to a network segment managed by a network management end and a certain type of error occurs, to the network management end. The network management end is installed with a SNMP trap (an application program provided by Net-SNMP) for intercepting incoming SNMP notification messages, and configures corresponding network segment permissions for receiving notification messages sent by network devices installed in the managed network segment. The UDP 162 port is used for communication between the network management end and the network equipment, and the communication efficiency is improved.
The device information base is a MYSQL (database name) database for storing a list of IP addresses of network devices installed in the managed network segment. The network management side is installed with an SNMP Trap transport, an SNMP notification message handler written in Perl, for converting a received SNMP notification message into a network device IP address. The network device comprises IP address information based on the notification message sent by the SNMP, and after the network management terminal obtains the notification message, the network management terminal extracts the IP address information in the notification message through the SNMPTT and stores the IP address information in the MYSQL database to form an IP address list.
The network equipment automatically sends the notification message to the network management terminal based on the SNMP, so that the message omission can be prevented, and the integrity and the real-time property of the IP address list obtained in the later period are ensured. And converting the notification message into an IP address, storing the IP address into a database to form an IP address list, and providing a data basis for data comparison of a later network server.
S320, feeding back an IP address list of network equipment of a network segment managed by the network server to the network server so that the network server compares the IP address list fed back by different network management terminals with the IP address of the locally stored network equipment to obtain the IP address of the newly added network equipment; wherein, different network management terminals manage different network segments.
And the network management terminal responds to the acquired IP address list query instruction sent by the network service terminal and feeds back the IP address list of the network equipment of the network segment managed by the network management terminal to the network service terminal. The network server compares the IP address lists fed back by different network management terminals with the IP addresses of the locally stored network equipment to obtain the IP addresses of the newly added network equipment; wherein, different network management terminals manage different network segments.
According to the technical scheme of the embodiment, the network management terminal feeds back the IP address list of the network equipment in the network segment managed by the network management terminal to the network service terminal by receiving the IP address list query instruction sent by the network service terminal, and can feed back the IP address list stored in the network management terminal in time, so that the network service terminal compares the IP address lists fed back by different network management terminals with the IP addresses of the network equipment stored locally to obtain the IP addresses of the newly added network equipment.
Example four
Fig. 4 is a flowchart of a flowchart method of a network device discovery method provided in a fourth embodiment of the present application, and a technical solution of the present embodiment is further refined based on the above technical solution.
Further, the network device discovery method further includes: responding to a correlation information query instruction of the network equipment to be queried, and acquiring correlation information of the network equipment to be queried; feeding back the associated information of the network equipment to be inquired to the network server so that the network server establishes a mapping relation between the associated information and the network equipment to be inquired, and the mapping relation is used for determining newly-added network equipment in the network equipment cluster; wherein the associated information includes at least one of a device name, a serial number, and a device model number.
Referring to fig. 4, a network device discovery method includes:
s410, acquiring an IP address list inquiry instruction sent by the network server.
S420, feeding back an IP address list of network equipment of a network segment managed by the network server to the network server so that the network server compares the IP address list fed back by different network management ends with the IP address of the locally stored network equipment to obtain the IP address of the newly added network equipment; wherein, different network management terminals manage different network segments.
S430, responding to the associated information query instruction of the network equipment to be queried, and acquiring the associated information of the network equipment to be queried.
The network equipment to be inquired is the network equipment corresponding to the IP address of the network equipment locally stored by the network server and the IP address of the newly added network equipment. After acquiring the associated information query instruction of the network equipment to be queried of the network server, the network management terminal queries associated information of a corresponding IP address according to the IP address in the instruction, and acquires the associated information of the network equipment to be queried.
In an optional embodiment, the obtaining of the association information of the network device to be queried includes: sending an information query instruction to the network equipment to be queried based on the SNMP; and acquiring the equipment identification information returned by the network equipment to be inquired based on the SNMP to obtain the associated information of the equipment to be inquired.
The network management terminal sends an information query instruction to the network equipment to be queried based on the SNMP, wherein the information query instruction can be the type of equipment information to be queried and can also comprise state information and the like. Illustratively, the device information type includes at least one of a device name, a serial number, and a device model number. And acquiring the equipment identification information returned by the network equipment to be queried based on the SNMP, namely the corresponding numerical values of the equipment information type and the like, and acquiring the associated information of the equipment to be queried.
The information query instruction is sent to the network equipment to be queried based on the SNMP, the equipment identification information returned by the network equipment to be queried based on the SNMP is obtained, and then the associated information of the equipment to be queried is obtained, so that the accuracy of the associated information of the network equipment to be queried can be improved.
S440, feeding back the associated information of the network equipment to be queried to the network server so that the network server establishes a mapping relation between the associated information and the network equipment to be queried, and the mapping relation is used for determining newly added network equipment in the network equipment cluster; wherein the associated information includes at least one of a device name, a serial number, and a device model number.
The network management end feeds back the acquired associated information of the network equipment to be queried to the network server end, so that the network server end can establish a mapping relation between the associated information and the network equipment to be queried, and the mapping relation is used for determining newly-added network equipment in the network equipment cluster. Specifically, the newly added network device may be a newly added network device corresponding to the newly added IP address, or may be a newly added network device corresponding to the network device IP address locally stored at the network server. Wherein the associated information includes at least one of a device name, a serial number, and a device model number.
According to the technical scheme of the embodiment, the association information of the network equipment to be queried is acquired from the network equipment to be queried by responding to the association information query instruction of the network equipment to be queried, and the association information of the network equipment to be queried is fed back to the network server, so that the association information of the network equipment to be queried can be accurately acquired, the network server establishes a mapping relation between the association information and the network equipment to be queried, the mapping relation is used for determining newly-added network equipment in a network equipment cluster, and the efficiency of the newly-added network equipment is improved.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a network device discovery apparatus according to a fifth embodiment of the present application, which is configured on a network server and is applicable to a case of discovering a new network device, and the specific structure of the network device discovery apparatus is as follows:
an IP address list obtaining module 510, configured to send an IP address list query instruction to at least two network management terminals, and receive an IP address list of a network device in a management network segment of the network device fed back by a corresponding network management terminal; different network management ends manage different network segments;
the IP address adding module 520 is configured to compare the IP address list corresponding to each network management end with the locally stored IP address of the network device, so as to obtain the IP address of the newly added network device.
According to the technical scheme of the embodiment, the IP address list query instruction of the internet protocol address is sent to at least two network management terminals, and the IP address lists of the network devices of the self management network segments fed back by the corresponding network management terminals are received, wherein the network segments managed by different network management terminals are different, so that the IP address lists of the network devices in different network segments can be obtained, and the isolation between different network segments is overcome. And comparing the IP address list corresponding to each network management end with the IP addresses of the network equipment stored locally, finding IP addresses which do not exist in the IP addresses of the network equipment stored locally at the network service end through comparison to obtain the IP addresses of the newly added network equipment, and finding the newly added network equipment through the IP addresses of the network equipment according to the corresponding relation between the IP addresses and the network equipment. The problem that in the prior art, due to the isolation among different network segments, a network server cannot effectively discover network equipment in different network segments is solved, and the effect of improving the effectiveness of network equipment discovery is achieved.
Optionally, the IP address adding module 520 includes:
the IP address duplicate removal unit is used for removing the duplicate of the IP addresses in each IP address list to obtain the IP address to be analyzed;
and the IP address adding unit is used for taking the IP address to be analyzed which does not exist in the IP addresses of the network equipment locally stored by the network server as the IP address of the added network equipment.
Optionally, the network device discovering apparatus further includes:
the system comprises a correlation information acquisition module, a correlation information acquisition module and a correlation information acquisition module, wherein the correlation information acquisition module is used for acquiring correlation information of the newly added network equipment, and the correlation information comprises at least one of equipment name, serial number and equipment model;
the mapping relation establishing module is used for establishing the mapping relation between the associated information and the IP address corresponding to the newly added network equipment;
and the equipment cluster determining module is used for determining the network equipment clusters with the same IP addresses according to the mapping relation.
Optionally, the network device discovering apparatus further includes:
the system comprises a correlation information monitoring module, a correlation information processing module and a correlation information processing module, wherein the correlation information monitoring module is used for monitoring correlation information of each network device in a locally stored network device IP address, and the correlation information comprises at least one of a device name, a serial number and a device model;
the mapping relation increasing module is used for establishing a mapping relation between new associated information and a corresponding IP address if the new associated information exists under the same IP address;
and the stacking device adding module is used for determining a newly added network device cluster in the determined stacking device with the same IP address according to the mapping relation.
The network device discovery apparatus provided by the embodiment of the present application can execute the network device discovery method provided by any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.
Example six
Fig. 6 is a schematic structural diagram of a network device discovery apparatus according to a sixth embodiment of the present application, which is applicable to a case of discovering a new network device and is configured at a network management side, and the specific structure of the network device discovery apparatus is as follows:
a query instruction obtaining module 610, configured to obtain an IP address list query instruction sent by a network server;
the IP address list feedback module 620 is configured to feed back an IP address list of network devices in a network segment managed by the network server to the network server, so that the network server compares IP address lists fed back by different network management terminals with locally stored IP addresses of the network devices to obtain IP addresses of newly added network devices; wherein, different network management terminals manage different network segments.
According to the technical scheme of the embodiment, the network management terminal feeds back the IP address list of the network equipment in the network segment managed by the network management terminal to the network service terminal by receiving the IP address list query instruction sent by the network service terminal, and can feed back the IP address list stored in the network management terminal in time, so that the network service terminal compares the IP address lists fed back by different network management terminals with the IP addresses of the network equipment stored locally to obtain the IP addresses of the newly added network equipment.
Optionally, the network device discovering apparatus further includes:
the system comprises a correlation information query module, a correlation information processing module and a correlation information processing module, wherein the correlation information query module is used for responding to a correlation information query instruction of the network equipment to be queried and acquiring correlation information of the network equipment to be queried;
the mapping relation feedback module is used for feeding back the associated information of the network equipment to be inquired to the network server so that the network server establishes the mapping relation between the associated information and the network equipment to be inquired and is used for determining newly-added network equipment in the network equipment cluster; wherein the associated information includes at least one of a device name, a serial number, and a device model number.
Optionally, the network device discovering apparatus includes:
the notification message acquisition module is used for acquiring a notification message which is sent by the network equipment in the managed network segment based on a Simple Network Management Protocol (SNMP) and comprises IP address information;
and the IP address list information extraction module is used for extracting the IP address list information from the notification message and storing the IP address list information in the equipment information base.
Optionally, the association information query module includes:
the information query instruction sending unit is used for sending an information query instruction to the network equipment to be queried based on the SNMP;
and the associated information acquisition unit is used for acquiring the equipment identification information returned by the network equipment to be inquired based on the SNMP to obtain the associated information of the equipment to be inquired.
The network device discovery apparatus provided by the embodiment of the present application can execute the network device discovery method provided by any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE seven
Fig. 7 is a schematic structural diagram of an electronic apparatus according to a seventh embodiment of the present disclosure, as shown in fig. 7, the electronic apparatus includes a processor 710, a memory 720, an input device 730, and an output device 740; the number of the processors 710 in the electronic device may be one or more, and one processor 710 is taken as an example in fig. 7; the processor 710, the memory 720, the input device 730, and the output device 740 in the electronic apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 7.
The memory 720 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules (e.g., the IP address list obtaining module 510 and the IP address adding module 520) corresponding to the network device discovery method in the embodiment of the present application. The processor 710 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 720, so as to implement the network device discovery method described above.
The memory 720 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 720 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 720 can further include memory located remotely from the processor 710, which can be connected to electronic devices over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 730 may be used to receive input character information and generate key signal inputs related to user settings and function control of the electronic apparatus. The output device 740 may include a display device such as a display screen.
Example eight
An eighth embodiment of the present application further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a network device discovery method, applied to a network server, and the method includes: sending an Internet Protocol (IP) address list query instruction to at least two network management terminals, and receiving an IP address list of network equipment of a self management network segment fed back by the corresponding network management terminal; different network management ends manage different network segments; and comparing the IP address list corresponding to each network management end with the IP addresses of the locally stored network equipment to obtain the IP addresses of the newly added network equipment.
The present application further provides another storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a network device discovery method applied to a network management side, where the method includes: acquiring an IP address list query instruction sent by a network server; feeding back an IP address list of network equipment of a network segment managed by the network server to the network server so that the network server compares the IP address list fed back by different network management ends with the IP addresses of the locally stored network equipment to obtain the IP addresses of the newly added network equipment; wherein, different network management terminals manage different network segments.
Of course, the storage medium provided in the embodiments of the present application and containing computer-executable instructions is not limited to the method operations described above, and may also perform related operations in the network device discovery method provided in any embodiment of the present application.
From the above description of the embodiments, it is obvious for those skilled in the art that the present application can be implemented by software and necessary general hardware, and certainly can be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present application or portions thereof contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling an electronic device (which may be a personal computer, a server, or a network device) to execute the methods described in the embodiments of the present application.
It should be noted that, in the embodiment of the search apparatus, each included unit and each included module are merely divided according to functional logic, but are not limited to the above division, as long as corresponding functions can be implemented; in addition, specific names of the functional units are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (12)

1. A network equipment discovery method is applied to a network server and comprises the following steps:
sending an Internet Protocol (IP) address list query instruction to at least two network management terminals, and receiving an IP address list of network equipment of a self management network segment fed back by the corresponding network management terminal; different network management ends manage different network segments;
and comparing the IP address list corresponding to each network management end with the IP addresses of the locally stored network equipment to obtain the IP addresses of the newly added network equipment.
2. The method of claim 1, wherein comparing the IP address list corresponding to each network management end with the IP addresses of the network devices stored locally by the network service end comprises:
removing duplication of the IP addresses in the IP address lists to obtain IP addresses to be analyzed;
and taking the IP address to be analyzed which does not exist in the IP addresses of the network equipment locally stored by the network server as the IP address of the newly added network equipment.
3. The method of claim 1 or 2, further comprising:
acquiring associated information of the newly added network equipment, wherein the associated information comprises at least one of equipment name, serial number and equipment model;
establishing a mapping relation between the associated information and the IP address corresponding to the newly added network equipment;
and determining the network equipment clusters with the same IP address according to the mapping relation.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
monitoring the associated information of each network device in the IP address of the locally stored network device, wherein the associated information comprises at least one of a device name, a serial number and a device model;
if new associated information exists under the same IP address, establishing a mapping relation between the new associated information and the corresponding IP address;
and determining newly-added network equipment in the determined network equipment cluster with the same IP address according to the mapping relation.
5. A network equipment discovery method is applied to a network management end and comprises the following steps:
acquiring an IP address list query instruction sent by a network server;
feeding back an IP address list of network equipment of a network segment managed by the network server to the network server so that the network server compares the IP address list fed back by different network management ends with the IP address of the locally stored network equipment to obtain the IP address of the newly added network equipment;
wherein, different network management terminals manage different network segments.
6. The method of claim 5, further comprising:
responding to a correlation information query instruction of the network equipment to be queried, and acquiring correlation information of the network equipment to be queried;
feeding back the associated information of the network equipment to be queried to the network server so that the network server establishes a mapping relation between the associated information and the network equipment to be queried, and the mapping relation is used for determining newly added network equipment in a network equipment cluster;
wherein the associated information includes at least one of a device name, a serial number, and a device model.
7. The method of claim 5, wherein the list of IP addresses is generated based on:
acquiring a notification message which is sent by network equipment in a managed network segment based on a Simple Network Management Protocol (SNMP) and comprises IP address information;
and extracting IP address list information from the notification message and storing the IP address list information in an equipment information base.
8. The method according to claim 6, wherein the obtaining the association information of the network device to be queried comprises:
sending an information query instruction to the network equipment to be queried based on the SNMP;
and acquiring the equipment identification information returned by the network equipment to be queried based on the SNMP to obtain the associated information of the equipment to be queried.
9. A network device discovery apparatus, configured at a network server, comprising:
the IP address list acquisition module is used for sending an internet protocol address IP address list query instruction to at least two network management terminals and receiving an IP address list of the network equipment of the self management network segment fed back by the corresponding network management terminal; different network management ends manage different network segments;
and the IP address increasing module is used for comparing the IP address list corresponding to each network management end with the IP address of the locally stored network equipment to obtain the IP address of the newly added network equipment.
10. A network device discovery apparatus, configured at a network management side, comprising:
the query instruction acquisition module is used for acquiring an IP address list query instruction sent by a network server;
the IP address list feedback module is used for feeding back an IP address list of the network equipment of the network segment managed by the network server to the network server so that the network server compares the IP address list fed back by different network management ends with the IP address of the locally stored network equipment to obtain the IP address of the newly added network equipment;
wherein, different network management terminals manage different network segments.
11. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the program, implements the network device discovery method of any one of claims 1-4; and/or implementing the network device discovery method of any one of claims 5-8.
12. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements a network device discovery method according to any one of claims 1-4; and/or implementing the network device discovery method of any of claims 5-8.
CN202210843161.1A 2022-07-18 2022-07-18 Network device discovery method, device, electronic device and storage medium Pending CN115242595A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210843161.1A CN115242595A (en) 2022-07-18 2022-07-18 Network device discovery method, device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210843161.1A CN115242595A (en) 2022-07-18 2022-07-18 Network device discovery method, device, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN115242595A true CN115242595A (en) 2022-10-25

Family

ID=83673436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210843161.1A Pending CN115242595A (en) 2022-07-18 2022-07-18 Network device discovery method, device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN115242595A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0455402A2 (en) * 1990-05-03 1991-11-06 Hewlett-Packard Company Automatic discovery of network elements
US20020124079A1 (en) * 2001-03-02 2002-09-05 Pulsipher Eric A. System for inference of presence of network infrastructure devices
US20060206593A1 (en) * 2005-03-08 2006-09-14 International Business Machines Corporation Use of discovery scanning and method of IP only communication to identify owners and administrators of network attached devices
CN101257406A (en) * 2008-04-14 2008-09-03 中兴通讯股份有限公司 Method and system for discovering net elements
CN101404587A (en) * 2008-11-04 2009-04-08 中国电信股份有限公司 Proxy equipment management method based on simple network management protocol and equipment thereof
CN101478419A (en) * 2008-01-03 2009-07-08 中兴通讯股份有限公司 Network equipment management method and system thereof
US20120173704A1 (en) * 2010-12-31 2012-07-05 Mark Thomas Lingen Method and apparatus of discovering and monitoring network devices
CN105450442A (en) * 2015-11-06 2016-03-30 广东电网有限责任公司电力科学研究院 Network topology checking method and system thereof
CN110932906A (en) * 2019-12-02 2020-03-27 合肥城市云数据中心股份有限公司 Data center network topology structure discovery method based on SNMP technology and topology structure discovery system thereof
CN111949396A (en) * 2020-07-28 2020-11-17 深圳供电局有限公司 Network equipment monitoring method and system and computer readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0455402A2 (en) * 1990-05-03 1991-11-06 Hewlett-Packard Company Automatic discovery of network elements
US20020124079A1 (en) * 2001-03-02 2002-09-05 Pulsipher Eric A. System for inference of presence of network infrastructure devices
US20060206593A1 (en) * 2005-03-08 2006-09-14 International Business Machines Corporation Use of discovery scanning and method of IP only communication to identify owners and administrators of network attached devices
CN101478419A (en) * 2008-01-03 2009-07-08 中兴通讯股份有限公司 Network equipment management method and system thereof
CN101257406A (en) * 2008-04-14 2008-09-03 中兴通讯股份有限公司 Method and system for discovering net elements
CN101404587A (en) * 2008-11-04 2009-04-08 中国电信股份有限公司 Proxy equipment management method based on simple network management protocol and equipment thereof
US20120173704A1 (en) * 2010-12-31 2012-07-05 Mark Thomas Lingen Method and apparatus of discovering and monitoring network devices
CN105450442A (en) * 2015-11-06 2016-03-30 广东电网有限责任公司电力科学研究院 Network topology checking method and system thereof
CN110932906A (en) * 2019-12-02 2020-03-27 合肥城市云数据中心股份有限公司 Data center network topology structure discovery method based on SNMP technology and topology structure discovery system thereof
CN111949396A (en) * 2020-07-28 2020-11-17 深圳供电局有限公司 Network equipment monitoring method and system and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN108737473B (en) Data processing method, device and system
US20180375953A1 (en) Determining a persistent network identity of a networked device
US20180359331A1 (en) Data Cloud Storage System, Client Terminal, Storage Server and Application Method
CN108696581B (en) Distributed information caching method and device, computer equipment and storage medium
US7539150B2 (en) Node discovery and communications in a network
CN109960634B (en) Application program monitoring method, device and system
CN112506670B (en) Multi-node automatic operation and maintenance task processing method, system and storage medium
CN110971702A (en) Service calling method and device, computer equipment and storage medium
CN111221700B (en) Cluster node state monitoring method, device, equipment and readable storage medium
CN112511634A (en) Data acquisition method and device, electronic equipment and storage medium
CN108737586B (en) Disaster recovery switching method and device for domain name query service
CN113014573B (en) Monitoring method, system, electronic device and storage medium of DNS (Domain name Server)
CN110990415A (en) Data processing method and device, electronic equipment and storage medium
CN108076165B (en) Method, equipment and system for domain name resolution information management
CN111404978B (en) Data storage method and cloud storage system
JP6501924B2 (en) Method and server for canceling alert
CN115242595A (en) Network device discovery method, device, electronic device and storage medium
US20190387054A1 (en) Method, electronic device and computer program product for searching for node
CN114338794B (en) Service message pushing method and device, electronic equipment and storage medium
CN107451254B (en) Method for generating unique identifier of database table data
CN112866011B (en) Method, device, equipment and medium for determining network topology structure
CN114880717A (en) Data archiving method and device
CN113965538A (en) Equipment state message processing method, device and storage medium
CN109889619B (en) Abnormal domain name monitoring method and device based on block chain
CN111064609A (en) Master-slave switching method and device of message system, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination