CN113824584A - Network equipment management method and device - Google Patents

Network equipment management method and device Download PDF

Info

Publication number
CN113824584A
CN113824584A CN202110814552.6A CN202110814552A CN113824584A CN 113824584 A CN113824584 A CN 113824584A CN 202110814552 A CN202110814552 A CN 202110814552A CN 113824584 A CN113824584 A CN 113824584A
Authority
CN
China
Prior art keywords
equipment
information
network
replacement
model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110814552.6A
Other languages
Chinese (zh)
Inventor
郑中伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Handpay Information & Technology Co ltd
Original Assignee
Shanghai Handpay Information & Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Handpay Information & Technology Co ltd filed Critical Shanghai Handpay Information & Technology Co ltd
Priority to CN202110814552.6A priority Critical patent/CN113824584A/en
Publication of CN113824584A publication Critical patent/CN113824584A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • 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
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors

Abstract

The invention discloses a network equipment management method and device, and belongs to the technical field of networks. The network equipment management method can periodically detect the equipment state which is stored in the equipment table and is associated with the network equipment, acquire the configuration file of the abnormal network equipment, take the network equipment which corresponds to the equipment information meeting the preset conditions in the equipment table as the replacement equipment, write the acquired configuration file into the replacement equipment, log in the replacement equipment, and use the configuration file in the replacement equipment to acquire the current configuration information of the replacement equipment, thereby realizing the automatic updating of the abnormal network equipment configuration to the available network equipment, greatly improving the equipment fault processing efficiency by automatically detecting the abnormality and configuring, and avoiding the defect that the fault is easy to occur during manual operation.

Description

Network equipment management method and device
Technical Field
The present invention relates to the field of network technologies, and in particular, to a method and an apparatus for managing network devices.
Background
When the existing network equipment fails, the configuration of the failed equipment needs to be updated to the available network equipment manually, the efficiency is low, and the situation of configuration errors is easy to occur in manual operation.
Disclosure of Invention
In view of the above problems, a method and an apparatus for managing network devices are provided to improve the efficiency of fault handling and to automatically perform configuration update.
The invention provides a network equipment management method, which comprises the following steps:
detecting the equipment state of the network equipment in a first preset period according to equipment information which is stored in an equipment table and is associated with the network equipment;
when the equipment state is abnormal, taking the network equipment corresponding to the equipment information meeting the preset condition in the equipment table as replacement equipment, acquiring the configuration file of the abnormal network equipment, writing the configuration file into the replacement equipment, and applying the configuration file in the replacement equipment to acquire the current configuration information of the replacement equipment.
Optionally, the device information in the device table includes a device score, a device type, a device model, an operating system version, and a device port;
the preset conditions are as follows:
inquiring whether equipment information matched with the abnormal equipment information of the network equipment exists in the equipment table;
when the device information matched with the abnormal device information of the network device exists in the device table, taking the network device with the highest device score in the matched device information as a replacement device;
and when the device information matched with the abnormal device information of the network device does not exist in the device table, taking the network device which has the same port number as the network device and has the same function data as the network device as a replacement device.
Optionally, the method further includes:
and matching the current configuration information with the configuration information in the configuration file, and if the current configuration information is not matched with the configuration information in the configuration file, taking the network equipment corresponding to the equipment information meeting the preset conditions in the equipment table as replacement equipment.
Optionally, the method further includes:
and according to the equipment information which is stored in the equipment table and is associated with the network equipment, acquiring the current information of the network equipment in a second preset period, and updating the corresponding equipment information in the equipment table according to the acquired current information.
Optionally, the device information includes a device score, a device type, an operating system version, a device port, an IP address, an MAC address, and a device state;
according to the device information stored in the device table and associated with the network device, obtaining the current information of the network device in a second preset period, and updating the corresponding device information in the device table according to the obtained current information, wherein the method comprises the following steps:
according to device information which is stored in a device table and is associated with network devices, address table information of the network devices is obtained in a second preset period, and corresponding device information in the device table is updated according to the address table information, wherein the address table information comprises: IP address, MAC address and device port.
Optionally, the method further includes:
scanning the equipment model of the network equipment in the preset network segment at a third preset period to obtain the equipment model;
matching the equipment model with the equipment model in the equipment table;
if the equipment model is not matched with the equipment model in the equipment table, acquiring equipment information, and adding the equipment information into the equipment table;
acquiring description information of the network equipment corresponding to the equipment model, and adding the description information into a command table, wherein the command table comprises: device manufacturer, device model, operating system version, function data, and command list.
Optionally, the method further includes:
receiving a management instruction, and identifying the management instruction;
when the management instruction is a query instruction, querying the equipment table according to the query instruction, acquiring equipment information corresponding to the query instruction, and logging in network equipment corresponding to the equipment information according to the equipment information;
and when the management instruction is an updating instruction, inquiring the equipment table according to the updating instruction, generating a configuration file according to the updating information associated with the updating instruction, and logging in the network equipment associated with the updating instruction to reset the configuration information.
The invention also provides a network device management device, comprising:
the device state detection unit is used for detecting the device state of the network device in a first preset period according to the device information which is stored in the device table and is associated with the network device;
and the processing unit is used for taking the network equipment corresponding to the equipment information meeting the preset conditions in the equipment table as the replacement equipment when the equipment state is abnormal, acquiring the configuration file of the abnormal network equipment, writing the configuration file into the replacement equipment, and applying the configuration file in the replacement equipment to acquire the current configuration information of the replacement equipment.
Optionally, the method further includes:
and the updating unit is used for acquiring the current information of the network equipment in a second preset period according to the equipment information which is stored in the equipment table and is associated with the network equipment, and updating the corresponding equipment information in the equipment table according to the acquired current information.
Optionally, the device information in the device table includes a device score, a device type, a device model, an operating system version, and a device port; further comprising:
the scanning unit is used for scanning the equipment model of the network equipment in the preset network segment in a third preset period to obtain the equipment model;
the control unit is used for matching the equipment model with the equipment model in the equipment table; if the equipment model is not matched with the equipment model in the equipment table, acquiring equipment information, and adding the equipment information into the equipment table; acquiring description information of the network equipment corresponding to the equipment model, and adding the description information into a command list;
the command table includes: device manufacturer, device model, operating system version, function data, and command list.
The beneficial effects of the above technical scheme are that:
in the technical scheme, the network equipment management method can periodically detect the equipment state which is stored in the equipment table and is associated with the network equipment, acquire the configuration file of the abnormal network equipment, take the network equipment corresponding to the equipment information meeting the preset conditions in the equipment table as the replacement equipment, write the acquired configuration file into the replacement equipment, log in the replacement equipment, and apply the configuration file in the replacement equipment to acquire the current configuration information of the replacement equipment, so that the abnormal network equipment configuration is automatically updated to the available network equipment, the equipment fault processing efficiency is greatly improved by automatically detecting the abnormality and configuring, and the defect that the fault is easy to occur during manual operation is avoided.
Drawings
Fig. 1 is a flowchart of a real-time example of a network device management method according to the present invention;
FIG. 2 is a flow chart of a real-time example of the preset condition of the present invention;
FIG. 3 is a block diagram of a real-time embodiment of a network device management apparatus according to the present invention;
FIG. 4 is a block diagram of another real-time embodiment of a network device management apparatus according to the present invention;
fig. 5 is a block diagram of another real-time example of the network device management apparatus according to the present invention.
Detailed Description
The advantages of the invention are further illustrated in the following description of specific embodiments in conjunction with the accompanying drawings.
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In the description of the present invention, it should be understood that the numerical references before the steps do not identify the order of performing the steps, but merely serve to facilitate the description of the present invention and to distinguish each step, and thus should not be construed as limiting the present invention.
Example one
Referring to fig. 1, a network device management method of the present embodiment includes the following steps:
s1, detecting the equipment state of the network equipment in a first preset period according to equipment information which is stored in an equipment table and is associated with the network equipment.
It should be noted that the device information in the device table may include information such as a device score, a device type, an operating system version, a device model, and a device port.
In this embodiment, the device status includes a normal status and an abnormal status, where the abnormal status refers to that the network device does not respond within a first preset period, and the setting status of the network device is regarded as abnormal. The device table is stored in a database. The network device may be a router, switch, firewall, etc.
And S2, when the equipment state is abnormal, taking the network equipment corresponding to the equipment information meeting the preset condition in the equipment table as replacement equipment, acquiring the configuration file of the abnormal network equipment, writing the configuration file into the replacement equipment, and applying the configuration file in the replacement equipment to acquire the current configuration information of the replacement equipment.
In this embodiment, if the device status is normal, the process returns to step S1; if the device status is abnormal, step S2 is executed to obtain the configuration file of the network device in the abnormal status from the backup center, obtain the replacement device meeting the preset conditions, write the configuration file into the replacement device, log in the replacement device, apply the configuration file in the replacement device, and obtain the current configuration information of the replacement device after the configuration is saved, so as to facilitate subsequent remote management of the replacement device.
In this embodiment, the preset conditions shown in fig. 2 are:
s21, inquiring whether equipment information matched with the equipment information of the abnormal network equipment exists in the equipment table, if so, executing a step S22; if not, go to step S23.
Further, in step S21, it is checked whether there is device information in the device table that matches the device type, os version, and device port of the abnormal network device, and if there are multiple pieces of device information that match the conditions, step S22 is executed; if only one piece of equipment information meeting the condition exists, the network equipment corresponding to the equipment information is used as the replacement equipment; if there is no device information that meets the condition, step S23 is executed.
And S22, taking the network equipment with the highest equipment score in the matched equipment information as the replacement equipment.
In this embodiment, the newer the device model in the device information, the higher the device score, and the higher the operating system version, the higher the device score.
And S23, taking the network equipment which has the same port number as the network equipment and has the same functional data as the network equipment as replacement equipment.
Further, when there is no device information matching the device information of the abnormal network device in the device table in step S23, the non-homogeneous network device having the same port number as the abnormal network device and the same function data (i.e., the same function) as the network device is used as the replacement device, and the configuration file of the network device in the abnormal state obtained from the backup center is converted into the configuration file conforming to the format of the replacement device.
What should be said is that: the equipment list also comprises network equipment SN numbers, the SN numbers in the equipment list correspond to the equipment models in the command list one by one, and the command list comprises: device manufacturer, device model, operating system version, function data, and command list. The command table is stored in a database.
The record format of the command table is:
equipment vendor Model of the device Operating system version Functional data Command list
Wherein the command list configures commands for each functional module, e.g.
The functions are as follows: "configure Access mode"
Switchport mode access
Switchport access vlan xxx
The functions are as follows: 'Add route'
ip route x.x.x.x x.x.x.x x.x.x.x
In this embodiment, a specific process of converting the configuration file of the network device in the abnormal state acquired from the backup center into the configuration file conforming to the format of the replacement device is as follows:
acquiring other device information of the network device from the device table according to the SN number of the abnormal state network device, such as: the method comprises the steps that information such as equipment scores, equipment types, operating system versions, equipment models and equipment ports is inquired about a command table according to an SN number so as to obtain the equipment model corresponding to the SN number, functional data of the network equipment is obtained according to the equipment model, a configuration file of the abnormal state network equipment is divided according to a functional field of the functional data in the command table, and variable data are extracted so as to be replaced during conversion; and inquiring the query command table according to the SN number of the replacement equipment to obtain the equipment model of the replacement equipment corresponding to the SN number, obtaining a corresponding command list according to the equipment model, dynamically generating configuration commands corresponding to the functional modules according to the extracted variable data, and sequentially writing the generated configuration commands into a configuration file.
In a preferred embodiment, after the step S2 is executed, the method for managing a network device may further include:
and S3, matching the current configuration information with the configuration information in the configuration file, if not, executing a step S2 to take the network equipment corresponding to the equipment information meeting the preset conditions in the equipment table as replacement equipment, acquiring the configuration file of the abnormal network equipment, writing the configuration file into the replacement equipment, and applying the configuration file in the replacement equipment to acquire the current configuration information of the replacement equipment.
In this embodiment, after the failure is recovered, the state of the corresponding network device in the device table is updated, and the maintenance log is recorded.
In this embodiment, the network device management method may periodically detect a device state associated with the network device stored in the device table, acquire a configuration file of the abnormal network device, use the network device corresponding to the device information meeting the preset condition in the device table as a replacement device, write the acquired configuration file into the replacement device, log in the replacement device, and apply the configuration file in the replacement device to acquire current configuration information of the replacement device, thereby automatically updating the abnormal network device configuration to an available network device, greatly improving device failure handling efficiency by automatically detecting the abnormality and performing the configuration, and avoiding a defect that a failure is easily generated during manual operation.
In a preferred embodiment, the network device management method may further include:
A. and according to the equipment information which is stored in the equipment table and is associated with the network equipment, acquiring the current information of the network equipment in a second preset period, and updating the corresponding equipment information in the equipment table according to the acquired current information.
The device information may include information such as device score, device model, device type, os version, device port, IP address, MAC address, and device status.
Further, step a may comprise:
according to device information which is stored in a device table and is associated with network devices, address table information of the network devices is obtained in a second preset period, and corresponding device information in the device table is updated according to the address table information, wherein the address table information comprises: IP address, MAC address and device port.
In a preferred embodiment, the network device management method may further include:
B1. and scanning the equipment model of the network equipment in the preset network segment in a third preset period to obtain the equipment model.
B2. And matching the equipment model with the equipment models in the equipment table, if so, returning to execute the step B1, otherwise, executing the step B3.
In this embodiment, when the acquired device model does not match the device model in the device table, it indicates that the network device does not exist in the device table, and the information of the network device may be added to the device table.
B3. And if the equipment model is not matched with the equipment model in the equipment table, acquiring equipment information, and adding the equipment information into the equipment table.
B4. And acquiring the description information of the network equipment corresponding to the equipment model, and adding the description information into a command list.
Wherein the command table includes: device manufacturer, device model, operating system version, function data, and command list.
In this embodiment, the method may further include: when the preset network segment scanning is carried out, the equipment information matched with the equipment model obtained by scanning in the equipment table is marked, when the third preset period scanning is finished, the unmarked equipment information is extracted from the equipment table, and the unmarked equipment information in the equipment table is deleted.
In this embodiment, the unmarked device model identifies the network device being off-shelf, so the device table may be updated and the device information of the off-shelf network device may be deleted.
In a preferred embodiment, the network device management method may further include:
C1. and receiving a management instruction and identifying the management instruction.
The management instruction can be a query instruction, an update instruction, a binding instruction or a reset command, and each instruction corresponds to a unique instruction identifier.
C2. And when the management instruction is a query instruction, querying the equipment table according to the query instruction, acquiring equipment information corresponding to the query instruction, and logging in network equipment corresponding to the equipment information according to the equipment information.
In practical application, a user outputs a query instruction, corresponding information can be queried from a database system through query conditions such as IP, MAC or ports, if the real-time state information of the current equipment needs to be queried, the user can remotely log in the equipment through a query template to obtain corresponding data, and then the corresponding data is displayed through Web without manually logging in corresponding network equipment.
C3. And when the management instruction is an updating instruction, inquiring the equipment table according to the updating instruction, generating a configuration file according to the updating information associated with the updating instruction, and logging in the network equipment associated with the updating instruction to reset the configuration information.
In practical application, when a network device needs to replace an interface, the database can be queried according to an update instruction to obtain corresponding device information, a configuration file (configuration script) is generated through a predefined configuration template according to the device type and a configuration item input by a user, and the network device is logged in to reset an old interface and perform binding configuration of a new interface.
When new equipment is accessed or network configuration is changed, the equipment table can be inquired according to the binding instruction, corresponding equipment information is obtained, a configuration command script is generated according to the equipment type and a configuration item input by a user and a corresponding function in the command table, and network equipment is logged in for configuration.
When the accessed network equipment is off shelf or the interface of the network equipment is not used any more, the corresponding equipment information can be obtained from the equipment list according to the reset instruction, then the command list for clearing the port is obtained from the command list, and the relevant interface configuration for clearing the network equipment is logged in.
In this embodiment, the network device management method can automatically provide queries by collecting various data and storing the data in the database, automatically update the configuration of the failed device to the available device when the device fails, select corresponding queries or configuration options through the Web management page to automatically perform interface configuration or query related data, and does not need to manually log in each device to execute related commands.
Example two
Referring to fig. 3, a network device management apparatus 1 includes: a detection unit 11 and a processing unit 12.
The detection unit 11 is configured to detect a device state of the network device at a first preset period according to device information associated with the network device and stored in the device table.
It should be noted that the device information in the device table may include information such as a device score, a device type, an operating system version, a device model, and a device port.
In this embodiment, the device status includes a normal status and an abnormal status, where the abnormal status refers to that the network device does not respond within a first preset period, and the setting status of the network device is regarded as abnormal. The device table is stored in a database. The network device may be a router, switch, firewall, etc.
And the processing unit 12, when the device state is abnormal, is configured to use the network device corresponding to the device information meeting the preset condition in the device table as a replacement device, obtain a configuration file of the abnormal network device, write the configuration file into the replacement device, and apply the configuration file in the replacement device to obtain the current configuration information of the replacement device.
In this embodiment, if the device status is normal, the detection unit 11 is used to continue the detection; if the device status is abnormal, the processing unit 12 processes the device status to obtain the configuration file of the network device in the abnormal status from the backup center, and obtain the replacement device meeting the preset conditions, so as to write the configuration file into the replacement device, log in the replacement device, so as to apply the configuration file in the replacement device, and after the configuration is saved, obtain the current configuration information of the replacement device, so as to facilitate the subsequent remote management of the replacement device.
In this embodiment, the preset conditions are as follows:
inquiring whether equipment information matched with the equipment information of the abnormal network equipment exists in the equipment table, and if so, taking the network equipment with the highest equipment score in the matched equipment information as replacement equipment; if not, taking the network equipment which has the same port number as the network equipment and has the same functional data as the network equipment as the replacement equipment.
Further, whether the device information consistent with the device type, the operating system version and the device port of the abnormal network device exists in the query device table or not is inquired, and if a plurality of pieces of device information consistent with the conditions exist, the network device with the highest device score in the matched device information is used as a replacement device; if only one piece of equipment information meeting the condition exists, the network equipment corresponding to the equipment information is used as the replacement equipment; and if the equipment information meeting the condition does not exist, taking the network equipment which has the same port number as the network equipment and has the same functional data as the network equipment as the replacement equipment.
Further, when the device information matching the device information of the abnormal network device does not exist in the device table, the non-same type network device with the same port number as the abnormal network device and the same function data (i.e. the same function) as the network device is used as the replacement device, and the configuration file of the network device in the abnormal state acquired from the backup center is converted into the configuration file conforming to the format of the replacement device.
What should be said is that: the equipment list also comprises network equipment SN numbers, the SN numbers in the equipment list correspond to the equipment models in the command list one by one, and the command list comprises: the command table includes: device manufacturer, device model, operating system version, function data, and command list. The command table is stored in a database.
In this embodiment, a specific process of converting the configuration file of the network device in the abnormal state acquired from the backup center into the configuration file conforming to the format of the replacement device is as follows:
acquiring other device information of the network device from the device table according to the SN number of the abnormal state network device, such as: the method comprises the steps that information such as equipment scores, equipment types, operating system versions, equipment models and equipment ports is inquired about a command table according to an SN number so as to obtain the equipment model corresponding to the SN number, functional data of the network equipment is obtained according to the equipment model, a configuration file of the abnormal state network equipment is divided according to a functional field of the functional data in the command table, and variable data are extracted so as to be replaced during conversion; and inquiring the query command table according to the SN number of the replacement equipment to obtain the equipment model of the replacement equipment corresponding to the SN number, obtaining a corresponding command list according to the equipment model, dynamically generating configuration commands corresponding to the functional modules according to the extracted variable data, and sequentially writing the generated configuration commands into a configuration file.
In this embodiment, the network device management apparatus 1 periodically detects the device state associated with the network device stored in the device table by using the detection unit 11, acquires the configuration file of the abnormal network device through the processing unit 12, may use the network device corresponding to the device information meeting the preset condition in the device table as a replacement device, writes the acquired configuration file into the replacement device, logs in the replacement device, and uses the configuration file in the replacement device to acquire the current configuration information of the replacement device, thereby implementing automatic updating of the abnormal network device configuration to the available network device, greatly improving the device failure processing efficiency by automatically detecting the abnormality and performing the configuration, and avoiding the defect that the failure is easily generated during manual operation.
In an embodiment, the network device management apparatus 1 described with reference to fig. 4 may further include: and an updating unit 13.
The updating unit 13 is configured to obtain current information of the network device at a second preset period according to device information stored in the device table and associated with the network device, and update corresponding device information in the device table according to the obtained current information.
The device information may include information such as device score, device model, device type, os version, device port, IP address, MAC address, and device status.
Further, the updating unit 13 may obtain address table information of the network device at a second preset period according to device information associated with the network device and stored in a device table, and update corresponding device information in the device table according to the address table information, where the address table information includes: IP address, MAC address and device port.
In one embodiment, the device information in the device table includes a device score, a device type, a device model, an operating system version, and a device port; the network device management apparatus 1 described with reference to fig. 5 may further include: a scanning unit 14 and a control unit 15.
And the scanning unit 14 is configured to scan the device model of the network device in the preset network segment at a third preset period, and obtain the device model.
The control unit 15 is configured to match the device model with a device model in the device table; if the equipment model is not matched with the equipment model in the equipment table, acquiring equipment information, and adding the equipment information into the equipment table; and acquiring the description information of the network equipment corresponding to the equipment model, and adding the description information into a command list.
Wherein the command table includes: device manufacturer, device model, operating system version, function data, and command list.
In this embodiment, the method may further include: when the preset network segment scanning is carried out, the equipment information matched with the equipment model obtained by scanning in the equipment table is marked, when the third preset period scanning is finished, the unmarked equipment information is extracted from the equipment table, and the unmarked equipment information in the equipment table is deleted.
In this embodiment, the unmarked device model identifies the network device being off-shelf, so the device table may be updated and the device information of the off-shelf network device may be deleted.
In a preferred embodiment, the network device management apparatus 1 may further include: a receiving unit and a management unit.
And the receiving unit is used for receiving the management instruction and identifying the management instruction.
The management instruction can be a query instruction, an update instruction, a binding instruction or a reset command, and each instruction corresponds to a unique instruction identifier.
And the management unit is used for inquiring the equipment table according to the inquiry instruction when the management instruction is the inquiry instruction, acquiring the equipment information corresponding to the inquiry instruction, and logging in the network equipment corresponding to the equipment information according to the equipment information.
In practical application, a user outputs a query instruction, corresponding information can be queried from a database system through query conditions such as IP, MAC or ports, if the real-time state information of the current equipment needs to be queried, the user can remotely log in the equipment through a query template to obtain corresponding data, and then the corresponding data is displayed through Web without manually logging in corresponding network equipment.
And the management unit is used for inquiring the equipment table according to the updating instruction when the management instruction is the updating instruction, generating a configuration file according to the updating information associated with the updating instruction, and logging in the network equipment associated with the updating instruction to reset the configuration information.
In practical application, when a network device needs to replace an interface, the database can be queried according to an update instruction to obtain corresponding device information, a configuration file (configuration script) is generated through a predefined configuration template according to the device type and a configuration item input by a user, and the network device is logged in to reset an old interface and perform binding configuration of a new interface.
When a new device is accessed or the network configuration is changed, the management unit can query the device table according to the binding instruction, acquire corresponding device information, generate a configuration command script according to the device type and the configuration items input by the user and the corresponding functions in the command table, and log in the network device for configuration.
When an accessed network device is off shelf or an interface of the network device is not used any more, the management unit can acquire corresponding device information from the device table according to the reset instruction, acquire a command list for clearing the port from the command table, and log in the configuration of the interface relevant to clearing the network device.
In this embodiment, the network device management apparatus can automatically collect various data through the scanning unit and the updating unit and store the data in the database to provide queries, when the device fails, the management unit can automatically update the configuration of the failed device to the available device, and select a corresponding query or configuration option through the Web management page to automatically perform interface configuration or query related data, without manually logging in each device to execute related commands.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A network device management method, comprising:
detecting the equipment state of the network equipment in a first preset period according to equipment information which is stored in an equipment table and is associated with the network equipment;
when the equipment state is abnormal, taking the network equipment corresponding to the equipment information meeting the preset condition in the equipment table as replacement equipment, acquiring the configuration file of the abnormal network equipment, writing the configuration file into the replacement equipment, and applying the configuration file in the replacement equipment to acquire the current configuration information of the replacement equipment.
2. The network device management method of claim 1, wherein the device information in the device table includes a device score, a device type, a device model, an operating system version, and a device port;
the preset conditions are as follows:
inquiring whether equipment information matched with the abnormal equipment information of the network equipment exists in the equipment table;
when the device information matched with the abnormal device information of the network device exists in the device table, taking the network device with the highest device score in the matched device information as a replacement device;
and when the device information matched with the abnormal device information of the network device does not exist in the device table, taking the network device which has the same port number as the network device and has the same function data as the network device as a replacement device.
3. The network device management method according to claim 1, further comprising:
and matching the current configuration information with the configuration information in the configuration file, and if the current configuration information is not matched with the configuration information in the configuration file, taking the network equipment corresponding to the equipment information meeting the preset conditions in the equipment table as replacement equipment.
4. The network device management method according to claim 1, further comprising:
and according to the equipment information which is stored in the equipment table and is associated with the network equipment, acquiring the current information of the network equipment in a second preset period, and updating the corresponding equipment information in the equipment table according to the acquired current information.
5. The network device management method of claim 4, wherein the device information includes a device score, a device type, an operating system version, a device port, an IP address, a MAC address, and a device status;
according to the device information stored in the device table and associated with the network device, obtaining the current information of the network device in a second preset period, and updating the corresponding device information in the device table according to the obtained current information, wherein the method comprises the following steps:
according to device information which is stored in a device table and is associated with network devices, address table information of the network devices is obtained in a second preset period, and corresponding device information in the device table is updated according to the address table information, wherein the address table information comprises: IP address, MAC address and device port.
6. The network device management method according to claim 2, further comprising:
scanning the equipment model of the network equipment in the preset network segment at a third preset period to obtain the equipment model;
matching the equipment model with the equipment model in the equipment table;
if the equipment model is not matched with the equipment model in the equipment table, acquiring equipment information, and adding the equipment information into the equipment table;
acquiring description information of the network equipment corresponding to the equipment model, and adding the description information into a command table, wherein the command table comprises: device manufacturer, device model, operating system version, function data, and command list.
7. The network device management method according to claim 1, further comprising:
receiving a management instruction, and identifying the management instruction;
when the management instruction is a query instruction, querying the equipment table according to the query instruction, acquiring equipment information corresponding to the query instruction, and logging in network equipment corresponding to the equipment information according to the equipment information;
and when the management instruction is an updating instruction, inquiring the equipment table according to the updating instruction, generating a configuration file according to the updating information associated with the updating instruction, and logging in the network equipment associated with the updating instruction to reset the configuration information.
8. A network device management apparatus, comprising:
the device state detection unit is used for detecting the device state of the network device in a first preset period according to the device information which is stored in the device table and is associated with the network device;
and the processing unit is used for taking the network equipment corresponding to the equipment information meeting the preset conditions in the equipment table as the replacement equipment when the equipment state is abnormal, acquiring the configuration file of the abnormal network equipment, writing the configuration file into the replacement equipment, and applying the configuration file in the replacement equipment to acquire the current configuration information of the replacement equipment.
9. The network device management apparatus according to claim 8, further comprising:
and the updating unit is used for acquiring the current information of the network equipment in a second preset period according to the equipment information which is stored in the equipment table and is associated with the network equipment, and updating the corresponding equipment information in the equipment table according to the acquired current information.
10. The network device management apparatus of claim 8, wherein the device information in the device table includes a device score, a device type, a device model, an operating system version, and a device port; further comprising:
the scanning unit is used for scanning the equipment model of the network equipment in the preset network segment in a third preset period to obtain the equipment model;
the control unit is used for matching the equipment model with the equipment model in the equipment table; if the equipment model is not matched with the equipment model in the equipment table, acquiring equipment information, and adding the equipment information into the equipment table; acquiring description information of the network equipment corresponding to the equipment model, and adding the description information into a command list;
the command table includes: device manufacturer, device model, operating system version, function data, and command list.
CN202110814552.6A 2021-07-19 2021-07-19 Network equipment management method and device Pending CN113824584A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110814552.6A CN113824584A (en) 2021-07-19 2021-07-19 Network equipment management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110814552.6A CN113824584A (en) 2021-07-19 2021-07-19 Network equipment management method and device

Publications (1)

Publication Number Publication Date
CN113824584A true CN113824584A (en) 2021-12-21

Family

ID=78912694

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110814552.6A Pending CN113824584A (en) 2021-07-19 2021-07-19 Network equipment management method and device

Country Status (1)

Country Link
CN (1) CN113824584A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115776438A (en) * 2023-01-29 2023-03-10 北京珞安科技有限责任公司 Industrial control data transmission method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105634829A (en) * 2016-03-08 2016-06-01 浙江安正科技股份有限公司 Network device management method
CN108259215A (en) * 2017-09-26 2018-07-06 新华三技术有限公司 A kind of device management method and device
CN109698757A (en) * 2017-10-20 2019-04-30 中兴通讯股份有限公司 Switch master/slave device, the method for restoring user data, server and the network equipment
CN112398664A (en) * 2019-08-13 2021-02-23 中兴通讯股份有限公司 Master device selection method, device management method, electronic device, and storage medium
CN112653577A (en) * 2020-12-14 2021-04-13 武汉绿色网络信息服务有限责任公司 Network element management method, device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105634829A (en) * 2016-03-08 2016-06-01 浙江安正科技股份有限公司 Network device management method
CN108259215A (en) * 2017-09-26 2018-07-06 新华三技术有限公司 A kind of device management method and device
CN109698757A (en) * 2017-10-20 2019-04-30 中兴通讯股份有限公司 Switch master/slave device, the method for restoring user data, server and the network equipment
CN112398664A (en) * 2019-08-13 2021-02-23 中兴通讯股份有限公司 Master device selection method, device management method, electronic device, and storage medium
CN112653577A (en) * 2020-12-14 2021-04-13 武汉绿色网络信息服务有限责任公司 Network element management method, device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115776438A (en) * 2023-01-29 2023-03-10 北京珞安科技有限责任公司 Industrial control data transmission method and system
CN115776438B (en) * 2023-01-29 2023-05-23 北京珞安科技有限责任公司 Industrial control data transmission method and system

Similar Documents

Publication Publication Date Title
CN108431836A (en) Infrastructure management system for hardware fault reparation
CN106576054A (en) Network device configuration framework
CN108259215B (en) Equipment management method and device
JP4594387B2 (en) In-service system check processing apparatus, method and program thereof
US10206092B1 (en) Automatic discovery
CN101873230A (en) Method and device for discovering physical network topology
US11063901B2 (en) Manufacturing line computer system and network setup method of the same
US20210028960A1 (en) Method for detecting and identifying items of equipment communicating according to a modbus protocol and communication controller for the implementation of such a method
CN104618521A (en) Node de-duplication in a network monitoring system
CN105376101A (en) Method and system for enabling physical device to be connected into virtual network
US10313301B1 (en) Intellectual rack and IP addresses managing method thereof
CN113824584A (en) Network equipment management method and device
US10897502B2 (en) Systems and methods for device migration
CN112764874B (en) Virtual machine server information acquisition method based on CMDB configuration management system
US7631064B1 (en) Method and apparatus for determining interconnections of network devices
CN109474475B (en) Switching system of dual-redundancy network card under windows XPE
CN109728915B (en) Switching method of dual-redundancy network card under windows XPE
JP2003032257A (en) Method of specifying installed spot of lan component unit and retrieval device
CN112866011B (en) Method, device, equipment and medium for determining network topology structure
WO2022060512A1 (en) Over the top networking monitoring system
CN105847030A (en) Information processing method and electronic equipment
CN104917640A (en) Method for positioning switch port corresponding to access point
CN201857397U (en) Under-tank fault diagnosis and treatment system of blast furnace
JP4863126B2 (en) Server monitoring system and server monitoring method
US20110055822A1 (en) Method for upgrading software of gateways

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