Disclosure of Invention
In view of this, an object of the present disclosure is to provide a network device management method, apparatus and server.
In a first aspect, an embodiment of the present disclosure provides a network device management method, which is applied to a server that manages network devices, and the method includes:
receiving a device replacement task, wherein the device replacement task comprises device information of a network device to be replaced and device information of a target network device for replacing the network device to be replaced;
searching and obtaining configuration information of the network equipment to be replaced according to the equipment information of the network equipment to be replaced, and sending the configuration information to the target network equipment;
enabling the target network device to use the configuration information of the network device to be replaced as the starting configuration information of the target network device and starting the target network device; wherein the configuration information includes a static IP of the network device to be replaced.
Optionally, before the step of obtaining the configuration information of the network device to be replaced by searching according to the device information of the network device to be replaced and sending the configuration information to the target network device, the method further includes:
carrying out IP solidification on network equipment to be managed and adding the network equipment to be managed into a management network of the server;
and backing up the configuration information of the network equipment in the management network according to a set time interval.
Optionally, the step of obtaining configuration information of the network device to be replaced by searching according to the device information of the network device to be replaced and sending the configuration information to the target network device includes:
searching and obtaining the configuration information of the network equipment to be replaced according to the equipment information of the network equipment to be replaced;
judging whether the target network equipment is added into the management network of the server or not, and if so, sending the configuration information obtained by searching to the target network equipment; and if the target network equipment is not added into the management network, adding the target network equipment into the management network to realize the admission of the target network equipment, and sending the configuration information obtained by searching to the target network equipment.
Optionally, the step of adding the target network device to the management network includes:
detecting whether new equipment appears, and if the new equipment appears, inquiring to obtain equipment information of the new equipment;
and judging whether the equipment information of the new equipment is matched with the equipment information of the target network equipment, if so, judging that the new equipment is the target network equipment, and adding the new equipment into the management network.
Optionally, the method further comprises:
judging whether the network equipment to be replaced is stacking member equipment or not according to the equipment replacement task, and if the network equipment to be replaced is stacking member equipment, acquiring the stacking member ID of the network equipment to be replaced;
and sending the stacking member ID to the target network equipment so that the target network equipment takes the stacking member ID of the network equipment to be replaced as the stacking member ID of the target network equipment, and starts the target network equipment by taking the configuration information of the network equipment to be replaced as the starting configuration information of the target network equipment.
In a second aspect, an embodiment of the present disclosure provides a network device management apparatus, which is applied to a server that manages network devices, where the network device management apparatus includes:
the information receiving module is used for receiving a device replacement task, wherein the device replacement task comprises device information of the network device to be replaced and device information of a target network device for replacing the network device to be replaced;
the information sending module is used for searching and obtaining the configuration information of the network equipment to be replaced according to the equipment information of the network equipment to be replaced and sending the configuration information to the target network equipment;
the information processing module is used for enabling the target network equipment to use the configuration information of the network equipment to be replaced as the starting configuration information of the target network equipment and starting the target network equipment; wherein the configuration information includes a static IP of the network device to be replaced.
Optionally, the network device management apparatus further includes:
the IP curing module is used for carrying out IP curing on the network equipment to be managed and adding the network equipment to be managed into the management network of the server;
and the backup module is used for backing up the configuration information of the network equipment in the management network according to a set time interval.
Optionally, the information sending module is specifically configured to, in a process of obtaining configuration information of the network device to be replaced by searching according to the device information of the network device to be replaced and sending the configuration information to the target network device, obtain configuration information of the network device to be replaced by searching according to the device information of the network device to be replaced;
judging whether the target network equipment is added into the management network of the server or not, and if so, sending the configuration information obtained by searching to the target network equipment; and if the target network equipment is not added into the management network, adding the target network equipment into the management network to realize the admission of the target network equipment, and sending the configuration information obtained by searching to the target network equipment.
Optionally, the information sending module is specifically configured to, during a process of adding the target network device to the management network, detect whether a new device appears, and if a new device appears, query to obtain device information of the new device;
and judging whether the equipment information of the new equipment is matched with the equipment information of the target network equipment, if so, judging that the new equipment is the target network equipment, and adding the new equipment into the management network.
Optionally, the network device management apparatus further includes:
the device judgment module is used for judging whether the network device to be replaced is a stacking member device or not according to the device replacement task, and if the network device to be replaced is the stacking member device, the stacking member ID of the network device to be replaced is obtained;
the information sending module is further configured to send the stacking member ID to the target network device;
the information processing module is specifically configured to enable the target network device to use the stacking member ID of the network device to be replaced as the stacking member ID of the target network device, and use the configuration information of the network device to be replaced as the start configuration information of the target network device, so as to start the target network device.
In a third aspect, an embodiment of the present disclosure provides a server, including:
a memory;
a processor; the memory is configured to store one or more computer instructions, and the one or more computer instructions are executed by the processor to implement the network device management method.
In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, where the computer-readable storage medium includes a computer program, and the computer program controls, when running, a server where the computer-readable storage medium is located to execute the network device management method.
According to the network device management method, the network device management device and the network device management server provided by the embodiment of the disclosure, when a device replacement task is received, the configuration information of the network device to be replaced is found and sent to the target network device, the configuration information comprises the static IP of the network device to be replaced, so that the target network device takes the configuration information of the network device to be replaced as the starting configuration information of the target network device and starts the target network device, and the target network device "inherits" various configuration information such as the static IP of the network device to be replaced, so that various services can be reserved without reconfiguration, and the applicability is high.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
In the network device management architecture, network device replacement is required in many cases, for example, if a network device fails, the associated service of the failed network device in the network may cause an interruption, and in order to ensure the normal operation of the service, the network device needs to be removed from the network and then a new device needs to be added. After the network device is replaced, the services previously associated with the failed network device, such as Virtual Extensible LAN (VXLAN) connection, Fabric tenant Management, BSM (Business Service Management), etc., need to be re-associated, thereby consuming a lot of time for maintenance personnel, and causing Service interruption due to untimely association of some services.
The inventor researches and discovers that the main reasons that the business of the previously associated failed network equipment needs to be re-associated after the network equipment is replaced include: after the new device replaces the failed network device, the IP (internet protocol) address of the new device in the network is different from the IP address of the failed network device in the network, so that the service previously established based on the IP address of the failed network device cannot work normally (for example, a user establishes a monitoring service on a network management server for monitoring vxlan tunnel traffic between the network device a and the network device B, and if the network device B fails, the IP address of the failed device, that is, the network device B, is associated with the monitoring service previously established in the network management server, while the IP address of the new device C replacing the network device B is a brand new IP address, so that the monitoring service previously established by the user cannot be used). For the network management server, it is also necessary to ensure that the service established between the network management server and the new device operates normally, and therefore, information related to the service needs to be re-associated with the new device to ensure that the service established between the network management server and the new network device operates normally. In addition, after the new device replaces the failed network device, if the configuration information of the failed network device is incomplete, for example, part of the configuration information is lost and not backed up, the maintenance personnel is required to manually issue the missing configuration information and re-associate the service, so that the service is normal. The manual issuing of the configuration information and the re-association of the service by the maintenance personnel not only consumes a large labor cost, but also consumes a long time, which causes a long-time interruption of the service in the network, such as an interruption of one hour or even several hours, thereby causing an immeasurable loss.
Based on the above research, the embodiments of the present disclosure provide a network device management method, apparatus, and server, where the static IP is allocated to a network device by the server, and after a new device joins a network, the server sends configuration information of the network device to be replaced to the new device, where the configuration information includes the static IP of the network device to be replaced, and after the configuration information of the network device to be replaced is used as start configuration information of the new device, the new device is started, so that the new device can directly "inherit" the configuration information of the network device to be replaced, and the static IP of the network device to be replaced is used as its own static IP to operate, so that a maintenance person is not required to manually issue the configuration information. After verification, the adoption of the network equipment replacement scheme basically cannot cause service interruption, avoids the occurrence of long-time service interruption in the network, and has higher applicability.
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Fig. 1 is a block diagram of aserver 10 provided in the embodiment of the present disclosure. Theserver 10 in the embodiment of the present disclosure may be an electronic device having device management and information processing functions. As shown in fig. 1, theserver 10 includes:memory 11,processor 12,network module 13 and networkdevice management apparatus 20.
Thememory 11, theprocessor 12 and thenetwork module 13 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. Thememory 11 stores one or more computer instructions, such as the networkdevice management apparatus 20 in the embodiment of the present disclosure, which are executed by the processor, so as to implement various functional applications and information processing, that is, implement the network device management method in the embodiment of the present disclosure.
TheMemory 11 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. Thememory 11 is used for storing a program, and theprocessor 12 executes the program after receiving an execution instruction.
Theprocessor 12 may be an integrated circuit chip having data processing capabilities. TheProcessor 12 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like. The methods, steps, and logic blocks disclosed in the embodiments of the present disclosure may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Thenetwork module 13 is used for establishing a communication connection between theserver 10 and an external communication terminal through a network, and implementing a transceiving operation of network signals and data.
It will be appreciated that the configuration shown in fig. 1 is merely illustrative and thatserver 10 may include more or fewer components than shown in fig. 1 or may have a different configuration than shown in fig. 1. For example, in the embodiment of the present disclosure, theserver 10 may further include network management software for implementing a network device management function.
The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof. Embodiments of the present disclosure also provide a computer-readable storage medium including a computer program. The computer program controls theserver 10 on which the computer-readable storage medium is executed to perform the following network device management method.
Referring to fig. 2, theserver 10 implements network device management by the following steps.
In step S21, the reception apparatus replaces the task.
The device replacement task comprises device information of the network device to be replaced and device information of a target network device for replacing the network device to be replaced.
The device replacement task may be created by a user, for example, the user may invoke a device replacement task creation interface, input device information of the network device to be replaced and device information of the target network device in the interface, complete the created device replacement task and submit the task to theserver 10, and theserver 10 performs a device replacement operation according to the received device replacement task. The device replacement task may also be automatically created by a preset electronic device, for example, a monitoring device for monitoring the operating state of each network device may be set, the monitoring device automatically monitors the operating state of each network device and determines whether there is a network device that satisfies the replacement condition, and if there is a network device that satisfies the replacement condition, the device replacement task is automatically created. There are other ways to create the device replacement task, and this embodiment is not illustrated here.
The device information of the network device to be replaced and the device information of the target network device may be various, for example, the device information may include a Serial Number (SN), and for example, the device information may also include information such as a device type, a device name, a device IP address, and the like, as long as the network device to be replaced and the target network device can be identified based on the device information, which is not limited in this embodiment.
Step S22, finding the configuration information of the network device to be replaced according to the device information of the network device to be replaced, and sending the configuration information to the target network device.
Optionally, theserver 10 pre-stores the corresponding relationship between the configuration information of each network device in the management network and the device information, so that after receiving the device replacement task, the configuration information of the network device to be replaced can be found and obtained according to the device information of the network device to be replaced.
Referring to fig. 3 in combination, the embodiment of the present disclosure lists one exemplary implementation manner in which theserver 10 stores the configuration information of the network device in advance through steps S31 and S32.
Step S31, IP-curing the network device to be managed and adding the network device to the management network of theserver 10.
Through IP solidification, each network device added into the management network has a static IP, and each service accesses the network device based on the static IP of the network device.
There are various ways to implement IP curing, for example, the IP of a network device may be configured as a static IP under the management port of the network device. For another example, theserver 10 may query the IP address of the Management port of the Network device from the Network device through a NETCONF (Network configuration Protocol) interface, and then log in the Management port of the Network device in a Simple Network Management Protocol (SNMP) manner to issue the IP address information allocated to the Network device, thereby implementing IP curing.
The network device to be managed is added to the management network of theserver 10, so as to implement management of the network device to be managed, for example, when theserver 10 is installed with network management software, the network management software can manage each network device in the management network, and the management of the network device may include: creating configuration information, backing up configuration information, replacing network equipment, updating network equipment configuration information and IP addresses and the like.
Step S32, backup the configuration information of the network device in the management network according to the set time interval.
The configuration information of the network device includes all operation configuration data of the network device in the management network, for example, the configuration information may include operator information of the network device, NETCONF access parameter information, SNMP parameter information, and the like, and when the network device is a stacking device, the configuration information may further include stacking member id (member id) information associated with a stacking Port (IRF-Port) of the network device, configuration information on each interface of the network device, and the like.
The setting time interval can be flexibly set, for example, it can be set to daily, weekly, monthly, etc., and this embodiment is not limited thereto.
The configuration information of the network equipment is backed up according to the set time interval, so that the backup reliability is ensured, and the backup comprehensiveness is ensured. For example, when part of configuration information of the network device is modified, the backup at time intervals can ensure the comprehensive backup of different configuration information of the network device, and provide more options for subsequent operations.
Referring to fig. 4, step S22 may be implemented by steps S221 to S224 by storing the correspondence between the configuration information and the device information of each network device in the management network in advance.
Step S221, finding the configuration information of the network device to be replaced according to the device information of the network device to be replaced.
Step S222, determining whether the target network device has joined the management network of theserver 10, and if so, executing step S223; if not, step S224 is executed.
Step S223, sending the configuration information obtained by searching to the target network device.
Step S224, adding the target network device into the management network, realizing the admission of the target network device, and sending the configuration information obtained by searching to the target network device.
The target network device for replacing the network device to be replaced may be a new device that is not added to the management network, or may be a network device that has already been added to the management network, and in order to implement management of the target network device, the target network device needs to be located in the management network, and therefore when the target network device is a new device that is not added to the management network, the new device needs to be added to the management network. After the target network device is located in the management network, the configuration information of the network device to be replaced can be sent to the target network device.
Optionally, when the target network device is a new device that is not added to the management network, the target network device may be added to the management network by: and detecting whether new equipment appears, and if so, inquiring to obtain the equipment information of the new equipment. Judging whether the equipment information of the new equipment is matched with the equipment information of the target network equipment, if so, judging that the new equipment is the target network equipment, and adding the new equipment into the management network; if not, the new device is determined to be not the target network device and the new device is added to the management network. The inquired device information of the new device may include a serial number of the new device, correspondingly, the device replacement task includes a serial number of the target network device, whether the serial number of the new device is consistent with the serial number of the target network device is judged, whether the new device is the target network device can be obtained, whether the serial number of the new device is consistent with the serial number of the target network device, the description information is matched, the new device is the target network device, the configuration information of the network device to be replaced is sent to the target network device, and otherwise, the new device is the non-target network device, and the configuration information of the network device to be replaced is not sent to the non-target network device.
Theserver 10 may directly send the configuration information of the network device to be replaced to the target network device, or theserver 10 may control the target network device to actively acquire the configuration information of the network device to be replaced from theserver 10 by sending a command line to the target network device, so as to complete sending the configuration information of the network device to be replaced. For example, theserver 10 may access the target network device through an SNMP method, and control the target network device to access theserver 10 and obtain the selected backup configuration information from theserver 10 through a command line method, where when the configuration information of a plurality of network devices to be replaced is backed up in theserver 10, a user may select one of the configuration information as the selected configuration information, or theserver 10 may select one of the configuration information as the selected configuration information according to a set rule, where the set rule may include random selection, selection of the latest backup configuration information, and the like.
Step S23, so that the target network device uses the configuration information of the network device to be replaced as the start configuration information of the target network device and starts the target network device; wherein the configuration information includes a static IP of the network device to be replaced.
Theserver 10 may set the configuration information of the network device to be replaced as the start configuration information of the target network device through the command line, and then issue a command to restart the device to the target network device, and the target network device restarts according to the command. And when the target network equipment is started again, the target network equipment analyzes the content in the configuration information of the network equipment to be replaced, so that the configuration information of the network equipment to be replaced can execute command lines in a line-by-line manner. When the target network device completes the startup, the replacement of the network device to be replaced is also completed. Taking the static IP included in the configuration information as an example, after the target network device obtains the static IP of the network device to be replaced by analyzing the configuration information, the static IP is set as the static IP of the target network device.
Considering that the network device to be replaced may be a stacking member device, in order to ensure that no business needs to be re-associated after the device replacement is performed when the network device to be replaced is the stacking member device, theserver 10 needs to determine whether the network device to be replaced is the stacking member device according to the device replacement task after receiving the device replacement task, and if the network device to be replaced is the stacking member device, obtain the stacking member ID of the network device to be replaced, and send the stacking member ID to the target network device.
When the network device to be replaced is the stacking member device, the server needs to control the target network device, so that the target network device uses the stacking member ID of the network device to be replaced as the stacking member ID of the target network device, and uses the configuration information of the network device to be replaced as the start configuration information of the target network device, so as to start the target network device, thereby completing the replacement of the network device to be replaced.
In order to more clearly illustrate the implementation flow in the embodiment of the present disclosure, the following scenario is taken as an example to illustrate the implementation manner of the embodiment of the present disclosure.
The network device management method in the embodiment of the present disclosure is applied to a networking system, such as a communication system, where the system includes aserver 10 and multiple network devices, theserver 10 includes network management software, theserver 10 manages each network device in a management network through the network management software, and theserver 10 may obtain configuration information of the network device in the management network through the network management software, where the configuration information includes an IP address and the like, and remove the network device to be replaced from the system, add a new device again, and the like. Theserver 10 includes a TFTP (simple file transfer protocol) server for acquiring and storing backup configuration information selected by a user.
The process of theserver 10 adding the network device to the management network is as follows: the network equipment to be managed is automatically online, and configuration information backup is carried out on the network equipment to be managed according to a set time interval (such as 2 am every day), so that the network equipment to be managed is automatically online and added into a management network. Wherein, the backup configuration information comprises: one or more of operator information of the network device, NETCONF access parameter information, SNMP parameter information, Member ID information (stack Member ID) associated with the stack port of the stack device, configuration information on the device management port, and the like.
After network equipment to be managed is automatically added to a management network on line, network management software queries a management port IP of the network equipment through a NETCONF interface provided by the network equipment, then issues the queried IP to a network equipment management port in an SNMP mode, and solidifies the IP, so that the network equipment in the management network has a static IP.
When there is a network device to be replaced in the management network, for example, there is a failed network device, the user creates a device replacement task, and the device replacement task records therein the device information of the network device to be replaced and the device information of the new device (referred to as the target network device described in the above embodiment).
And after receiving the equipment replacement task, the network management software judges whether the new equipment is the network equipment in the management network, if the network management software can manage the new equipment, such as creating configuration information, backing up configuration information, replacing the network equipment, updating the configuration information of the network equipment and an IP address and the like, the new equipment is judged to be the network equipment in the management network, and if not, the new equipment is judged not to be the network equipment in the management network.
In the first case, if the new device is a network device in the management network, the network management software accesses the new device in the SNMP manner, sends a control instruction to the new device in the command line manner, and the new device accesses a TFTP (simple file transfer protocol) server in the network system according to the control instruction. The operation configuration information of the network equipment to be replaced is periodically backed up, so that various operation configuration information of the network equipment to be replaced can be backed up, when the equipment replacement task is executed, a user can select one operation configuration information from the backed-up various operation configuration information, and the new equipment acquires the backup operation configuration information selected by the user at the TFTP server. After the successful acquisition, the network management software sets the selected backup operation configuration information into the starting configuration information of the new device through a command line, and issues a device restarting command to the new device, and the new device is restarted. The selected backup operation configuration information is used as start configuration information, when the new equipment is restarted, the contents in the selected backup operation configuration information are analyzed and then are issued to the new equipment row by row, the new equipment operates according to the operation configuration information obtained by analysis, and in the process of finishing configuration information setting, the static IP of the network equipment to be replaced is used as the static IP of the new equipment. When the new device completes the startup, the new device also completes the replacement of the network device to be replaced.
And in the second situation, if the new equipment is not the network equipment in the management network, the network management software detects whether the new equipment appears, if the new equipment appears, the network management software inquires the serial number of the new equipment through a Netconf protocol, if the detected serial number of the new equipment is matched with the serial number of the new equipment in the equipment replacement request, the running configuration information of the network equipment to be replaced is sent to the new equipment, and the running configuration information of the network equipment to be replaced is set as the running configuration information of the new equipment. The operation configuration information of the network device to be replaced is set as the operation configuration information of the new device, and the implementation process is the same as that in the first case.
In the two cases, the network device to be replaced may be a stacking device, the server determines whether the network device to be replaced is the stacking device by detecting whether the configuration information of the network device to be replaced includes a Member ID, if the configuration information of the network device to be replaced includes the Member ID, the network device to be replaced is determined to be the stacking device, and if the configuration information of the network device to be replaced does not include the Member ID, the network device to be replaced is determined not to be the stacking device.
When the network device to be replaced is the stacking device, the user needs to associate the Member ID of the network device to be replaced when creating the device replacement task, and when executing the device replacement task, the network management software issues the Member ID of the network device to be replaced to the new device in a command line in an SNMP manner, sets the running configuration information of the network device to be replaced as the running configuration information of the new device, and sets the stacking Member ID of the network device to be replaced as the stacking Member ID of the new device. The operation configuration information of the network device to be replaced is set as the operation configuration information of the new device, and the implementation process is the same as that in the first case.
Through the process, the target network equipment for replacing the network equipment to be replaced can inherit the configuration information of the network equipment to be replaced, and the static IP of the network equipment to be replaced is taken as the static IP of the target network equipment, so that the service established based on the IP address of the network equipment to be replaced is still effective, the re-association is not needed, the automation degree is higher, the labor cost is reduced, and the consumed time is less.
Referring to fig. 5, based on the same concept as the above network device management method, an embodiment of the present disclosure further provides a networkdevice management apparatus 20, which is applied to aserver 10 for managing network devices, where the networkdevice management apparatus 20 includes: aninformation receiving module 21, aninformation transmitting module 22 and aninformation processing module 23.
Theinformation receiving module 21 is configured to receive a device replacement task, where the device replacement task includes device information of a network device to be replaced and device information of a target network device for replacing the network device to be replaced.
Since theinformation receiving module 21 is similar to the implementation principle of step S21 in fig. 2, it will not be further described here.
Theinformation sending module 22 is configured to search for configuration information of the network device to be replaced according to the device information of the network device to be replaced, and send the configuration information to the target network device.
Since theinformation sending module 22 is similar to the implementation principle of step S22 in fig. 2, it will not be further described here.
Theinformation processing module 23 is configured to enable the target network device to use the configuration information of the network device to be replaced as the start configuration information of the target network device and start the target network device; wherein the configuration information includes a static IP of the network device to be replaced.
Since theinformation processing module 23 is similar to the implementation principle of step S23 in fig. 2, it will not be further described here.
Optionally, the networkdevice management apparatus 20 further includes anIP curing module 24 and abackup module 25
TheIP curing module 24 is configured to perform IP curing on the network device to be managed and add the network device to the management network of theserver 10.
Since theIP curing module 24 is similar to the implementation principle of step S31 in fig. 3, it will not be further described here.
Thebackup module 25 is configured to backup the configuration information of the network device in the management network according to a set time interval.
Since the implementation principle of thebackup module 25 is similar to that of step S32 in fig. 3, no further description is provided here.
Optionally, theinformation sending module 22 is specifically configured to, in a process of obtaining the configuration information of the network device to be replaced by searching according to the device information of the network device to be replaced and sending the configuration information to the target network device, obtain the configuration information of the network device to be replaced by searching according to the device information of the network device to be replaced; judging whether the target network equipment is added into the management network of the server or not, and if so, sending the configuration information obtained by searching to the target network equipment; and if the target network equipment is not added into the management network, adding the target network equipment into the management network to realize the admission of the target network equipment, and sending the configuration information obtained by searching to the target network equipment.
Since theinformation sending module 22 is similar to the implementation principle of step S221 to step S224 in fig. 4, it will not be further described here.
Optionally, theinformation sending module 22 is specifically configured to, during a process of adding the target network device to the management network, detect whether a new device appears, and if a new device appears, query to obtain device information of the new device; and judging whether the equipment information of the new equipment is matched with the equipment information of the target network equipment, if so, judging that the new equipment is the target network equipment, and adding the new equipment into the management network.
Optionally, the networkdevice management apparatus 20 further includes adevice determination module 26.
Thedevice determining module 26 is configured to determine whether the network device to be replaced is a stacking member device according to the device replacement task, and if the network device to be replaced is the stacking member device, obtain a stacking member ID of the network device to be replaced; the information sending module is further configured to send the stacking member ID to the target network device; the information processing module is specifically configured to enable the target network device to use the stacking member ID of the network device to be replaced as the stacking member ID of the target network device, and use the configuration information of the network device to be replaced as the start configuration information of the target network device, so as to start the target network device.
The network equipment management method, the device and the server in the embodiment of the disclosure are static IP allocated to the network equipment, after the new equipment is added into the network, the configuration information of the network equipment to be replaced is sent to the new equipment, so that the target network equipment uses the configuration information of the network equipment to be replaced as the starting configuration information of the target network equipment and starts the target network equipment, the new equipment can directly inherit the configuration information of the network equipment to be replaced, the static IP of the network equipment to be replaced is used as the static IP of the network equipment to be replaced, maintenance personnel are not needed to manually issue the configuration information, the service of accessing the network equipment to be replaced based on the IP address of the network equipment to be replaced is still effective before, the re-association is not needed, the automation degree is higher, the labor cost is reduced, the time consumption is less, and the service interruption is basically not caused by adopting the network equipment replacement scheme through verification, the method avoids the occurrence of long-time interruption of the service in the network, and has high applicability.
In the several embodiments provided in the embodiments of the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only an alternative embodiment of the present invention and is not intended to limit the present invention, and various modifications and variations of the present invention may occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.