Background technology
For computer software,, often need software is made amendment and upgraded, thereby form new software in order to correct some mistake in the software, improve the performance of software or to satisfy the user to the needs that software uses.Usually this new software that forms of making amendment is called the upgraded version software or the highest version software of former software on former basis of software, and will be called lowest version software with respect to highest version software as the former software of revising the basis.According to the each software version of institute's foundation and number of times of modification revised, software can be divided into first published software, second edition software or the like.Former software is first published software, and the software after first revision on the first published basis of software is second edition software, and amended once more software is third edition software or the like on the second edition basis of software, and the like.
Because new highest version software usually directly is installed in the computer system that lowest version software has been installed, perhaps for the continuous firing of assurance system, with the reasons such as standby version of lowest version software as the highest version software of trial run, in a computer system, the phenomenon of the software coexistence of a plurality of versions appears sometimes.How thereby these softwares being selected the operation of beginning appropriate software, is the ubiquitous problem of computer system with multiversion software.
In the prior art, all be to adopt manual operations to select the appropriate software version from multiversion software, promptly the software by the suitable version of operator's start-up by hand carries out follow-up operation.This manual method and apparatus of software version of selecting has following two shortcomings: at first, the real supervision when needing the operator that computer system is carried out, so that when the running software fault, the running software of another version of start-up by hand; Secondly, the characteristics of start-up by hand make this task be difficult to carry out Long-distance Control.
Therefore, need a kind of operations of operators that do not rely on, just method and the selection equipment that can select multiversion software.
Summary of the invention
In order to address the above problem, the invention provides the method for the selection multiversion software in a kind of computer system, comprise the steps:
Determining step, once whether successful operation of the software version of operation before being used to judge;
Select step, be used for when before judging once the operation the software version successful operation time, the software version that once moves before the selection when once the operation of the software version of operation is failed before judging, is selected the current version of lower version as this operation as the current version of this operation; And
The operation monitoring step, the described current version that is used for operating software, and its ruuning situation monitored, when the running software success of current version, close supervision to the running software situation, when the failure of the running software of current version, the software of described current version out of service, and start the selection of once new software version.
The present invention also provides the selection equipment of the selection multiversion software in a kind of computer system, comprising:
The judgment processing device, be used for reading the relevant preceding once software version information of operation from memory storage, once whether successful operation of the software version of operation before the judgement, before the judgment processing device is judged once during the software version successful operation of operation, then from memory storage, read the current version of this software version, it is sent into the operation of running software device as this operation;
Memory storage is used to store the software and the software version information thereof of a plurality of versions, and software version information is stored the preceding once state of operation of the software correspondence of each version; And
The running software device is used to move the software of the current version that the judgment processing device sends into, and when the software successful operation of current version, with the success status information stores in the memory storage in the software version information corresponding with this software version; And when the failure of the running software of current version, the status of fail information stores in the software version information corresponding with this software version, is started another time selection that the judgment processing device begins software version in the memory storage afterwards.
Need not the automatic selection that manual operations can realize multiversion software according to multiversion software automatic selecting method of the present invention and equipment.Thereby solved the manual defective of selecting software version in the prior art, improved the efficient and the reliability of system.
By the content below in conjunction with the description of the drawings and claims, and along with understanding more comprehensively of the present invention, other purposes of the present invention and effect will become and know more and easy to understand.
Embodiment
Below will be described in detail preferred implementation of the present invention with reference to the accompanying drawings, in the accompanying drawings, identical label is represented same or analogous parts.
Fig. 1 is the synoptic diagram according to the method for selection multiversion software of the present invention.Referring to Fig. 1, the method according to this invention starts from step S101.In step S102, judge the whether successful operation of software version of the preceding once operation in nonvolatile memory, store.In the present embodiment, the nonvolatile memory of employing for example is highly dense flash card, flash chip or hard disk etc., even these storeies can guarantee also can not lose the data that are stored in wherein under the situation of outage.
When in step S102 through judging, preceding once when the software version of operation moves successfully, flow process then shown in Figure 1 enters step S103.In step S103, select the current version of previous version as this operation.Afterwards, flow process enters step S104.At step S104, start the running software supervisory programme.Afterwards, at step S105, the software of the current version that operation is selected.And, judge whether the running software of current version is successful at step S106.When judgement moves successfully, flow process shown in Figure 1 enters step S107.At step S107, close the running software supervisory programme.Then, flow process shown in Figure 1 ends at step S108.
When at step S106, when the running software through judging current version was unsuccessful, flow process shown in Figure 1 entered step S109.At step S109, stop the operation of current version software, restart the selection of software version next time.At this moment, flow process is returned step S102, carries out the judgement of step S102 again.
When at step S102, when once the software version of operation did not have successful operation before judging, flow process then shown in Figure 1 entered step S110.At step S110, judge whether to exist than the preceding once lower version of software version of operation.When having more lowest version through judgement, flow process shown in Figure 1 enters step S111.At step S111, the low one-level version of the software version that once moves before the selection is as the current version of this operation.Afterwards, flow process enters step S104, and continues to carry out above-mentioned steps S104 and follow-up operation, monitoring step.
When at step S110, when not having more lowest version through judging, flow process then shown in Figure 1 enters step S112.At step S112, start diagnostic software, determine whether computer system is normal.Afterwards, flow process ends at step S108.
By foregoing description as can be known, can finish the automatic selection of computer system, solve the manual defective of selecting software version in the prior art, improve the efficient and the reliability of system multiversion software by method of the present invention.
The present invention also provides a kind of selection equipment of selecting multiversion software.Fig. 2 is the synoptic diagram according to the selection equipment 200 of selection multiversion software of the present invention.
As shown in Figure 2, selection equipment 200 comprises judgment processing device 201, memory storage 202 and running software device 203.
Judgment processing device 201 reads the relevant preceding once software version information of operation from memory storage 202, once whether successful operation of the software version of operation before the judgement.Before judgment processing device 201 is judged, once during the software version successful operation of operation, then from memory storage 202, read the current version of this software version, it is sent into running software device 203 move as this operation.When the software successful operation in the running software device 203, running software device 203 is sent the information of software version successful operation into memory storage 202, by memory storage 202 with the successful sign of this version operation be stored in the corresponding software version information of the software of this version in.
When the running software of running software device 203 operations was failed, running software device 203 these software versions out of service sent the operation failure signals to memory storage 202 simultaneously.By memory storage 202 with the sign of this version operation failure be stored in the corresponding software version information of the software of this version in.Afterwards, running software device 203 sends to judgment processing device 201 and starts the signal that another time software version is selected, thereby makes the once new version selection operation of running software device 203 beginnings.
The relevant preceding once software version information of operation that reads from memory storage 202 when judgment processing device 201 shows, before software version when failure operation of operation once, then judgment processing device 201 retrieve from memory storage 202 and whether is had the lower version of software version that once moves than preceding.When not having lower software version by retrieval, judgment processing device 201 starts diagnostic routine whole computer system is diagnosed.When having lower software version by retrieval, judgment processing device 201 reads the low one-level version of the software version of last operation from memory storage 202, with its current version as this operation, send into running software device 202 and move, and carry out operations such as above-mentioned similar operation, information stores by running software device 203.
Among the present invention, memory storage 202 is for example to be nonvolatile memories such as highly dense flash card, flash chip or hard disk.
Selection equipment 200 according to the present invention has been realized the automatic selection of multiversion software.
According to method and the selection equipment that is used to select multiversion software of the present invention, the situation of the system software of a plurality of versions that are particularly useful for coexisting simultaneously in the computer system.Utilize method and the selection equipment that is used to select multiversion software of the present invention, computer system can be when each start-up system, automatically select to use optimal system software, the software of highest version makes when can't normally move, can automatically select system software restarting systems successively, for the normal operation of system with stablely provide a kind of reliable method and apparatus than lowest version.
Do not depart from the scope of the present invention and conceive, can make multiple change and distortion the present invention.The invention is not restricted to previous embodiment.Scope of the present invention is limited by appended claims.