CN107066297A - A kind of method and device of automatic recovery firmware - Google Patents
A kind of method and device of automatic recovery firmware Download PDFInfo
- Publication number
- CN107066297A CN107066297A CN201710221386.2A CN201710221386A CN107066297A CN 107066297 A CN107066297 A CN 107066297A CN 201710221386 A CN201710221386 A CN 201710221386A CN 107066297 A CN107066297 A CN 107066297A
- Authority
- CN
- China
- Prior art keywords
- firmware
- network equipment
- main system
- starts
- server
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1464—Management of the backup or restore process for networked environments
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of method and device of automatic recovery firmware, it is related to Embedded Network Device technical field.A kind of method for automatic recovery network device firmware that the present invention is provided, including:Network equipment main system starting step:Detect whether the main system number of starts exceedes setting value after electricity on the network equipment, then performing network equipment back-up system starting step, network equipment back-up system in this way obtains firmware steps and network equipment reboot step;Otherwise the main system number of starts adds 1, starts main system, and the main system number of starts is reset if main system starts successfully;If main system starts failure, select and repeat this step;Network equipment back-up system starting step:Start back-up system, back-up system only load networks drive;Network equipment back-up system obtains firmware steps:Back-up system connection server, downloads from a server firmware and by firmware storage into main system disk partition;Network equipment reboot step, restarts the network equipment.
Description
Technical field
The present invention relates to Embedded Network Device technical field, the especially automatic method for recovering network device firmware.
Background technology
The firmware of the network equipment, which updates, refers to that the network equipment obtains firmware from network(Automatically update)Or receive management
The firmware that personnel send(Update manually), firmware is put into memory, then write from network device memory the process of disk.Net
Network equipment includes but is not limited to the equipment such as router, interchanger, AP.The firmware of the network equipment is during renewal, because magnetic
The reason such as disk write error or accident power-off, can all cause firmware to update failure, so as to cause the network equipment not start.
The network equipment for possessing firmware restoration function in the market is less.In only a few money products, have plenty of
Symmetrical dual system is used on the network equipment, is backuped each other using two identical systems, the memory space that it takes is too
Greatly, cost is higher;What is had only supports the mode for uploading firmware manually to recover in back-up system, and complex operation needs professional
It could complete;And the firmware restoration function of these products is required for manual intervention to complete.
The content of the invention
The technical problems to be solved by the invention are:Only needed there is provided one for above-mentioned problem minimum standby
With system, the method that network device firmware recovers automatically just can be completed.
A kind of method for automatic recovery network device firmware that the present invention is provided, including:
Network equipment main system starting step:Detect whether the main system number of starts exceedes setting value after electricity on the network equipment, such as
It is to perform network equipment back-up system starting step, network equipment back-up system acquisition firmware steps and the network equipment to restart
Step;Otherwise the main system number of starts adds 1, starts main system, and the main system number of starts is reset if main system starts successfully;If
Main system starts failure, selects and repeats this step;
Network equipment back-up system starting step:Start back-up system, back-up system only load networks drive;
Network equipment back-up system obtains firmware steps:Back-up system connection server, downloads from a server firmware and by institute
Firmware storage is stated into main system disk partition;
Network equipment reboot step, restarts the network equipment.
Further, network equipment back-up system obtains firmware steps and also included, if back-up system connection server is unsuccessful,
The firmware is stored into main system disk partition after then receiving the firmware that administrative staff upload.
Further, the setting value is 3.
Further, be preset with back-up system storage firmware server address, the server be cloud server or
Person's LAN server.
Present invention also offers a kind of device of automatic recovery network device firmware, including:
Whether network equipment main system starting module, exceed setting for the detection main system number of starts after electricity on network devices
Value, then performs network equipment back-up system starting module, network equipment back-up system acquisition firmware module and network and sets in this way
It is standby to restart module;Otherwise the main system number of starts adds 1, starts main system, and main system is reset if main system starts successfully and is started
Number of times;If main system starts failure, select and repeat this module;
Network equipment back-up system starting module, for starting back-up system, and only load networks drive in back-up system;
Network equipment back-up system obtains firmware module, for back-up system to be connected with server, downloads from a server solid
Part simultaneously stores the firmware into main system disk partition;
The network equipment restarts module, for restarting the network equipment.
Further, network equipment back-up system obtains firmware module and is additionally operable to, if back-up system connection server is unsuccessful,
The firmware is stored into main system disk partition after then receiving the firmware that administrative staff upload.
In summary, by adopting the above-described technical solution, the beneficial effects of the invention are as follows:
1. back-up system only load networks drive, therefore occupy little space, the cost of equipment is reduced.
2. after main system, which starts, to fail, back-up system can reacquire firmware from dynamic auxiliary, and firmware storage is arrived into master
System disk subregion, restarts after the network equipment, main system just can loading firmware automatically, solve problem more timely.
3. the present invention can also support to upload firmware manually, it is combined, further ensures that with automation mechanized operation by manually operated
Main system firmware is successfully repaired.
4. it can effectively reduce the situation of network equipment depot repair using the present invention.
Brief description of the drawings
Examples of the present invention will be described by way of reference to the accompanying drawings, wherein:
Fig. 1 is flow chart of the present invention.
Embodiment
All features disclosed in this specification, or disclosed all methods or during the step of, except mutually exclusive
Feature and/or step beyond, can combine in any way.
Any feature disclosed in this specification, unless specifically stated otherwise, can be equivalent by other or with similar purpose
Alternative features are replaced.I.e., unless specifically stated otherwise, each feature is an example in a series of equivalent or similar characteristics
.
Exemplified by router, the implementation process of the present invention is expanded on further, referring to Fig. 1.
Two systems are included on router, a main system is satisfied the need with a back-up system, wherein main system for user
The repertoire required by device, back-up system is served only for realizing and server communication.Server can be cloud server or office
Domain network server, is stored thereon with the firmware of router needs.The network address of server is preset with back-up system.
A kind of method for automatic recovery network device firmware that the present invention is provided, including:
Network equipment main system starting step:Detect whether the main system number of starts exceedes setting value, this reality after electricity on router
Apply example and be set to 3 times, then perform in this way network equipment back-up system starting step, network equipment back-up system obtain firmware steps with
And network equipment reboot step;When being not above setting value such as the main system number of starts, the main system number of starts first adds 1, then opens
Dynamic main system, resets the main system number of starts if main system starts successfully;If main system starts failure, select and repeat this step
Suddenly.
When the number of times that main system starts failure exceedes setting value, then the firmware for completing main system is aided in add using back-up system
Carry.Detailed process includes three below step:
Network equipment back-up system starting step:Start back-up system, back-up system only load networks drive, to complete and to take
The communication of business device.
Network equipment back-up system obtains firmware steps:Back-up system is by network attached server, above and below server
Carry firmware and by firmware storage into main system disk partition.
Network equipment reboot step, restarts the network equipment.The network equipment again after, main system can be again attempted to from master
System disk subregion loading firmware, because firmware has been stored in the disk partition of main system, therefore main system energy via back-up system
Successfully start up.
Cause back-up system can not obtain the situation of firmware, another reality of the invention from server in view of network failure
Apply the function that example also add manual loading firmware.Network equipment back-up system in the present embodiment obtains firmware steps and also wrapped
Include, if back-up system connection server is unsuccessful, receive firmware storage to principal series after the firmware that administrative staff upload
In system disk partition.The mode for uploading firmware includes but is not limited to tftp, ftp, http etc..
Present invention also offers a set of and one-to-one floppy disk system of above method step, including:
Whether network equipment main system starting module, exceed setting for the detection main system number of starts after electricity on network devices
Value, then performs network equipment back-up system starting module, network equipment back-up system acquisition firmware module and network and sets in this way
It is standby to restart module;Otherwise the main system number of starts adds 1, starts main system, and main system is reset if main system starts successfully and is started
Number of times;If main system starts failure, select and repeat this module.
Network equipment back-up system starting module, for starting back-up system, and only load networks are driven in back-up system
It is dynamic.
Network equipment back-up system obtains firmware module, for back-up system to be connected with server, above and below server
Carry firmware and by firmware storage into main system disk partition.
The network equipment restarts module, for restarting the network equipment.
Corresponding to the second embodiment of the above method, the network equipment back-up system in the another embodiment of this floppy disk system is obtained
Firmware module is taken to be additionally operable to, if back-up system connection server is unsuccessful, receiving will be described after the firmware that administrative staff upload
Firmware is stored into main system disk partition.
The invention is not limited in foregoing embodiment.The present invention, which is expanded to, any in this manual to be disclosed
New feature or any new combination, and disclose any new method or process the step of or any new combination.
Claims (8)
1. a kind of method of automatic recovery firmware, it is characterised in that including:
Network equipment main system starting step:Detect whether the main system number of starts exceedes setting value after electricity on the network equipment, such as
It is to perform network equipment back-up system starting step, network equipment back-up system acquisition firmware steps and the network equipment to restart
Step;Otherwise the main system number of starts adds 1, and starts main system, and the main system number of starts is reset if main system starts successfully;
If main system starts failure, select and repeat this step;
Network equipment back-up system starting step:Start back-up system, back-up system only load networks drive;
Network equipment back-up system obtains firmware steps:Back-up system connection server, downloads from a server firmware and by institute
Firmware storage is stated into main system disk partition;
Network equipment reboot step, restarts the network equipment.
2. the method for a kind of automatic recovery firmware according to claim 1, it is characterised in that network equipment back-up system is obtained
Firmware steps are taken also to include, if back-up system connection server is unsuccessful, receiving will be described after the firmware that administrative staff upload
Firmware is stored into main system disk partition.
3. the method for a kind of automatic recovery firmware according to claim 1, it is characterised in that the setting value is 3.
4. the method for a kind of automatic recovery firmware according to claim 1, it is characterised in that be preset with and deposit in back-up system
The server address of firmware is put, the server is cloud server or LAN server.
5. a kind of device of automatic recovery firmware, it is characterised in that including:
Whether network equipment main system starting module, exceed setting for the detection main system number of starts after electricity on network devices
Value, then performs network equipment back-up system starting module, network equipment back-up system acquisition firmware module and network and sets in this way
It is standby to restart module;Otherwise the main system number of starts adds 1, starts main system, and main system is reset if main system starts successfully and is started
Number of times;If main system starts failure, select and repeat this module;
Network equipment back-up system starting module, for starting back-up system, and only load networks drive in back-up system;
Network equipment back-up system obtains firmware module, for back-up system to be connected with server, downloads from a server solid
Part simultaneously stores the firmware into main system disk partition;
The network equipment restarts module, for restarting the network equipment.
6. the device of a kind of automatic recovery firmware according to claim 5, it is characterised in that network equipment back-up system is obtained
Firmware module is taken to be additionally operable to, if back-up system connection server is unsuccessful, receiving will be described after the firmware that administrative staff upload
Firmware is stored into main system disk partition.
7. the device of a kind of automatic recovery firmware according to claim 5, it is characterised in that the setting value is 3.
8. the device of a kind of automatic recovery firmware according to claim 5, it is characterised in that be preset with and deposit in back-up system
The server address of firmware is put, the server is cloud server or LAN server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710221386.2A CN107066297A (en) | 2017-04-06 | 2017-04-06 | A kind of method and device of automatic recovery firmware |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710221386.2A CN107066297A (en) | 2017-04-06 | 2017-04-06 | A kind of method and device of automatic recovery firmware |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107066297A true CN107066297A (en) | 2017-08-18 |
Family
ID=59601490
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710221386.2A Pending CN107066297A (en) | 2017-04-06 | 2017-04-06 | A kind of method and device of automatic recovery firmware |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107066297A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109471670A (en) * | 2018-12-21 | 2019-03-15 | 迈普通信技术股份有限公司 | Equipment starting method and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101465757A (en) * | 2009-01-15 | 2009-06-24 | 武汉烽火网络有限责任公司 | Method for batch upgrade in cluster network |
US20130119956A1 (en) * | 2011-11-11 | 2013-05-16 | Samsung Electro-Mechanics Co., Ltd. | Control ic having auto recovery circuit, auto recovery circuit of control ic, power converter system and method for auto recovering control ic |
CN106452928A (en) * | 2016-12-14 | 2017-02-22 | 邯郸美的制冷设备有限公司 | Firmware upgrading method and firmware upgrading apparatus of router, and router |
-
2017
- 2017-04-06 CN CN201710221386.2A patent/CN107066297A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101465757A (en) * | 2009-01-15 | 2009-06-24 | 武汉烽火网络有限责任公司 | Method for batch upgrade in cluster network |
US20130119956A1 (en) * | 2011-11-11 | 2013-05-16 | Samsung Electro-Mechanics Co., Ltd. | Control ic having auto recovery circuit, auto recovery circuit of control ic, power converter system and method for auto recovering control ic |
CN106452928A (en) * | 2016-12-14 | 2017-02-22 | 邯郸美的制冷设备有限公司 | Firmware upgrading method and firmware upgrading apparatus of router, and router |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109471670A (en) * | 2018-12-21 | 2019-03-15 | 迈普通信技术股份有限公司 | Equipment starting method and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104253866B (en) | Software deployment method, system and the relevant device of virtual network function network element | |
CN103092720B (en) | For kernel processing device and the restoration methods of vehicle-mounted terminal | |
CN103685391B (en) | A kind of automatically updating method of terminal device using static network address | |
CN102081540B (en) | Distributed dual-master control network equipment software updating method and device | |
CN106572200A (en) | IP address configuration method and IP address configuration device for baseboard management controller BMC | |
CN105743948A (en) | Network version upgrading method and apparatus | |
CN105094875A (en) | Software upgrading method and device | |
CN101860545A (en) | System and method for implementing automatic configuration of equipment | |
CN105607972B (en) | A kind of method and device repaired extremely | |
CN103024079B (en) | Obtain the method for server resource information, resource pool management system and server | |
CN103024782B (en) | A kind of method and system of base station software version management | |
CN103546315B (en) | The standby system of a kind of Dynamic Host Configuration Protocol server, method and apparatus | |
TW200533118A (en) | Deployment method and system for multiple remote computers | |
CN101739263A (en) | Method and device for realizing operating system update in multi-computer cluster system | |
CN109587005A (en) | Connecting detection method, apparatus, computer equipment and readable storage medium storing program for executing | |
CN102833083A (en) | Data center power supply device control system and method | |
CN105635216A (en) | Distributed application upgrade method, device and distributed system | |
CN105204955A (en) | Method and device for correcting faults of virtual machines | |
CN102300239B (en) | Base station and self-starting method thereof | |
CN103297950A (en) | Method for backing up and recovering call records remotely | |
CN110391940A (en) | Response method, device, system, equipment and the storage medium of address of service | |
CN105357057A (en) | Center-free monitoring management node off-site redundancy method | |
CN107066297A (en) | A kind of method and device of automatic recovery firmware | |
CN106604138A (en) | Remote restoration method and system for intelligent television | |
CN104980303A (en) | Node failure repair method in multi-level tree network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170818 |