CN107947958A - A kind of acquisition methods and system of network equipments configuration file - Google Patents

A kind of acquisition methods and system of network equipments configuration file Download PDF

Info

Publication number
CN107947958A
CN107947958A CN201710891476.2A CN201710891476A CN107947958A CN 107947958 A CN107947958 A CN 107947958A CN 201710891476 A CN201710891476 A CN 201710891476A CN 107947958 A CN107947958 A CN 107947958A
Authority
CN
China
Prior art keywords
configuration file
configuration
acquisition
password
file
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
CN201710891476.2A
Other languages
Chinese (zh)
Inventor
刘俊
付暾
曾少华
方彬
赵丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
State Grid Hunan Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Hunan Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Hunan Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Hunan Electric Power 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 State Grid Corp of China SGCC, State Grid Hunan Electric Power Co Ltd, Information and Telecommunication Branch of State Grid Hunan Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201710891476.2A priority Critical patent/CN107947958A/en
Publication of CN107947958A publication Critical patent/CN107947958A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • 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/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0853Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a kind of acquisition methods and system of network equipments configuration file, and the acquisition methods include:S1, set the acquisition configuration file cycle;S2, obtain configuration describing document set according to the acquisition configuration file cycle, and a configuration describing document set includes one or more configuration describing documents;S3, one it is described obtain in the configuration file cycle, according to one or more of configuration describing document set configuration describing document, circulation obtains the configuration file of corresponding one or more network equipments.The acquisition methods and system of a kind of network equipments configuration file provided by the invention, the configuration file cycle is obtained by setting, obtain configuration describing document set, and within an acquisition configuration file cycle, obtain the configuration file of corresponding one or more network equipments, the acquisition of the network equipments configuration file of polymorphic type, and mode automation easy to use are realized, brings less workload.

Description

A kind of acquisition methods and system of network equipments configuration file
Technical field
The present invention relates to network communication technology field, more particularly, to a kind of acquisition side of network equipments configuration file Method and system.
Background technology
In network communication technology field, network equipments configuration file is obtained for managing and safeguarding that network is particularly significant 's.Usually there is the mode of two kinds of acquisition network equipments configuration files at present.
The first is to obtain network equipments configuration file by way of manual.Exemplified by obtaining cisco network equipment, hand The process that work obtains is as described below.First, it is Route into privileged mode, its way>enable;Secondly, in global configuration In, global configuration is recalled, its way is Router#show running-config;Then, global configuration, its way are replicated It is Router#copy running-config tftp;Again, by global configuration, go in tftp or flash;Finally, lead to The agreements such as scp or tftp transmission file is crossed, obtains configuration file.
It is for second the network equipment is signed in come simulating hand acquisition process to obtain by WEB etc. by webmaster On, so as to obtain network equipments configuration file.The network equipment for specifying brand is configured using special webmaster mostly at present The acquisition and backup of file.It is that the configuration file obtaining means provided by iMC are completed exemplified by obtaining magnificent three network equipments Device configuration file and the software information displaying of centralization.The iMC specialties webmaster of China three can carry out the network equipment of the whole network Configuration file and software version information centralization displaying, including the current software version of the network equipment, it is newest can be used for upgrade Software version, nearest BACKUP TIME and whether added the information such as automated back-up plan;And administrator can be provided to network The centralized operation of equipment, including network equipments configuration deployment, the backup of network equipments configuration file and recovery, the network equipment are soft The upgrading of part and recovery, network equipment space management and network device software baselined management.
But both approaches all there are it is certain the problem of.For first method, it is necessary to consume very big workload, together When be possible to malfunction or omit;For second method, existing webmaster only supports single type network equipments configuration file Obtain, it is not convenient enough.
The content of the invention
The present invention provides one kind and overcomes above-mentioned existing obtain to consume very big work present in network equipments configuration file A kind of network equipments configuration file for the problem of measuring, only supporting single type network equipments configuration file acquisition, not enough facilitate Acquisition methods and system.
According to an aspect of the present invention, there is provided a kind of acquisition methods of network equipments configuration file, including:S1, setting Obtain the configuration file cycle;S2, according to it is described acquisition the configuration file cycle obtain configuration describing document set, match somebody with somebody described in one Putting description file set includes one or more configuration describing documents;S3, one it is described obtain the configuration file cycle in, root According to one or more of configuration describing document set configuration describing document, circulation obtains corresponding one or more nets The configuration file of network equipment.
Preferably, step S3 further comprises:S31, acquisition first is matched somebody with somebody in one or more of configuration describing documents Put description file;S32, according to first configuration describing document, obtain the first decoded password;S33, according to described After one decoded password login first network equipment, the first configuration file of generation obtains command history, the first configuration text Part, which obtains command history, includes the acquisition order of the first configuration file;S34, send to the first network equipment and described first match somebody with somebody Put file acquisition command history;S35, the first configuration file for obtaining the first network equipment.
Preferably, step S3 is further included:According to one or more configuration describing documents and configuration file backup lattice Formula, big data platform is backuped to by the configuration file of corresponding one or more network equipments.
Preferably, in step S1, the acquisition configuration file cycle, refer to obtain a configuration describing document Gather corresponding configuration file for an acquisition configuration file cycle;Described set obtains the configuration file cycle, refers to that setting obtains Take the time interval of each configuration describing document set.
Preferably, the first configuration file described in step S33 obtains command history and further includes:First mess code disposes script.
Preferably, the configuration describing document includes:Manage mouth IP address, management mouth accesses password, management mouth access is close Code corresponding password salt, Access Management Access mouth mode, access port and network equipments configuration file backup position.
Preferably, the configuration describing document further comprises:Manage mouth and access account, types of network equipment and network Device software version.
Preferably, the management mouth accesses password and the management mouth accesses password and corresponds to password salt with encrypted The form of password is stored in the configuration describing document.
Preferably, step S32 further comprises:S321, by the first Access Management Access mouth mode and the first access port with The corresponding first network equipment of first management mouth IP address establishes connection;S322 and the first network equipment, which are established, to be connected After connecing, password is accessed according to the first management mouth and the first management mouth accesses password and corresponds to password salt and decoded, acquisition described the One decoded password.
According to another aspect of the present invention, there is provided a kind of acquisition system of network equipments configuration file, including:Set Module, the configuration file cycle is obtained for setting;Description file set module is obtained, for according to the acquisition configuration file Cycle obtains configuration describing document set, and a configuration describing document set includes one or more configuration describing documents; Obtain profile module, for one it is described obtain the configuration file cycle in, according to the configuration describing document set One or more of configuration describing document, circulation obtain the configuration file of corresponding one or more network equipments.
The acquisition methods and system of a kind of network equipments configuration file provided by the invention, configuration text is obtained by setting The part cycle, obtain configuration describing document set, and one it is described obtain the configuration file cycle in, obtain it is corresponding one or The configuration file of multiple network equipments, realizes the acquisition of the network equipments configuration file of polymorphic type, and mode is easy to use certainly Dynamicization, brings less workload.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the acquisition methods of network equipments configuration file in the embodiment of the present invention;
Fig. 2 is a kind of module map of the acquisition system of network equipments configuration file in the embodiment of the present invention.
Embodiment
With reference to the accompanying drawings and examples, the embodiment of the present invention is described in further detail.Implement below Example is used to illustrate the present invention, but is not limited to the scope of the present invention.
Fig. 1 is a kind of flow chart of the acquisition methods of network equipments configuration file in the embodiment of the present invention, as shown in Figure 1, Including:S1, set the acquisition configuration file cycle;S2, according to it is described acquisition the configuration file cycle obtain configuration describing document collection Close, a configuration describing document set includes one or more configuration describing documents;S3, one it is described obtain configuration In file cycle, according to one or more of configuration describing document set configuration describing document, circulation, which obtains, to be corresponded to One or more network equipments configuration file.
Specifically, in step S2, the form of the configuration describing document set is Excel forms, SQL database form Any of file is described with XML.Wherein, the Excel forms are depositing in a tabular form by Excel software programmings The file of storage;The SQL database form is the tables of data worked out by SQL database;It is with XML that the XML, which describes file, The file of form storage, the XML is extensible markup language, is a kind of simple data storage language.One configuration Description file set includes one or more configuration describing documents, and each configuration describing document corresponds to a network and sets Standby, the type of the network equipment is identical or different.
Further, step S3 refers to, within the acquisition configuration file cycle of a setting, is described according to the configuration One or more of file set configuration describing document, obtains the configuration file of corresponding one or more network equipments.
A kind of acquisition methods of network equipments configuration file provided by the invention, the configuration file cycle is obtained by setting, Configuration describing document set is obtained, and within an acquisition configuration file cycle, obtains corresponding one or more networks The configuration file of equipment, realizes the acquisition of the network equipments configuration file of polymorphic type, and mode automation easy to use, band Carry out less workload.
Based on above-described embodiment, step S3 further comprises:S31, obtain in one or more of configuration describing documents Take the first configuration describing document;S32, according to first configuration describing document, obtain the first decoded password;S33, root After the described first decoded password login first network equipment, the first configuration file of generation obtains command history, and described the One configuration file, which obtains command history, includes the acquisition order of the first configuration file;S34, to the first network equipment send institute State the first configuration file and obtain command history;S35, the first configuration file for obtaining the first network equipment.
Specifically, obtaining the first configuration describing document in step S31 in one or more of configuration describing documents is Refer to, within an acquisition configuration file cycle, obtain any one configuration describing document.
Further, step S33 refers to, after logging in first network equipment, the first configuration file of generation obtains command set Close, first configuration file, which obtains command history, includes the acquisition order of the first configuration file.First configuration file obtains Order is determined according to the type of the first network equipment.First configuration file obtain order include show running, Show version and display current-config, but not limited to this.First configuration file obtains command set Conjunction further includes shields processing order again, described to shield processing again and refer to when the first screen all show first configuration file, Second screen continues to show first configuration file.The process instruction of shielding again is preferably MORE instructions.
Further, the order in the first configuration file acquisition command history or script are not set orders.
Further, step S35 refers to, obtains the of the first network equipment that the first network equipment is sent One configuration file.
The acquisition methods of a kind of network equipments configuration file provided by the invention, by according to decoded password login The network equipment, the connection for realizing the network equipment of polymorphic type log in;Obtained by sending corresponding configuration file to the network equipment Command history is taken, realizes the acquisition for network equipments configuration file;By setting the first configuration file to obtain command history In order or script be not set orders so that during the configuration file for obtaining the network equipment, network will not be changed and set Standby existing configuration.
Based on above-described embodiment, circulation described in step S3 obtains the configuration text of corresponding one or more network equipments Part refers to, execution step S31 to step S35 is circulated in the configuration file cycle in described obtains, until an acquisition The correspondence configuration file of all configuration describing documents in the configuration file cycle, which obtains, to be finished.
Specifically, the present embodiment refers to, when to obtain the corresponding configuration file of a configuration describing document as an acquisition During the configuration file cycle, i.e., one obtains a configuration file cycle corresponding configuration describing document set and includes one During configuration describing document, a step S31 to step S35 is performed.Wherein, the first configuration describing document obtained in step S31 Refer to, in the configuration file cycle is obtained, first i.e. last configuration describing document of acquisition.
When obtaining the configuration file cycle as one to obtain the corresponding configuration file of multiple configuration describing documents, i.e., one When a acquisition configuration file cycle corresponding configuration describing document set include multiple configuration describing documents, execution The step S31 of number corresponding with configuration describing document number to step S35.Wherein, when performing step S31 for the first time, obtain Obtain first configuration describing document in a configuration file cycle corresponding configuration describing document set.Hold every time Go after step S35, that is, returned and perform step S31, continued to obtain last time step S31 into step S35, the configuration text of acquisition The corresponding configuration describing document of part is in a configuration file cycle corresponding configuration describing document set is obtained, sequentially Next configuration describing document.When in the configuration file cycle is obtained, the corresponding configuration of last configuration describing document is literary Part has obtained when finishing, and stops performing step S31 to step S35, and wait the acquisition configuration file cycle next time to start.
Based on above-described embodiment, step S3 is further included:According to one or more configuration describing documents and configuration file Backup format, big data platform is backuped to by the configuration file of corresponding one or more network equipments.
Further, the configuration file backup format is the configuration file backup format of user preset.The configuration text Part backup format is preferably arranged to the corresponding network equipment name of configuration file, configuration file obtains month, configuration file obtains Day, configuration file obtain time and configuration file suffix name.As a preferred embodiment, the configuration file backup format Be arranged to %HOST-%M-%D-%Y.log, wherein, %HOST is the corresponding network equipment name of configuration file, %M be with Put file acquisition month, %D obtains day for configuration file, and %Y obtains the time for configuration file, and .log is configuration file suffix Name.
The acquisition methods of a kind of network equipments configuration file provided by the invention, by setting described corresponding one Or the configuration file of multiple network equipments backups to big data platform, configuration file can be backuped to big data platform, avoided Use the complicated cleaning problem of disk or distributed data node standby configuration file.
Based on above-described embodiment, in step S1, the acquisition configuration file cycle, refer to obtain a configuration The corresponding configuration file of file set is described for an acquisition configuration file cycle;Described set obtains the configuration file cycle, is Refer to the time interval for setting and obtaining each configuration describing document set.
Based on above-described embodiment, the first configuration file described in step S33 obtains command history and further includes:First mess code Dispose script.
Specifically, the first mess code disposal script is used preferably using python scripts, the first mess code disposal script Mess code in the screen that processing shows first configuration file.
A kind of acquisition methods of network equipments configuration file provided by the invention, by setting the first mess code to dispose script, Mess code can be handled, realizes the lossless acquisition and backup of configuration file.
Based on above-described embodiment, the configuration describing document includes:Manage mouth IP address, management mouth accesses password, management Mouth accesses password and corresponds to password salt, Access Management Access mouth mode, access port and network equipments configuration file backup position.
Specifically, the Access Management Access mouth mode includes ssh, telnet, http and https.
Further, the management mouth accesses password, is the password for adding salt treatment;The management mouth accesses password and corresponds to Password salt is that corresponding management mouth accesses the password salt that password uses.
Further, the network equipments configuration file backup position is big data platform catalogue.
Based on above-described embodiment, the configuration describing document further comprises:Manage mouth and access account, network equipment class Type and network device software version.
Based on above-described embodiment, it is described management mouth access password and it is described management mouth access password correspond to password salt with The form of encrypted password is stored in the configuration describing document.
Specifically, it is not with plain text that the management mouth access password and the management mouth, which access password and correspond to password salt, Form, but be stored in the form of password in the configuration describing document.
A kind of acquisition methods of network equipments configuration file provided by the invention, it is close by setting the management mouth to access Code is corresponded to password salt with the management mouth access password and the configuration describing document is stored in the form of encrypted password In so that configuration file safely can be acquired and back up.
Based on above-described embodiment, step S32 further comprises:S321, pass through the first Access Management Access mouth mode and the first visit Ask that the port first network equipment corresponding with the first management mouth IP address is established to connect;S322, set with the first network After standby foundation connection, password is accessed according to the first management mouth and the first management mouth access password corresponds to password salt and decoded, is obtained Take the described first decoded password.
As a preferred embodiment, table 1 is the Excel tables of a configuration describing document set, as shown in table 1, described Configuration describing document set includes 3 configuration describing documents, and the content of the configuration describing document includes:Management mouth IP address, Management mouth accesses account, management mouth accesses password, management mouth accesses password and corresponds to password salt, Access Management Access mouth mode, access end Mouth, types of network equipment, network device software version and network equipments configuration file backup position.
Specifically, as shown in table 1, it is for first configuration describing document, corresponding content:First management mouth IP Address is 12.12.12.12, and it is Test1 that first management mouth, which accesses account, and first management mouth accesses password and be 7DC67ED2CA9, it is 8DDA7DC that first management mouth, which accesses password to correspond to password salt, and first Access Management Access mouth mode is Telnet, first access port is 23, and first types of network equipment is CRS, and first network device software version is V3, first network equipments configuration file backup position are Hdfs://localhost:/ apps/crs/, herein Hdfs mean The path of big data platform.
For second configuration describing document, corresponding content is:Second management mouth IP address is 12.12.12.13, It is Test that second management mouth, which accesses account, and it is 05EE4568DDA that second management mouth, which accesses password, and second management mouth is visited It is 8DDA7DE to ask that password corresponds to password salt, and second Access Management Access mouth mode is ssh, and second access port is 22, second A types of network equipment is NE5000E, and second network device software version is v6r7, second network equipments configuration file Backup location is Hdfs://localhost:/ apps/ne5000e/, herein Hdfs mean the path of big data platform.
For the 3rd configuration describing document, corresponding content is:3rd management mouth IP address is 12.12.12.15, It is Test that 3rd management mouth, which accesses account, and it is 0983AD48 that the 3rd management mouth, which accesses password, and the 3rd management mouth accesses close The corresponding password salt of code is 38892AE, and the 3rd Access Management Access mouth mode is ssh, and the 3rd access port is 22, the 3rd net Network device type is CR16000, and the 3rd network device software version is 1.0.103, the 3rd network equipments configuration file Backup location is Hdfs://localhost:/ apps/cr16k/, herein Hdfs mean the path of big data platform.
The Excel tables of 1 one configuration describing document set of table
Further, set and obtain the configuration file cycle as 5 minutes, it is %HOST-% to set configuration file backup format M-%D-%Y.log, wherein, %HOST is the corresponding network equipment name of configuration file, and %M obtains month, % for configuration file D obtains day for configuration file, and %Y obtains the time for configuration file, and .log is configuration file suffix name.
Further, in one obtains the configuration file cycle, a configuration describing document set such as institute of table 1 of acquisition Show.Obtain first and back up corresponding first configuration file of first configuration describing document.Details are provided below for it.
First, first configuration describing document is obtained;Pass through first mode, that is, telnet and first, Access Management Access mouth Access port i.e. 23 and the first management mouth IP address, that is, 12.12.12.12 are established and connected;Password is accessed according to first management mouth I.e. 7DC67ED2CA9 and first management mouth access password corresponds to password salt i.e. 8DDA7DC and is decoded, and obtains first solution Password after code.
Secondly, generate first configuration file and obtain command history, first configuration file obtains command history bag Include first configuration file and obtain the i.e. show run of order, first shields processing order i.e. MORE instructions and first mess code again Dispose script, that is, crsv3.py.Described first is sent to corresponding first network equipment of first configuration file to match somebody with somebody File acquisition command history is put, and obtains first configuration file.Shown in first configuration file is seen below.
LM-CRS3-C1#show run
Fri May 16 16:11:15.952be
Building configuration...
!!IOS XR Configuration 4.0.4
!!Last configuration change at Fri May 16 14:45:40 2014by qu
hostname LM-CRS3-C1
clock timezone beijing 8
logging trap debugging
logging console warning
Then, according to first network equipments configuration file backup position of first configuration describing document and institute Configuration file backup format is stated, first configuration file is backed up.Hdfs is set://localhost:/apps/ Crs/lm-crs3-c1-03-20-2017.cfg, wherein, hdfs://localhost:/ apps/crs/ is first net Network device configuration file backup location, lm-crs3-c1 are first network equipment name, and 03 obtains the moon for first configuration file Part, 20 obtain day for first configuration file, and 2017 obtain the time for first configuration file, and .cfg is first configuration text Part suffix name.According to the content of setting by first network equipments configuration file backup to big data platform.
Further, in one obtains the configuration file cycle, next obtains and backs up second configuration describing document pair Second configuration file answered.Details are provided below for it.
First, second configuration describing document is obtained;Pass through mode, that is, ssh and second visit of second Access Management Access mouth Ask that port i.e. 22 and second i.e. 12.12.12.13 of management mouth IP address are established and connected;Password is accessed according to second management mouth I.e. 05EE4568DDA and second management mouth access password corresponds to password salt i.e. 8DDA7DE and is decoded, and obtains second solution Password after code.
Secondly, generate second configuration file and obtain command history, second configuration file obtains command history bag Include second configuration file and obtain the i.e. display current-config of order, second shields the i.e. MORE of processing order and refer to again Order and second mess code dispose script.Described second is sent to corresponding second network equipment of second configuration file A configuration file obtains command history, and obtains second configuration file.
Then, according to second network equipments configuration file backup position of second configuration describing document and institute Configuration file backup format is stated, second configuration file is backed up.Hdfs is set://localhost:/apps/ Ne5000e/lm-ne5000e6r7-c1-03-20-2017.cfg, wherein, hdfs://localhost:/apps/ne5000e/ For second network equipments configuration file backup position, lm-ne5000e6r7-c1 is second network equipment name, and 03 is Second configuration file obtains month, and 20 obtain day for second configuration file, and 2017 obtain year for second configuration file Part .cfg is second configuration file suffix name.According to the content of setting by second network equipments configuration file backup To big data platform.
Further, in one obtains the configuration file cycle, finally obtain and back up the 3rd configuration describing document pair The 3rd configuration file answered.Details are provided below for it.
First, the 3rd configuration describing document is obtained;Visited by the 3rd Access Management Access mouth mode, that is, ssh and the 3rd Ask that port i.e. 22 and the 3rd i.e. 12.12.12.15 of management mouth IP address are established and connected;Password is accessed according to the 3rd management mouth That is 0983AD48 and the 3rd management mouth access password corresponds to password salt i.e. 38892AE and is decoded, after obtaining the 3rd decoding Password.
Secondly, generate the 3rd configuration file and obtain command history, the 3rd configuration file obtains command history bag Include the 3rd configuration file and obtain the i.e. show run of order, the 3rd shields processing order i.e. MORE instructions and the 3rd mess code again Dispose script.The 3rd configuration file is sent to corresponding 3rd network equipment of the 3rd configuration file to obtain Command history, and obtain the 3rd configuration file.
Then, according to the 3rd network equipments configuration file backup position of the 3rd configuration describing document and institute Configuration file backup format is stated, the 3rd configuration file is backed up.Hdfs is set://localhost:/apps/ Cr16k/lm-cr16k1.0.103-c1-03-20-2017.cfg, wherein, hdfs://localhost:/ apps/cr16k/ is The 3rd network equipments configuration file backup position, lm-cr16k1.0.103-c1 are the 3rd network equipment name, and 03 is 3rd configuration file obtains month, and 20 obtain day for the 3rd configuration file, and 2017 obtain year for the 3rd configuration file Part .cfg is the 3rd configuration file suffix name.According to the content of setting by the 3rd network equipments configuration file backup To big data platform.
Further, an acquisition configuration file end cycle, waited 5 minutes until next acquisition configuration file week Phase starts.
Based on above-described embodiment, Fig. 2 is a kind of mould of the acquisition system of network equipments configuration file in the embodiment of the present invention Block diagram, as shown in Fig. 2, including:Setup module, the configuration file cycle is obtained for setting;Description file set module is obtained, For obtaining configuration describing document set, a configuration describing document set bag according to the acquisition configuration file cycle Include one or more configuration describing documents;Obtain profile module, for one it is described obtain the configuration file cycle in, According to one or more of configuration describing document set configuration describing document, circulation obtains corresponding one or more The configuration file of the network equipment.
Specifically, described to obtain in description file set module, the form of the configuration describing document set is Excel Form, SQL database form and XML describe any of file.Wherein, the Excel forms are to pass through Excel softwares The file stored in a tabular form of establishment;The SQL database form is the tables of data worked out by SQL database;It is described It is the file stored in xml format that XML, which describes file, and the XML is extensible markup language, is that a kind of simple data are deposited Store up language.One configuration describing document set includes one or more configuration describing documents, each configuration description File corresponds to a network equipment, and the type of the network equipment is identical or different.
Further, the acquisition profile module includes, within the acquisition configuration file cycle of a setting, root According to one or more of configuration describing document set configuration describing document, obtain corresponding one or more networks and set Standby configuration file.
The acquisition methods and system of a kind of network equipments configuration file provided by the invention, configuration text is obtained by setting The part cycle, obtain configuration describing document set, and one it is described obtain the configuration file cycle in, obtain it is corresponding one or The configuration file of multiple network equipments, realizes the acquisition of the network equipments configuration file of polymorphic type, and mode is easy to use certainly Dynamicization, brings less workload., can by centering big data platform catalogue in network equipments configuration file backup position Configuration file is backuped into big data platform, avoids the complexity using disk or distributed data node standby configuration file Cleaning problem.By setting the first mess code to dispose script, mess code can be handled, realizes the lossless acquisition of configuration file and standby Part.By the way that according to the decoded password login network equipment, the connection for realizing the network equipment of polymorphic type logs in;By setting Put the first configuration file obtain command history in order or script be not set orders so that obtain and backup network set During standby configuration file, the configuration of the network equipment will not be changed.
Finally, method of the invention is only preferable embodiment, is not intended to limit the scope of the present invention.It is all Within the spirit and principles in the present invention, any modification, equivalent replacement, improvement and so on, should be included in the guarantor of the present invention Within the scope of shield.

Claims (10)

  1. A kind of 1. acquisition methods of network equipments configuration file, it is characterised in that including:
    S1, set the acquisition configuration file cycle;
    S2, according to it is described acquisition the configuration file cycle obtain configuration describing document set, a configuration describing document set Including one or more configuration describing documents;
    S3, one it is described obtain the configuration file cycle in, matched somebody with somebody according to one or more of described configuration describing document set Description file is put, circulation obtains the configuration file of corresponding one or more network equipments.
  2. 2. acquisition methods according to claim 1, it is characterised in that step S3 further comprises:
    S31, obtain the first configuration describing document in one or more of configuration describing documents;
    S32, according to first configuration describing document, obtain the first decoded password;
    S33, according to the described first decoded password login first network equipment after, generation the first configuration file obtain command set Close, first configuration file, which obtains command history, includes the acquisition order of the first configuration file;
    S34, send first configuration file to the first network equipment and obtain command history;
    S35, the first configuration file for obtaining the first network equipment.
  3. 3. acquisition methods according to claim 2, it is characterised in that step S3 is further included:
    According to one or more configuration describing documents and configuration file backup format, by corresponding one or more nets The configuration file of network equipment backups to big data platform.
  4. 4. acquisition methods according to claim 1, it is characterised in that including:
    In step S1, the acquisition configuration file cycle, refers to that a configuration describing document set is corresponding to match somebody with somebody to obtain File is put as an acquisition configuration file cycle;Described set obtains the configuration file cycle, refers to set each configuration of acquisition to retouch State the time interval of file set.
  5. 5. acquisition methods according to claim 2, it is characterised in that the first configuration file described in step S33 obtains life Set is made to further include:First mess code disposes script.
  6. 6. acquisition methods according to claim 2, it is characterised in that the configuration describing document includes:
    Management mouth IP address, management mouth access password, management mouth accesses password and corresponds to password salt, Access Management Access mouth mode, accesses Port and network equipments configuration file backup position.
  7. 7. acquisition methods according to claim 6, it is characterised in that the configuration describing document further comprises:
    Manage mouth and access account, types of network equipment and network device software version.
  8. 8. acquisition methods according to claim 6, it is characterised in that the management mouth accesses password and the management mouth is visited Ask that password is corresponded to password salt and is stored in the form of encrypted password in the configuration describing document.
  9. 9. acquisition methods according to claim 6, it is characterised in that step S32 further comprises:
    S321, pass through the first Access Management Access mouth mode and the first access port and the first management mouth IP address corresponding described first The network equipment establishes connection;
    S322, after establishing connection with the first network equipment, access password according to the first management mouth and the first management mouth access Password corresponds to password salt and is decoded, and obtains the first decoded password.
  10. A kind of 10. acquisition system of network equipments configuration file, it is characterised in that including:
    Setup module, the configuration file cycle is obtained for setting;
    Obtain description file set module, for according to it is described acquisition the configuration file cycle obtain configuration describing document set, one A configuration describing document set includes one or more configuration describing documents;
    Obtain profile module, for one it is described obtain the configuration file cycle in, according to the configuration describing document collection One or more of conjunction configuration describing document, circulation obtain the configuration file of corresponding one or more network equipments.
CN201710891476.2A 2017-09-27 2017-09-27 A kind of acquisition methods and system of network equipments configuration file Pending CN107947958A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710891476.2A CN107947958A (en) 2017-09-27 2017-09-27 A kind of acquisition methods and system of network equipments configuration file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710891476.2A CN107947958A (en) 2017-09-27 2017-09-27 A kind of acquisition methods and system of network equipments configuration file

Publications (1)

Publication Number Publication Date
CN107947958A true CN107947958A (en) 2018-04-20

Family

ID=61935081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710891476.2A Pending CN107947958A (en) 2017-09-27 2017-09-27 A kind of acquisition methods and system of network equipments configuration file

Country Status (1)

Country Link
CN (1) CN107947958A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115484166A (en) * 2022-08-30 2022-12-16 海尔优家智能科技(北京)有限公司 Method and device for backing up configuration information, server and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105634799A (en) * 2015-12-25 2016-06-01 国网浙江省电力公司湖州供电公司 Diversified brand network equipment configuration automatic backup method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105634799A (en) * 2015-12-25 2016-06-01 国网浙江省电力公司湖州供电公司 Diversified brand network equipment configuration automatic backup method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115484166A (en) * 2022-08-30 2022-12-16 海尔优家智能科技(北京)有限公司 Method and device for backing up configuration information, server and storage medium
CN115484166B (en) * 2022-08-30 2024-04-19 海尔优家智能科技(北京)有限公司 Method and device for backing up configuration information, server and storage medium

Similar Documents

Publication Publication Date Title
US11652918B2 (en) Using automatically collected device problem information to route and guide users' requests
CN107920005A (en) A kind of intelligent terminal quickly networking installation and debugging system and method for work
EP2356580B1 (en) Common configuration application programming interface
CN110851135A (en) Automatic application program building and uploading method and device, computer equipment and storage medium
CN106331189A (en) Log acquisition method and device, and network management server
CN109039788B (en) Port configuration method and device of network equipment and storage medium
CN103019757A (en) Method, device and system for synchronizing software among multiple clients
CN102665195A (en) Data terminal, data terminal system and data terminal implementation method based on cloud service
CN105224348A (en) A kind of installation method of MySQL database and device
CN106339273A (en) Application program restoration method, terminal and server
CN105487859A (en) Template based WEB deployment method for big data components
CN106685723A (en) Remote upgrading method and system for embedded network devices
CN108563440A (en) The automatic adding method of List Controller code, device and readable storage medium storing program for executing
CN107566513A (en) Test equipment DOS environmental data collecting methods and system
WO2016074412A1 (en) Compatibility administration method based on network configuration protocol, storage medium and device
CN106936660B (en) Data acquisition method and device
CN107947958A (en) A kind of acquisition methods and system of network equipments configuration file
CN109286512A (en) The backup method of network equipment information, device and system
WO2015196805A1 (en) Batch command execution method and apparatus
CN104378231A (en) Control system and control method for enterprise wireless router
US9207928B2 (en) Computer-readable medium, apparatus, and methods of automatic capability installation
CN115220974A (en) Dynamic checking system, method, device and medium for network information of operating system
Cisco Configuration Save and Restore
Cisco Configuration Save and Restore
Cisco Release Notes for Cisco Aironet Access Points

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180420

RJ01 Rejection of invention patent application after publication