CN114422481A - Network equipment management method and related device - Google Patents

Network equipment management method and related device Download PDF

Info

Publication number
CN114422481A
CN114422481A CN202111518037.XA CN202111518037A CN114422481A CN 114422481 A CN114422481 A CN 114422481A CN 202111518037 A CN202111518037 A CN 202111518037A CN 114422481 A CN114422481 A CN 114422481A
Authority
CN
China
Prior art keywords
network
equipment
network card
online
address
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.)
Granted
Application number
CN202111518037.XA
Other languages
Chinese (zh)
Other versions
CN114422481B (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.)
Shenzhen Kangbida Control Technology Co ltd
Kehua Data Co Ltd
Original Assignee
Shenzhen Kangbida Control Technology Co ltd
Kehua Data 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 Shenzhen Kangbida Control Technology Co ltd, Kehua Data Co Ltd filed Critical Shenzhen Kangbida Control Technology Co ltd
Priority to CN202111518037.XA priority Critical patent/CN114422481B/en
Publication of CN114422481A publication Critical patent/CN114422481A/en
Application granted granted Critical
Publication of CN114422481B publication Critical patent/CN114422481B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/06Management of faults, events, alarms or notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a network equipment management method and a related device, wherein the method comprises the following steps: the device management server sends an information reporting instruction to all online network devices in the appointed network coordination group through the routing device; all online network equipment reports hardware parameter information of the online network equipment through the routing equipment according to the information reporting instruction; the equipment management server compares network card addresses in all hardware parameter information with each other, and identifies the online network equipment with the network card addresses in accordance with the comparison as network conflict equipment. Through the implementation of the scheme, the server side acquires the hardware parameter information of the equipment side in a multicast communication mode, the parameter acquisition of the equipment side can be quickly realized, the communication interaction can be realized across network segments, and the identification efficiency and the success rate of network conflict equipment can be greatly improved.

Description

Network equipment management method and related device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a network device management method and a related apparatus.
Background
In the implementation of engineering projects, the communication equipment often has network conflict situations of "IP address conflict" or "mac address conflict", which can cause the communication network of the whole system to be extremely unstable, so that it is necessary to timely and effectively identify the network conflict equipment in order to ensure the normal operation of the whole communication system.
At present, it is common practice in the related art to search the ARP address field of the online device mainly through "IP scan" or "ARP command", and it is desirable to find out the abnormal device that may cause network conflict from the IP address list. However, the method is premised on that the IP network segment of the network equipment is needed to be known firstly, and the IP network segment which is the same as the IP network segment of the network equipment is added in the network card of the scanning host machine, so that the IP address scanning of all the online equipment can be effectively realized, and the network conflict equipment identification efficiency in practical application is lower; moreover, the method does not support the IP address scanning of the cross-network segment network device, and if the network segment IP of the scanning host and the IP of the online device are repeated, the IP scanning of the device may be invalid, and sometimes, multiple attempts may be needed to succeed, so that the success rate of identifying the network conflict device is low.
Disclosure of Invention
The embodiment of the application provides a network equipment management method and a related device, which can at least solve the problems of low efficiency and low success rate of a network conflict equipment identification method adopted in the related technology.
A first aspect of an embodiment of the present application provides a network device management method, which is applied to a device management server, and includes:
sending an information reporting instruction to all online network equipment in the appointed network coordination group through the routing equipment; wherein all of the online network devices in the agreed network coordination group meet the same private protocol specification;
receiving hardware parameter information reported by all the online network devices through the routing device; wherein the hardware parameter information at least comprises: network card parameters, the network card parameters at least include: a network card address, the network card address comprising: IP address, network card MAC address;
comparing the network card addresses in all the hardware parameter information;
and identifying the online network equipment with the consistent network card address comparison as network conflict equipment.
A second aspect of the embodiments of the present application provides a network device management method, applied to an online network device in an agreed network coordination group, where all the online network devices in the agreed network coordination group meet a same private protocol specification, including:
receiving an information reporting instruction sent by a device management server through a routing device;
responding to the information reporting instruction, and acquiring hardware parameter information of the user; wherein the hardware parameter information at least comprises: network card parameters, the network card parameters at least include: a network card address, the network card address comprising: IP address, network card MAC address;
reporting the hardware parameter information to the equipment management server through the routing equipment; the hardware parameter information is used for the equipment management server to identify network conflict equipment according to the comparison result of all network card addresses.
A third aspect of embodiments of the present application provides an electronic device, including: the network device management method includes a memory and a processor, where the processor is configured to execute a first computer program or a second computer program stored on the memory, and when the processor executes the first computer program, the processor implements the steps in the network device management method provided by the first aspect of the embodiment of the present application, and when the processor executes the second computer program, the processor implements the steps in the network device management method provided by the second aspect of the embodiment of the present application.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, on which a first computer program or a second computer program is stored, where the first computer program, when executed by a processor, implements the steps in the network device management method provided in the first aspect of the embodiments of the present application, and the second computer program, when executed by the processor, implements the steps in the network device management method provided in the second aspect of the embodiments of the present application.
As can be seen from the above, according to the network device management method and the related apparatus provided in the present application, the device management server sends an information reporting instruction to all online network devices in the agreed network coordination group through the routing device; all online network equipment reports hardware parameter information of the online network equipment through the routing equipment according to the information reporting instruction; the equipment management server compares network card addresses in all hardware parameter information with each other, and identifies the online network equipment with the network card addresses in accordance with the comparison as network conflict equipment. Through the implementation of the scheme, the server side acquires the hardware parameter information of the equipment side in a multicast communication mode, the parameter acquisition of the equipment side can be quickly realized, the communication interaction can be realized across network segments, and the identification efficiency and the success rate of network conflict equipment can be greatly improved.
Drawings
Fig. 1 is a schematic basic flowchart of a network device management method applied to a device management server according to a first embodiment of the present application;
fig. 2 is a schematic diagram of a communication system architecture according to a first embodiment of the present application;
fig. 3 is a schematic basic flowchart of a network device management method applied to an online network device side according to a first embodiment of the present application;
fig. 4 is a schematic diagram of program modules of a network device management apparatus applied to a device management server according to a second embodiment of the present application;
fig. 5 is a schematic diagram of program modules of a network device management apparatus applied to an online network device according to a second embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to a third embodiment of the present application.
Detailed Description
In order to make the objects, features and advantages of the present invention more apparent and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to solve the problem of low efficiency and success rate of the network conflict device identification method adopted in the related art, a first embodiment of the present application provides a network device management method, which is applied to a device management server, where the device management server is embedded with a device online management program, and as shown in fig. 1, the basic flowchart of the network device management method provided in this embodiment is shown, where the network device management method includes the following steps:
step 101, sending an information reporting instruction to all online network devices in the appointed network coordination group through the routing device.
Specifically, in this embodiment, all online network devices in the agreed network coordination group meet the same private protocol specification, and each network device is embedded with a multicast response service program corresponding to a private protocol, it should be understood that the multicast response service program is not affected by an application program of the network device, and when an operating system of the device is loaded, the multicast response service program is synchronously loaded.
As shown in fig. 2, which is a schematic diagram of a communication system architecture provided in this embodiment, in a large monitoring project, a multi-segment network setting is usually designed, in this embodiment, application extension is performed on basic information interaction of a communication device based on multicast technical characteristics, an agreed network coordination group is established between a device management server and a network device, only a device host joining the agreed group can perform communication interaction with the device management server, the device management server actively and periodically sends a "discovery" sniffing instruction, and performs multicast to communication devices in a group via a routing device, so as to monitor and respond to application data in a specific multicast domain.
And 102, receiving hardware parameter information reported by all online network equipment through the routing equipment.
Specifically, in this embodiment, the hardware parameter information may include: host name, device type, network card parameters, which may include: network card name, network card address includes: IP address, network card MAC address.
In practical application, the device management server will periodically send out "wake-up" command, and all network devices will actively upload hardware information belonging to themselves, such as: host name, network card number, network card network parameters (network card name, IP address, subnet mask, gateway, mac address). The service program can identify the type of the online network equipment, the number of network cards and the network parameters after receiving the information returned by the network host. It should be noted that the communication interaction convention for the online wake-up of the device in this embodiment is as follows:
[ DOWNLINK REQUEST ]
Wake-up
[ device response ]
The information is the device type; a machine name; the number of network ports;
eth0-name;eth0-ip;eth-mask;eth0-gateway;eth0-mac;
....;
ethn-name;ethn-ip;ethn-mask;ethn-gateway;ethn-mac
the message examples of the device response are as follows:
information R80; kbd125, kbd; 4;
eth0;192.168.1.187;255.255.255.0;192.168.1.15;00:E0:0C:00:96:01;
eth1;192.168.2.198;255.255.255.0;192.168.2.1;00:E0:0C:00:96:02;
eth2;192.168.3.198;255.255.255.0;192.168.3.1;00:E0:0C:00:95:03;
eth3;192.168.4.198;255.255.255.0;192.168.4.1;00:E0:0C:00:95:04
and 103, comparing the network card addresses in all the hardware parameter information.
Specifically, after the device management server receives the hardware parameter information reported by all the online network devices in the group, the device management server performs joint check on all the hardware parameter information, that is, compares the network card addresses of the online network devices with each other to identify whether a plurality of network card addresses are consistent.
It should be noted that, in practical application, in this embodiment, a device file, that is, an online device list, is created for hardware information of all online network devices in a group, after hardware parameter information reported by the online network devices is newly received, the hardware parameter information is compared with the online device list, and if the comparison is inconsistent, it is determined that a new network device is found, the new network device is automatically added to the online device list. Therefore, network card addresses in all hardware parameter information in the online equipment list can be compared, and accuracy of identification of the network conflict equipment is guaranteed.
And 104, identifying the online network equipment with the consistent network card address comparison as network conflict equipment.
Specifically, in practical application, the network card address includes an IP address and a mac address, and the network card address comparison in this embodiment may be that at least one of the two addresses is consistent, for example, different IP addresses are repeated but the mac address is repeated, the mac is not repeated but the IP configuration is repeated, and the IP address and the mac address are both repeated, so that by comparing the network parameters of the online device list, the device that may cause network conflict can be quickly located.
In some embodiments of this embodiment, specific implementation manners of the step of identifying the online network device with the network card address matching as the network conflict device include, but are not limited to, the following two types:
in the first mode, a single online network device with the network card addresses of a plurality of network cards of the network card being consistent in comparison is identified as a network conflict device;
and secondly, identifying a plurality of online network devices with the network card addresses of at least one network card being consistent with each other as network conflict devices.
Specifically, in practical applications, a single network device may be configured with multiple network cards, and if network addresses used by the multiple network cards are repeated, the network device may also generate network conflicts and cannot work normally.
In some embodiments of this embodiment, after the identifying, as the network conflict device, the online network device whose network card address comparison is consistent further includes: generating a parameter modification command based on the device feature code of the network conflict device and the network card address modification value; and sending a parameter modification command to all online network devices in the appointed network coordination group through the routing device.
Specifically, the device feature code of this embodiment includes: host name, network card address; the parameter modification command is used for executing parameter modification corresponding to the network card address modification value when the online network equipment determines that the hardware parameter information of the online network equipment is consistent with the equipment feature code in comparison. In this embodiment, after the network conflict device is identified, a network conflict solution is further proposed for the network conflict device, that is, the conflict address of the network conflict device is modified, in practical application, since the information interaction between the "device online management program" and the network device is a multicast mode, the modification command sent by the management program can be received by the network devices in the same group, so that the device unique identification principle needs to be considered in the setting command frame, and the "host name and the network card address" are combined in the sent setting command frame to form a specific device feature code, so as to ensure that the command information frame can only modify the specific device.
It should be noted that, in practical application, the parameter modification command of this embodiment is not limited to the modification of the network card address, and may also be implemented for a specific engineering project, and for better description, the method for modifying the "host name" of the network device online will be further described below.
The interaction convention for modifying the information frame of the host name is as follows:
[ DOWN COMMAND ]
Changing the host name into eth 0-mac; eth 0-ip; the name of the current host; new host name
[ device response ]
Changing the host name into eth 0-mac; eth 0-ip; a new host name; success of modification
The example of the mutual information frame is as follows:
and (3) sending:
the host name is 00: E0:0C:00:96: 01; 192.168.1.189, respectively; a100; b568
Responding:
the host name is 00: E0:0C:00:96: 01; 192.168.1.189, respectively; b568; success of modification!
Further, in some embodiments of this embodiment, after the step of sending the parameter modification command to all online network devices in the agreed network coordination group through the routing device, the method further includes: receiving parameter modification information reported by network conflict equipment through routing equipment; wherein the parameter modification information includes: host name, modified network card address; sending a communication connection instruction to corresponding online network equipment based on the modified network card address; and determining a parameter modification result of the network conflict device based on the communication connection response result.
Specifically, in practical applications, the communication devices in the same network coordination group are usually self-produced communication devices of the same device manufacturer, and for the device management server of each device manufacturer, the device management server can only obtain network card parameters of the communication devices in the network coordination group, and in the implementation process of the same engineering project, the communication devices produced by a plurality of different device manufacturers may be used simultaneously, so that when parameter modification is performed after network conflict identification is performed by each device management server, the formulated parameter modification information can only ensure that the network card addresses of the communication devices in the group are not repeated, and cannot ensure that the network card addresses of the communication devices of the other device manufacturers in the engineering project are not repeated, that is, the problem of network conflict still exists after parameter modification is performed by the network conflict devices in the group may exist.
Therefore, in this embodiment, after the device management server commands the network conflict device to modify parameters, the communication device further feeds back parameter modification information, where the information feedback is used to enable the device management server to sense that the parameter modification command has come into effect at the communication device end, and then, the device management server senses whether the network card address that has come into effect is real and effective, and the specific solution of this embodiment is that the device management server performs a peer-to-peer communication connection attempt on the online network device corresponding to the modified network card address, if a communication connection response can be obtained, i.e. a peer-to-peer communication connection is successfully established, it indicates that the previous network card address modification value is an effective network card address, and the network conflict problem has been successfully solved, otherwise, if a communication connection response is not obtained, i.e. a peer-to-peer communication connection cannot be established with the online network device, the network card address which is validated is repeated with the network card addresses of the communication devices of other device manufacturers in the engineering project, and the network conflict problem is still not solved.
Further, in some embodiments of this embodiment, after the step of determining the result of modifying the parameter of the network collision device based on the result of the communication connection response, the method further includes: if the parameter modification result is that the parameter modification is invalid, requesting an equipment information list from other equipment management servers which manage different agreed network coordination groups; the device information list comprises hardware parameter information of all online network devices; determining an effective network card address by combining all the equipment information lists; and taking the effective network card address as a network card address modification value, and then returning to execute the step of generating a parameter modification command based on the equipment feature code of the network conflict equipment and the network card address modification value.
Specifically, in order to completely solve the problem of network collision when communication devices of multiple device manufacturers are involved in an engineering project, in practical application, when obtaining a network collision device fails, a device management server may re-formulate a new network card address modification value different from the previous network card address modification value in combination with a network card address of an in-group device, and then continue to repeatedly execute the device parameter modification process once.
Therefore, when parameter modification is invalid, the embodiment applies to the engineering project background for the communication authority of the device management servers which manage different agreed network coordination groups, then requests the device information list of the network coordination group from other device management servers, then combines the existing network card addresses of all online network devices in the engineering project to formulate the network card address which can be effectively used by the current network conflict device, and finally uses the network card address as the network card address modification value to continue to repeatedly execute the device parameter modification process, thereby ensuring the parameter modification success rate and improving the solution efficiency of the network conflict problem.
Correspondingly, the first embodiment of the present invention further provides a network device management method, which is applied to online network devices in an agreed network coordination group, where all online network devices in the agreed network coordination group meet the same proprietary protocol specification, as shown in fig. 3, which is a basic flowchart of the network device management method provided in this embodiment, and the network device management method includes the following steps:
step 301, receiving an information reporting instruction sent by a device management server through a routing device;
step 302, responding to an information reporting instruction, and acquiring hardware parameter information of the user;
and step 303, reporting the hardware parameter information to the equipment management server through the routing equipment.
In this embodiment, the hardware parameter information may include: host name, device type, network card parameters, which may include: the network card name, the network card address may include: and the IP address, the MAC address of the network card and the hardware parameter information are used for identifying the network conflict equipment by the equipment management server according to the comparison result of all network card addresses. It should be noted that in practical applications, a single network device may have multiple network cards, and if the multiple network cards respond hardware parameter information to the device management server at the same time, the device management server may occupy excessive network bandwidth, so that the embodiment may control the first network card currently online by the network device to send all hardware parameter information of the network device, improve the utilization rate of the network bandwidth, and reduce the network load.
In some embodiments of this embodiment, after the step of reporting the hardware parameter information to the device management server through the routing device, the method further includes: receiving a parameter modification command sent by the equipment management server through the routing equipment; wherein the parameter modification command comprises: equipment feature code and network card address modification value, equipment feature code includes: host name, network card address; comparing the hardware parameter information with the equipment feature code; and when the comparison is consistent, modifying the current network card address by referring to the network card address modification value.
Specifically, after a multicast response service program embedded in the online network equipment receives a multicast setting command, parameters of command type, machine name, mac address, ip address and command in an information frame are respectively analyzed and compared with the parameters of the machine name, mac address and ip address of the local machine, if hardware characteristic information in the command frame is inconsistent, the hardware characteristic information is discarded without being processed, and otherwise, corresponding parameter modification operation is executed according to the command type.
Further, in some embodiments of this embodiment, the step of modifying the current network card address by referring to the network card address modification value includes: newly building a script file copy, and searching the initial line position and the end line position of the network card address in the script file copy; writing the content before the position of the initial line into a temporary file; additionally writing the network card address modification value into a temporary file; additionally writing the content after the line position is ended into a temporary file; and calling a host restart command to restart so as to enable the network card address modification value to take effect.
Specifically, for modifying the hardware parameters of the network device, the embodiment may be completed by directly modifying the rc.kbd8000 script file in the LINUX system by a custom method. The treatment process comprises the following steps:
1) establishing an rc.kbd8000 script file copy, and avoiding that the system cannot normally run due to the failure of directly modifying the script file (such as: the situation that the device is powered off without the script being modified is described
2) Opening a script file copy, and searching the initial line position of the network card address;
3) continuously searching the end position of the row where the network card address is located;
4) writing the content in front of the network card address line into a temporary file rc1.kbd8000 again;
5) additionally writing the newly modified network card address into a temporary file rc1.kbd 8000;
6) continuing to additionally write the content behind the row end position where the network card address is located into a temporary file rc1.kbd 8000;
7) rc1.kbd8000 temporary file rename rc. kbd 8000. So far, the modification of the rc.kbd8000 script file is finished;
8) and calling a reboot command, and automatically restarting the network equipment host to realize the effect of the hardware parameters.
Other network parameter modification methods are similar (e.g., IP modification, subnet mask modification, and machine name modification), and are not described in detail in this embodiment.
Therefore, the embodiment can quickly identify the online self-production network equipment list through the one-key scanning function, and accurately identify the network equipment: the device type, the product name, the number of the network ports, the IP of the network ports, the subnet masks and the gateway parameters are analyzed and compared with the network parameters in the online device list, so that the devices which possibly cause network conflicts can be quickly positioned; by using the combination of the device feature codes (the combination of the device name, mac and ip), the network parameters of the specified device can be adjusted and optimized on line; the method can realize the scanning of the equipment across network segments, does not need to determine whether the network card of the online scanning host is in the same network segment with the equipment, and can greatly improve the efficiency of network problem troubleshooting. The method is very suitable for checking the network problems under the application occasions of complex communication networks and more network equipment, is particularly suitable for solving the communication instability caused by equipment network parameter conflict in the projects of large-scale comprehensive energy management and control, electric power monitoring, industrial automation, data centers, airport comprehensive power distribution and the like, and improves the work efficiency of engineering personnel maintenance.
Based on the technical scheme of the embodiment of the application, the equipment management server sends an information reporting instruction to all online network equipment in the appointed network coordination group through the routing equipment; all online network equipment reports hardware parameter information of the online network equipment through the routing equipment according to the information reporting instruction; the equipment management server compares network card addresses in all hardware parameter information with each other, and identifies the online network equipment with the network card addresses in accordance with the comparison as network conflict equipment. Through the implementation of the scheme, the server side acquires the hardware parameter information of the equipment side in a multicast communication mode, the parameter acquisition of the equipment side can be quickly realized, the communication interaction can be realized across network segments, and the identification efficiency and the success rate of network conflict equipment can be greatly improved.
Fig. 4 is a network device management apparatus according to a second embodiment of the present application. The network device management apparatus may be configured to implement the network device management method on the device management server side in the foregoing embodiment, and the network device management apparatus mainly includes:
a first sending module 401, configured to send an information reporting instruction to all online network devices in the agreed network coordination group through the routing device; wherein, appointing all online network devices in the network coordination group to meet the same private protocol standard;
a first receiving module 402, configured to receive hardware parameter information reported by all online network devices through a routing device; wherein the hardware parameter information at least comprises: network card parameters, the network card parameters at least include: the network card address comprises: IP address, network card MAC address;
a comparison module 403, configured to compare network card addresses in all hardware parameter information with each other;
and an identifying module 404, configured to identify the online network device with the network card address matching as a network conflict device.
In some embodiments of this embodiment, the network device management apparatus further includes: the first modification module is used for generating a parameter modification command based on the device feature code of the network conflict device and the network card address modification value; wherein, the device feature code includes: host name, network card address; sending a parameter modification command to all online network equipment in the appointed network coordination group through the routing equipment; and the parameter modification command is used for executing parameter modification corresponding to the network card address modification value when the online network equipment determines that the hardware parameter information of the online network equipment is consistent with the equipment feature code in comparison.
Further, in some implementations of this embodiment, the first modification module is further configured to: receiving parameter modification information reported by network conflict equipment through routing equipment; wherein the parameter modification information includes: host name, modified network card address; sending a communication connection instruction to corresponding online network equipment based on the modified network card address; and determining a parameter modification result of the network conflict device based on the communication connection response result.
Further, in some embodiments of this embodiment, the first modification module is further configured to: if the parameter modification result is that the parameter modification is invalid, requesting an equipment information list from other equipment management servers which manage different agreed network coordination groups; the device information list comprises hardware parameter information of all online network devices; determining an effective network card address by combining all the equipment information lists; and taking the effective network card address as a network card address modification value, and then returning to execute the function of generating a parameter modification command based on the equipment feature code of the network conflict equipment and the network card address modification value.
In some embodiments of this embodiment, the identification module is specifically configured to: identifying a single online network device with the network card addresses of a plurality of network cards of the single online network device being consistent in comparison as a network conflict device; and/or identifying a plurality of online network devices with the network card addresses of at least one network card being consistent with each other as network conflict devices.
Fig. 5 is a network device management apparatus according to a second embodiment of the present application. The network device management apparatus may be used to implement the network device management method on the online network device side in the foregoing embodiment, and the network device management apparatus mainly includes:
a second receiving module 501, configured to receive an information reporting instruction sent by the device management server through the routing device;
an obtaining module 502, configured to obtain hardware parameter information of itself in response to the information reporting instruction; wherein the hardware parameter information at least comprises: network card parameters, the network card parameters at least include: the network card address comprises: IP address, network card MAC address;
a second sending module 503, configured to report hardware parameter information to the device management server through the routing device; the hardware parameter information is used for the equipment management server to identify the network conflict equipment according to the comparison result of all network card addresses.
In some embodiments of this embodiment, the network device management apparatus of this embodiment further includes: the second modification module is used for receiving a parameter modification command sent by the equipment management server through the routing equipment; wherein the parameter modification command comprises: equipment feature code and network card address modification value, equipment feature code includes: host name, network card address; comparing the hardware parameter information with the equipment feature code; and when the comparison is consistent, modifying the current network card address by referring to the network card address modification value.
Further, in some embodiments of this embodiment, when executing the function of modifying the current network card address by referring to the network card address modification value, the second modification module is specifically configured to: newly building a script file copy, and searching the initial line position and the end line position of the network card address in the script file copy; writing the content before the position of the initial line into a temporary file; additionally writing the network card address modification value into a temporary file; additionally writing the content after the line position is ended into a temporary file; and calling a host restart command to restart so as to enable the network card address modification value to take effect.
It should be noted that, the network device management method in the first embodiment can be implemented based on the network device management apparatus provided in this embodiment, and it can be clearly understood by those skilled in the art that, for convenience and simplicity of description, a specific working process of the network device management apparatus described in this embodiment may refer to a corresponding process in the foregoing method embodiment, and details are not described here.
Based on the technical scheme of the embodiment of the application, the equipment management server sends an information reporting instruction to all online network equipment in the appointed network coordination group through the routing equipment; all online network equipment reports hardware parameter information of the online network equipment through the routing equipment according to the information reporting instruction; the equipment management server compares network card addresses in all hardware parameter information, and identifies the online network equipment with the network card addresses in accordance with the comparison as network conflict equipment. Through the implementation of the scheme, the server side acquires the hardware parameter information of the equipment side in a multicast communication mode, the parameter acquisition of the equipment side can be quickly realized, the communication interaction can be realized across network segments, and the identification efficiency and the success rate of network conflict equipment can be greatly improved.
Fig. 6 is an electronic device according to a third embodiment of the present application. The electronic device may be configured to implement the network device management method in the foregoing embodiment, and mainly includes:
a memory 601, a processor 602, and a computer program 603 stored on the memory 601 and executable on the processor 602, the memory 601 and the processor 602 being communicatively coupled. The processor 602, when executing the computer program 603, implements the network device management method in the foregoing embodiments. Wherein the number of processors may be one or more.
The Memory 601 may be a high-speed Random Access Memory (RAM) Memory, or a non-volatile Memory (non-volatile Memory), such as a disk Memory. The memory 601 is used for storing executable program code, and the processor 602 is coupled with the memory 601.
Further, an embodiment of the present application also provides a computer-readable storage medium, where the computer-readable storage medium may be provided in the electronic device in the foregoing embodiments, and the computer-readable storage medium may be the memory in the foregoing embodiment shown in fig. 6.
The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the network device management method in the foregoing embodiments. Further, the computer-readable storage medium may be various media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a RAM, a magnetic disk, or an optical disk.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a readable storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned readable storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In view of the above description of the network device management method and the related apparatus provided by the present application, those skilled in the art will recognize that there may be variations in the embodiments and applications of the idea of the present application.

Claims (10)

1. A network equipment management method is applied to an equipment management server and is characterized by comprising the following steps:
sending an information reporting instruction to all online network equipment in the appointed network coordination group through the routing equipment; wherein all of the online network devices in the agreed network coordination group meet the same private protocol specification;
receiving hardware parameter information reported by all the online network devices through the routing device; wherein the hardware parameter information at least comprises: network card parameters, the network card parameters at least include: a network card address, the network card address comprising: IP address, network card MAC address;
comparing the network card addresses in all the hardware parameter information;
and identifying the online network equipment with the consistent network card address comparison as network conflict equipment.
2. The method according to claim 1, wherein after the online network device with the network card address matching is identified as a network conflict device, the method further comprises:
generating a parameter modification command based on the device feature code of the network conflict device and the network card address modification value; wherein the device feature code comprises: host name, said network card address;
sending the parameter modification command to all the online network devices in the agreed network coordination group through the routing device; and the parameter modification command is used for executing parameter modification corresponding to the network card address modification value when the online network equipment determines that the hardware parameter information of the online network equipment is consistent with the equipment feature code in comparison.
3. The network device management method of claim 2, wherein after the step of sending the parameter modification command to all the online network devices in the agreed network coordination group through the routing device, further comprising:
receiving parameter modification information reported by the network conflict equipment through the routing equipment; wherein the parameter modification information includes: the host name and the modified network card address;
sending a communication connection instruction to the corresponding online network equipment based on the modified network card address;
determining a parameter modification result of the network collision device based on the communication connection response result.
4. The method according to claim 3, wherein the step of determining the result of modifying the parameter of the network conflicting device based on the communication connection response result is followed by:
if the parameter modification result is that the parameter modification is invalid, requesting an equipment information list from other equipment management servers which manage different agreed network coordination groups; wherein the device information list includes the hardware parameter information of all the online network devices;
determining an effective network card address by combining all the equipment information lists;
and taking the effective network card address as the network card address modification value, and then returning to execute the step of generating a parameter modification command based on the equipment feature code of the network conflict equipment and the network card address modification value.
5. The method according to any one of claims 1 to 4, wherein the step of identifying the online network device with the network card address matching as a network conflict device includes:
identifying the single online network device with the network card addresses of the plurality of network cards as network conflict devices;
and/or identifying a plurality of online network devices with the network card addresses of at least one network card being consistent with each other as network conflict devices.
6. A network device management method is applied to online network devices in an agreed network coordination group, wherein all the online network devices in the agreed network coordination group meet the same private protocol specification, and the method is characterized by comprising the following steps:
receiving an information reporting instruction sent by a device management server through a routing device;
responding to the information reporting instruction, and acquiring hardware parameter information of the user; wherein the hardware parameter information at least comprises: network card parameters, the network card parameters at least include: a network card address, the network card address comprising: IP address, network card MAC address;
reporting the hardware parameter information to the equipment management server through the routing equipment; the hardware parameter information is used for the equipment management server to identify network conflict equipment according to the comparison result of all network card addresses.
7. The method according to claim 6, wherein after the step of reporting the hardware parameter information to the device management server through the routing device, the method further comprises:
receiving a parameter modification command sent by the equipment management server through the routing equipment; wherein the parameter modification command comprises: device feature code and network card address modification value, the device feature code includes: host name, said network card address;
comparing the hardware parameter information with the equipment feature code;
and when the comparison is consistent, modifying the current network card address by referring to the network card address modification value.
8. The method according to claim 7, wherein the step of modifying the current network card address with reference to the modified value of the network card address comprises:
newly building a script file copy, and searching the initial line position and the end line position of the network card address in the script file copy;
writing the content before the starting line position into a temporary file;
additionally writing the network card address modification value into the temporary file;
additionally writing the content after the ending line position into the temporary file;
and calling a host restart command to restart so as to enable the network card address modification value to take effect.
9. An electronic device comprising a memory and a processor, wherein:
the processor is operable to execute a first computer program or a second computer program stored on the memory;
the processor, when executing the first computer program, realizes the steps of the method of any one of claims 1 to 5, and the processor, when executing the second computer program, realizes the steps of the method of any one of claims 6 to 8.
10. A computer-readable storage medium, on which a first computer program or a second computer program is stored, characterized in that the first computer program realizes the steps of the method of any one of claims 1 to 5 when being executed by a processor, and the second computer program realizes the steps of the method of any one of claims 6 to 8 when being executed by a processor.
CN202111518037.XA 2021-12-13 2021-12-13 Network equipment management method and related device Active CN114422481B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111518037.XA CN114422481B (en) 2021-12-13 2021-12-13 Network equipment management method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111518037.XA CN114422481B (en) 2021-12-13 2021-12-13 Network equipment management method and related device

Publications (2)

Publication Number Publication Date
CN114422481A true CN114422481A (en) 2022-04-29
CN114422481B CN114422481B (en) 2024-03-15

Family

ID=81266406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111518037.XA Active CN114422481B (en) 2021-12-13 2021-12-13 Network equipment management method and related device

Country Status (1)

Country Link
CN (1) CN114422481B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666241A (en) * 2022-05-18 2022-06-24 浙江国利网安科技有限公司 Method and device for identifying industrial control asset information

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040003977A (en) * 2002-07-05 2004-01-13 스콥정보통신 주식회사 IP collision detection/ Interseption method thereof
US20050198242A1 (en) * 2004-01-05 2005-09-08 Viascope Int. System and method for detection/interception of IP collision
CN102202103A (en) * 2010-03-23 2011-09-28 中兴通讯股份有限公司 Method, system and device for accessing network equipment
WO2011150883A2 (en) * 2011-06-23 2011-12-08 华为终端有限公司 Method and device for terminal batch upgrading
CN102281333A (en) * 2010-06-11 2011-12-14 中兴通讯股份有限公司 Method and system for avoiding IP address conflict, DHCP server and DHCP client
CN102333132A (en) * 2011-09-13 2012-01-25 成都华迈通信技术有限公司 Method for automatically searching cameras and solving IP conflicts
US20120317252A1 (en) * 2011-06-09 2012-12-13 Freescale Semiconductor, Inc Method and system for address conflict resolution
CN106790756A (en) * 2016-12-29 2017-05-31 山东鲁能智能技术有限公司 Distribution terminal MAC address automatic generation method and system
KR101959733B1 (en) * 2018-11-23 2019-03-19 주식회사 파이오링크 Method and device for configuring a switch which is newly connected to a network by performing auto-ip provision to acqure information on a network by using arp packets passing by itself
CN110113218A (en) * 2019-05-24 2019-08-09 深圳云里物里科技股份有限公司 A kind of gateway configuration method, system, computer storage medium and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040003977A (en) * 2002-07-05 2004-01-13 스콥정보통신 주식회사 IP collision detection/ Interseption method thereof
US20050198242A1 (en) * 2004-01-05 2005-09-08 Viascope Int. System and method for detection/interception of IP collision
CN102202103A (en) * 2010-03-23 2011-09-28 中兴通讯股份有限公司 Method, system and device for accessing network equipment
CN102281333A (en) * 2010-06-11 2011-12-14 中兴通讯股份有限公司 Method and system for avoiding IP address conflict, DHCP server and DHCP client
US20120317252A1 (en) * 2011-06-09 2012-12-13 Freescale Semiconductor, Inc Method and system for address conflict resolution
WO2011150883A2 (en) * 2011-06-23 2011-12-08 华为终端有限公司 Method and device for terminal batch upgrading
CN102333132A (en) * 2011-09-13 2012-01-25 成都华迈通信技术有限公司 Method for automatically searching cameras and solving IP conflicts
CN106790756A (en) * 2016-12-29 2017-05-31 山东鲁能智能技术有限公司 Distribution terminal MAC address automatic generation method and system
KR101959733B1 (en) * 2018-11-23 2019-03-19 주식회사 파이오링크 Method and device for configuring a switch which is newly connected to a network by performing auto-ip provision to acqure information on a network by using arp packets passing by itself
CN110113218A (en) * 2019-05-24 2019-08-09 深圳云里物里科技股份有限公司 A kind of gateway configuration method, system, computer storage medium and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
魏晓;胡金初;魏仕民;: "基于数据包嗅探的主机网络地址自动配置方法", 计算机工程与设计, no. 14, 23 July 2007 (2007-07-23), pages 3357 - 3360 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666241A (en) * 2022-05-18 2022-06-24 浙江国利网安科技有限公司 Method and device for identifying industrial control asset information
CN114666241B (en) * 2022-05-18 2022-09-30 浙江国利网安科技有限公司 Method and device for identifying industrial control asset information

Also Published As

Publication number Publication date
CN114422481B (en) 2024-03-15

Similar Documents

Publication Publication Date Title
US20170180456A1 (en) Method, device, and system for controlling network device auto-provisioning
CN107919994B (en) Method and server for realizing hot standby of network service dual-computer
CN110611603B (en) Cluster network card monitoring method and device
CN113556274A (en) Method, device, system, controller and equipment for terminal access authentication
US11522754B2 (en) Systems and methods for Zero-Touch Provisioning of a switch in intermediate distribution frames and main distribution frames
CN114422481A (en) Network equipment management method and related device
CN113905050A (en) Method, device and system for detecting internet access information
CN101404594B (en) Hot backup performance test method and apparatus, communication equipment
CN111405059A (en) Data transmission method of cloud equipment, electronic equipment and Internet of things system
US11128558B2 (en) Automatic routing configuration between hosts and network layer devices
CN109445988B (en) Heterogeneous disaster recovery method, device, system, server and disaster recovery platform
CN115174528A (en) Equipment address control method, device and system
CN103916280A (en) Blade server management network driving DHCP allocating method
CN110109933B (en) Information maintenance method, configuration management database system and storage medium
CN113568669A (en) Service board card starting method based on orthogonal architecture, service board card and orthogonal equipment
US20190286599A1 (en) Dual way communication method, system, and master device thereof
CN114189426B (en) Proxy service self-adaptive tape configuration reply method, system, device and storage medium
CN111585788B (en) Method, system and storage medium for updating operation parameter values of service board card
CN105323088A (en) Springboard processing method and springboard processing device
CN115086219B (en) Virtual router determining method, device and computer readable storage medium
CN113259468B (en) Network equipment configuration method and device
CN111654403B (en) Wireless access point configuration method and device, communication equipment and readable storage medium
CN114598643B (en) Data backup method and device
CN116132266A (en) Method, system, storage medium and equipment for keeping BMC network stable
CN111327660A (en) Information interaction method for edge computing node

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