CN105634799A - Diversified brand network equipment configuration automatic backup method - Google Patents

Diversified brand network equipment configuration automatic backup method Download PDF

Info

Publication number
CN105634799A
CN105634799A CN201510992698.4A CN201510992698A CN105634799A CN 105634799 A CN105634799 A CN 105634799A CN 201510992698 A CN201510992698 A CN 201510992698A CN 105634799 A CN105634799 A CN 105634799A
Authority
CN
China
Prior art keywords
backup
equipment
network equipment
diversified
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
CN201510992698.4A
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
Huzhou Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
Huzhou Power Supply Co of State Grid Zhejiang 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, Huzhou Power Supply Co of State Grid Zhejiang Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201510992698.4A priority Critical patent/CN105634799A/en
Publication of CN105634799A publication Critical patent/CN105634799A/en
Pending legal-status Critical Current

Links

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The invention discloses a diversified brand network equipment configuration automatic backup method comprising the following steps that (1) equipment accounting information recorded in an excel file is read by programs so that equipment automatic login can be realized; (2) backup commands corresponding to brands are remotely pushed according to different brands, and configuration files are transmitted to a local computer to be stored in a centralized way by utilizing a TFTP file transmission protocol; (3) end of the commands is judged by waiting appearance of a specific character string-"host name#" in the command performing process, and a command timeout mechanism is also set; (4) accuracy of configuration backup is judged by inspecting the size of backup files; and (5) a file folder is automatically created according to the rule of "year/quarter/network equipment grade/network equipment name" by utilizing an interface provided by a windows operating system, and the equipment configuration files are automatically stored in a classification way according to the equipment name. Diversified brand network equipment configuration automatic backup can be realized by the diversified brand network equipment configuration automatic backup method.

Description

A kind of variation branded network Equipments Setting automatic backup method
Technical field
The present invention relates to a kind of variation branded network Equipments Setting automatic backup method.
Background technology
Regularly carrying out network equipments configuration backup is one of important regular works of network manager. If number of devices is less, general employing manual mode carries out; If number of devices is more, then need automatically to complete by instrument. Current many webmaster softwares possess " configuration management " module, support the automated back-up of Equipments Setting file, but all there is many problems, such as: need manual configuration script, do not verify that backup exactness, backup failure reason cannot be checked.
Summary of the invention
Technical problem to be solved by this invention is just to provide a kind of variation branded network Equipments Setting automatic backup method, to realize different brands network equipments configuration automated back-up work problem, takes into account efficiency and accuracy.
For solving the problems of the technologies described above, the present invention provides following technical scheme: a kind of variation branded network Equipments Setting automatic backup method, it is characterised in that comprise the steps:
(1) the Unit account of plant information realization of the record in program reading excel file logs in equipment, described Unit account of plant information automatically: equipment brand, entry address, login mode, host name, remarks title, logon account/password;
(2) according to different brands, the backup command that long-range propelling movement brand is corresponding, utilizes TFTP file transfer protocol (FTP), configuration file transfers to local computing machine and leaves concentratedly;
(3) in order execution process, judge whether order terminates by waiting the appearance of specific character string " host name # ", simultaneously setting command timeout mechanism, prevent from waiting that character string does not occur causing waiting indefinitely for a long time;
(4) by checking that backup file size judges to configure the accuracy of backup;
(5) interface that windows operating system provides is utilized, automatically folder is created according to the rule in " year/season/network equipment classification/network equipment title ", and according to device name automatic clustering storage equipment configuration file, convenient searching is taken in the future.
The present invention's a kind of variation branded network Equipments Setting automatic backup method is by the platform account of Read EXCEL Document form, automatically backup command is pushed logged in the network equipment of various different brands by self-defined computer program after, utilize TFTP file transfer protocol (FTP) that the configuration file on equipment is transferred to local computing machine to leave concentratedly, it is achieved that the automated back-up of variation branded network Equipments Setting. Before not using the method, the configuration file of a manual backup equipment, at least needs 3 points of kind above times, and no matter is back up or utilize other automation tools existing by hand, all there is the problem omitted and make mistakes; Using the configuration file of a backup equipment after the method only to need about 15 seconds time, save the time, it is to increase efficiency, accuracy is also able to fabulous guarantee.
Below in conjunction with Figure of description and specific embodiment, the invention will be further described.
Accompanying drawing explanation
Fig. 1 is automated back-up schema of the present invention;
Fig. 2 is program runnable interface sectional drawing;
Fig. 3 is program error daily record sectional drawing.
Embodiment
Need when implementing the present invention's a kind of variation branded network Equipments Setting automatic backup method first on the basis of existing account, to in the fortune quantity of equipment and the further combing of attribute, it is necessary to the platform account attribute information of check comprises: equipment brand, entry address, login mode, host name, remarks title, logon account/password (containing privilege password).
Backup command combing: after remote logged-in device, it is possible to performing backup command and configure backup, the equipment of different brands is because of operating system difference, and backup command respectively has difference, it is necessary to combing goes out the backup command of common equipment, as shown in table 1:
Table 1 is see the configuration file backup command of equipment
Sequence number Brand Backup command
1 CISCO copy startup-config tftp://IP/filename
2 H3C tftp IP put startup.cfg filename
3 HUAWEI tftp IP put vrpcfg.zip filename
4 Ruijie copy startup-config tftp://IP/filename
5 MAIPU copy startup-config tftp IP filename
6 Foundry copy startup-config tftp IP filename
Based on this, the present invention's a kind of variation branded network Equipments Setting automatic backup method, it comprises the steps:
(1) the Unit account of plant information realization of the record in program reading excel file logs in equipment, described Unit account of plant information automatically: equipment brand, entry address, login mode, host name, remarks title, logon account/password; Wherein
[backup]: indicating this equipment the need of execution automated back-up, 1 represents execution, and 0 expression does not perform.
[description]: the Chinese description of equipment, can create with this folder being described as title during automated back-up, automatically for depositing the backup file of this equipment.
[host name]: the hostname information of equipment, when automated back-up for judging that when complete order is.
[management address]: the managing I P address (exchange board is generally Vlan address, and router is generally LookBack address) of equipment, needs during remote logged-in device.
[logging in]: the agreement that this equipment of Telnet adopts, Telnet and SSH two kinds (wherein SSH is subdivided into again SSH1 and SSH2).
[brand]: the brand of equipment, Network brand common on the market at present has CISCO (Cisco), H3C (China three), HUAWEI (Huawei), Ruijie (StarNet), MAIPU (Maipu) and Foundry (Fang Te) etc.
[account]: the user name that Telnet uses.
[password]: the password that Telnet uses.
[privilege password]: backup command needs to run in privileged mode, it is necessary to use privilege password to enter this pattern.
(2) according to different brands, the backup command that long-range propelling movement brand is corresponding, utilizes TFTP file transfer protocol (FTP), configuration file transfers to local computing machine and leaves concentratedly;
(3) in order execution process, judge whether order terminates by waiting the appearance of specific character string " host name # ", simultaneously setting command timeout mechanism, prevent from waiting that character string does not occur causing waiting indefinitely for a long time;
(4) by checking that backup file size judges to configure the accuracy of backup;
(5) interface that windows operating system provides is utilized, automatically folder is created according to the rule in " year/season/network equipment classification/network equipment title ", and according to device name automatic clustering storage equipment configuration file, convenient searching is taken in the future.
Such as Fig. 1, concrete automated back-up flow process: after alternate device is selected, carry out beaching accommodation successively, enter privilege pattern and perform the operation of backup command. In this three steps operating process, such as wrong generation, then after recording unsuccessfully daily record, circulation is to the back-up job of next equipment. Wherein, enter privilege pattern and perform also to need to carry out to exit logon operation after the operation of backup command two step makes mistakes, disconnect the connection with the network equipment in time. In order execution process, judge whether order terminates by waiting the appearance of specific character string " host name # ", simultaneously setting command timeout mechanism, prevent from waiting that character string does not occur causing waiting indefinitely for a long time.
If performing backup command success, in addition it is also necessary to carry out final step operation, namely by the accuracy of file size checking backup, and the backup file backuping to TFTP root directory is deposited the particular category to special mobile hard disk. Program can create folder automatically according to the rule in " year/season/network equipment classification/network equipment title ". After unloading has operated, exiting beaching accommodation, after recording successfully daily record, circulation is to the back-up job of next equipment.
More specifically, aforesaid method utilizes program example runnable interface that VisaulStudio2012 realizes as indicated with 2. TFTP server address is filled on hurdle, TFTP address, owing to same machine is disposed, it is possible to automatically caught the IP address of the machine by " acquisition " button. TFTP root directory hurdle is filled in the path of TFTP root directory, so that program can find the backup file come from switch backup to carry out classification unloading. Configuration file hurdle is inserted the full name of EXCEL file (comprising path), so that program obtains the information of the network equipment. Finally, click START button, both can carry out network equipments configuration automated back-up and classification is deposited.
In backup process, text box is understood the automated back-up result of each network equipment in Dynamic Announce program execution process. If certain equipment automated back-up failure, interface can clearly be pointed out. Detailed wrong daily record can be transferred by " mistake daily record " button and carry out specific aim analysis, as shown in Figure 3, back up so that network manager carries out manual supplementing.

Claims (2)

1. a diversified branded network Equipments Setting automatic backup method, it is characterised in that comprise the steps:
(1) the Unit account of plant information realization of the record in program reading excel file logs in equipment, described Unit account of plant information automatically: equipment brand, entry address, login mode, host name, remarks title, logon account/password;
(2) according to different brands, the backup command that long-range propelling movement brand is corresponding, utilizes TFTP file transfer protocol (FTP), configuration file transfers to local computing machine and leaves concentratedly;
(3) in order execution process, judge whether order terminates by waiting the appearance of specific character string " host name # ", simultaneously setting command timeout mechanism, prevent from waiting that character string does not occur causing waiting indefinitely for a long time;
(4) by checking that backup file size judges to configure the accuracy of backup;
(5) interface that windows operating system provides is utilized, automatically folder is created according to the rule in " year/season/network equipment classification/network equipment title ", and according to device name automatic clustering storage equipment configuration file, convenient searching is taken in the future.
2. variation branded network Equipments Setting automatic backup method according to claim 1, it is characterised in that: in step (2) if in backup failure, then record failure cause, convenient analyze and manual leakage detection is filled a vacancy.
CN201510992698.4A 2015-12-25 2015-12-25 Diversified brand network equipment configuration automatic backup method Pending CN105634799A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510992698.4A CN105634799A (en) 2015-12-25 2015-12-25 Diversified brand network equipment configuration automatic backup method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510992698.4A CN105634799A (en) 2015-12-25 2015-12-25 Diversified brand network equipment configuration automatic backup method

Publications (1)

Publication Number Publication Date
CN105634799A true CN105634799A (en) 2016-06-01

Family

ID=56049337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510992698.4A Pending CN105634799A (en) 2015-12-25 2015-12-25 Diversified brand network equipment configuration automatic backup method

Country Status (1)

Country Link
CN (1) CN105634799A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107947958A (en) * 2017-09-27 2018-04-20 国网湖南省电力公司 A kind of acquisition methods and system of network equipments configuration file
CN109286512A (en) * 2017-07-20 2019-01-29 阿里巴巴集团控股有限公司 The backup method of network equipment information, device and system
CN111143280A (en) * 2019-12-31 2020-05-12 广州广电运通信息科技有限公司 Data scheduling method, system, device and storage medium
CN112272101A (en) * 2020-09-08 2021-01-26 山东中创软件商用中间件股份有限公司 Method, system and related device for backing up switch configuration file
CN113220506A (en) * 2021-05-28 2021-08-06 中国工商银行股份有限公司 Data processing method and device for terminal equipment
CN113541999A (en) * 2021-05-17 2021-10-22 上海中通吉网络技术有限公司 Method for issuing network equipment configuration in batches
CN116319825A (en) * 2022-12-09 2023-06-23 北京深盾科技股份有限公司 Backup method and system of network switch, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411523A (en) * 2011-11-30 2012-04-11 广东威创视讯科技股份有限公司 Method and device for storing file backups and backup method for file systems
CN103176867A (en) * 2013-04-02 2013-06-26 浪潮电子信息产业股份有限公司 Fast file differential backup method
CN103595565A (en) * 2013-11-12 2014-02-19 国家电网公司 Automatic network equipment configuration backup method based on SecureCRT
CN104754266A (en) * 2013-12-30 2015-07-01 杭州海康威视数字技术股份有限公司 Smart FTP (File Transfer Protocol) backup video recording method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411523A (en) * 2011-11-30 2012-04-11 广东威创视讯科技股份有限公司 Method and device for storing file backups and backup method for file systems
CN103176867A (en) * 2013-04-02 2013-06-26 浪潮电子信息产业股份有限公司 Fast file differential backup method
CN103595565A (en) * 2013-11-12 2014-02-19 国家电网公司 Automatic network equipment configuration backup method based on SecureCRT
CN104754266A (en) * 2013-12-30 2015-07-01 杭州海康威视数字技术股份有限公司 Smart FTP (File Transfer Protocol) backup video recording method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘宇: "关于交换机配置文件实现自动备份的研究", 《电脑与电信》 *
陈军,张伟刚,黄立: "网络设备自动备份工具的实现", 《湖州师范学院学报》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109286512A (en) * 2017-07-20 2019-01-29 阿里巴巴集团控股有限公司 The backup method of network equipment information, device and system
CN107947958A (en) * 2017-09-27 2018-04-20 国网湖南省电力公司 A kind of acquisition methods and system of network equipments configuration file
CN111143280A (en) * 2019-12-31 2020-05-12 广州广电运通信息科技有限公司 Data scheduling method, system, device and storage medium
CN111143280B (en) * 2019-12-31 2023-10-10 广州广电运通信息科技有限公司 Data scheduling method, system, device and storage medium
CN112272101A (en) * 2020-09-08 2021-01-26 山东中创软件商用中间件股份有限公司 Method, system and related device for backing up switch configuration file
CN113541999A (en) * 2021-05-17 2021-10-22 上海中通吉网络技术有限公司 Method for issuing network equipment configuration in batches
CN113220506A (en) * 2021-05-28 2021-08-06 中国工商银行股份有限公司 Data processing method and device for terminal equipment
CN116319825A (en) * 2022-12-09 2023-06-23 北京深盾科技股份有限公司 Backup method and system of network switch, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN105634799A (en) Diversified brand network equipment configuration automatic backup method
CN101388911B (en) Off-line data collecting method for network application program
EP2460258B1 (en) Method and device for auto-generating goose signal connection topology from substation level
CN107465572A (en) Intelligent terminal method of testing, apparatus and system
CN102693141A (en) BMC based Firmware automatic update system of programmable logic device of server
CN109254922B (en) Automatic testing method and device for BMC Redfish function of server
CN102437938A (en) Large-scale network monitoring oriented virtual deployment system and method
CN102799519A (en) Automatic test method for cluster file system
CN106294151B (en) Log test method and device
CN106406952B (en) Electric terminal and application program management apparatus and method
CN102750301A (en) Blueprint generating method for integrated avionic system model aiming at architecture analysis and design language (AADL) description
CN103200199A (en) Out of band (OOB) data collection system
CN106656562A (en) Method and device for detecting ONU configurations batch-issued by OLT
CN112463661A (en) USB device management system and management method
CN107870850A (en) A kind of efficient the Internet, applications log system
CN106302864A (en) A kind of IP in order arranges system
CN103152756A (en) Automation configuration method for wireless local area network access controller (WLAN AC)
CN104636441A (en) Network file system realization method and device
CN107800802A (en) A kind of Rack whole machine cabinets write-in and the method for reading UUID
CN108460160A (en) Inserting method, device, terminal and the storage medium of database instance
CN104516953A (en) Black box system for mass power dispatching automation message
CN109412856B (en) Network equipment brand non-difference management method and system
CN105302531A (en) Source code simplifying method and apparatus
CN116647490A (en) Aviation AFDX network data detection system
CN114143171B (en) Alarm root cause positioning method and system based on TR069 protocol

Legal Events

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

Application publication date: 20160601