A kind of realization system and method for equipment software upgrading robotization
Technical field
The present invention relates to the upgrading robotization of software, relate in particular to a kind of realization system and method for equipment software upgrading robotization.
Background technology
At present, the upgrading of device software in the commercial system (such as server apparatus software), generally by the mode of research staff with the upgrading Guide Book, upgrade step and method of operating are offered the upgrading scene, updating operation person finishes whole upgrade process according to the upgrading Guide Book.
The general step of upgrading is as follows:
1) updating operation person needs the upgrading software file according to the upgrading Guide Book on the alternate device;
2) upgraded version with software is copied to the equipment that needs upgrading;
3) according to upgrading Guide Book, the configuration file of software and the configuration file in the version on the comparative apparatus, the configuration file in the revision;
4) stop the operation of this software and related software;
5) according to the upgrading Guide Book, use new file and amended configuration file in the upgraded version, targetedly the file of this software on increase or the overlay device;
6), whether select restarting equipment according to the upgrading Guide Book;
7) start this software and related software;
8) according to the upgrading Guide Book, check the running status of software, if operation is normal, upgrading finishes, and changes step 10) then; Otherwise, continue;
9) if operation exception and can't solving, updating operation person is according to the upgrading Guide Book, the backup file on the employing equipment carries out rollback to updating operation;
10) the upgrading daily record of recovery software sends to the research staff and analyzes updating result.
Because the operating system of equipment possibility kind is a lot, and the various softwares that move on the equipment, its programming language and implementation method are had nothing in common with each other, so there is very big-difference in the updating operation of each device software.Updating operation person often needs the upgrading Guide Book according to the different operating system of each equipment and different software, adopts manual mode to carry out updating operation.Therefore, the upgrading of device software is higher to operator's technical requirement, and complicated operation, the particularly software upgrading of distributed server equipment, the upgrade job amount is big, and the time is long, tend to occur the upgrade failure that causes owing to the manual operations error, have a strong impact on professional normal use.
The part software consideration has been realized the upgrading robotization of software self to above problem, reduces operator's manual operations.But in actual applications, a plurality of softwares are installed on the equipment, often need carry out during upgrading, need the operator that the escalation process of each software is carried out human intervention inevitably according to certain rule and order; And the upgrading robotization of each software is from software self, and its implementation is varied.Therefore, the upgrading robotization that software self is realized can not fundamentally solve the equipment software upgrading complicated operation, too relies on updating operation person's the manual operations and the problem of individual skill.
Summary of the invention
The invention provides a kind of realization system and method for equipment software upgrading robotization, must not fundamentally solve the equipment software upgrading complicated operation, too rely on updating operation person's the manual operations and the problem of individual skill to separate.
In order to solve the problems of the technologies described above, the present invention at first provides a kind of realization system of equipment software upgrading robotization, it is characterized in that, described system comprises that the parton system is described in upgrading, upgrade control section subsystem and updating operation parton system, wherein:
The parton system is described in described upgrading, is used for preserving the upgrading descriptor; Described upgrading descriptor comprises updating apparatus information, the upgrade step of software and method of operating, and the state of each step and the result of operation in the device upgrade;
Described upgrading control section subsystem, describing the parton system with described upgrading links to each other, being used for that the upgrading descriptor that the parton system preserves is described in described upgrading resolves and data recombination, and described updating apparatus information, upgrade step, method of operating by obtaining, and state and object information carry out flow process control to whole upgrade process, then to updating operation parton system transmit operation information;
Described updating operation parton system, link to each other with described upgrading control section subsystem, be used to receive described operation information, resolve described operation information and become operational order, carry out described operational order then, and operating result fed back to described upgrading control section subsystem, realize the robotization of upgrading control.
Further, said system also can have following characteristics: described upgrading is described the parton system and is comprised updating apparatus description document module, software upgrading step description document module and device upgrade operation control file module, wherein:
Described updating apparatus description document module is used to the network information and the software information of the equipment of describing;
Described software upgrading step description document module is used for describing described software and needs upgrade step and the concrete operations carried out at escalation process;
Described device upgrade operation control file module is used to describe operation steps and the concrete operations that need all softwares of upgrading on the described equipment, and by the upgrading order and the upgrade step of each software updating operation is sorted, this module is also as the log file module of step state during upgrading and operating result simultaneously.
Further, said system also can have following characteristics: described updating apparatus description document module, software upgrading step description document module and device upgrade operation control file module all adopt extend markup language to be described by user-defined format.
Further, said system also can have following characteristics: described upgrading control section subsystem comprises document processing module, upgrading control module and upgrading communication module, wherein:
Described document processing module is used to realize the upgrading descriptor of described updating apparatus description document module and software upgrading step description document module is resolved and the information reorganization, and described information reorganization generates the descriptor and the upgrading flow process control data information of described device upgrade operation control file module;
Described upgrading control module is used for the upgrading flow process control data information according to described document processing module generation, carries out procedure control and state recording, and status information is solidificated in the described device upgrade operation control file module;
Described upgrading communication module is used to realize the communication between updating operation machine and the updating apparatus, comprises communication modes control, the transmission of message and receive and realize the control of communication link and maintenance.
Further, said system also can have following characteristics: described updating operation parton system comprises operation information parsing module, operation executing module and operating result processing module, wherein:
The operation information that described operation information parsing module is used for being responsible for described upgrading control section subsystem sends is resolved, and is converted into the operational order of updating apparatus;
Described operation executing module is used for being responsible for the execution realization and the operating result feedback of operational order;
Described operating result processing module is used for operating result is carried out intelligent decision, and judged result is fed back to described upgrading control section subsystem.
Further, said system also can have following characteristics: the method for operating that the software that the parton system is used to describe is described in described upgrading comprises file operation, file operation, script executing operation, process start stop operation and equipment reboot operation.
Further, said system also can have following characteristics: the upgrade step of described software is the preceding preparation of upgrading, updating operation and upgrading aftertreatment three phases, and wherein, the preparatory stage is the software document backup before the described upgrading, upgraded version issues, and configuration file is revised three steps; The described updating operation stage is that software stops, and software document is replaced, and equipment is restarted, four steps of software startup; Described upgrading post-processing stages is the updating result inspection, the upgrading rollback, and three steps are reclaimed in the upgrading daily record.
The implementation method of equipment software upgrading robotization provided by the invention comprises the steps:
(1) in upgrading preservation upgrading descriptor in the parton system is described; Described upgrading descriptor comprises updating apparatus information, the upgrade step of software and method of operating, and the state of each step and the result of operation in the device upgrade;
(2) upgrading control section subsystem is described the upgrading descriptor that the parton system preserves to described upgrading and is resolved and data recombination, and described updating apparatus information, upgrade step, method of operating by obtaining, and state and object information carry out flow process control to whole upgrade process, then to updating operation parton system transmit operation information;
(3) after described updating operation parton system is received, resolve described operation information and become operational order, carry out described operational order then, and operating result is fed back to described upgrading control section subsystem, realize the robotization of upgrading control.
Further, said method also can have following characteristics: in the step (1), described upgrading is described the parton system and is adopted extend markup language to describe updating apparatus information by user-defined format, the upgrade step of software and method of operating, and the state of each step and the result of operation in the device upgrade.
Further, said method also can have following characteristics: described method of operating comprises file operation, file operation, script executing operation, process start stop operation and equipment reboot operation.
Further, said method also can have following characteristics: the upgrade step of described software is the preceding preparation of upgrading, updating operation and upgrading aftertreatment three phases, and wherein, the preparatory stage is the software document backup before the described upgrading, upgraded version issues, and configuration file is revised three steps; The described updating operation stage is that software stops, and software document is replaced, and equipment is restarted, four steps of software startup; Described upgrading post-processing stages is the updating result inspection, the upgrading rollback, and three steps are reclaimed in the upgrading daily record.
The present invention realizes by conclusion and the robotization to upgrade step and updating operation, makes updating operation person free from heavy updating operation, has also reduced the human risks that manual updating operation is brought simultaneously.
Description of drawings
Fig. 1 is a upgrading stage synoptic diagram;
Fig. 2 is preparation process figure before the upgrading;
Fig. 3 is the updating operation block diagram;
Fig. 4 is upgrading post-processing step figure;
Fig. 5 is that application example upgrading robotization of the present invention realizes the system architecture synoptic diagram;
Fig. 6 is an application example upgrading robotization implementation method process flow diagram of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments technical scheme of the present invention is described in detail.
The present invention conceives as follows: at first the upgrade step of software and method of operating etc. are described, carry out step by step according to step and the method for operating described then, to realize the upgrading robotization of software.According to ten steps of equipment software upgrading, as shown in Figure 1, the present invention is divided into three phases to escalation process:
1) prepare S10 before the upgrading and be divided into three steps (as shown in Figure 2): software document backup S11, upgraded version issues S12, and configuration file is revised S13;
2) updating operation S20 is divided into four steps (as shown in Figure 3): software stops S21, and software document is replaced S22, and equipment is restarted S23, software startup S24;
3) upgrading aftertreatment S30 is divided into three steps (as shown in Figure 4): updating result is checked S31, upgrading rollback S32, and S33 is reclaimed in the upgrading daily record.
According to the practical operation situation of equipment software upgrading, the present invention is divided into five types to the operation that relates in the escalation process: file operation, file operation, script executing operation, process start stop operation, equipment reboot operation.
According to three phases and five kinds of updating operation of above conclusion, the present invention is divided into three subsystems to the robotization realization system of equipment software upgrading: the parton system is described in upgrading, upgrading control section subsystem and updating operation parton system, wherein:
The parton system is described in described upgrading, is used to describe updating apparatus information, the upgrade step of software and method of operating, and the state of each step and the result of operation in the device upgrade;
Described upgrading control section subsystem, describing the parton system with described upgrading links to each other, the upgrading descriptor that is used for described upgrading is described the parton system is resolved and data recombination, and described facility information, upgrade step, method of operating by obtaining, and state and object information, whole upgrade process is carried out flow process control, then to updating operation parton system transmit operation information;
Described updating operation parton system, link to each other with described upgrading control section subsystem, be used to receive described operation information, resolve described operation information and become operational order, carry out described operational order then, and operating result fed back to described upgrading control section subsystem, to realize the robotization of upgrading control.
Above-mentioned upgrading is described the parton system by to the upgrade step and the method for operating of software, and the state of each step and the result of operation are described in the device upgrade, to realize the upgrading robotization of software.Wherein, method of operating respective file operation, file operation, script executing operation, process start stop operation, equipment reboot operation; The upgrade step of above-mentioned software is divided into the preceding preparation of upgrading, updating operation and upgrading aftertreatment three phases.
XML (Extensible Markup Language, extend markup language) is a kind of received text form that can represent structured message, it does not have complex grammar and comprehensive data definition, and the mark that can define oneself replaces predefined label sets.Simultaneously, the XML technology have cross-platform, irrelevant with concrete programming language, information representation is abundant and handle flexible characteristic.Can realize utilizing the XML technology to carry out the equipment software upgrading relevant information describes.And during upgrading in device software, by upgrading tool by understanding the robotization control that the upgrading descriptor realizes upgrading.
As shown in Figure 5, be that application example upgrading robotization of the present invention realizes the system architecture synoptic diagram, this system comprises that the parton system is described in upgrading, upgrade control section subsystem and updating operation parton system, wherein:
Described upgrading is described the parton system and is comprised updating apparatus description document module, software upgrading step description document module and device upgrade operation control file module, and these three modules all adopt extend markup language to be described by user-defined format.Wherein: described updating apparatus description document module is used to the network information and the software information of the equipment of describing; Described software upgrading step description document module is used for describing described software and needs upgrade step and the concrete operations carried out at escalation process; Described device upgrade operation control file module is used to describe operation steps and the concrete operations that need all softwares of upgrading on the described equipment, and by the upgrading order and the upgrade step of each software updating operation is sorted, this module is also as the log file module of step state during upgrading and operating result simultaneously.
Described upgrading control section subsystem is described the parton system with described upgrading and is linked to each other, comprise document processing module, upgrading control module and upgrading communication module, wherein: described document processing module is used to realize the upgrading descriptor of described updating apparatus description document module and software upgrading step description document module is resolved and the information reorganization, and described information reorganization generates the descriptor and the upgrading flow process control data information of described device upgrade operation control file module; Described upgrading control module is used for the upgrading flow process control data information according to described document processing module generation, carries out procedure control and state recording, and status information is solidificated in the described device upgrade operation control file module; Described upgrading communication module is used to realize the communication between updating operation machine and the updating apparatus, comprises communication modes control, the transmission of message and receive and realize the control of communication link and maintenance.
Described updating operation parton system links to each other with described upgrading control section subsystem, comprise operation information parsing module, operation executing module and operating result processing module, wherein: the operation information that described operation information parsing module is used for being responsible for described upgrading control section subsystem sends is resolved, and is converted into the operational order of updating apparatus; Described operation executing module is used for being responsible for the execution realization and the operating result feedback of operational order; Described operating result processing module is used for operating result is carried out intelligent decision, and judged result is fed back to described upgrading control section subsystem.
Based on above system, as shown in Figure 6, application example upgrading robotization implementation method flow process of the present invention comprises the steps:
Step 601, upgrading are described the parton system and are at first adopted extend markup language to describe updating apparatus information by user-defined format, the upgrade step of software and method of operating, and the state of each step and the result of operation in the device upgrade;
Step 602, the upgrading descriptor that upgrading control section subsystem is described the parton system to described upgrading is resolved and data recombination, and described facility information, upgrade step, method of operating by obtaining, and state and object information, whole upgrade process is carried out flow process control, then to updating operation parton system transmit operation information;
Step 603 after described updating operation parton system is received, is resolved described operation information and is become operational order, carries out described operational order then, and operating result is fed back to described upgrading control section subsystem, to realize the robotization of upgrading control.
By above application example, the information substitution updating operation Guide Book that the research staff describes with updating apparatus description document module and software upgrading step description document module is described the upgrade step and the concrete operations of software.Updating operation person introduces the robotization control that above two description document modules realize equipment software upgrading by upgrading tool.
Scheme of the present invention is not restricted to listed utilization in instructions and the embodiment.Concerning the technology of the present invention those of ordinary skill in the field, can make various corresponding changes and distortion according to the present invention, and all these corresponding changes and distortion all belong to the protection domain of claim of the present invention.