CN103338127A - Method for realizing automatic configuration update of switch and system upgrade control - Google Patents

Method for realizing automatic configuration update of switch and system upgrade control Download PDF

Info

Publication number
CN103338127A
CN103338127A CN201310303761XA CN201310303761A CN103338127A CN 103338127 A CN103338127 A CN 103338127A CN 201310303761X A CN201310303761X A CN 201310303761XA CN 201310303761 A CN201310303761 A CN 201310303761A CN 103338127 A CN103338127 A CN 103338127A
Authority
CN
China
Prior art keywords
switch
system upgrade
described switch
upgrade
upgrading
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
CN201310303761XA
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.)
DAYA SCIENCE AND TECHNOLOGY Co Ltd SHANGHAI
Original Assignee
DAYA SCIENCE AND TECHNOLOGY Co Ltd SHANGHAI
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 DAYA SCIENCE AND TECHNOLOGY Co Ltd SHANGHAI filed Critical DAYA SCIENCE AND TECHNOLOGY Co Ltd SHANGHAI
Priority to CN201310303761XA priority Critical patent/CN103338127A/en
Publication of CN103338127A publication Critical patent/CN103338127A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a method for realizing automatic configuration update of a switch and system upgrade control. The method comprises the steps as follows: the switch is started and a WAN (wide area network) interface address of the switch is obtained; the switch downloads a latest configuration file of a switch system from a server and the switch system is subjected to basic configuration update; the switch examines system upgrade information in the configuration file of the switch system; and whether upgrade is needed is determined by comparing an upgraded version and an original version, and if the upgrade is needed, the switch downloads a system upgrade file from the server and performs system upgrade. The method adopting the structure for realizing automatic configuration update of the switch and system upgrade control is used, automatic batch basic configuration update can be realized, batch system upgrade of the switch is realized, the system is not only applicable to gigabit fiber switches but also applicable to upgrade applications of other switches, the method is simple and convenient, the usage is convenient, and the method has a wider application range.

Description

Realize the method for the automatic config update of switch and system upgrade control
Technical field
The present invention relates to the switch communication field, relate in particular to the switch upgrades method, specifically refer to a kind of method that realizes the automatic config update of switch and system upgrade control.
Background technology
In the prior art, the system upgrade of traditional ethernet switch generally all is by staff or user each switch to be upgraded separately, and efficient is not high., SNMP(Simple Network Management Protocol) etc. and traditional ether switch TR069(CPE wide area network management agreement commonly used) mode manages, and also can't accomplish real-time update and batch updating, brings very big inconvenience for renewal and the use of switch.
Summary of the invention
The objective of the invention is to overcome the shortcoming of above-mentioned prior art, provide that a kind of automatic batch config update that can realize switch and system upgrade, method are easy, easy to use, the automatic config update of realization switch with broader applications scope and the method for system upgrade control.
To achieve these goals, the method for the automatic config update of realization switch of the present invention and system upgrade control has following formation:
This realizes the method for the automatic config update of switch and system upgrade control, and its main feature is that described method may further comprise the steps:
(1) the described switch wan interface address that starts and obtain this switch;
(2) described switch is downloaded up-to-date switch system configuration file and the configurations of described switch is upgraded from server;
(3) described switch checks the system upgrade information in the described switch system configuration file;
(4) described switch is downloaded upgrading configuration of upgrading this time and the version name of the version name in the described upgrading configuration and current switch system is compared;
(5) described switch is from described server download system upgrade file and carry out system upgrade.
Preferably, the wan interface address that described switch starts and obtains this switch may further comprise the steps:
(11) described switch starts and whether the wan interface that detects this switch has set up physical connection, if, then continue step (12), if not, then finish to withdraw from;
(12) described switch obtains the wan interface address of this switch by DHCP.
Preferably, described switch checks the system upgrade information in the described switch system configuration file, is specially:
Described switch checks in the described switch system configuration file whether have system upgrade information, if, then continue step (4), if not, then continue step (3).
Preferably, described switch is downloaded upgrading configuration of upgrading this time and the version name of the version name in the described upgrading configuration and current switch system is compared, and may further comprise the steps:
(21) described switch reads the version name of described current switch system from internal memory;
(22) described switch checks in the described switch system configuration file whether have system upgrade information again, if, then continue step (23), if not, then continue step (3);
(23) described switch is downloaded the upgrading configuration of upgrading this time;
(24) described switch obtains the version name in the described upgrading configuration;
(25) described switch judges whether the version name in the described upgrading configuration is consistent with the version name of current switch system, if, then continue step (3), if not, then continue step (5).
Preferably, described switch is from described server download system upgrade file and carry out system upgrade, may further comprise the steps:
(31) described switch according to the information in the described upgrading configuration from described server download system upgrade file;
(32) described switch carries out system upgrade according to described system upgrade file.
Preferably, described switch is from described server download system upgrade file and carry out after the system upgrade, and is further comprising the steps of:
(6) the system version title after described switch will be upgraded is recorded in the internal memory of this switch.
Adopt the method for the automatic config update of realization switch in this invention and system upgrade control, had following beneficial effect:
Owing to adopt the method for the automatic config update of realization switch of the present invention and system upgrade control, can effectively realize the automatic batch configurations renewal of switch, realize the batch system upgrading of switch, initiatively plug the actively corresponding of the optical fiber of local side and switch by server end simultaneously, can realize the automatic batch upgrading of server end ACTIVE CONTROL, not only go for the kilomega optic fiber switch, also go for the upgrade application of other switches, method is easy, easy to use, have the broader applications scope.
Description of drawings
Fig. 1 is the flow chart of the method for the automatic config update of realization switch of the present invention and system upgrade control.
Fig. 2 is the flow chart that obtains wan interface address step of the present invention.
Fig. 3 is the flow chart of check system upgrade information of the present invention and system's auto-update step.
Embodiment
In order more clearly to describe technology contents of the present invention, further describe below in conjunction with specific embodiment.
In order to realize purpose of the present invention, technical scheme of the present invention is: switch system starts, process Initctl operation.This process can judge by timely connection state to switch wan interface Fiber.Set up when monitoring WAN end physical connection, obtain the wan interface address by the DHCP mode of giving tacit consent to, wherein DHCP refers to that DynamicHost arranges agreement.Behind the success address acquisition, enable the Provision process.
By the Provision process, switch can be downloaded up-to-date switch system configuration file from server end automatically, and system carries out configurations according to up-to-date configuration file then, comprises the port vlan division, QoS mapping etc.The relevant information that comprises system upgrade in this configuration file notifies switch itself whether to need system upgrade with this, and when, which type of mode to obtain new system upgrade file by.
Meanwhile, switch system is in case start, and whether the described switch system configuration file of the inspection that another one process Sw_upgrade can not stop current up-to-date configuration file, determines whether the system upgrade relevant information is arranged in this configuration file.By the relevant information of the upgrading in the analysis configuration file, when system learns that new system upgrade file need upgrade, after the time interval that the process server is informed, switch will be initiatively according to specific mode from server end download system upgrade file to this locality, carry out system upgrade then, and up-to-date system version record in internal memory, convenient inquiry next time is relatively.
By above-mentioned plurality of processes, when server wishes that the switch device of dividing into need be done system upgrade, can plug the optical fiber of local side, the WAN connected mode is that optical fiber connects at present, switch will be made active response.
By the enforcement of technique scheme, server end can upgrade dividing into the upgrading of pbx process automatic batch and configurations easily.
As shown in Figure 1, be the flow chart of the method for the automatic config update of realization switch of present embodiment and system upgrade control.
The method of the automatic config update of described realization switch and system upgrade control may further comprise the steps:
(1) the described switch wan interface address that starts and obtain this switch;
(2) described switch is downloaded up-to-date switch system configuration file and the configurations of described switch is upgraded from server;
(3) described switch checks the system upgrade information in the described switch system configuration file;
(4) described switch is downloaded upgrading configuration of upgrading this time and the version name of the version name in the described upgrading configuration and current switch system is compared;
(5) described switch is from described server download system upgrade file and carry out system upgrade.
Be illustrated in figure 2 as the flow chart that obtains wan interface address step of the present invention.
Be the wan interface address that described switch starts and obtains this switch, may further comprise the steps:
(11) described switch starts and whether the wan interface that detects this switch has set up physical connection, if, then continue step (12), if not, then finish to withdraw from;
(12) described switch obtains the wan interface address of this switch by DHCP.
Be illustrated in figure 3 as the flow chart of check system upgrade information of the present invention and system's auto-update step.
Be that described switch checks the system upgrade information in the described switch system configuration file, be specially:
Described switch checks in the described switch system configuration file whether have system upgrade information, if, then continue step (4), if not, then continue step (3).
Described switch is downloaded upgrading configuration of upgrading this time and the version name of the version name in the described upgrading configuration and current switch system is compared, and may further comprise the steps:
(21) described switch reads the version name of described current switch system from internal memory;
(22) described switch checks in the described switch system configuration file whether have system upgrade information again, if, then continue step (23), if not, then continue step (3);
(23) described switch is downloaded the upgrading configuration of upgrading this time;
(24) described switch obtains the version name in the described upgrading configuration;
(25) described switch judges whether the version name in the described upgrading configuration is consistent with the version name of current switch system, if, then continue step (3), if not, then continue step (5).
Described switch is from described server download system upgrade file and carry out system upgrade, may further comprise the steps:
(31) described switch according to the information in the described upgrading configuration from described server download system upgrade file;
(32) described switch carries out system upgrade according to described system upgrade file.
Described switch is from described server download system upgrade file and carry out after the system upgrade, and is further comprising the steps of:
(6) the system version title after described switch will be upgraded is recorded in the internal memory of this switch.
Adopt the method for the automatic config update of realization switch in this invention and system upgrade control, had following beneficial effect:
Owing to adopt the method for the automatic config update of realization switch of the present invention and system upgrade control, can effectively realize the automatic batch configurations renewal of switch, realize the batch system upgrading of switch, initiatively plug the actively corresponding of the optical fiber of local side and switch by server end simultaneously, can realize the automatic batch upgrading of server end ACTIVE CONTROL, not only go for the kilomega optic fiber switch, also go for the upgrade application of other switches, method is easy, easy to use, have the broader applications scope.
In this specification, the present invention is described with reference to its certain embodiments.But, still can make various modifications and conversion obviously and not deviate from the spirit and scope of the present invention.Therefore, specification and accompanying drawing are regarded in an illustrative, rather than a restrictive.

Claims (6)

1. method that realizes the control of the automatic config update of switch and system upgrade is characterized in that described method may further comprise the steps:
(1) the described switch wan interface address that starts and obtain this switch;
(2) described switch is downloaded up-to-date switch system configuration file and the configurations of described switch is upgraded from server;
(3) described switch checks the system upgrade information in the described switch system configuration file;
(4) described switch is downloaded upgrading configuration of upgrading this time and the version name of the version name in the described upgrading configuration and current switch system is compared;
(5) described switch is from described server download system upgrade file and carry out system upgrade.
2. the method for the automatic config update of realization switch according to claim 1 and system upgrade control is characterized in that, the wan interface address that described switch starts and obtains this switch may further comprise the steps:
(11) described switch starts and whether the wan interface that detects this switch has set up physical connection, if, then continue step (12), if not, then finish to withdraw from;
(12) described switch obtains the wan interface address of this switch by DHCP.
The automatic config update of realization switch according to claim 1 and system upgrade control method, it is characterized in that described switch checks the system upgrade information in the described switch system configuration file, is specially:
Described switch checks in the described switch system configuration file whether have system upgrade information, if, then continue step (4), if not, then continue step (3).
The automatic config update of realization switch according to claim 1 and system upgrade control method, it is characterized in that, described switch is downloaded upgrading configuration of upgrading this time and the version name of the version name in the described upgrading configuration and current switch system is compared, and may further comprise the steps:
(21) described switch reads the version name of described current switch system from internal memory;
(22) described switch checks in the described switch system configuration file whether have system upgrade information again, if, then continue step (23), if not, then continue step (3);
(23) described switch is downloaded the upgrading configuration of upgrading this time;
(24) described switch obtains the version name in the described upgrading configuration;
(25) described switch judges whether the version name in the described upgrading configuration is consistent with the version name of current switch system, if, then continue step (3), if not, then continue step (5).
The automatic config update of realization switch according to claim 1 and system upgrade control method, it is characterized in that described switch is from described server download system upgrade file and carry out system upgrade, may further comprise the steps:
(31) described switch according to the information in the described upgrading configuration from described server download system upgrade file;
(32) described switch carries out system upgrade according to described system upgrade file.
6. the method for the automatic config update of realization switch according to claim 1 and system upgrade control is characterized in that, described switch is from described server download system upgrade file and carry out after the system upgrade, and is further comprising the steps of:
(6) the system version title after described switch will be upgraded is recorded in the internal memory of this switch.
CN201310303761XA 2013-07-18 2013-07-18 Method for realizing automatic configuration update of switch and system upgrade control Pending CN103338127A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310303761XA CN103338127A (en) 2013-07-18 2013-07-18 Method for realizing automatic configuration update of switch and system upgrade control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310303761XA CN103338127A (en) 2013-07-18 2013-07-18 Method for realizing automatic configuration update of switch and system upgrade control

Publications (1)

Publication Number Publication Date
CN103338127A true CN103338127A (en) 2013-10-02

Family

ID=49246231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310303761XA Pending CN103338127A (en) 2013-07-18 2013-07-18 Method for realizing automatic configuration update of switch and system upgrade control

Country Status (1)

Country Link
CN (1) CN103338127A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106100871A (en) * 2016-05-31 2016-11-09 深圳市双赢伟业科技股份有限公司 A kind of switcher firewall update method and device
CN108259191A (en) * 2016-12-28 2018-07-06 南宁富桂精密工业有限公司 Exchange configuration method and system
CN109245920A (en) * 2018-08-23 2019-01-18 北京东土科技股份有限公司 Interchanger method of automatic configuration, device, interchanger and storage medium
CN110138857A (en) * 2019-05-14 2019-08-16 四川九州电子科技股份有限公司 The method of network-termination device realization auto upgrading
CN112416796A (en) * 2020-12-03 2021-02-26 北京东土科技股份有限公司 Method and device for testing software upgrading
CN115086171A (en) * 2022-06-10 2022-09-20 德明通讯(上海)股份有限公司 Automatic multi-path upgrading method and system for routing product factory

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364891A (en) * 2011-09-13 2012-02-29 杭州华三通信技术有限公司 Method for upgrading software of embedded Ethernet equipment and embedded Ethernet equipment
CN102523110A (en) * 2011-12-09 2012-06-27 杭州华三通信技术有限公司 Method and device for realizing automatic configuration of equipment with zero configuration

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364891A (en) * 2011-09-13 2012-02-29 杭州华三通信技术有限公司 Method for upgrading software of embedded Ethernet equipment and embedded Ethernet equipment
CN102523110A (en) * 2011-12-09 2012-06-27 杭州华三通信技术有限公司 Method and device for realizing automatic configuration of equipment with zero configuration

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106100871A (en) * 2016-05-31 2016-11-09 深圳市双赢伟业科技股份有限公司 A kind of switcher firewall update method and device
CN108259191A (en) * 2016-12-28 2018-07-06 南宁富桂精密工业有限公司 Exchange configuration method and system
CN109245920A (en) * 2018-08-23 2019-01-18 北京东土科技股份有限公司 Interchanger method of automatic configuration, device, interchanger and storage medium
CN109245920B (en) * 2018-08-23 2021-09-17 北京东土科技股份有限公司 Automatic switch configuration method and device, switch and storage medium
CN110138857A (en) * 2019-05-14 2019-08-16 四川九州电子科技股份有限公司 The method of network-termination device realization auto upgrading
CN112416796A (en) * 2020-12-03 2021-02-26 北京东土科技股份有限公司 Method and device for testing software upgrading
CN112416796B (en) * 2020-12-03 2023-11-17 北京东土科技股份有限公司 Software upgrading test method and device
CN115086171A (en) * 2022-06-10 2022-09-20 德明通讯(上海)股份有限公司 Automatic multi-path upgrading method and system for routing product factory

Similar Documents

Publication Publication Date Title
CN103338127A (en) Method for realizing automatic configuration update of switch and system upgrade control
US20230006933A1 (en) Efficiently Managing Network Traffic
KR101481443B1 (en) A method for management device in a communication network and a system thereof
CA2740683C (en) System that provides embedded software to an embedded system
CN101877650B (en) Method and system for updating software version automatically
CN102129380B (en) Server and method and mobile terminal for providing software
WO2015074536A1 (en) Intelligent television and upgrading method and apparatus thereof
US20140282484A1 (en) System and method for remotely updating cable modem software
CN105049502B (en) The method and apparatus that device software updates in a kind of cloud network management system
CN108881478B (en) Electronic advertisement terminal and system based on 4G communication network
RU2011112401A (en) METHOD, DEVICE AND MODULE FOR OPTIMIZATION OF REMOTE HOME NETWORK DEVICE MANAGEMENT
WO2011137793A1 (en) Method, apparatus and network system for achieving remote update of zigbee devices
WO2011006328A1 (en) System and method for updating device firmware, device management server and mobile terminal
KR20170066579A (en) Method for updating terminal system, terminal and system
CN103312543A (en) Intelligent speed-up client-side and intelligent speed-up method thereof
US20140208307A1 (en) Method and System for Upgrading CPE Firmware
CN103108294A (en) Data forwarding processing method and gateway equipment and communication system
CN105743948A (en) Network version upgrading method and apparatus
CN109451021A (en) The more heterogeneous network access systems of Internet of Things edge side and cut-in method
CN101383746A (en) Access control method and system for wireless network
CN102938943A (en) Wireless fidelity (WiFi) wireless data transmission method based on iPhone
CN105763345A (en) Network element upgrade management method, device and system
CN101483543A (en) Network management method and system, terminal and automatic configuration server
AU2013329684A1 (en) Solution for distributed application life-cycle management
CN103166984B (en) System that Network Video Surveillance equipment control is controlled and automatically updates, method

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: 20131002