CN104572151B - The processing method of anomalous event, apparatus and system - Google Patents

The processing method of anomalous event, apparatus and system Download PDF

Info

Publication number
CN104572151B
CN104572151B CN201310499429.5A CN201310499429A CN104572151B CN 104572151 B CN104572151 B CN 104572151B CN 201310499429 A CN201310499429 A CN 201310499429A CN 104572151 B CN104572151 B CN 104572151B
Authority
CN
China
Prior art keywords
installation
software
template
tool
mount message
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.)
Active
Application number
CN201310499429.5A
Other languages
Chinese (zh)
Other versions
CN104572151A (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.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310499429.5A priority Critical patent/CN104572151B/en
Publication of CN104572151A publication Critical patent/CN104572151A/en
Application granted granted Critical
Publication of CN104572151B publication Critical patent/CN104572151B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a kind of processing method of anomalous event, apparatus and system, the method includes:The installation procedure template of installation software is obtained, the installation procedure template includes:The installation operation of template basic information and the software;The installation procedure template is parsed, triggering installation tool installs the software according to the installation operation;Obtain the mount message installed and execute the installation operation in the software process;When the mount message of the installation operation occurs abnormal, the abnormal mount message is handled using the processing strategy of storage.When the embodiment of the present invention solves existing software installation exception, the technical issues of increasing the workload of administrator, working efficiency caused to reduce.

Description

The processing method of anomalous event, apparatus and system
Technical field
The present invention relates to network technique field, more particularly to a kind of processing method of anomalous event, apparatus and system.
Background technology
With the development of network technology and the continuous expansion of cluster scale, the node size that system manager faces is increasingly Greatly, especially virtualization technology is gradual general, and user increasingly increases the scale demand of virtual cluster, so, for hardware Batch installation and the process automation of tissue, operating system and software become a urgent problem to be solved.
Currently, in the prior art, although configuration, the operating system of hardware can in batches be installed by puppet, xcat And software.But Puppet and xcat, which are the batches for realizing software by simply ordering, to be installed.Wherein, Puppet It is that C/S frameworks, user is used to establish configuration file in server-side, arrives server-side load configuration first when client terminal start-up is installed File carries out software installation then according to the configuration file of load.It is exactly mainly with object-oriented in server-side configuration script The a variety of different resources of formal definition, each resource have respective attribute.A kind of usually resource includes:Title, system user letter Breath, the information such as permission.And Puppet can unify multiple resources into a configuration file, to realize that various software is pacified Dress.
In the research and practice process to the prior art, it was found by the inventors of the present invention that in existing realization method, Only software package is installed in simple load to Puppet and xcat, provides related installation results;Although providing to the simple of result Processing capacity, but the not customization to entire installation procedure and treatment mechanism, need administrator extremely for common installation It solves, increases the workload of administrator, reduce working efficiency.
Invention content
A kind of processing method of anomalous event, apparatus and system are provided in the embodiment of the present invention, to solve existing software When installation is abnormal, the technical issues of increasing the workload of administrator, working efficiency caused to reduce.
In order to solve the above-mentioned technical problem, the embodiment of the invention discloses following technical solutions:
First aspect provides a kind of processing method of anomalous event, the method includes:
The installation procedure template of installation software is obtained, the installation procedure template includes:Template basic information and described soft The installation operation of part;
The installation procedure template is parsed, triggering installation tool installs the software according to the installation operation;
Obtain the mount message installed and execute the installation operation in the software process;
When the mount message of the installation operation occurs abnormal, using the processing strategy of storage to the abnormal installation Information is handled.
In the first possible realization method of first aspect, the method further includes:
Obtain the software of registration and the perform script of the software;
The installation procedure template of the software is installed according to the user demand setting received.
With reference to first aspect or the first possible realization method of first aspect, in second of possible realization method In, the triggering installation tool installs the software according to the installation operation, including:
It triggers installation tool and locally-installed or Remote Installation is carried out to the software according to the installation operation.
With reference to first aspect or the first or second of possible realization method of first aspect, in the third possible reality In existing mode,
The triggering installation tool is locally-installed to software progress according to the installation operation, including:Triggering is local Installation tool check for install the software environmental variance operation, if it does, being pressed using the installation tool The software is installed according to the installation operation, if it does not, the environmental variance operation of the software is installed in setting, and The software is installed according to the installation operation using the installation tool;
The triggering installation tool carries out Remote Installation according to the installation operation to the software, including:Triggering is long-range Installation tool check for install the software environmental variance operation, if it does, being pressed using the installation tool The software is installed according to the installation operation, if it does not, the environmental variance operation of the software is installed in setting, and The software is installed according to the installation operation using the installation tool.
With reference to first aspect or the first or second or the third possible realization method of first aspect, at the 4th kind In possible realization method, the processing strategy includes:User installs abnormal alarm and action defined in policy system, In, the alarm is:By the anomalous event in software installation process;The action is to need the behaviour executed after the alarm triggered Make.
Second aspect provides a kind of processing unit of anomalous event, and the processing unit includes:
First acquisition unit, the installation procedure template for obtaining installation software, the installation procedure template include:Template The installation operation of essential information and the software;
Resolution unit obtains the template basic information and the software for parsing the installation procedure template Installation operation;
Installation unit installs the software according to the installation operation for triggering installation tool;
Second acquisition unit installs the mount message that the installation operation is executed in the software process for obtaining;
Abnormality processing control unit, for when the mount message of the installation operation occurs abnormal, utilizing the place of storage Reason strategy handles the abnormal mount message.
In the first possible realization method of second aspect, further include:
Third acquiring unit, the perform script of software and the software for obtaining registration;
Setting unit, the installation procedure template for installing the software according to the user demand setting received.
In conjunction with the possible realization method of the first of second aspect or second aspect, in second of possible realization method In, the installation unit includes:
First installation unit carries out installation progress originally according to the installation operation for triggering installation tool to the software It installs on ground;And/or
Second installation unit carries out installation progress far according to the installation operation for triggering installation tool to the software Journey is installed.
In conjunction with the first or second of possible realization method of second aspect or second aspect, in the third possible reality In existing mode,
First installation unit is specifically used for the locally-installed tool of triggering and checks that local whether there is installs the software Environmental variance operation, if it does, being installed to the software according to the installation operation using the installation tool, such as Fruit is not present, and the environmental variance operation of the software is installed in setting, and using the installation tool according to the installation operation pair The software is installed;And/or
Second installation unit is specifically used for triggering Remote Installation tool and checks that long-range whether there is installs the software Environmental variance operation, if it does, being installed to the software according to the installation operation using the installation tool, such as Fruit is not present, and the environmental variance operation of the software is installed in setting, and using the installation tool according to the installation operation pair The software is installed.
In conjunction with the first or second or the third possible realization method of second aspect or second aspect, at the 4th kind In possible realization method, the processing strategy of the policy system storage of the abnormality processing control unit control includes:With Installation of the family defined in policy system abnormal alarm and action, wherein the alarm is:It will be different in software installation process Ordinary affair part;The action is to need operation to be performed after the alarm triggered.
The third aspect provides a kind of processing system of anomalous event, the system comprises:Template system, software installation system System and policy system, wherein
The template system, the perform script of software and the software for obtaining registration, according to the use received The installation procedure template of the software is installed in family demand setting, and the installation procedure template includes:It is template basic information, described soft The installation operation of part;The installation procedure template is parsed, and the software installation system is asked to be installed according to the installation operation The software;
The software installation system, for installing the software according to the installation operation according to the request, and to institute State the mount message that the installation operation is executed in template system feedback installation process;
The template system is additionally operable to execute the installation behaviour in the installation process for receiving the software installation system feedback The mount message of work;And judge whether the mount message is abnormal, and the abnormal mount message transmission strategy will occur and be System;
The policy system, for when receiving the mount message for the appearance exception that the template system is sent, passing through The processing strategy of storage handles the exception, and result is sent to the template system by treated, to complete State the installation of software.
In the first possible realization method of the third aspect, the template system includes:The processing of anomalous event fills It sets, the processing unit of for example above-mentioned anomalous event of processing unit of the anomalous event.
By technical solution disclosed above it is found that in the embodiment of the present invention, the installation operation flow for installing software is arranged In installation procedure template, and by parsing installation procedure template triggering to the installation process of the software, and using setting The processing strategy set automatically processes the anomalous event in the software installation process, reduces the workload of administrator, It improves work efficiency.
Description of the drawings
It in order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, below will be to institute in embodiment Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of flow chart of the processing method of anomalous event provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of the processing unit of anomalous event provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of the processing system of anomalous event provided in an embodiment of the present invention;
Fig. 4 is a kind of flow chart of the application example of the processing method of anomalous event provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Whole description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of the processing method of anomalous event provided in an embodiment of the present invention, it is described Method includes:
Step 101:The installation procedure template of installation software is obtained, the installation procedure template includes:Template basic information With the installation operation of the software;
Wherein, the template basic information includes:Name, version and description;The installation operation includes:Software resource is retouched It states and is described with operating system.
The software resource describes:Title, Version Description, unique mark, installation order or perform script, installation are suitable Sequence(It can be determined according to the sequence of definition), installation environment information (dependence operating system), custom software information.
The operating system describes:Title, Version Description, unique mark, installation order or perform script, mounting ring Border information(Hardware configuration, CPU etc.), self-defining operation system information.
Certainly, user can also define any type parameter, including parameter name, default value.Wherein, the parameter can be with It is to execute order, enters ginseng in calling script or software installation process, user can be in any position in installation procedure template Change parameter information when setting and quote these parameters, and using every time.
These above-mentioned information are to install the necessary parameter of software, and software installation system can be corresponding according to these INFORMATION DISCOVERYs Software and perform script, and execute installation operation.
Optionally, before step 101, the method can also include:Obtain the software and the software registered Perform script;The installation procedure template of the software is installed according to the user demand setting received.
That is, software provider first passes through, platform is registered in advance in the template system of server to be needed to execute installation Software installation operation process, and in the policy system of server pre-define the software occur during the installation process Processing strategy when various abnormal.
Software user is needed in the one or more software installation to system for providing software provider, is formed The administrator of operation system is responsible for the installation form of design software, is customized flow, the present embodiment is known as installation procedure mould Plate.
In this embodiment, software provider and software user can be same users, can also be different user.
Later, the template system of server can just obtain the installation procedure template of installation software.
Step 102:Parse the installation procedure template, triggering installation tool according to the installation operation to the software into Row installation;
In the step, the template system parses the installation procedure template, obtains in the installation procedure template Template basic information and the software installation operation flow.Later, triggering software installation system is grasped according to the installation Make flow and the software is installed;Then, software installation system is pacified by the installation tool of itself according to the installation operation flow Fill the software;Meanwhile installation system, during installing the software, record executes the installation letter of the installation operation Breath;And the mount message is fed back into template system, or after receiving template system and asking the mount message, it will be described Mount message is sent to the template system.
Wherein, in the embodiment, triggering installation tool can carry out local peace according to the installation operation to the software Dress, can also carry out Remote Installation.
Optionally, software installation system in a pre-installation, needs first to detect environment and whether there is the installation software Environmental variance operates;If it does, software installation system carries out the software according to the installation operation using installation tool Installation, if it does not, the environmental variance operation of the software is installed in setting, and using the installation tool according to the installation The software is installed in operation.
Step 103:Obtain the mount message that the installation operation is executed during installing the software;
In the step, the mode of acquisition is divided into active obtaining, or passive obtains, wherein active obtaining is:Template system connects Receive the mount message of the execution installation operation of software installation system feedback;Passively it is retrieved as:Template system is pacified to software Dress system sends the request for obtaining the mount message for executing the installation operation, and receives the software installation system feedback Including the mount message(It is referred to as return value, similarly hereinafter)Response.
Step 104:When the mount message of the installation operation occurs abnormal, using the processing strategy of storage to described different Often handled.
Template system, if the mount message is abnormal, illustrates the mount message after getting the mount message There is exception in corresponding installation operation, then the policy system is notified to search the corresponding processing plan of the abnormal mount message Slightly, and using processing strategy is found the abnormal mount message is handled, and the result of processing is fed back into template System.Wherein, it has been known skill to those skilled in the art according to processing strategy to the abnormal technology handled Art, details are not described herein.
The processing strategy includes:User installs abnormal alarm and action defined in policy system, wherein
The alarm:User can be by the particular event in software installation process(Such as anomalous event)It is defined as alerting. Alarm includes output information, Rule of judgment, dependence strategy etc..The output information can install the output information of software, letter Breath is returned by User Defined script or software installation system.Rule of judgment can be system default or User Defined.With Family can be quoted in installation procedure template with specific mode.User can also self-defined Rule of judgment and by self-defined item simultaneously It is that software installation system alerts, and it refers to that alarm needs the tactful ID lists set out to rely on strategy that part, which is submitted,.
The action:Refer to needing operation to be performed after alarm triggered, including but not limited to log recording, provides prompt letter Breath;Send mail;Send short message;Acquiescence abnormality processing action including but not limited to:Lack jar APMB packages, connects jar automatically Parcel downloads jar file;Network communication fails, and repeatedly retries;Network interface shields, and automatically turns on network interface;User can make action by oneself, Such as:Order or User Defined script etc. are executed, corresponding processing procedure is executed.
In the embodiment of the present invention, the installation operation flow for installing software is arranged in installation procedure template, and pass through solution Installation process of the installation procedure template triggering to the software is analysed, and using the processing strategy being arranged to the software installation Anomalous event in the process is automatically processed, and is reduced the workload of administrator, is improved work efficiency.
The embodiment of the present invention also provides a kind of processing unit of anomalous event, and structural schematic diagram is as shown in Fig. 2, the dress Set including:First acquisition unit 21, resolution unit 22, installation unit 23, second acquisition unit 24 and abnormality processing control unit 25.Wherein,
The first acquisition unit 21, the installation procedure template for obtaining installation software, the installation procedure template packet It includes:The installation operation of template basic information and the software;Wherein, the template basic information includes:It name, version and retouches It states;Obtain the installation operation include:Software resource describes and operating system description.
The resolution unit 22, for parsing the installation procedure template;Obtain the essential information in installation procedure template With the installation operation of the software;
The installation unit 23, for after resolution unit parses the installation procedure template, triggering installation tool to be to institute Software is stated to be installed according to the installation operation;
The second acquisition unit 24 installs the installation letter that the installation operation is executed in the software process for obtaining Breath;
The abnormality processing control unit 25, for when the mount message of the installation operation occurs abnormal, notifying plan Slightly system is handled the abnormal mount message according to the processing strategy of storage.Wherein, the processing strategy includes:With Family is installed by abnormal alarm and action defined in policy system, wherein the alarm is:By the exception in software installation process Event;The action is to need operation to be performed after the alarm triggered.But it is not limited to this, and the processing strategy can also wrap Other parameters are included, the present embodiment is not restricted.
Optionally, in another embodiment, on the basis of the above embodiments, described device can also wrap the embodiment It includes:Third acquiring unit and setting unit, wherein
The third acquiring unit, the perform script of software and the software for obtaining registration;The setting is single Member, the installation procedure template for installing the software according to the user demand setting received.
Optionally, the installation unit includes:First installation unit and/or the second installation unit, wherein
First installation unit is installed into the software according to the installation operation for triggering installation tool Row is locally-installed;It is checked specifically for the local installation tool of triggering local with the presence or absence of the environmental variance behaviour for installing the software Make, if it does, being installed to the software according to the installation operation using the installation tool, if it does not, setting The environmental variance operation for installing the software is set, and the software is carried out according to the installation operation using the installation tool Installation.
Second installation unit carries out installation progress far according to the installation operation for triggering installation tool to the software Journey is installed;It is checked remotely with the presence or absence of the environmental variance operation for installing the software, such as specifically for triggering Remote Installation tool Fruit exists, and is installed to the software according to the installation operation using the installation tool, if it does not, setting installation The environmental variance of the software operates, and is installed to the software according to the installation operation using the installation tool.
The function of each unit and the realization process of effect refer to the realization that step is corresponded in the above method in described device Process, details are not described herein.
A kind of processing system of anomalous event provided in an embodiment of the present invention, structural schematic diagram is as shown in figure 3, the system System includes:Template system 31, software installation system 32 and policy system 33, wherein
The template system 31, the perform script of software and the software for obtaining registration, according to what is received The installation procedure template of the software is installed in user demand setting, and the installation procedure template includes:It is template basic information, described The installation operation of software;The installation procedure template is parsed, and asks the software installation system according to the installation of the software Operation is installed;
Wherein, the template basic information includes:Name, version and description etc.;The installation operation includes:Software resource Description and operating system Miao Shu Eng.
In the embodiment, template system provides customization and the analytic ability of template, and the installation procedure of control software leads to Know software installation system installation software and handle specified exception using policy system, completes installation process.Template system mainly wraps It includes:Template parse, the registration of software and script, task distribution, etc. functions.May include one or more installations in template system Flow template.
The structure of installation procedure template:
Template basic information:Name, version, description.
Mount message:Software resource describes, operating system description.
Software resource describes:Title, Version Description is unique to indicate, installation order or perform script, erection sequence(It can be with It is determined according to the sequence of definition), installation environment information (dependence operating system), custom software information.
Operating system describes:Title, Version Description is unique to indicate, installation order or perform script, installation environment information (Hardware configuration, CPU), self-defining operation system information.
User can define any type parameter, including parameter name, default value.
Parameter can execute order, enter ginseng in calling script or software installation process, user can be in a template Any position quote these parameters, and while using every time, changes parameter information.
These information are to install the necessary parameter of software, and software installation system can be soft accordingly according to these INFORMATION DISCOVERYs Part and perform script, and execute installation operation.
The software installation system 32, for being installed according to the installation operation of the software according to the request, and The mount message that the installation operation is executed in installation process is fed back to the template system;
In the embodiment, software installation system is mainly responsible for installation software, and interpretation of records software installation process executes installation The mount message of operation returns to mount message.It specifically can be by the installation tool of existing software, such as:Puppet and xcat etc., Realize the installation of software.
Wherein, software installation system is broadly divided into:Software distributes module, software installation module and software installation process Information acquisition module.
Wherein, software distributes module and is mainly responsible for is sent to target machine by software;Software installation module is responsible for installing software, Remote Installation or locally-installed may be used for software installation module.Information acquisition module is responsible for believing in software installation process The collection of breath.Wherein, described information includes:The items of target machine are soft or hard where output information and software in software installation process Part performance indicator.Such as:CPU, memory, operating system etc..
The deployment of software systems:Software is distributed as server-side, and software installation system is pacified if being deployed in server-side Dress system uses Remote Installation, using locally-installed if installation system is deployed on target machine;Information acquisition module then divides To acquire and arranging.Mainly on target machine by disposing agent gathered datas, the arrangement of information can take for the acquisition of information Business end.The acquisition and arrangement of information are realized by network transmission.
The template system 31 is additionally operable to execute the installation in the installation process for receiving the software installation system feedback The mount message of operation;Judge whether the mount message of the installation operation is abnormal, and is sent there is abnormal mount message The policy system;
The policy system 33, for when receiving the mount message for the appearance exception that the template system is sent, leading to The processing strategy for crossing storage handles the abnormal mount message, and result is sent to the template system by treated System;The installation of software is completed.
The processing strategy includes:Alarm in user-defined policies system and action, wherein the alarm is:It will be soft Anomalous event in part installation process;The action is to need operation to be performed after the alarm triggered.
Wherein, the template system includes:The processing unit of anomalous event, the processing unit institute as above of the anomalous event The processing unit for the anomalous event stated, wherein the function of each unit and each unit that the processing unit includes and Effect refers to above-mentioned, and details are not described herein.
In the embodiment, present policy system registration policy is needed, user can register customized script, if user Registration Script will produce a unique mark, and user can fill in unique mark to quote foot when defining installation procedure template This, or fill in the fixed route of script.Policy system judges alarm and executes action.Receive the plan of template system initiation Slightly execute request(I.e. abnormal processing request), and definition strategically executes corresponding script or flow.User can be certainly Definition process flow, and the process flow defined is registered in policy system, policy system can be with return type, in order to user The strategy of the type is quoted in installation procedure template makes abnormality processing flow can to cure the ability of abnormality processing flow It reuses.
Certainly, in policy system, alarm event can also be defined, in the process normal event(Such as:Installation process there may be Input and output event), anomalous event(Issuable anomalous event in installation process)Deng.
The present embodiment illustrates by taking anomalous event trigger process as an example:
Action definition explanation:
Default-action:User need to only select type of action, such as:Warning information is provided, mail messaging is sent.
User makes action by oneself:User, which can select to execute, orders or calls script.
For executing order, user writes direct order in template.
For Script Action, template can be written in the absolute path of script or relative path by user.Or by script It is registered to system in the form of software, as long as by the mark logging template after registration.
For wanting execution script user that can be supplied to system, system can be by registration in deployment by resource registering Script uniform packing is disposed, and user specifies the absolute path or relative path of script in alarm action.System is in deployment It will not need user that script is put into the definition position in template script unified plan.
For the ease of the understanding of those skilled in the art, illustrated below with specific example.
Referring to Fig. 4, being a kind of flow of the application example of the processing method of anomalous event provided in an embodiment of the present invention Figure, specifically includes:
Step 401:User executes the software installed automatically and software scripts to template system registration in advance;
In this embodiment, user(Such as software provider)Automatic installation can be executed by platform needs registered in advance Software and software scripts.
Wherein, the log-on message of the software can include but is not limited to described below:
The installation operation flow of software can be defined as a series of actions(Action), each the insides Action include Corresponding software I D, when user installation, verify;Denomination of dive;Action specifically executes operation;And implementing result.
User(That is software provider)It needs related software and perform script to be submitted in template system in a pre-installation, often A Action needs to define the return value of response, for being quoted when design installation procedure.
Step 402:User stores processing strategy when occurring abnormal in software installation process to policy system in advance, that is, establishes The abnormal correspondence between processing strategy of installation;
Step 401 and step 402, without sequencing, can also be performed simultaneously in specific implementation.
Step 403:User designs installation procedure template to template system;
In the step, user(Such as software installer)The software defined using software provider in template system Come the system for installing oneself, can need which software is installed using template-setup, the installation steps needed, Action errors (It is abnormal)When disposition etc., the template of setting is known as installation procedure template.
For example, as follows come the installation procedure template for installing software using above-mentioned software and three Action:Definition installation Software apache-1.0 first checks for the environmental variance operation of installation software, if environmental variance is not present, first sets It sets environmental variance just to do, then, executes installation action.If environmental variance exists, it is mounted directly action.Specially:
In this embodiment, the realization format of template or installation procedure template can be XML, JSON, BPMN or other are retouched Predicate is sayed.
It should be noted that in the present embodiment, installation procedure template is supported nested:Can define software installation and The installation procedure of software can also be encapsulated as subtemplate, reuse template and directly quote subtemplate by abnormality processing flow, to Realize the reuse of installation procedure.
Step 404:Designed installation procedure template is submitted to template system by user;
Step 405:Template system parses the installation procedure template, is installed with automatic trigger software installation system described soft Part;
In the step, template system parses installation procedure template, and triggering software installation system is pacified according to template definition information Dress software is performed simultaneously order, and requires software installation system to return in software installation process and believe with exectorial output Breath, i.e. return value.
Step 406:Template system installs the software in the installation procedure template to software installation system request;
Step 407:Software installation system is grasped when receiving the request according to the installation in the installation procedure template Make(Action)The software is installed.
In the step, software installation system is when receiving the request, according to the softwareid being resolved to template System obtains software and associated script, then pacifies to the software according to the installation operation in the installation procedure template Dress, record execute the mount message of the installation operation(That is return value).
Step 408:Software installation system executes the installation operation to template system feedback(I.e. a series of Action)'s Mount message(That is return value).
Step 409:Template system judges whether the mount message is abnormal, if so, executing step 410;Terminate this Operation;
Step 410:The abnormal mount message of the installation is sent to policy system by template system;
Step 411:Policy system calls the processing strategy that itself is stored right after receiving the abnormal mount message The abnormal mount message is handled;
Step 412:Result after handling abnormal mount message is sent to template system by policy system, described in completion The installation of software.
That is, software installation system utilizes software installation tool according to Action sequences, installation procedure, record are executed Implementing result, and implementing result is sent to template system, in order to which template system is sent to strategy by abnormal result is installed System, in order to which policy system carries out judging whether that action can be executed according to policy definition(Default-action or user are automatic Action), and return to execution information.
It should be noted that in policy system, in addition to user-defined Action, system can also pacify according to software The typical case of dress system is abnormal, and the abnormality processing action of system default is arranged.Such as:
For example, when encountering the exception of " downloading software to puppet systems " failure such as system, can use automatically GetSoftWareFromStorage handles exception, these when user generates installation procedure template, can select system from Dynamic abnormality processing.These basic abnormality processings can be cured as repository, and corresponding abnormal and peace is automatically detected in system Fill information(That is return value)When, abnormality processing is carried out automatically, to simplify the work that user writes installation script during the installation process Amount achievees the purpose that installation automation.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but the former is more in many cases Good embodiment.Based on this understanding, technical scheme of the present invention substantially in other words contributes to the prior art Part can be expressed in the form of software products, which can be stored in a storage medium, such as ROM/ RAM, magnetic disc, CD etc., including some instructions are used so that a computer equipment(Can be personal computer, server, or Person's network equipment etc.)Execute the method described in certain parts of each embodiment of the present invention or embodiment.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, without departing from the principle of the present invention, it can also make several improvements and retouch, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (12)

1. a kind of processing method of anomalous event, which is characterized in that including:
The installation procedure template of installation software is obtained, the installation procedure template includes:Template basic information and the software Installation operation;
The installation procedure template is parsed, triggering installation tool installs the software according to the installation operation;
Obtain the mount message installed and execute the installation operation in the software process;
When the mount message of the installation operation occurs abnormal, using the processing strategy of storage to the abnormal mount message It is handled.
2. according to the method described in claim 1, it is characterized in that, further including:
Obtain the software of registration and the perform script of the software;
The installation procedure template of the software is installed according to the user demand setting received.
3. method according to claim 1 or 2, which is characterized in that the triggering installation tool is according to the installation operation The software is installed, including:
It triggers installation tool and locally-installed or Remote Installation is carried out to the software according to the installation operation.
4. method according to claim 1 or 2, which is characterized in that
The triggering installation tool is locally-installed to software progress according to the installation operation, including:Trigger local peace Holding tool checks for the environmental variance operation for installing the software, if it does, using the installation tool according to institute It states installation operation the software is installed, if it does not, the environmental variance operation of the software is installed in setting, and utilize The installation tool installs the software according to the installation operation;
The triggering installation tool carries out Remote Installation according to the installation operation to the software, including:Trigger long-range peace Holding tool checks for the environmental variance operation for installing the software, if it does, using the installation tool according to institute It states installation operation the software is installed, if it does not, the environmental variance operation of the software is installed in setting, and utilize The installation tool installs the software according to the installation operation.
5. method according to claim 1 or 2, which is characterized in that the processing strategy includes:User is in policy system Definition installation abnormal alarm and action, wherein the alarm is:Anomalous event in software installation process;The action is Operation to be performed is needed after the alarm triggered.
6. a kind of processing unit of anomalous event, which is characterized in that including:
First acquisition unit, the installation procedure template for obtaining installation software, the installation procedure template include:Template is basic The installation operation of information and the software;
Resolution unit obtains the installation of the template basic information and the software for parsing the installation procedure template Operation;
Installation unit installs the software according to the installation operation for triggering installation tool;
Second acquisition unit installs the mount message that the installation operation is executed in the software process for obtaining;
Abnormality processing control unit, for when the mount message of the installation operation occurs abnormal, utilizing the processing plan of storage Slightly the abnormal mount message is handled.
7. device according to claim 6, which is characterized in that further include
Third acquiring unit, the perform script of software and the software for obtaining registration;
Setting unit, the installation procedure template for installing the software according to the user demand setting received.
8. the device described according to claim 6 or 7, which is characterized in that the installation unit includes:
First installation unit carries out the local peace of installation progress according to the installation operation for triggering installation tool to the software Dress;And/or
Second installation unit is remotely pacified for triggering installation tool and to the software install according to the installation operation Dress.
9. device according to claim 8, which is characterized in that
First installation unit is specifically used for triggering locally-installed tool inspection locally with the presence or absence of the ring for installing the software Border variable operation, if it does, being installed to the software according to the installation operation using the installation tool, if not In the presence of the environmental variance operation of the software is installed in setting, and utilizes the installation tool according to the installation operation to described Software is installed;And/or
Second installation unit is specifically used for triggering Remote Installation tool and checks remotely with the presence or absence of the ring for installing the software Border variable operation, if it does, being installed to the software according to the installation operation using the installation tool, if not In the presence of the environmental variance operation of the software is installed in setting, and utilizes the installation tool according to the installation operation to described Software is installed.
10. the device described according to claim 6 or 7, which is characterized in that the strategy system of the abnormality processing control unit control System storage the processing strategy include:Installation of the user defined in policy system abnormal alarm and action, wherein described Alarm is:Anomalous event in software installation process;The action is to need operation to be performed after the alarm triggered.
11. a kind of processing system of anomalous event, which is characterized in that including:Template system, software installation system and strategy system System, wherein
The template system, the perform script of software and the software for obtaining registration, needs according to the user received Ask setting that the installation procedure template of the software is installed, the installation procedure template includes:Template basic information, the software Installation operation;The installation procedure template is parsed, and asks the software installation system according to described in installation operation installation Software;
The software installation system, for installing the software according to the installation operation according to the request, and to the mould The mount message of the installation operation is executed in plate system feedback installation process;
The template system is additionally operable to execute the installation operation in the installation process for receiving the software installation system feedback Mount message;And judge whether the mount message is abnormal, and send the policy system by there is abnormal mount message;
The policy system, for when receiving the mount message for the appearance exception that the template system is sent, passing through storage Processing strategy the exception is handled, and will treated that result is sent to the template system, it is described soft to complete The installation of part.
12. system according to claim 11, which is characterized in that the template system includes:The processing of anomalous event fills It sets, the processing unit of processing unit such as claim 6 to 10 any one of them anomalous event of the anomalous event.
CN201310499429.5A 2013-10-22 2013-10-22 The processing method of anomalous event, apparatus and system Active CN104572151B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310499429.5A CN104572151B (en) 2013-10-22 2013-10-22 The processing method of anomalous event, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310499429.5A CN104572151B (en) 2013-10-22 2013-10-22 The processing method of anomalous event, apparatus and system

Publications (2)

Publication Number Publication Date
CN104572151A CN104572151A (en) 2015-04-29
CN104572151B true CN104572151B (en) 2018-09-28

Family

ID=53088315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310499429.5A Active CN104572151B (en) 2013-10-22 2013-10-22 The processing method of anomalous event, apparatus and system

Country Status (1)

Country Link
CN (1) CN104572151B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200349043A1 (en) * 2017-09-01 2020-11-05 Hitachi, Ltd. Software Installation System, Software Installation Method, and Software Installation Program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141258A (en) * 2007-10-12 2008-03-12 中兴通讯股份有限公司 Method and system for completing authentication in software installation process
CN101616018A (en) * 2008-06-27 2009-12-30 中兴通讯股份有限公司 The method of upgrading network management software and device
CN102736924A (en) * 2011-04-06 2012-10-17 腾讯科技(深圳)有限公司 Software installation method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141258A (en) * 2007-10-12 2008-03-12 中兴通讯股份有限公司 Method and system for completing authentication in software installation process
CN101616018A (en) * 2008-06-27 2009-12-30 中兴通讯股份有限公司 The method of upgrading network management software and device
CN102736924A (en) * 2011-04-06 2012-10-17 腾讯科技(深圳)有限公司 Software installation method and device

Also Published As

Publication number Publication date
CN104572151A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
US11012515B2 (en) Machine to machine architecture
CN112559133B (en) Cloud-edge coordination system and cloud-edge coordination method based on native container technology
EP2840813B1 (en) Service method and system using instance interface of virtualization object in internet of things environment
EP3832989A1 (en) Internet of things event management systems and methods
EP3007408B1 (en) Service method for managing transactions using application properties and system therefor
US20060190569A1 (en) Facilitating mobile device awareness of the availability of new or updated server-side applications
CN108574593B (en) The management system and management method of licensing in a kind of NFV network
CN108804399B (en) Form verification method and device
US7140014B2 (en) System and method for providing a flexible framework for remote heterogeneous server management and control
WO2006113238A2 (en) Apparatus and method for managing a network of intelligent devices
WO2009021212A1 (en) Push and clone configuration management for mobile devices
CN107203419A (en) Intermodule call method, apparatus and system in application program
CN105791354A (en) Job scheduling method and cloud scheduling server
CN103164216A (en) Publishing mobile applications
EP1869827A1 (en) Determining operational status of a mobile device capable of executing server-side applications
CN104572151B (en) The processing method of anomalous event, apparatus and system
EP3676635A1 (en) Data array of objects indexing
CN106651066B (en) Data processing method and data processing platform
US9525754B1 (en) Task-based approach to execution, monitoring and execution control of actions
US20050108722A1 (en) Systems and methods for external service administration
EP1533697B1 (en) Systems and methods for external service administration
CN117579682A (en) Message generation method, device and storage medium
CN111124547A (en) Task processing method and device
CN112187841A (en) Service hosting method and device based on SaaS platform, electronic equipment and storage medium
Flake et al. An ASM Definition of the OCL 2.0 Dynamic Semantics

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220217

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technologies Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.