CN105610627A - Method and device for upgrading network device - Google Patents

Method and device for upgrading network device Download PDF

Info

Publication number
CN105610627A
CN105610627A CN201610013557.8A CN201610013557A CN105610627A CN 105610627 A CN105610627 A CN 105610627A CN 201610013557 A CN201610013557 A CN 201610013557A CN 105610627 A CN105610627 A CN 105610627A
Authority
CN
China
Prior art keywords
network device
upgrade
module
control terminal
network
Prior art date
Application number
CN201610013557.8A
Other languages
Chinese (zh)
Inventor
朱渊
Original Assignee
上海斐讯数据通信技术有限公司
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 上海斐讯数据通信技术有限公司 filed Critical 上海斐讯数据通信技术有限公司
Priority to CN201610013557.8A priority Critical patent/CN105610627A/en
Publication of CN105610627A publication Critical patent/CN105610627A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance or administration or management of packet switching networks
    • H04L41/08Configuration management of network or network elements
    • H04L41/0803Configuration setting of network or network elements
    • H04L41/0813Changing of configuration
    • H04L41/082Changing of configuration due to updating or upgrading of network functionality, e.g. firmware
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance or administration or management of packet switching networks
    • H04L41/08Configuration management of network or network elements
    • H04L41/0866Checking configuration
    • H04L41/0869Checking configuration by validating configuration within one network element
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance or administration or management of packet switching networks
    • H04L41/08Configuration management of network or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance or administration or management of packet switching networks
    • H04L41/08Configuration management of network or network elements
    • H04L41/0889Techniques to speed-up the configuration process

Abstract

The invention provides a method and a device for upgrading a network device. The method comprises the following steps: S1, each network device is connected with a switch, and the switch is connected with a control end; 2, the control end numbers each network device in sequence; S3, the control end sequentially upgrades each network device according to the serial number of the device; S4, the control end connects each network device in sequence according to the serial number of the device, and obtains version number information; and S5, the control end compares whether the version number information is the same as expected version number information, if so, determines upgrading failure of the network device corresponding to the version number information, and if not, determines upgrading success of the network device corresponding to the version number information. The method provided by the invention can be used for integrating upgrade and detection of the network device, the network device is upgraded quickly, each device does not need to be upgraded manually in sequence, the number of the upgradable devices is not fixed and can be more or less, and thus the flexibility is large.

Description

_种网络设备升级的方法及设备 _ Methods and equipment network equipment to upgrade

技术领域 FIELD

[0001]本发明涉及网络设备程序升级技术领域,尤其涉及一种网络设备升级的方法及设备。 [0001] The present invention relates to a network device program upgrade technology, and particularly relates to a method and apparatus for network equipment upgrades.

背景技术 Background technique

[0002] 虚拟局域网(VLAN)是一组逻辑上的设备和用户,这些设备和用户并不受物理位置的限制,可以根据功能、部门及应用等因素将它们组织起来,相互之间的通信就好像它们在同一个网段中一样。 [0002] Virtual LAN (VLAN) is a set of logical devices and users, and users of these devices is not limited to physical location, the function may be based on factors, sectors and applications organize them together, mutual communication on as if they were in the same segment. 把同一物理局域网内的不同用户逻辑地划分成不同的广播域,每一个VLAN都包含一组有着相同需求的计算机工作站,与物理上形成的LAN有着相同的属性。 The logically different users in the same physical LAN into different broadcast domains, each VLAN contains a group have the same demand for computer workstations, and LAN formed with the same physical properties.

[0003] CONSOLE端口一般为设备的控制端口,Console端口使用配置专用连线直接连接至计算机的串口,利用终端仿真程序(如Windows下的“超级终端”)进行交换机、路由器本地配置。 [0003] CONSOLE port is generally configured to connect to a dedicated control port, the device using the Console port directly connected to the serial port of the computer, a switch using a terminal emulation program (such as "hyperterminal" under the Windows), the local router configuration.

[0004]现有技术无法测试所有的待测设备,只能人工抽取几台进行手动升级测试,因随机抽取测试,误测率较大,无法完全确定测试的准确性。 [0004] The prior art can not test all the devices under test, only a few extraction artificial manually upgrade testing, due to random testing, false positive rate is high, the accuracy of the test can not be fully determined.

发明内容 SUMMARY

[0005]本发明的第一目的是提供一种网络设备升级的方法,通过控制端对每个网络设备进行编号,然后控制端按照编号对每台的网络设备进行升级,对所有设备升级结束以后,控制端按照编号顺寻连接每台网络设备,并获取该网络设备的版本号信息,该版本号信息与预期的版本号信息对比,如果相同则判断该网络设备升级成功,若不同,则判断该网络设备升级失败。 [0005] The first object of the present invention is to provide a method of upgrading the network equipment, number each network device through a control terminal, a control terminal and be upgraded in number to each network device, after the end of all the equipment upgrade , in accordance with a control terminal connected to each finding number cis network device, and acquires version information of the network device, the version number information and the expected version number information comparison, it is determined if the same network equipment upgrade is successful, if different, it is determined the network equipment upgrade fails.

[0006]本发明的第二目的在于提供一种根据上述网络设备升级的方法的装置。 [0006] The second object of the present invention is to provide an apparatus according to the above-described method of upgrading network devices.

[0007]为了实现本发明的第一目的,本发明是通过以下技术方案实现的: [0007] To achieve the first object of the present invention, the present invention is achieved by the following technical solution:

[0008] —种网络设备升级的方法,包括多个网络设备、交换机、控制端,所述方法包括以下步骤: [0008] - species upgrading network devices, comprising a plurality of network devices, switches, a control terminal, said method comprising the steps of:

[0009] S1、每个所述网络设备均与所述交换机连接,所述交换机与所述控制端连接; [0009] S1, each of the network device are connected to said switch, said switch and said control terminal;

[0010] S2、控制端依次对每个网络设备编号; [0010] S2, the control terminal ID for each network device in turn;

[0011 ] S3、控制端按照设备编号依次对每台网络设备升级; [0011] S3, the control terminal of each network device successively upgraded in the device number;

[0012] S4、控制端按照设备编号依次连接每台网络设备,并获取版本号信息; [0012] S4, the control terminal is connected sequentially to each network device according to the device number, and acquires the version number information;

[0013] S5、控制端对比版本号信息和预期的版本号信息是否相同,若是,判断与所述版本号信息对应的网络设备升级失败,若否,判断与所述版本号信息对应的网络设备升级成功。 [0013] S5, the control terminal and the expected comparative version number information is identical to the version number, if yes, determining the information corresponding to the version number of the network device upgrade fails, if not, determining the version information corresponding to the network device update successed.

[0014]进一步地,所述步骤SI中,交换机的控制端口通过控制总线连接到控制端上。 [0014] Further, the step SI, the control port of the switch is connected to the control terminal via the control bus.

[0015]进一步地,所述步骤S2中,对交换机与每个网络设备的虚拟局域网端口进行编号并存储在所述控制端中,控制端按编号依次连接每个对应的虚拟局域网端口实现依次对每个网络设备的连接。 [0015] Further, the step S2, a virtual local area network switch and each network device and port number stored in the control terminal, the control terminal is connected sequentially by number corresponding to each virtual local area network ports are implemented sequentially each network device is connected.

[0016]进一步地,所述步骤S3中,控制端首先清理缓存,然后将网卡地址进行释放并进行重新获取。 [0016] Further, in the step S3, the first control terminal to clear the cache, then the card will be released and the address reacquisition.

[0017] 进一步地,所述控制端登录网络设备的管理页面,通过定位页面编号和页面名称元素进入升级页面,定位升级文件进行升级。 [0017] Furthermore, the control terminal accesses the network device management page, enter the upgrade page by page name and page number of positioning elements, the positioning upgrade file upgrade.

[0018]进一步地,所述步骤S4中,控制端首先清理缓存,然后将网卡地址进行释放并进行重新获取。 [0018] Further, the step S4, the control terminal to clear the cache first, and then release the card and address reacquisition.

[0019] 进一步地,所述控制端登录网络设备的管理页面,控制端通过定位页面编号和页面名称元素进入设备信息页面,定位版本号信息并返回版本号信息。 [0019] Furthermore, the control terminal accesses the network device management page, the control terminal apparatus information page by entering the page number and page name positioning elements, the positioning information and the version number returns the version number information.

[0020]为了实现本发明的第二目的,本发明是通过以下技术方案实现的: [0020] To achieve the second object of the present invention, the present invention is achieved by the following technical solution:

[0021] —种根据上述网络设备升级的方法的设备,包括以下部件: [0021] - The method of the above-described kind of upgrading network devices, comprising the following components:

[0022]多个网络设备,作为待升级及检验的目标设备; [0022] a plurality of network devices, as the upgrade to be tested and a target device;

[0023]交换机,作为控制信号及升级数据的传递设备; [0023] switch control signal as a transmitting apparatus and the upgrade data;

[0024]控制端,用于为每个网络设备升级,并检测网络设备是否升级成功; [0024] a control terminal, for each network device for upgrades, the network device and detecting whether the upgrade is successful;

[0025]所述控制端包括,控制模块、网络设备端口编号模块、连接控制模块、设备升级模块、升级检验模块,所述网络设备端口编号模块、连接控制模块、设备升级模块、升级检验模块均与所述控制模块连接。 [0025] The control terminal comprises a control module, a network port number on the module, a connection control module, equipment upgrade module, checking module upgrade, the network device interface module number, connection control module, the device module upgrade, upgrade test modules connected to the control module.

[0026]进一步地,所述控制端还包括存储模块、计算模块、人机交互模块,所述存储模块、计算模块、人机交互模块均与所述控制模块连接。 [0026] Furthermore, the control terminal further includes a storage module, a calculation module, interactive module, a storage module, a calculation module, interactive modules are connected with the control module.

[0027]进一步地,所述控制端还包括与所述控制模块连接的统计模块。 [0027] Furthermore, the control terminal further includes a statistics module is connected with the control module.

[0028]本发明中,控制端首先一次对每个网络设备编号,然后控制端按照网络设备的编号顺序依次连接网络设备,对该网络设备的程序进行升级,控制端按照网络设备的编号顺序依次连接网络设备,获取该网络设备的的版本号信息,通过对比该版本号信息和预期的版本号信息,如果相同,判断该网络设备程序升级成功,若不同,则判断该网络设备程序升级失败。 [0028] In the present invention, a first control terminal ID for each network device, and the control terminal of the sequential order sequentially network device connected to the network device, the program to upgrade the network device, the network control terminal device according to the order numbers successively version number information connected to the network device, acquires the network device, by comparing the version number information and the expected version number information, if the same, determines that the network equipment program upgrade is successful, if different, it is determined that the network device program upgrade fails.

[0029]通过该方法,有效的解决了大量网络设备集中升级的问题,可以使得网络设备升级和检测一体化,并且升级网络设备快速,无需人工对每台设备依次升级,可一次自动升级大量网络设备,可升级的设备数量可以不固定,可多可少,灵活性大,同时可以对升级的每台设备进行升级检测,了解每台设备是否升级完成,检测的准确率大大提高。 [0029] By this method, effective solution to the problem of the large number of upgrades centralized network device, and may enable the detection device integrated network upgrade, and the upgrade fast network device, each device sequentially without manual upgrade, automatically upgraded at once a large number of network equipment, upgrade the number of devices that can not be fixed, can be more or less, flexibility, and can be upgraded to detect each device upgrade, each device to know whether the upgrade is complete, the detection accuracy is greatly improved.

附图说明 BRIEF DESCRIPTION

[0030]下面结合附图和具体实施方式对本发明作进一步详细说明: [0030] Hereinafter, the present invention is described in further detail in conjunction with accompanying drawings and specific embodiments:

[0031]图1为本发明的网络设备升级的方法的方法原理图; The method of network schematic diagram of apparatus of the present invention a method of upgrading [0031] FIG 1;

[0032]图2为本发明的网络设备升级的设备的结构框图。 [0032] a block diagram of scalable network device apparatus 2 of the present invention FIG.

[0033]附图标记说明,1、控制端,2、交换机,3、网络设备,11、控制模块,12、存储模块,13、计算模块,14、人机交互模块,15、统计模块,16、网络设备端口编号模块,17、连接控制模块,18、设备升级模块,19、升级检验模块。 [0033] REFERENCE NUMERALS 1, the control terminal 2, switch 3, network device 11, a control module 12, storage module 13, a calculation module 14, man-machine interaction module 15, a statistics module, 16 , network device port ID module 17, the connection control module 18, the device upgrade module, 19, check module upgrade.

具体实施方式 Detailed ways

[0034]为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,以下说明和附图对于本发明是示例性的,并且不应被理解为限制本发明。 [0034] In order to more clearly illustrate the technical solutions in the embodiments or the prior art embodiment of the present invention, the accompanying drawings briefly described embodiments or the prior art needed to be used in the following embodiments will be apparent, the following description and attached FIG illustrative for the invention and are not to be construed as limiting the present invention. 以下说明描述了众多具体细节以方便对本发明理解。 The following description numerous specific details are described to facilitate understanding of the present invention. 然而,在某些实例中,熟知的或常规的细节并未说明,以满足说明书简洁的要求。 However, in certain instances, well known or conventional details are not described, in order to meet the specification requirements simple.

[0035]本发明提供的一种网络设备升级的方法,参阅图1所示,包括多个网络设备3、交换机2、控制端I,方法包括以下步骤: [0035] The method of the present invention provides a network apparatus upgrade, refer to FIG. 1, comprising a plurality of network devices 3, the switch 2, control terminal I, the method comprising the steps of:

[0036] S1、每个网络设备3均与交换机2连接,交换机2与控制端I连接;该控制端I可以是电脑、移动终端、平板等;该交换机2也可以用路由器代替; [0036] S1, each network device 3 are connected to the switch 2, switch 2 is connected to the control terminal I; I may be a control terminal of the computer, mobile terminal, a tablet, etc.; the switch 2 may be replaced with a router;

[0037] S2、控制端I依次对每个网络设备3编号; [0037] S2, the control terminal I 3 sequentially number each network device;

[0038] S3、控制端I按照设备编号依次对每台网络设备3升级; [0038] S3, control terminal equipment number I according to each network device 3 sequentially upgrade;

[0039] S4、控制端I按照设备编号依次连接每台网络设备3,并获取版本号信息; [0039] S4, the control terminal is connected sequentially numbered I apparatus according to each network device 3, and acquires the version number information;

[0040] S5、控制端I对比版本号信息和预期的版本号信息是否相同,若是,判断与版本号信息对应的网络设备3升级失败,若否,判断与版本号信息对应的网络设备3升级成功。 [0040] S5, the control terminal I compare the version number information and the expected version number information are the same, and if so, determines the version number information corresponding to the network device 3 upgrade failed, and if not, determines the version number information corresponding to the network device 3 upgrade success.

[0041]控制端I首先一次对每个网络设备3编号,然后控制端I按照网络设备3的编号顺序依次连接网络设备3,对该网络设备3的程序进行升级,控制端I按照网络设备3的编号顺序依次连接网络设备3,获取该网络设备3的的版本号信息,通过对比该版本号信息和预期的版本号信息,如果相同,判断该网络设备程序升级成功,若不同,则判断该网络设备程序升级失败。 [0041] First, a control terminal I 3 for each network device ID, then the network device in accordance with a control terminal I 3 I terminal devices sequentially connected to the network apparatus 3 according to the numerical order of the network 3, the programs to upgrade the network device 3, the control numbered order of connection to the network device 3, acquires the network device 3 of the version number information, by comparing the version number information and the expected version number information, if the same, determines that the network equipment program upgrade is successful, if different, it is judged that network equipment upgrade program fails. 通过该方法,有效的解决了大量网络设备集中升级的问题,可以使得网络设备3升级和检测一体化,并且升级网络设备3快速,无需人工对每台设备依次升级,可一次自动升级大量网络设备,可升级的设备数量可以不固定,可多可少,灵活性大,同时可以对升级的每台设备进行升级检测,了解每台设备是否升级完成,检测的准确率大大提高 By this method, effective solution to the problem of a large number of centralized network device upgrades, can make the network upgrade and testing equipment 3 integration, and network equipment upgrade 3 fast, without manual upgrade for each device in turn, can automatically update a large number of network devices can upgrade the number of devices can not be fixed, it can be more or less, flexibility, and can be upgraded to detect each device upgrade, each device to know whether the upgrade is complete, greatly improving the accuracy of detection

[0042] 为了更好地说明本发明的预期效果,下面以500台PSG604BT批量升级并检测升级版本举例说明,根据本发明的技术方案做进一步的详细说明; [0042] In order to better illustrate the intended effect of the present invention, the following batch upgrade to 500 and detects PSG604BT upgrade version illustrated, further details of the solution according to the present invention;

[0043]步骤I,将所有的待升级的网络设备3使用网线连接到交换机2上,并将交换机2的控制端口通过控制总线连接到控制端I上,并使用网线将控制端I和交换机2连接起来。 [0043] Step I, connecting all be upgraded network device 3 using a network cable to the switch 2, the control and switch 2 ports connected to the control terminal I via the control bus, and a network cable to the control terminal I and switch 2 connect them.

[0044]步骤2,通过控制端I进入交换机2的控制端口,将每个连接待测网络设备3的交换机的虚拟局域网端口(vlan)配置编号,分别从vlanl开始,依次递增vlanl直到vlan500。 [0044] Step 2, through the control terminal enters the control port of the switch I 2, the switch 3 is connected to each virtual local area network device under test ports (VLAN) configuration number, respectively, from the beginning vlanl sequentially incremented until vlanl vlan500.

[0045]步骤3,在控制端I上运行自动化脚本或升级控制程序,自动化脚本调用函数通过控制端口将控制端I连接的交换机接口配置为vlanl,此时控制端I和第一台待升级网络设备3相连。 [0045] Step 3, run automated script or upgrade the control program on the control terminal I, automated script calls a function through the control port interface configuration control terminal is connected to the switch I vlanl, this time the first control terminal I and the network to be upgraded 3 is connected to the device.

[0046] 步骤4,自动化脚本调用函数os.system发送命令arp-d将控制端I缓存进行清空;然后自动化脚本调用命令ipconf ig/release和ipconf ig/renew将网卡地址进行释放并进行重新获取,以确保控制端I获取的是第一台待测网络设备3的地址;调用open browser命令登录第一台待升级网络设备3的web管理页面,通过定位页面编号和页面名称元素进入升级页面,定位升级文件选取框并调用命令choose file选择需要升级的升级文件并进行升级。 [0046] Step 4, os.system automated script calls a function to send commands to the control terminal arp-d emptying buffer I; automated script then calls the command ipconf ig / release and ipconf ig / renew the card address to be released and re-acquisition, I acquired control terminal to ensure that the first address of the device is the network device 3; open browser calls the command log management web page of the first network device 3 is to be upgraded, the upgrade page by entering the page number and page name positioning element, positioning marquee upgrade file and call the command choose file to select the desired upgrade upgrade file and upgrade. 由于网络设备3的WEB管理页面具有多个标签页面(如升级页面、设置页面、账户页面、状态页面、安全性页面等),而每个标签均具有一个页面编号和页面名称,通过定位页面编号和页面名称可以选择进入升级页面或其他页面。 As the network management device WEB page having a plurality of tab sheet 3 (e.g., upgrades page set pages, account page, page status, security page, etc.), and each tag has a page number and page name, the page number by positioning and the name of the page you can choose to enter the upgrade page or other pages.

[0047] 步骤5,判断count值是否小于等于循环值500,满足则count = count+l且自动化脚本通过控制端口将控制端I连接的交换机口配置为vlan2,和第二台待测设备进行第一台相同的操作,直到count值大于循环值500,所有的待升级设备完成升级。 [0047] Step 5, it is determined whether the count value is smaller than the value equal to the loop 500, is satisfied count = count + l and automated script control port connected to the control terminal of the switch port is configured to VLAN2 I, for the first stage and a second device under test the same operation as a station, until the cycle count value is greater than 500, to be upgraded of all the devices complete the upgrade. Count值是系统常量,用作记录当前控制端I连接的网络设备3的编号。 Count values ​​are system constants for the record number 3 in the current control terminal connected to the network device I.

[0048]步骤6,将count赋值为I自动化脚本将调用函数通过控制端口将管理电脑连接的交换机口配置为vlanl,脚本调用函数os.system发送命令arp-d将管理电脑清空缓存;然后自动化脚本调用命令ipconf ig/re I ease和ipconf ig/renew将网卡地址进行释放并进行重新获取,确保控制端I获取的是第一台待测网络设备3的地址。 [0048] Step 6, the I count assigned to automated script calls the function by controlling the port switch ports connected to the computer configured to manage vlanl, sends a command script calls a function os.system arp-d to flush the cache management computer; and automated scripts invoke the command ipconf ig / re I ease and ipconf ig / renew the card address to be released and reacquired to ensure that the control terminal is the first I acquired network address of the device under test 3.

[0049] 步骤7,自动化脚本调用open browser命令登录第一台待测网络设备3的web管理页面,自动化脚本通过定位页面编号和页面名称元素进入设备信息页面,自动化脚本通过css定位版本号信息并返回版本信息。 [0049] Step 7, automated script calls open browser command to log in the first test network device web management page 3, automated script into the device information pages, automated scripts by locating the page number and page name element information by the version number and positioning css returns the version information.

[0050]步骤8,自动化脚本将返回的版本信息和预期的版本信息进行对比,如果返回的版本信息和预期的版本信息不相同则输出“设备升级失败”并继续后面的操作;如果返回的版本信息和预期的版本信息相同则继续后面的操作。 [0050] Step 8, automated script returns the version information and the expected version information comparison, if the return version information and the expected version information is not the same as the output "equipment upgrades failed" and continue with the latter; if the version returned information and expected operating behind the same version information continues.

[°°511 步骤9,判断count值是否小于等于循环值500,满足则count = count+l且自动化脚本通过控制端口将控制端I连接的交换机口配置为vlan2,直到判断满足循环值将所有待测设备版本检测完毕。 [°° 511 step 9, it is determined whether the count value is smaller than the value equal to the loop 500, is satisfied count = count + l and automated script control port connected to the control terminal of the switch port is configured to VLAN2 I, until it is determined to meet the values ​​of all cycles to be version sensing device testing is completed.

[0052]本发明还提供一种根据上述网络设备升级的方法的设备,参阅图2所示,包括以下部件: [0052] The present invention further provides an apparatus according to the above-described method for upgrading a network device, refer to FIG. 2, comprises the following components:

[0053]多个网络设备3,作为待升级及检验的目标设备; [0053] a plurality of network devices 3, as a test target to be upgraded and the device;

[0054]交换机2,作为控制信号及升级数据的传递设备; [0054] The switch 2, a control signal transmitting device and the upgrade data;

[0055]控制端I,用于为每个网络设备3升级,并检测网络设备3是否升级成功; [0055] The control terminal I, for each network device 3 for upgrades, the network device 3 and detects whether the upgrade is successful;

[0056]控制端I包括,控制模块11、网络设备端口编号模块16、连接控制模块17、设备升级模块18、升级检验模块19,网络设备端口编号模块16、连接控制模块17、设备升级模块18、升级检验模块19均与所述控制模块11连接。 [0056] The control terminal I includes a control module 11, a network port number on the module 16, the connection control module 17, the device upgrade module 18, the upgrade check module 19, a network port number on the module 16, the connection control module 17, the device upgrade module 18 upgrade check module 19 are connected to the control module 11. 网络设备端口编号模块16用于为与每个网络设备3连接的交换机端口进行编号。 Network device port module ID 16 for each switch port number 3 connected to the network device. 连接控制模块16用于修改控制端I连接交换机2的虚拟局域网端口(如vlanl、vlan500等),控制端I即可连接与该虚拟局域网端口对应的网络设备3。 Connection control module 16 for modifying the control terminal of the switch virtual local area network port connected to I (e.g. vlanl, vlan500 the like) 2, and a control terminal I can connect to the network device port corresponding to the VLAN 3. 设备升级模块18,用于对控制端I连接的网络设备3进行升级,而升级检验模块19用于检验控制端I连接的网络设备3是否升级完成。 Equipment upgrades module 18 for controlling network devices connected to the terminal I 3 upgrade, upgrade the network test equipment for checking the control module 19 is connected to terminal I 3 whether the upgrade is complete.

[0057]控制端I还包括存储模块12、计算模块13、人机交互模块14,所述存储模块12、计算模块13、人机交互模块14均与所述控制模块11连接。 [0057] I control terminal further includes a storage module 12, a calculation module 13, the interactive module 14, the storage module 12, module 13 calculates, interactive module 14 are connected to the control module 11. 控制端I还包括与控制模块11连接的统计模块15。 I further comprising a control terminal connected to the statistics module control module 1115. 存储模块12用于存储用于更新的新程序及每个网络设备3端口的编号,计算模块13用于计算控制模块11应该连接的目标网络设备3对应的端口编号。 No storage module 12 for storing a new program for update each network device and port 3, port number calculation module 13 for calculating a target network device control module 11 to be connected to the corresponding 3. 用于通过人机交互模块14设置需要升级的网络设备数量和编号,及选择用于更新的新程序。 Used by network equipment number and number of man-machine interaction module 14 is set to be upgraded, and a new selection procedure for updating. 统计模块15用于统计完成升级的网络设备3数量和升级失败的网络设备数量,然后可以将未完成升级的网络设备3通过人机交互模块14提供给用户。 Statistics module 15 for counting the number of upgrade network device 3 and the number of upgrade failures of the network device may then be provided to the user 3 via interactive module 14 is not upgraded network device.

[0058]应当说明的是,上述实施例均可根据需要自由组合。 [0058] It should be noted that the above-described embodiments can be freely combined as needed. 以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干省略、改进和润饰,这些改进和润饰也应视为本发明的保护范围。 The above are only preferred embodiments of the present invention, it should be noted that those of ordinary skill in the art who, without departing from the principles of the present invention, can make various omissions, improvements and modifications, such modifications and modifications should be the scope of the present invention.

Claims (10)

1.一种网络设备升级的方法,其特征在于,包括多个网络设备(3)、交换机(2)、控制端(1),所述方法包括以下步骤: 51、每个所述网络设备(3)均与所述交换机(2)连接,所述交换机(2)与所述控制端(I)连接; 52、控制端(I)依次对每个网络设备(3)编号; 53、控制端(I)按照设备编号依次对每台网络设备(3)升级; 54、控制端(I)按照设备编号依次连接每台网络设备(3),并获取版本号信息; 55、控制端(I)对比版本号信息和预期的版本号信息是否相同,若是,判断与所述版本号信息对应的网络设备(3)升级失败,若否,判断与所述版本号信息对应的网络设备(3)升级成功。 1. A method for upgrading a network device, characterized by comprising a plurality of network devices (3), the switch (2), a control terminal (1), said method comprising the steps of: 51, each of the network device ( 3) are connected to the switch (2), said switch (2) and the control terminal (I) is connected; 52, a control terminal (I) sequence (3) ID for each network device; 53, a control terminal (I) sequentially for each network device (3) according to upgrade the device ID; 54, a control terminal (I) according to the device number sequentially connect each network device (3), and acquires the version number information; 55, a control terminal (I) comparison of the expected version number information and version number information are the same, if, with the network device determines the version number information corresponding to (3) the upgrade fails, if not, the network device determines the version information corresponding to (3) upgrade success.
2.根据权利要求1所述的网络设备升级的方法,其特征在于:所述步骤SI中,交换机(2)的控制端口通过控制总线连接到控制端(I)上。 2. The method of upgrading the network apparatus according to claim 1, wherein: said step SI, the control switch (2) is connected to the port control terminal (I) via the control bus.
3.根据权利要求1所述的网络设备升级的方法,其特征在于:所述步骤S2中,对交换机(2)与每个网络设备(3)的虚拟局域网端口进行编号并存储在所述控制端(I)中,控制端(I)按编号依次连接每个对应的虚拟局域网端口实现依次对每个网络设备(3)的连接。 3. The method of upgrading the network apparatus according to claim 1, wherein: S2 in the switch (2) and each network device (3) virtual local area network port number and said step of storing in said control end (I), a control terminal (I) by sequentially connecting each number corresponding to a virtual LAN ports are implemented sequentially connected to each network device (3).
4.根据权利要求1所述的网络设备升级的方法,其特征在于:所述步骤S3中,控制端(I)首先清理缓存,然后将网卡地址进行释放并进行重新获取。 4. The method of upgrading the network apparatus according to claim 1, wherein: said step S3, the control terminal (I) to clear the cache first, and then release the card and address reacquisition.
5.根据权利要求4所述的网络设备升级的方法,其特征在于:所述控制端(I)登录网络设备(3)的管理页面,通过定位页面编号和页面名称元素进入升级页面,定位升级文件进行升级。 5. The method of claim 4 upgrade network device as claimed in claim, wherein: said control terminal (I) to access the network device (3) management page by page number and page positioning elements enter the name of the page upgrade, upgrade positioning file upgrade.
6.根据权利要求1所述的网络设备升级的方法,其特征在于,所述步骤S4中,控制端(I)首先清理缓存,然后将网卡地址进行释放并进行重新获取。 6. The method of upgrading the network apparatus according to claim 1, wherein, in the step S4, the control terminal (I) to clear the cache first, and then release the card and address reacquisition.
7.根据权利要求6所述的网络设备升级的方法,其特征在于:所述控制端(I)登录网络设备(3)的管理页面,控制端(I)通过定位页面编号和页面名称进入设备信息页面,定位版本号信息并返回版本号信息。 7. The method of upgrading the network apparatus according to claim 6, wherein: said control terminal (I) to access the network device (3) of the page management, control terminal (I) into the apparatus by locating the page number and page name information page, locate the version number information and return the version number information.
8.—种根据权利要求1所述网络设备升级的方法的设备,其特征在于,包括以下部件: 多个网络设备(3),作为待升级及检验的目标设备; 交换机(2),作为控制信号及升级数据的传递设备; 控制端(I),用于为每个网络设备(3)升级,并检测网络设备(3)是否升级成功;所述控制端(I)包括,控制模块(11)、网络设备端口编号模块(16)、连接控制模块(17)、设备升级模块(18)、升级检验模块(19),所述网络设备端口编号模块(16)、连接控制模块(17)、设备升级模块(18)、升级检验模块(19)均与所述控制模块(11)连接。 8.- The apparatus species network device upgrade method of claim 1, wherein the member comprising: a plurality of network devices (3), as the target equipment to be upgraded and examination; switch (2), as a control a signal transmitting apparatus and the upgrade data; a control terminal (I), for each network device (3) upgrade, and detecting network device (3) whether the upgrade is successful; said control terminal (I) comprises, a control module (11 ), a network port number on the module (16), connected to the control module (17), the device upgrade module (18), the upgrade check module (19), the port number on the network module (16), connected to the control module (17), device upgrading module (18), the upgrade check module (19) are connected with the control module (11).
9.根据权利要求8所述的设备,其特征在于:所述控制端(I)还包括存储模块(12)、计算模块(13)、人机交互模块(14),所述存储模块(12)、计算模块(13)、人机交互模块(14)均与所述控制模块(11)连接。 9. The apparatus of claim 8, wherein: said control terminal (I) further includes a storage module (12), the calculation module (13), human-computer interaction module (14), the storage module (12 ), the calculation module (13), interactive modules (14) are connected to the control module (11).
10.根据权利要求9所述的设备,其特征在于:所述控制端(I)还包括与所述控制模块(11)连接的统计模块(15)。 10. The apparatus according to claim 9, wherein: said control terminal (I) further comprises a statistics module (15) connected to the control module (11).
CN201610013557.8A 2016-01-11 2016-01-11 Method and device for upgrading network device CN105610627A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610013557.8A CN105610627A (en) 2016-01-11 2016-01-11 Method and device for upgrading network device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610013557.8A CN105610627A (en) 2016-01-11 2016-01-11 Method and device for upgrading network device

Publications (1)

Publication Number Publication Date
CN105610627A true CN105610627A (en) 2016-05-25

Family

ID=55990172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610013557.8A CN105610627A (en) 2016-01-11 2016-01-11 Method and device for upgrading network device

Country Status (1)

Country Link
CN (1) CN105610627A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080052698A1 (en) * 2006-08-25 2008-02-28 Microsoft Corporation Providing firmware updates to portable media devices
CN101178670A (en) * 2007-12-10 2008-05-14 中兴通讯股份有限公司 Apparatus upgrade method
CN102075349A (en) * 2010-12-22 2011-05-25 深圳市新格林耐特通信技术有限公司 Method for device file centralized management by simple network management protocol (SNMP) network manager
CN103327038A (en) * 2012-03-20 2013-09-25 中兴通讯股份有限公司 Method and device for batch upgrading network devices
CN104572188A (en) * 2014-12-23 2015-04-29 广东欧珀移动通信有限公司 System updating method and device for mobile equipment
CN104639663A (en) * 2015-03-17 2015-05-20 四川天邑康和通信股份有限公司 Method and system for simultaneously and automatically upgrading software of multiple optical modems
CN104699504A (en) * 2015-03-03 2015-06-10 惠州Tcl移动通信有限公司 Method and system for upgrading of batch software of terminal device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080052698A1 (en) * 2006-08-25 2008-02-28 Microsoft Corporation Providing firmware updates to portable media devices
CN101178670A (en) * 2007-12-10 2008-05-14 中兴通讯股份有限公司 Apparatus upgrade method
CN102075349A (en) * 2010-12-22 2011-05-25 深圳市新格林耐特通信技术有限公司 Method for device file centralized management by simple network management protocol (SNMP) network manager
CN103327038A (en) * 2012-03-20 2013-09-25 中兴通讯股份有限公司 Method and device for batch upgrading network devices
CN104572188A (en) * 2014-12-23 2015-04-29 广东欧珀移动通信有限公司 System updating method and device for mobile equipment
CN104699504A (en) * 2015-03-03 2015-06-10 惠州Tcl移动通信有限公司 Method and system for upgrading of batch software of terminal device
CN104639663A (en) * 2015-03-17 2015-05-20 四川天邑康和通信股份有限公司 Method and system for simultaneously and automatically upgrading software of multiple optical modems

Similar Documents

Publication Publication Date Title
US8572437B2 (en) Multi-platform test automation enhancement
US20050160214A1 (en) Information handling system capable of operating with multiple types of expansion cards in a common industry standard connector
US8732529B2 (en) Mobile communication terminal capable of testing application and method thereof
WO2009046284A1 (en) Firmware image update and management
CN103365779B (en) Software Testing Methods and systems
US20150052402A1 (en) Cloud Deployment Infrastructure Validation Engine
US20110179211A1 (en) Bios architecture
US9712413B2 (en) Systems and methods for managing computing systems utilizing augmented reality
CN100375042C (en) Remote detection and control method for computer
US20070100903A1 (en) Systems and methods for compiling applications on a test server
US8521929B2 (en) Virtual serial port management system and method
CN103488481A (en) Application program control method, terminal equipment and remote control system
US20140245070A1 (en) Automated execution of functional test scripts on a remote system within a unit testing framework
US20150135169A1 (en) Testing device and testing method thereof
CN100386754C (en) Device and method for operating USB interface device
US9161238B2 (en) Mobile device monitoring and testing
CN103019913B (en) A mobile terminal and a hardware exception presentation method, system
CN104765678B (en) A method of testing an application on a mobile terminal apparatus and
CN101937351A (en) Method and system for automatically installing application software
US20120331449A1 (en) Device, method and computer program product for evaluating a debugger script
KR20080068385A (en) Program test system, method and computer readable medium on which program for executing the method is recorded
KR101678038B1 (en) Method, apparatus, program, and recording medium for automatically connecting wireless network
US7689704B2 (en) Methods and arrangements for managing automated switching
US20130138934A1 (en) Loading configuration information
WO2015078294A1 (en) Kernel module loading method and apparatus

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination