CN104618145A - System starting method and device - Google Patents

System starting method and device Download PDF

Info

Publication number
CN104618145A
CN104618145A CN201410855456.6A CN201410855456A CN104618145A CN 104618145 A CN104618145 A CN 104618145A CN 201410855456 A CN201410855456 A CN 201410855456A CN 104618145 A CN104618145 A CN 104618145A
Authority
CN
China
Prior art keywords
version
module
mode
load
network side
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.)
Granted
Application number
CN201410855456.6A
Other languages
Chinese (zh)
Other versions
CN104618145B (en
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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201410855456.6A priority Critical patent/CN104618145B/en
Publication of CN104618145A publication Critical patent/CN104618145A/en
Application granted granted Critical
Publication of CN104618145B publication Critical patent/CN104618145B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a system starting method which includes the steps: acquiring a working mode of a system; judging whether the system has a PE (port extender) version or not if the working mode is a PE mode, and confirming that the PE version can be started when the system has the PE version; inquiring whether the system has a CB (control bridge) version or not if the system does not have the PE version or the PE version cannot be started; acquiring and loading the PE version by the aid of a PE loading module after the CB version is started if the system has the CB version; downloading the CB version from a network side if not, and acquiring the working mode of the system after downloading. Therefore, the system can be normally started in the PE mode, incapability of normally starting caused by damage to the PE version or absence of the PE version in the system is avoided, and stability of the system is improved.

Description

A kind of system start method and equipment
Technical field
The embodiment of the present application relates to communication technical field, particularly a kind of system start method.The application also relates to a kind of system starting device simultaneously.
Background technology
IRF (Intelligent Resilient Framework, intelligent elastic framework) be a kind of novel software virtualization technology, use this Intel Virtualization Technology can improve CB (Control Bridge with lower cost, control bridge) port density of equipment, simplified network topology.Its core concept is by multiple stage PE (PortExtender, ports-Extending plate) equipment connection is on a CB equipment, by carrying out necessary configuration every platform PE device virtualization become one block of remote interface plate of this CB equipment, by this CB equipment unified management.
At present, equipment in IRF system is in CB pattern or PE pattern as required respectively, the system pattern of equipment pre-sets in Bootware, under CB pattern system can only start CB version and, PE version can only be started under PE pattern, whether equipment can start depends on whether the version corresponding with pattern set in this equipment B ootware exists and complete, if equipment self does not exist version corresponding with it under certain pattern, then this equipment cannot start.
Mistake is downloaded in order to prevent PE version, prior art does not allow system manually to download PE version under Bootware, but only can store the file of a PE version in existing system, if this file corruption, or prior downloaded incorrect (such as cannot corresponding PE version carry out loading or verifying not passing through), so system cannot start, simultaneously technical staff also cannot download the file of PE version by emergency hand, thus cause equipment normally to start, cause the consequence of unrepairable.Therefore, how to avoid that system starts the failure of PE version under PE pattern and the equipment that causes cannot load, become the technical problem that those skilled in the art are urgently to be resolved hurrily.
Summary of the invention
The object of the invention there are provided a kind of system start method and equipment, in order to solve the problem limited the loading of PE version, by the scheme in the application, can ensure that system can normally start under PE pattern, avoid the situation that cannot normally start when PE version in system damages or there is not PE version.
For achieving the above object, the present invention provides a kind of system start method in fact, comprising: the mode of operation obtaining system; If mode of operation is ports-Extending plate PE pattern, judge whether there is PE version in system, and be confirmed whether to start PE version when judgement exists PE version; Whether if there is not PE version in system, or PE version cannot start, exist and control bridge CB version in inquiry system; If there is CB version, after startup CB version, utilize PE load-on module to obtain and load PE version; If do not exist, download CB version from network side, and again obtain the mode of operation of system after the download is complete.
Preferably, after startup CB version, utilize PE load-on module to obtain and load PE version, being specially: startup CB version the current mode of operation of the system that obtains; When the mode of operation that system is current is PE pattern, set up the running environment of PE load-on module according to the start-up operation of CB version; Run PE load-on module, do not obtain new PE version from network side when there is not PE version in systems in which to make PE module and load, or obtain new PE version from network side after the PE version completeness check failure existed in system and load.
Preferably, download CB version from network side, be specially: in prompting custom system, there is not CB version; Obtain the CB version for starting that user downloads from network side based on prompting.Preferably, before the mode of operation of the system of acquisition, also comprise: by Bootware, initialization process is carried out to system; Obtain the pattern information pre-set in Bootware, and using the mode of operation of the pattern indicated by pattern information as system.
For achieving the above object, the application also proposed a kind of system starting device, comprising: acquisition module, for obtaining the mode of operation of system; Judge module, when the mode of operation for obtaining at acquisition module is ports-Extending plate PE pattern, judges whether there is PE version in system, and is confirmed whether to start PE version when judgement exists PE version; Whether enquiry module, for there is not PE version in systems in which, or when PE version cannot start, existing in inquiry system and controlling bridge CB version; Load-on module, for when there is CB version, utilizing PE load-on module to obtain and loading PE version after startup CB version; Determination module, for when there is not CB version, downloading CB version from network side, and again obtaining the mode of operation of system after the download is complete.
Preferably, load-on module specifically for: start CB version and the current mode of operation of the system that obtains; When the mode of operation that system is current is PE pattern, set up the running environment of PE load-on module according to the start-up operation of CB version; Run PE load-on module, do not obtain new PE version from network side when there is not PE version in systems in which to make PE module and load, or obtain new PE version from network side after the PE version completeness check failure existed in system and load.
Preferably, determination module, specifically for: when there is not CB version, in prompting custom system, there is not CB version; And the mode of operation for redefining system after the CB version that starts obtaining user and download from network side based on prompting.
System starting device, also comprises: initialization module, for carrying out initialization process by Bootware to system; Obtain the pattern information pre-set in Bootware, and using the mode of operation of the pattern indicated by pattern information as system.
Compared with prior art, the above embodiment of the present invention has following Advantageous Effects:
A kind of system start method that the embodiment of the present invention provides and equipment, obtain the mode of operation of system; If mode of operation is PE pattern, judge whether there is PE version in system, and be confirmed whether to start PE version when judgement exists PE version; If there is not PE version in system, or PE version cannot start, and whether there is CB version in inquiry system; If there is CB version, after startup CB version, utilize PE load-on module to obtain and load PE version; If do not exist, download CB version from network side, and again obtain the mode of operation of system after the download is complete.Thus the system that ensure that can realize the normal load of PE version under PE pattern, the PE version avoided in system damages or does not exist the situation that cannot normally start that PE version causes, and improves the stability of system.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of system start method in the embodiment of the present application;
Fig. 2 is the structural representation of a kind of system starting device in the embodiment of the present application.
Embodiment
For the problems referred to above that prior art exists, embodiments provide a kind of system start method and equipment, equipment in order to solve IRF can only could realize the loading restriction of system startup under PE pattern by loading normal PE version, when making equipment there is no PE version in systems in which or cannot carry out starting normal through PE version, CB version can be utilized to realize the startup of system.
As shown in Figure 1, be a kind of system start method that the present invention proposes, comprise the following steps:
The mode of operation of step 101, acquisition system.
After carrying out initialization process by Boot ware to system, because the mode of operation set by the system of current device is all be set in advance in Boot ware, therefore before this step, need first to obtain the pattern information pre-set in Boot ware, and using the mode of operation of the pattern indicated by pattern information as system.
In a preferred embodiment, equipment carries out initialization by BOOTWARE, this BOOTWARE is previously provided with start-up mode, need the initial operation mode being judged as the system that this equipment is arranged for this reason, search corresponding version (CB or PE) accordingly and carry out subsequent treatment, it should be noted that, the PE version in the present invention or CB version are the loading data that start according to PE mode or CB mode or loading procedure herein; And after equipment completes initialization, according to the difference of equipment function in a network, the mode of operation of system is also divided into CB and PE two kinds of patterns.Because Starting mode corresponding under different patterns is different, therefore need the mode of operation of acquisition system.
If mode of operation is CB pattern; equipment is by loading the normal startup of CB version completion system in the case; if equipment is when normally cannot start (such as there is not CB version) under CB pattern at initial operation mode; equipment will otherwise by this situation notification technique personnel, and concrete processing procedure does not affect protection scope of the present invention.
If mode of operation is PE pattern, then proceed to step 102.
If step 102 mode of operation is ports-Extending plate PE pattern, judge whether there is PE version in system, and be confirmed whether to start PE version when judgement exists PE version;
After step 101, when the mode of operation of device systems is PE pattern, first will judges whether there is PE version in system, and process respectively based on following different situations:
(1) there is PE version
For this situation, first determine whether to start this PE version.It should be noted that, owing to comprising the loading data or loading procedure that start for PE mode in PE version, therefore the present invention realizes being that loading environment to equipment carries out initialization process by starting this PE version, to prepare to load the data in PE version or program in software and hardware.If can start successfully follow-up, equipment recycling PE load-on module carries out School Affairs loading to PE version, the startup of completion system.If can not normally start, then proceed to step 103.
(2) there is not PE version
Owing to just there is not PE version in system, therefore cannot carry out loading and the startup of completion system to PE version, in the case, proceed to step 103.
Whether if there is not PE version in step 103 system, or PE version cannot start, exist and control bridge CB version in inquiry system;
If there is PE version in system, when this PE version cannot normally start, (such as PE version file is damaged, PE version file is downloaded abnormal, and the verification of PE version file is not passed through, data in PE version or program etc. go wrong) time or system in not there is PE version, because system cannot complete normal startup by PE version in the case, in the case, consider in the application to start the startup that CB version finally realizes system, therefore can judge whether to there is CB version.
If step 104 exists CB version, after startup CB version, utilize PE load-on module to obtain and load PE version;
Concrete, during owing to starting CB version, and the mode of operation that uncertain system is current, in addition, at some in particular cases, such as system cut-off etc., the mode of operation of system may be caused to change, for this reason after startup CB version, need again to obtain the current mode of operation of system.
When the mode of operation that system is current is PE pattern, set up the running environment of PE load-on module according to the start-up operation of CB version; Run PE load-on module, obtain new PE version from network side when there is not PE version in systems in which to make PE module (just to limit user and manually download PE version, for PE load mould download do not limit for the PE version started) and to load, or obtain new PE version from network side after the PE version completeness check failure existed in system and load.
In a preferred embodiment, when the mode of operation determining current system is PE pattern, start PE load-on module and completeness check and loading are carried out to PE version, now PE load-on module is CB version (instead of PE version) by verification discovery, and checking is not passed through, or checking is PE version, but cannot be verified and pass through, and when not there is PE version, PE load-on module will download PE version from network side automatically, load the startup of the PE version completion system downloaded.
If CB pattern, then start according to normal flow.
If step 105 does not exist, download CB version from network side, and again obtain the mode of operation of system after the download is complete.
When there is not CB version, CB version can be downloaded from network side, due to after having downloaded and the mode of operation of uncertain system, and the processing mode difference under different mode of operations, need the mode of operation again obtaining system for this reason, and carry out corresponding different operation based on different mode of operations, detailed process is shown in above-mentioned steps 101-104, no longer carries out superfluous chatting at this.
In the application's preferred embodiment, the concrete process downloading CB version from network side is as follows:
First point out in custom system and there is not CB version, recognize in system there is not CB version to make user, in the case, neither there is CB version, there is not PE version yet, or there is PE version but normally cannot start this PE version, needing to download the loading completing PE version for version file; User, after getting prompting, owing to prohibiting the manual download to PE version, therefore can only download CB version, and system can obtain the CB version for starting that user downloads from network side based on prompting afterwards; After this, continue the mode of operation of judgement system, also namely carry out step 101, form automatic cycle, and finally complete the loading of PE version.
According to the system start method that the above embodiment of the present invention provides, the normal startup of PE version can be ensured, avoid the situation that cannot normally start when PE version in system damages or there is not PE version.
In order to the present invention will be described further, the embodiment of the present invention two also provides a kind of system starting device, as shown in Figure 2, comprising:
Acquisition module 201, for obtaining the mode of operation of system;
Judge module 202, when the mode of operation for obtaining at acquisition module is ports-Extending plate PE pattern, judges whether there is PE version in system, and is confirmed whether to start PE version when judgement exists PE version;
Whether enquiry module 203, for there is not PE version in systems in which, or when PE version cannot start, existing in inquiry system and controlling bridge CB version;
Load-on module 204, for when there is CB version, utilizing PE load-on module to obtain and loading PE version after startup CB version;
Determination module 205, for when there is not CB version, downloading CB version from network side, and again obtaining the mode of operation of system after the download is complete.
Wherein, load-on module 205 specifically for: start CB version and the current mode of operation of the system that obtains; When the mode of operation that system is current is PE pattern, set up the running environment of PE load-on module according to the start-up operation of CB version; Run PE load-on module, do not obtain new PE version from network side when there is not PE version in systems in which to make PE module and load, or obtain new PE version from network side after the PE version completeness check failure existed in system and load.
Determination module 205, specifically for: when there is not CB version, in prompting custom system, there is not CB version; And the mode of operation for redefining system after the CB version that starts obtaining user and download from network side based on prompting.
System starting device, also comprises:
Initialization module, for carrying out initialization process by Boot ware to system; Obtain the pattern information pre-set in Boot ware, and using the mode of operation of the pattern indicated by pattern information as system.
As can be seen here, the technical scheme proposed by application the present invention, obtains the mode of operation of system; If mode of operation is PE pattern, judge whether there is PE version in system, and be confirmed whether to start PE version when judgement exists PE version; If there is not PE version in system, or PE version cannot start, and whether there is CB version in inquiry system; If there is CB version, after startup CB version, utilize PE load-on module to obtain and load PE version; If do not exist, download CB version from network side, and again obtain the mode of operation of system after the download is complete.Thus ensure that system can realize normal startup under PE pattern, the PE version avoided in system damages or does not exist the situation that cannot normally start that PE version causes, and improves the stability of system.
Through the above description of the embodiments, those skilled in the art can be well understood to the application can by hardware implementing, and the mode that also can add necessary general hardware platform by software realizes.Based on such understanding, the technical scheme of the application can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, each implements the method for scene in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the application to comprise some instructions.
It will be appreciated by those skilled in the art that accompanying drawing is a schematic diagram preferably implementing scene, the module in accompanying drawing or flow process might not be that enforcement the application is necessary.
It will be appreciated by those skilled in the art that the module in the device implemented in scene can carry out being distributed in the device of enforcement scene according to implementing scene description, also can carry out respective change and being arranged in the one or more devices being different from this enforcement scene.The module of above-mentioned enforcement scene can merge into a module, also can split into multiple submodule further.
Above-mentioned the application's sequence number, just to describing, does not represent the quality implementing scene.
Be only the several concrete enforcement scene of the application above, but the application is not limited thereto, the changes that any person skilled in the art can think of all should fall into the protection range of the application.

Claims (8)

1. a system start method, is characterized in that, described method is applied to the equipment comprising PE load-on module, and the method comprises:
Obtain the mode of operation of described system;
If described mode of operation is ports-Extending plate PE pattern, judge whether there is PE version in described system, and be confirmed whether to start described PE version when judgement exists described PE version;
Whether if there is not described PE version in described system, or described PE version cannot start, inquire about in described system to exist to control bridge CB version;
If there is described CB version, after the described CB version of startup, described PE load-on module is utilized to obtain and load PE version;
If do not exist, download described CB version from network side, and again obtain the mode of operation of described system after the download is complete.
2. the method for claim 1, is characterized in that, utilizes PE load-on module to obtain and loads PE version, be specially after the described CB version of startup:
Start described CB version and obtain the current mode of operation of described system;
When the mode of operation that described system is current is PE pattern, set up the running environment of described PE load-on module according to the start-up operation of described CB version;
Run described PE load-on module, do not obtain new PE version from network side when there is not described PE version in the system to make described PE module and load, or obtain new PE version from network side after the PE version completeness check failure existed in described system and load.
3. the method for claim 1, is characterized in that, downloads CB version, be specially from network side:
Described CB version is there is not in system described in prompting user;
Obtain described user based on described prompting from the CB version for starting described in network side download.
4. the method for claim 1, is characterized in that, before the mode of operation obtaining described system, also comprises:
By Bootware, initialization process is carried out to system;
Obtain the pattern information pre-set in described Bootware, and using the mode of operation of the pattern indicated by described pattern information as described system.
5. a system starting device, is characterized in that, comprising:
Acquisition module, for obtaining the mode of operation of described system;
Judge module, when the described mode of operation for obtaining at described acquisition module is ports-Extending plate PE pattern, judges whether there is PE version in described system, and is confirmed whether to start described PE version when judgement exists described PE version;
Enquiry module, for there is not described PE version in the system, or when described PE version cannot start, inquires about in described system whether to exist controlling bridge CB version;
Load-on module, for when there is described CB version, utilizes described PE load-on module obtain and load PE version after the described CB version of startup;
Determination module, for when there is not described CB version, downloading described CB version from network side, and again obtaining the mode of operation of described system after the download is complete.
6. equipment as claimed in claim 5, is characterized in that,
Described load-on module specifically for: start described CB version and obtain the current mode of operation of described system; When the mode of operation that described system is current is PE pattern, set up the running environment of described PE load-on module according to the start-up operation of described CB version; Run described PE load-on module, do not obtain new PE version from network side when there is not described PE version in the system to make described PE module and load, or obtain new PE version from network side after the PE version completeness check failure existed in described system and load.
7. equipment as claimed in claim 5, is characterized in that,
Described determination module, specifically for: when there is not described CB version, in system described in prompting user, there is not described CB version; And obtain described user based on described prompting from described in network side is downloaded for redefining the mode of operation of described system after the CB version that starts.
8. equipment as claimed in claim 5, is characterized in that, also comprise:
Initialization module, for carrying out initialization process by Bootware to system; Obtain the pattern information pre-set in described Bootware, and using the mode of operation of the pattern indicated by described pattern information as described system.
CN201410855456.6A 2014-12-31 2014-12-31 A kind of system start method and equipment Active CN104618145B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410855456.6A CN104618145B (en) 2014-12-31 2014-12-31 A kind of system start method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410855456.6A CN104618145B (en) 2014-12-31 2014-12-31 A kind of system start method and equipment

Publications (2)

Publication Number Publication Date
CN104618145A true CN104618145A (en) 2015-05-13
CN104618145B CN104618145B (en) 2018-05-08

Family

ID=53152436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410855456.6A Active CN104618145B (en) 2014-12-31 2014-12-31 A kind of system start method and equipment

Country Status (1)

Country Link
CN (1) CN104618145B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364446A (en) * 2011-11-17 2012-02-29 北京天地云箱科技有限公司 Embedded system, security upgrading method and running method for embedded system
CN103729597A (en) * 2014-01-16 2014-04-16 宇龙计算机通信科技(深圳)有限公司 System starting verifying method and device and terminal
US20140146660A1 (en) * 2011-08-16 2014-05-29 Hangzhou H3C Technologies Co., Ltd. Restarting a line card
CN104102520A (en) * 2014-07-25 2014-10-15 杭州华三通信技术有限公司 System startup method and device
CN104158709A (en) * 2014-08-06 2014-11-19 杭州华三通信技术有限公司 Optical module identification method and port extender

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140146660A1 (en) * 2011-08-16 2014-05-29 Hangzhou H3C Technologies Co., Ltd. Restarting a line card
CN102364446A (en) * 2011-11-17 2012-02-29 北京天地云箱科技有限公司 Embedded system, security upgrading method and running method for embedded system
CN103729597A (en) * 2014-01-16 2014-04-16 宇龙计算机通信科技(深圳)有限公司 System starting verifying method and device and terminal
CN104102520A (en) * 2014-07-25 2014-10-15 杭州华三通信技术有限公司 System startup method and device
CN104158709A (en) * 2014-08-06 2014-11-19 杭州华三通信技术有限公司 Optical module identification method and port extender

Also Published As

Publication number Publication date
CN104618145B (en) 2018-05-08

Similar Documents

Publication Publication Date Title
CN106681766B (en) Remote firmware upgrade control method and system
CN110083374B (en) Upgrade rollback method, system and terminal equipment
CN106648781B (en) Method and system for upgrading remote firmware of communication equipment
CN111694760B (en) Server system, flash memory module and method for updating firmware mapping file
CN103257878A (en) Cross-platform smooth transfer method of application program based on Cloud calculation
CN104052818A (en) Version upgrade method and device for mobile terminal
CN107832065A (en) Firmware upgrade method, water purifier, upgrade-system and readable storage medium storing program for executing
CN104978271A (en) Automatic upgrade pressure measurement method and system for Android system
CN110225078B (en) Application service updating method, system and terminal equipment
CN106547645B (en) Method for automatically restoring image file and server system
CN110535776B (en) Gateway current limiting method, device, gateway, system and storage medium
CN102479092A (en) Method and device for updating patch of software system
CN102880478A (en) Software updating method
CN109375953B (en) Operating system starting method and device
CN104572255A (en) Multilayer application hosting method, device and system
CN104270269A (en) Method for automatically configuring network cards
CN108170456A (en) The firmware upgrade method and device of electronic equipment
CN104618145A (en) System starting method and device
CN116257397A (en) Pressure testing method, pressure testing device, storage medium and pressure testing equipment
CN112015587A (en) Method and device for enhancing reliability of operating system
CN107391213A (en) A kind of method, apparatus of memory apparatus system upgrading and a kind of upgrade-system
CN113535202A (en) Charging pile upgrading method and device and charging pile system
CN106371882A (en) Method and device for loading configuration file
CN112463208A (en) Version management method and device, electronic equipment and storage medium
CN105278993A (en) Linux system based drive module upgrading method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant