CN115426262A - Switch batch upgrading method and device - Google Patents

Switch batch upgrading method and device Download PDF

Info

Publication number
CN115426262A
CN115426262A CN202211010211.4A CN202211010211A CN115426262A CN 115426262 A CN115426262 A CN 115426262A CN 202211010211 A CN202211010211 A CN 202211010211A CN 115426262 A CN115426262 A CN 115426262A
Authority
CN
China
Prior art keywords
switch
version
equipment
controller
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
CN202211010211.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.)
Xian Chaoyue Shentai Information Technology Co Ltd
Original Assignee
Xian Chaoyue Shentai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Chaoyue Shentai Information Technology Co Ltd filed Critical Xian Chaoyue Shentai Information Technology Co Ltd
Priority to CN202211010211.4A priority Critical patent/CN115426262A/en
Publication of CN115426262A publication Critical patent/CN115426262A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H04L41/0826Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability for reduction of network costs
    • 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/0866Checking the configuration
    • H04L41/0869Validating the configuration within one network element

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention particularly relates to a method and a device for upgrading switches in batches. According to the switch batch upgrading method and device, the switch software firmware version is upgraded in batches based on the switch equipment identification information and the version information, so that the labor cost of upgrading the version is reduced, and the impact of batch upgrading on a storage version server and the impact on network flow are reduced.

Description

Switch batch upgrading method and device
Technical Field
The invention relates to the technical field of data switching networks, in particular to a method and a device for upgrading switches in batches.
Background
Cloud data center computer lab exists in many places, and switch equipment has constituteed important network element, meets the equipment problem, needs the condition of change version solution, and a large amount of switch equipment upgrade small-size manpower, material resources.
The invention provides a method and a device for upgrading switches in batches, and aims to solve the problem that switch equipment of a multi-center large cloud data center is difficult to upgrade.
Disclosure of Invention
In order to make up for the defects of the prior art, the invention provides a simple and efficient method and a device for upgrading switches in batches.
The invention is realized by the following technical scheme:
a switch batch upgrading method is characterized in that: the method comprises the following steps:
s1, uploading a version to be updated to a storage directory;
s2, issuing identification information and version information of the switch equipment in the query network through a controller;
s3, firstly, specifying a product model which can be updated by the version to be updated, matching the product model with the inquired equipment model, if the equipment model information which can be updated by the version to be updated is matched with the equipment information of the switch, executing the next step, and if the equipment model information is not matched, ending the upgrade;
then, matching the version to be updated with the version number of the inquired equipment, if the inquired information of the switch equipment and the version information are matched with the version to be updated, executing the step S4, and if the inquired information of the switch equipment and the version information are not matched with the version to be updated, finishing upgrading;
s4, selecting switch equipment which is matched with the equipment model which can be updated by the version to be updated but is not matched with the version, and grouping the switch equipment meeting the conditions;
s5, sequencing all switch equipment to be upgraded in each group according to the MAC addresses in sequence to form an upgrading sequence table, and issuing upgrading starting commands to first equipment of the upgrading sequence table in each group respectively;
s6, establishing connection between first equipment in the upgrading sequence list and a server where the storage directory is located, and requesting to download the version to be updated;
s7, after the first equipment in the upgrading sequence table finishes downloading, informing the controller, issuing a version downloading command from the first equipment by the controller for the next equipment, and submitting the version of the controller to finish distribution after the next equipment downloads the version from the previous equipment;
s8, repeating the step S7 until the last equipment in the upgrading sequence table obtains the version to be updated;
s9, the controller issues a next starting version, and the switch equipment is upgraded in batches;
and S10, the controller issues a version query command every 300 seconds until all the equipment with the upgrading switch is upgraded.
The controller is controlled by a data communication device and manages the switch device through an SNMP protocol.
The device identification information includes, but is not limited to, a device management portal MAC address, a device model number, a device SN number, and location information.
In step S4, the controller groups the devices to be upgraded according to the location information, and divides the switches in the same data center into a group.
In the step S5, the controller sends the IP address and the port of the server storing the version to the switch device to be upgraded, and the switch device returns the packet and executes the step S6 after receiving the command.
In the step S6, the first switch device to be upgraded in the upgrade sequence table actively requests the server to download the version, and if the download is completed, the switch device notifies the controller, and the controller sets the state of the switch device as the version download completion; simultaneously sending a version downloading command to the next switch device in the upgrading sequence table, and sending the IP address and the port of the device of which the previous switch device state is the version downloading completion state to the next switch device;
and if the downloading process has problems, re-requesting the server to download the version.
In the step S9, the controller issues a next version starting command for all the switch devices to be upgraded, and after the switch devices are set, the controller replies that the setting of the controller is completed, and the controller sets the state of the corresponding switch device to be restarted and upgraded;
if the switch equipment is set to be in a problem, the controller issues a next version setting starting command to the switch equipment every 30s until the controller receives equipment setting completion information.
In the step S10, the controller issues an apparatus restart command within a custom-set upgrade time period, the switch apparatus restarts after receiving the command, and the controller issues an inquiry version command every 300 seconds until version information sent back by all the switch apparatuses is received and is consistent with the upgraded version after comparison.
The utility model provides a switch batch upgrading device which characterized in that: the method comprises a memory, a processor and a switch batch upgrading program which is stored on the memory and can be operated on the processor, wherein the switch batch upgrading program is used for realizing the steps of the switch batch upgrading method.
The beneficial effects of the invention are: according to the switch batch upgrading method and device, the switch software firmware version is upgraded in batches based on the switch equipment identification information and the version information, so that the labor cost of upgrading the version is reduced, and the impact of batch upgrading on a storage version server and the impact on network flow are reduced.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the embodiments or technical solutions in the prior art are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic diagram of a method for upgrading switches in batch according to the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the embodiment of the present invention. It should be apparent that the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The switch batch upgrading method comprises the following steps:
s1, uploading a version to be updated to a storage directory;
s2, issuing identification information and version information of switch equipment in the query network through a controller;
s3, firstly, specifying a product model which can be updated by the version to be updated, matching the product model with the inquired equipment model, if the equipment model information which can be updated by the version to be updated is matched with the equipment information of the switch, executing the next step, and if the equipment model information is not matched, ending the upgrade;
then, matching the version to be updated with the version number of the inquired equipment, if the inquired switch equipment information and the version information are matched with the version to be updated, executing the step S4, and if the inquired switch equipment information and the version information are not matched with the version to be updated, ending the upgrade;
s4, selecting switch equipment which is matched with the equipment model which can be updated by the version to be updated but is not matched with the version, and grouping the switch equipment meeting the conditions;
s5, sequencing all the switch equipment to be upgraded in each group according to the MAC addresses in sequence to form an upgrading sequence table, and issuing upgrading starting commands to first equipment of the upgrading sequence table in each group respectively;
s6, establishing connection between first equipment in the upgrading sequence table and a server where a storage directory is located, and requesting to download a version to be updated;
s7, after the first equipment in the upgrading sequence table finishes downloading, informing the controller, issuing a version downloading command from the first equipment by the controller for the next equipment, and submitting the version of the controller to finish distribution after the next equipment downloads the version from the previous equipment;
s8, repeating the step S7 until the last equipment in the upgrading sequence table obtains the version to be updated;
s9, the controller issues a next starting version, and the switch equipment is upgraded in batch;
and S10, the controller issues a version query command every 300 seconds until all the equipment with the upgrading switch is upgraded.
The controller is controlled by a data communication device and manages the switch device through an SNMP protocol.
The device identification information includes, but is not limited to, a device management portal MAC address, a device model number, a device SN number, and location information.
In step S4, the controller groups the devices to be upgraded according to the location information, and divides the switches in the same data center into a group.
In the step S5, the controller sends the IP address and the port of the server storing the version to the switch device to be upgraded, and the switch device returns the packet and executes the step S6 after receiving the command.
In the step S6, the first switch device to be upgraded in the upgrade sequence table actively requests the server to download the version, and if the download is completed, the switch device notifies the controller, and the controller sets the state of the switch device as the version download completion; simultaneously sending a version downloading command to the next switch device in the upgrading sequence table, and sending the IP address and the port of the device of which the previous switch device state is the version downloading completion state to the next switch device;
and if the downloading process has problems, re-requesting the server to download the version.
In the step S9, the controller issues a next version starting command for all the switch devices to be upgraded, and after the switch devices are set, the controller replies that the setting of the controller is completed, and the controller sets the state of the corresponding switch device to be restarted and upgraded;
if the switch equipment is set to be in a problem, the controller issues a next version setting starting command to the switch equipment every 30s until the controller receives equipment setting completion information.
In the step S10, the controller issues an apparatus restart command within a custom-set upgrade time period, the switch apparatus restarts after receiving the command, and the controller issues a version query command every 300 seconds until version information sent back by all switch apparatuses is received and is consistent with the upgraded version after comparison.
The switch batch upgrading device comprises a memory, a processor and a switch batch upgrading program which is stored on the memory and can run on the processor, wherein the switch batch upgrading program is used for realizing the steps of the switch batch upgrading method.
The method and the device for upgrading the switch in batch in the embodiment of the invention are described in detail above. While the present invention has been described with reference to specific examples, which are provided to assist in understanding the core concepts of the present invention, it is intended that all other embodiments that can be obtained by those skilled in the art without departing from the spirit of the present invention shall fall within the scope of the present invention.

Claims (9)

1. A switch batch upgrading method is characterized in that: the method comprises the following steps:
s1, uploading a version to be updated to a storage directory;
s2, issuing identification information and version information of switch equipment in the query network through a controller;
s3, firstly, specifying a product model which can be updated by the version to be updated, matching the product model with the inquired equipment model, if the equipment model information which can be updated by the version to be updated is matched with the equipment information of the switch, executing the next step, and if the equipment model information is not matched, ending the upgrade;
then, matching the version to be updated with the version number of the inquired equipment, if the inquired information of the switch equipment and the version information are matched with the version to be updated, executing the step S4, and if the inquired information of the switch equipment and the version information are not matched with the version to be updated, finishing upgrading;
s4, selecting switch equipment which is matched with the equipment model which can be updated by the version to be updated but is not matched with the version, and grouping the switch equipment meeting the conditions;
s5, sequencing all the switch equipment to be upgraded in each group according to the MAC addresses in sequence to form an upgrading sequence table, and issuing upgrading starting commands to first equipment of the upgrading sequence table in each group respectively;
s6, establishing connection between first equipment in the upgrading sequence table and a server where a storage directory is located, and requesting to download a version to be updated;
s7, after the first equipment in the upgrading sequence table finishes downloading, informing the controller, issuing a version downloading command from the first equipment by the controller for the next equipment, and submitting the version of the controller to finish distribution after the next equipment downloads the version from the previous equipment;
s8, repeating the step S7 until the last equipment in the upgrading sequence table obtains the version to be updated;
s9, the controller issues a next starting version, and the switch equipment is upgraded in batches;
and S10, the controller issues a version query command every 300 seconds until all the equipment with the upgrading switch is upgraded.
2. The switch batch upgrade method according to claim 1, characterized in that: the controller is controlled by a data communication device and manages the switch device through an SNMP protocol.
3. The switch batch upgrade method according to claim 1, characterized in that: the device identification information includes, but is not limited to, a device management portal MAC address, a device model number, a device SN number, and location information.
4. The switch batch upgrade method according to claim 1, characterized in that: in step S4, the controller groups the devices to be upgraded according to the location information, and divides the switches in the same data center into a group.
5. The switch batch upgrading method according to claim 4, characterized in that: in the step S5, the controller sends the IP address and the port of the server storing the version to the switch device to be upgraded, and the switch device returns the packet and executes the step S6 after receiving the command.
6. The switch batch upgrade method of claim 5, wherein: in the step S6, the first switch device to be upgraded in the upgrade sequence table actively requests the server to download the version, and if the download is completed, the switch device notifies the controller, and the controller sets the state of the switch device as the version download completion; simultaneously sending a version downloading command to the next switch device in the upgrading sequence table, and sending the IP address and the port of the device of which the previous switch device state is the version downloading completion state to the next switch device;
and if the downloading process has problems, re-requesting the server to download the version.
7. The switch batch upgrade method of claim 6, wherein: in the step S9, the controller issues a next version starting command for all the switch devices to be upgraded, and after the switch devices are set, the controller replies that the setting of the controller is completed, and the controller sets the state of the corresponding switch device to be restarted and upgraded;
if the switch equipment is set to be in a problem, the controller issues a next version setting starting command to the switch equipment every 30s until the controller receives equipment setting completion information.
8. The switch batch upgrade method according to claim 1, characterized in that: in the step S10, the controller issues an apparatus restart command within a custom-set upgrade time period, the switch apparatus restarts after receiving the command, and the controller issues an inquiry version command every 300 seconds until version information sent back by all the switch apparatuses is received and is consistent with the upgraded version after comparison.
9. The utility model provides a switch batch upgrading device which characterized in that: comprising a memory, a processor and a switch batch upgrading program stored on the memory and operable on the processor, said switch batch upgrading program being adapted to implement the steps of the switch batch upgrading method as claimed in any of the preceding claims 1 to 8.
CN202211010211.4A 2022-08-23 2022-08-23 Switch batch upgrading method and device Pending CN115426262A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211010211.4A CN115426262A (en) 2022-08-23 2022-08-23 Switch batch upgrading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211010211.4A CN115426262A (en) 2022-08-23 2022-08-23 Switch batch upgrading method and device

Publications (1)

Publication Number Publication Date
CN115426262A true CN115426262A (en) 2022-12-02

Family

ID=84199183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211010211.4A Pending CN115426262A (en) 2022-08-23 2022-08-23 Switch batch upgrading method and device

Country Status (1)

Country Link
CN (1) CN115426262A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120084766A1 (en) * 2010-09-30 2012-04-05 Cellco Partnership D/B/A Verizon Wireless Method for updating an application programs on wireless terminals in a controlled manner
CN102651697A (en) * 2011-02-28 2012-08-29 中兴通讯股份有限公司 Network equipment, network equipment independent upgrading system and upgrading method
WO2013117106A1 (en) * 2012-02-07 2013-08-15 惠州Tcl移动通信有限公司 Software updating method and device therefor
CN105141463A (en) * 2015-09-21 2015-12-09 上海斐讯数据通信技术有限公司 Router remote upgrade system and method based on server strategy
US20170230239A1 (en) * 2014-08-05 2017-08-10 Hewlett Packard Enterprise Development Lp Upgrading Of Controller Cluster
KR101818977B1 (en) * 2017-06-27 2018-01-16 주식회사 인터엠 Method of providing batch process of software upgrade for pluralities of heterogeneous broadcasting equipments

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120084766A1 (en) * 2010-09-30 2012-04-05 Cellco Partnership D/B/A Verizon Wireless Method for updating an application programs on wireless terminals in a controlled manner
CN102651697A (en) * 2011-02-28 2012-08-29 中兴通讯股份有限公司 Network equipment, network equipment independent upgrading system and upgrading method
WO2013117106A1 (en) * 2012-02-07 2013-08-15 惠州Tcl移动通信有限公司 Software updating method and device therefor
US20170230239A1 (en) * 2014-08-05 2017-08-10 Hewlett Packard Enterprise Development Lp Upgrading Of Controller Cluster
CN105141463A (en) * 2015-09-21 2015-12-09 上海斐讯数据通信技术有限公司 Router remote upgrade system and method based on server strategy
KR101818977B1 (en) * 2017-06-27 2018-01-16 주식회사 인터엠 Method of providing batch process of software upgrade for pluralities of heterogeneous broadcasting equipments

Similar Documents

Publication Publication Date Title
CN108023773B (en) Method for realizing zero configuration online of network equipment and configuration server
CN113133086B (en) Intelligent device network distribution method and device, electronic device and storage medium
CN107367949B (en) Obtain the methods, devices and systems of product identification
US20130275956A1 (en) Firmware upgrade method and system and terminal device using the method
WO2020052322A1 (en) Data processing method, device and computing node
WO2007112687A1 (en) A method and an apparatus for configuring the parameters of the antenna equipment
CN103024773A (en) Method, management device and system for upgrading software of wireless router
CN104954394A (en) Software differential packet production and update method, server, terminal and update system
CN102118447A (en) Resource management method and mobile terminal
CN110635944A (en) Cluster network configuration method and device, electronic equipment and storage medium
CN112596768B (en) Updating method and device of equipment, storage medium and electronic device
CN110825422A (en) System for managing MCU version of intelligent household equipment
CN112764803A (en) Version upgrading method and device, storage medium and electronic device
CN112416542A (en) Distributed task system, management method and device and computer equipment
CN113535262B (en) Proxy node start control method, device, equipment and storage medium
CN111726367B (en) Method, device, system and equipment for binding access of Customer Premises Equipment (CPE)
CN115426262A (en) Switch batch upgrading method and device
CN111885564B (en) Data transmission method, equipment upgrading method and computer readable storage medium
CN110602688B (en) Terminal software upgrading method and upgrading system
CN107203392B (en) Multi-protocol implementation method of small system terminal product
CN115469964A (en) Method and device for determining mapping relation between block device and virtual machine disk character
CN115268951A (en) Installation method, device, equipment and storage medium of operating system
CN111669355B (en) Method for batch processing of nginx network isolation space and nginx server
CN115185553A (en) Method for updating device firmware of user and related device
CN109548020B (en) Compensation method and device after authentication failure, server and storage medium

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