CN104717096B - A kind of event-handling method and device - Google Patents

A kind of event-handling method and device Download PDF

Info

Publication number
CN104717096B
CN104717096B CN201510145408.2A CN201510145408A CN104717096B CN 104717096 B CN104717096 B CN 104717096B CN 201510145408 A CN201510145408 A CN 201510145408A CN 104717096 B CN104717096 B CN 104717096B
Authority
CN
China
Prior art keywords
action command
strategy
executed
action
currently
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
CN201510145408.2A
Other languages
Chinese (zh)
Other versions
CN104717096A (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201510145408.2A priority Critical patent/CN104717096B/en
Publication of CN104717096A publication Critical patent/CN104717096A/en
Application granted granted Critical
Publication of CN104717096B publication Critical patent/CN104717096B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The present invention provides a kind of event-handling methods, are applied in control centre's equipment, this method includes:Control centre's equipment carries out event-monitoring;When monitoring event, if the event carry for the strategy matching information matches in the parameter of strategy matching and the strategy of configuration, it then determines the branch condition that the branch parameter that the event carries meets in matched strategy, and each action command is executed according to putting in order for each action command in the corresponding instruction list of the branch condition.Based on same inventive concept, the application also proposes a kind of event processing apparatus, can realize the automatic business processing of complicated business.

Description

A kind of event-handling method and device
Technical field
The present invention relates to field of communication technology, more particularly to a kind of event-handling method and device.
Background technology
Current IT management tends to automation direction development, and the complexity of network improves the difficulty of the implementation quality of business Degree, rely on carry out manually configuration change mode it is error-prone and not in time.
Such as, how to ensure that multilink is run in a manner of optimum bandwidthWhen there is particular service, such as phone meeting How view carries out Bandwidth guaranteed to the businessWhen network equipment is attacked, how to carry out at the first time port shutdown or Person's link switchingThese are required for Internet technology (IT) administrator manually to carry out configuration change, and this realization method can need IT management is wanted to carry out excessive manual intervention, when event change is frequent, the workload of IT administrators can be doubled and redoubled, it is easy to It makes mistakes in chaos.
Invention content
In view of this, a kind of event-handling method of the application offer and device, place cannot be automated to solve complicated business The problem of reason.
In order to solve the above technical problems, what the technical solution of the application was realized in:
A kind of event-handling method is applied in control centre's equipment, and this method includes:
Control centre's device configuration strategy, the strategy include:Strategy matching information, branch condition, and each point The corresponding action command list of branch condition;The content that the action command list includes is:M action command, the M Action command is arranged by sequencing is executed;Or, N number of action command, N number of action command is arranged by sequencing is executed, The parameter value storage that i-th of action command returns is executed, to be executed as i+1 to the action command in n-th action command When enter parameter;Wherein, M is the integer more than 0;N is the integer more than 1;I is 1 integer for arriving N-1;
Control centre's equipment carries out event-monitoring;
When monitoring event, if the event carry for tactful in the parameter of strategy matching and the strategy of configuration With information matches, it is determined that the branch condition that the branch parameter that the event carries meets in matched strategy, and according to described Putting in order for each action command in the corresponding instruction list of branch condition executes each action command.
A kind of event processing apparatus is applied in control centre's equipment, which includes:Dispensing unit, monitoring unit, place Manage unit;
The dispensing unit, is used for configuration strategy, and the strategy includes:Strategy matching information, branch condition, and it is each The corresponding action command list of branch condition;The content that the action command list includes is one of the following or combination:M Action command, the M action command are arranged by sequencing is executed;N number of action command, N number of action command is by execution Sequencing arranges, and executes the parameter value storage that i-th action command returns, using as in i+1 to n-th action command Enter parameter when action command executes;Wherein, M is the integer more than 0;N is the integer more than 1;I is 1 integer for arriving N-1;
The monitoring unit, for carrying out event-monitoring;
The processing unit, for when the monitoring unit monitors event, however, it is determined that the event carried is used for plan Slightly matched parameter and the strategy matching information matches in the strategy of the configuration of described dispensing unit, it is determined that point that the event carries The branch condition that branch parameter meets in matched strategy, and according to each action in the corresponding instruction list of the branch condition Putting in order for instruction executes each action command.
As can be seen from the above technical solution, control centre's equipment makes each thing monitored by configuration strategy in the application Part can be handled according to the strategy being matched to, and can realize the automatic business processing of complicated business.
Description of the drawings
Fig. 1 is event handling flow diagram in the embodiment of the present application;
Fig. 2 is using each Service Component of iMC as the policy control central flow schematic diagram of application background;
Fig. 3 is the apparatus structure schematic diagram for being applied to above-mentioned technology in the embodiment of the present application.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and examples, Technical scheme of the present invention is described in detail.
A kind of event-handling method is proposed in the embodiment of the present application, is applied in control centre's equipment.Control centre's equipment By configuration strategy, so that each event monitored is handled according to the strategy being matched to, can realize the automatic of complicated business Change is handled.
The function that control centre's equipment provided by the present application is provided can be that control centre's equipment is realized, can also It is that multiple devices are combined as control centre's equipment, joint realizes function provided by the present application.
Control centre's equipment need to be pre-configured with strategy, and the strategy of configuration can configure a plan according to current application scene Summary or multiple strategies.
Each strategy of control centre's device configuration includes:Strategy matching information, branch condition and each branch condition A corresponding action command list;The content that the action command list includes is:M action command, the M action refer to It enables by execution sequencing arrangement;Or, N number of action command, N number of action command executes i-th by sequencing arrangement is executed The parameter value storage that a action command returns, enters ginseng when being executed as i+1 to the action command in n-th action command Number.
Wherein, M is the integer more than 0;N is the integer more than 1;I is 1 integer for arriving N-1.
When specific implementation, by return value storage to corresponding position, as in corresponding mapping pond (MAP), in case subsequent execution It is called when respective action.
It is described to execute in the parameter value storage to the ponds MAP that i-th of action command returns, to be acted as i+1 to n-th Enter parameter when action command in instruction executes, including:
It executes in the parameter value storage to the ponds MAP that i-th action command returns, using as i+1 to n-th action command In Q action command enter parameter when executing, wherein Q is integer more than 0.
The parameter value that an action command returns is executed, it should in action command list where the action command being used as One or several action commands after action command when being executed enter parameter, concrete condition is corresponding according to the strategy is configured Applicable cases determine, are exemplified below:
To include 8 action commands arranged in order altogether in current instruction list, it is assumed that the 2nd action command of execution As a result can return parameters value, and the parameter value need to enter parameter as the 5th action command, in configuration strategy, will execute the 2nd Parameter value storage that a action command returns simultaneously enters parameter as the 5th action command, when executing the 5th action command, It calls the parameter value of storage and executes the 5th action command as parameter is entered.
Assuming that the result meeting return parameters value of the 3rd action command is executed, and the parameter value need to refer to as the 6-8 action What is enabled enters parameter, in configuration strategy, will execute the parameter value that the 3rd action command returns and stores and acted as the 6-8 Instruction enters parameter, when executing 6-8 action command, calls the parameter value of storage and executes 6- as parameter is entered 8 action commands.
M, N, Q in the embodiment of the present application are that specific value can be configured according to practical application scene, the application to this not It is restricted.
When specific implementation, each strategy may include a branch condition, can also include multiple branch conditions, Mei Gefen Branch condition corresponds to an action lists, and each action lists may include one or more action commands.
When an action command list includes multiple action commands, each action command is according to execution sequence assortment.
It may be used as and hold there is no the return value for executing some action command in each action command in one action lists The instruction of row subsequent action enters parameter;The return value for executing some action command is also likely to be present to instruct as subsequent action is executed Enter parameter;In an action lists, return value can be one as the action command for entering parameter that subsequent action instructs, Or it is multiple.
There are two types of modes for action command in the embodiment of the present application in the strategy of control centre's device configuration, can use it A kind of middle realization, can also two kinds of combination realizations:
The first realization method:Control centre's equipment is access information for the configuration of action command, when needing to hold When the row action command, corresponding action command code is called according to the access information and is executed.Access information can be one A access address can also be a port information etc..
Second of realization method:Control centre's equipment is exactly that the action directly executed refers to for the configuration of action command It enables, i.e., specific action command.
It can be seen that open configuration mechanism is provided in the embodiment of the present application for action command, action command Configuration can be declarative state transfer (Representational State Transfer, REST) interface, such as make interface Up/down, can be order line script, and instruction code can also be inquiry instruction etc..The result for executing an action command can To be port deployment (configuring IP address for port, update port status), link switching, user's login etc., can also be inquiry Relevant instruction, implementing result are to obtain parameter value etc..
Below in conjunction with the accompanying drawings, it is described in detail in the application specific embodiment how to realize event handling.
It is event handling flow diagram in the embodiment of the present application referring to Fig. 1, Fig. 1.The specific steps are:
Step 101, control centre's equipment carries out event-monitoring.
In specific implementation, which can determine this control with configuration monitoring parameter by monitoring parameter Central apparatus needs the event monitored.
Step 102, when control centre's monitoring of tools is to event, if using the event carry for strategy matching Parameter is matched to corresponding strategy matching information in the strategy of configuration, it is determined that the branch parameter that the event carries is matched The branch condition met in strategy belonging to strategy matching information.
When control centre's monitoring of tools is to event, if the parameter for strategy matching carried using the time with Corresponding strategy matching information is not matched in the strategy set, then does not handle the event monitored.
Step 103, the corresponding finger of branch condition which meets according to the branch parameter that the event carries Putting in order for each action command in list is enabled to execute each action command.
If being deposited in each action command in the corresponding instruction list of branch condition that the branch parameter that the event carries meets Implementing result return value as subsequent action instruct when entering parameter, by return value storage to the corresponding storage of present event The return value is called when in case executing the action command for calling the return value of configuration in space.
Also include the content for going deployment when the action command that any action instruction list includes is to go deployment;
When the branch parameter that the event carries meets the corresponding branch condition of the action command in matched strategy, if It determines and goes deployment content described in currently having disposed, then the content execution of deployment is gone to go deployment operation according to;If it is determined that current Deployment content is gone described in not disposing, then prompt goes deployment content there is currently no described.
When network environment is more complicated, in fact it could happen that the conflict between different action commands in the same strategy, The conflict being likely to occur between the action command of Different Strategies, it is also possible to occur an action command in some cases with control The advance deployment of central apparatus mutually conflicts, and the application provides following processing mode thus:
For the processing of the conflict between action command, if the strategy of control centre's equipment configuration is more than two, For each tactful configuration preference level, and it is each action command configuration preference level in each strategy;Specific processing mode is as follows:
Control centre's equipment is before executing an action command, however, it is determined that executes the action command and exists with current deployment Conflict, and current deployment is to execute the result of another action command, it is determined that another described action command with it is current Whether the action command to be executed belongs to same strategy;
When another determining described action command belongs to same strategy with the action command currently to be executed, it is determined that when Before the action command to be executed priority whether higher than another action command priority, work as if so, executing Before the action command to be executed;Otherwise, the action command currently to be executed is not executed;
When another determining described action command is not belonging to same strategy with the action command currently to be executed, it is determined that Whether the priority of the strategy belonging to the action command currently to be executed is higher than the strategy belonging to another described action command Priority, if so, execute the action command currently to be executed;Otherwise, the action command currently to be executed is not executed.
In specific implementation, the deployment of current network be by which action command execute as a result, or by control centre The preconfigured deployment of equipment is as a result, all need to be identified, and when being clashed so as to action command, execution is corresponding to be handled.
A practical application scene is enumerated for above-mentioned processing, it is specific as follows:
The result of action command A in implementation strategy A will work as link 1 and be used as optimum link;And the action in implementation strategy B Instruct B's the result is that being used as optimum link, the priority of configuration strategy A to be more than the priority of strategy B link 2.
If first carrying out action command A, then action command B is executed, then when executing action command A, with current deployment without dynamic Make instruction conflict, directly executes, then select link 1 for optimum link;When executing action command B again, determines and be currently deployed with Conflict, and the current implementing result for being deployed as action and executing A;Belong to different strategies since action executes A and action command B, And the priority of strategy A is more than the priority of strategy B, therefore, no longer executes action command B.
If first carrying out action command B, then execute action and execute A, then when executing action command B, with current deployment without dynamic Make instruction conflict, directly executes, then select link 2 for optimum link;When executing action command A again, determines and be currently deployed with Conflict, and the current implementing result for being deployed as action and executing B;Belong to different strategies since action executes A and action command B, And the priority of strategy A is more than the priority of strategy B, therefore, executes action command A.
When for conflicting between an action command and the preconfigured deployment of control centre's equipment, specific processing mode It is as follows:
Control centre's equipment is before executing an action command, however, it is determined that executes the action command and exists with current deployment Conflict, and current deployment is the preconfigured deployment of this control centre, then prompts whether to execute the action command;
When receiving the order for executing the action command, the action command is executed;
When receiving the order for not executing the action command, the action command is not executed.
A practical application scene is enumerated for above-mentioned processing, it is specific as follows:
If currently performed action command is, internet protocol (IP) address 1.1.1.1 is issued for port 1;And in controlling Heart equipment is deployed as port 1 is preconfigured, be the IP address of the configuration of port 1 is 2.2.2.2;Then prompt whether to execute this The content of deployment can also be carried and be shown in prompt, is particularly shown mode and be not limited by action command.
In the application specific embodiment, if if some action command in action lists because of conflict, and when not executing, If not executing, being carried to user there is also the action command come after the action command in lists where the action command Show.
Below in conjunction with the accompanying drawings, several concrete application scenes are enumerated to be described in detail in the embodiment of the present application be how to realize thing Part processing.
Assuming that currently needing to handle such a event of link bandwidth alarm, when link bandwidth utilization rate is 60% and 80% When, chain circuit alarming event is generated, the chain circuit alarming event generated when link bandwidth utilization rate is 60% then sends short message and carries Show;When the chain circuit alarming event generated when link bandwidth utilization rate is 80%, the link of current idle is first obtained, idle chain is worked as When road is a plurality of, most idle link is determined, then deployment is routed to determining most idle link.
For above application scene, control centre's equipment is wrapped for the strategy of chain circuit alarming configuration in the embodiment of the present application It includes:
Strategy matching information (alarm event mark), branch condition (branch condition 1 and branch condition 2), branch condition 1 are 60%, 1 corresponding action lists of branch condition include an action command, which is to send short message to prompt current chain Road bandwidth is 60%;Branch condition 2 is 80%, and 2 corresponding action lists of branch condition include 2 action commands, and first dynamic Make instruction to obtain the link of current idle, if a plurality of, it is determined that most idle link, and most idle link is corresponding Routing iinformation stores, to enter parameter as second action command;Second action command is instructed according to first element and is stored Information as enter parameter, carry out routing deployment.
When control centre's monitoring of tools is to alarm event, matching pair is identified according to the alarm event that the alarm event carries The strategy answered, and the branch condition met is determined according to the warning value that the alarm event carries, it is assumed that the warning value of carrying is 80%, then meet alarm conditions 2, relevant action instruction is executed according to alarm conditions 2 corresponding action lists sequence.
It is control centre's networking schematic diagram in the embodiment of the present application referring to Fig. 2, Fig. 2.Application scenarios in Fig. 2 are specifically such as Under:
Leader is accessed by our department's access point, and control centre's equipment flows into our department's access point reported data centring system Row monitoring, is judged according to the ID of the stream and on-position, issues Flow Policy, makes data center systems will be described according to strategy Stream enters confidential data network by the high bandwidth path that convergence device 2 is passed through.
Common office worker is accessed by our department's access point, and control centre's equipment is to our department's access point reported data centring system Stream is monitored, and is judged according to the ID of the stream and on-position, issues Flow Policy, makes data center systems will according to strategy The stream enters confidential data network by the high bandwidth path that convergence device 1 is passed through.
Common office worker goes on business to branch, is accessed by branch's access point, control centre's equipment is to count off on branch's access point It is monitored according to the stream of centring system, is judged according to the ID of the stream and on-position, issue Flow Policy, make the data center be System according to strategy by it is described stream by convergence device 3 enter public data network through path.
Leader goes on business to branch, is accessed by branch's access point, and control centre's equipment is in our department's access point reported data The stream for feeling concerned about system is monitored, and is judged according to the ID of the stream and on-position, issues Flow Policy, and data center systems root is made The stream is entered into confidential data network by the high bandwidth path that convergence device 2 is passed through according to strategy.
It is directed to above-mentioned scene configuration strategy in the embodiment of the present application, is identified and is judged by its accessing user for different user It is leader or ordinary user, and the position of active user's access is determined by the mark of access point.The embodiment of the present application configures Strategy it is specific as follows:
The corresponding strategy of user's access events, strategy matching information (access events mark), branch condition (branch condition 1, Branch condition 2, branch condition 3 and branch condition 4), branch condition 1 is:It is leader that accessing user, which identifies corresponding user, and is accessed It is our department's access point or branch's access point that the mark of point, which corresponds to access point,;Branch condition 2 is:Accessing user identifies corresponding user Common employee, and it is our department's access point that the mark of access point, which corresponds to access point,;Branch condition 3 is:Accessing user's mark is corresponding User is common employee, and it is foreign access point that the mark of access point, which corresponds to access point,;Branch condition 4 is:Accessing user identifies Corresponding user is leader, and it is foreign access point that the mark of access point, which corresponds to access point,.
1 corresponding action lists 1 of branch condition include 1 action command, which is specially that accessing user is made to send out The message sent walks the high bandwidth path that convergence device 2 is passed through and enters confidential data network.
2 corresponding action lists 2 of branch condition include 1 action command, which is specially that accessing user is made to send out The message sent walks the low bandwidth path that convergence device 1 is passed through and enters confidential data network.
3 corresponding action lists 3 of branch condition include 1 action command, which is specially that accessing user is made to send out The message sent walks path that convergence device 3 is passed through to public data network.
4 corresponding action lists 4 of branch condition include 1 action command, which is specially that accessing user is made to send out The message sent walks the high bandwidth path that convergence device 2 is passed through and enters confidential data library.
When sending access message by our department's access point to the user A as leader when control centre's monitoring of tools, according to The access events mark that the message carries is matched to corresponding strategy, and identifies (user according to the accessing user that the message carries A) and access point identity (mark of our department's access point), determine current monitor to event meet branch condition 1, then according to branch Action command in 1 corresponding action lists 1 of condition executes, even if the access message walks the high band broad way that convergence device 2 is passed through Diameter enters confidential data network.
By text of delivering newspaper on foreign access point, ordinary user is connect user as leader by foreign access point or our department Literary processing of delivering newspaper in access point is similar, no longer illustrates one by one here.
Based on same inventive concept, a kind of event processing apparatus is also proposed in the embodiment of the present application.It is referring to Fig. 3, Fig. 3 It is applied to the apparatus structure schematic diagram of above-mentioned technology in the embodiment of the present application.The device includes:Dispensing unit 301, monitoring unit 302, processing unit 303;
Dispensing unit 301, is used for configuration strategy, and the strategy includes:Strategy matching information, branch condition, and it is each The corresponding action command list of branch condition;The content that the action command list includes is:M action command, the M A action command is arranged by sequencing is executed;N number of action command, N number of action command are held by sequencing arrangement is executed The parameter value storage that i-th of action command of row returns, when being executed as i+1 to the action command in n-th action command Enter parameter;Wherein, M is the integer more than 0;N is the integer more than 1;I is 1 integer for arriving N-1;
Monitoring unit 302, for carrying out event-monitoring;
Processing unit 303, for when monitoring unit 302 monitors event, however, it is determined that the event carried is used for strategy Strategy matching information matches in the strategy that matched parameter is configured with dispensing unit 301, it is determined that the event takes branches of band The branch condition that parameter meets in matched strategy, and refer to according to each action in the corresponding instruction list of the branch condition Putting in order for enabling executes each action command.
Preferably,
Dispensing unit 301 is specifically used for configuration and executes the parameter value storage that i-th action command returns, using as i+1 To in n-th action command action command execute when entering parameter, configuration execute i-th of action command return parameter value Storage enters parameter when being executed as i+1 to Q action command in n-th action command, wherein Q is more than 0 Integer.
Preferably,
Dispensing unit 301, the action command being further used in the strategy of configuration is access information, dynamic when needing to execute this When instructing, corresponding action command code is called according to the access information and is executed;Or, the action in the strategy of configuration refers to Enable the action command directly to execute.
Preferably,
Processing unit 303 is further used for referring to when the action that any action instruction list that dispensing unit 301 configures includes Also include the content for going deployment when enabling to go deployment;When the branch parameter that event carries meets the action in matched strategy When instructing corresponding branch condition, however, it is determined that go deployment content described in currently having disposed, then go the content of deployment to hold according to Row goes deployment operation;If it is determined that going deployment content described in not disposing currently, then prompt goes deployment content there is currently no described.
Preferably,
Dispensing unit 301 is further used for when the strategy of configuration is more than two, is each tactful configuration preference level, and For each action command configuration preference level in each strategy;
Processing unit 303 is further used for before executing an action command, however, it is determined that execute the action command and work as There is conflict in preceding deployment, and current deployment is to execute the result of another action command, it is determined that another described action Whether instruction belongs to same strategy with the action command currently to be executed;It wants when another determining described action command and currently The action command of execution belongs to same strategy, it is determined that the priority for the action command currently to be executed whether higher than it is described in addition The priority of one action command, if so, executing the action command currently to be executed;Otherwise, it does not execute and currently to be executed Action command;When determining that another described action command is not belonging to same strategy with the action command currently to be executed, then really Whether the priority of the strategy belonging to the action command to be executed before settled is higher than the plan belonging to another described action command Priority slightly, if so, executing the action command currently to be executed;Otherwise, the action command currently to be executed is not executed.
Preferably,
Processing unit 303 is further used for before executing an action command, however, it is determined that execute the action command and work as There is conflict in preceding deployment, and current deployment is the preconfigured deployment of this control centre, then prompts whether to execute the action command; When receiving the order for executing the action command, the action command is executed;When receiving the order for not executing the action command When, the action command is not executed.
The unit of above-described embodiment can be integrated in one, and can also be deployed separately;A unit is can be merged into, also may be used To be further split into multiple subelements.
In conclusion the application by control centre's equipment by configuration strategy, enable each event monitored according to The strategy processing being matched to, can realize the automatic business processing of complicated business.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention With within principle, any modification, equivalent substitution, improvement and etc. done should be included within the scope of protection of the invention god.

Claims (12)

1. a kind of event-handling method, which is characterized in that be applied in control centre's equipment, this method includes:
Control centre's device configuration strategy, the strategy include:Strategy matching information, branch condition, and each branch item The corresponding action command list of part;The content that the action command list includes is:M action command, the M action Instruction is arranged by sequencing is executed;Or, N number of action command, N number of action command is executed by sequencing arrangement is executed The parameter value storage that i-th of action command returns, when being executed as i+1 to the action command in n-th action command Enter parameter;Wherein, M is the integer more than 0;N is the integer more than 1;I is 1 integer for arriving N-1;The branch condition refers to same The corresponding condition of branch under one event different condition, different branch conditions correspond to identical or different action command;
Control centre's equipment carries out event-monitoring;
When monitoring event, if event carrying is believed for the strategy matching in the parameter of strategy matching and the strategy of configuration Breath matching, it is determined that the branch condition that the branch parameter that the event carries meets in matched strategy, and according to the branch Putting in order for each action command in the corresponding instruction list of condition executes each action command.
2. according to the method described in claim 1, it is characterized in that, the parameter value for executing the return of i-th of action command is deposited Storage enters parameter when being executed as i+1 to the action command in n-th action command, including:
The parameter value storage that i-th action command returns is executed, using as Q action command in i+1 to n-th action command Enter parameter when execution, wherein Q is the integer more than 0.
3. according to the method described in claim 1, it is characterized in that,
Action command in the strategy of configuration is access information, when needing to execute the action command, according to the access information It calls corresponding action command code and executes;
Or, the action command in the strategy of configuration is the action command directly executed.
4. according to the method described in claim 1, it is characterized in that, the method further includes:
Also include the content for going deployment when the action command that any action instruction list includes is to go deployment;
When the branch parameter that event carries meets the corresponding branch condition of the action command in matched strategy, however, it is determined that when It is preceding disposed it is described go deployment content, then go the content execution of deployment to go deployment operation according to;If it is determined that not disposing currently Described to go deployment content, then prompt goes deployment content there is currently no described.
5. according to the method described in any of claim 1 to 4, which is characterized in that the method further includes:
It is each tactful configuration preference level when the strategy of configuration is more than two, and is each action command configuration in each strategy Priority;
Before executing an action command, however, it is determined that execute the action command and exist with current deployment and conflict, and currently dispose It is the result for executing another action command, it is determined that another described action command and the action command currently to be executed Whether same strategy is belonged to;
When another determining described action command belongs to same strategy with the action command currently to be executed, it is determined that currently want Whether the priority of the action command of execution is higher than the priority of another action command, is currently wanted if so, executing The action command of execution;Otherwise, the action command currently to be executed is not executed;
When another determining described action command is not belonging to same strategy with the action command currently to be executed, it is determined that current Whether the priority of the strategy belonging to the action command to be executed is excellent higher than the strategy belonging to another described action command First grade, if so, executing the action command currently to be executed;Otherwise, the action command currently to be executed is not executed.
6. according to the method described in any of claim 1 to 4, which is characterized in that the method further includes:
Before executing an action command, however, it is determined that execute the action command and exist with current deployment and conflict, and currently dispose It is the preconfigured deployment of this control centre, then prompts whether to execute the action command;
When receiving the order for executing the action command, the action command is executed;
When receiving the order for not executing the action command, the action command is not executed.
7. a kind of event processing apparatus, which is characterized in that be applied in control centre's equipment, which includes:Dispensing unit, prison Control unit, processing unit;
The dispensing unit, is used for configuration strategy, and the strategy includes:Strategy matching information, branch condition and each branch The corresponding action command list of condition;The content that the action command list includes is:M action command, the M dynamic Make instruction and is arranged by sequencing is executed;Or, N number of action command, N number of action command is held by sequencing arrangement is executed The parameter value storage that i-th of action command of row returns, when being executed as i+1 to the action command in n-th action command Enter parameter;Wherein, M is the integer more than 0;N is the integer more than 1;I is 1 integer for arriving N-1;The branch condition refers to The corresponding condition of branch under same event different condition, different branch conditions correspond to identical or different action command;
The monitoring unit, for carrying out event-monitoring;
The processing unit, for when the monitoring unit monitors event, however, it is determined that the event carried is used for strategy The parameter matched and the strategy matching information matches in the strategy of the configuration of described dispensing unit, it is determined that the event takes branches of band ginseng The branch condition that number meets in matched strategy, and according to each action command in the corresponding instruction list of the branch condition Put in order and execute each action command.
8. device according to claim 7, which is characterized in that
The dispensing unit is specifically used for configuration and executes the parameter value storage that i-th of action command returns, to be arrived as i+1 When action command in n-th action command executes when entering parameter, configuration executes the parameter value that i-th of action command returns and deposits Storage enters parameter when being executed as i+1 to Q action command in n-th action command, wherein Q is whole more than 0 Number.
9. device according to claim 7, which is characterized in that
The dispensing unit, the action command being further used in the strategy of configuration is access information, when needing to execute the action When instruction, corresponding action command code is called according to the access information and is executed;Or, the action command in the strategy of configuration For the action command directly executed.
10. device according to claim 7, which is characterized in that
The processing unit is further used for the action command when any action instruction list of the configuration of described dispensing unit includes Also include the content for going deployment when to go deployment;Refer to when the branch parameter that event carries meets the action in matched strategy When enabling corresponding branch condition, however, it is determined that go deployment content described in currently having disposed, then go the content execution of deployment according to Go deployment operation;If it is determined that going deployment content described in not disposing currently, then prompt goes deployment content there is currently no described.
11. according to the device described in claim 7-10 any one, which is characterized in that
The dispensing unit is further used for when the strategy of configuration is more than two, is each tactful configuration preference level, and be each Each action command configuration preference level in strategy;
The processing unit is further used for before executing an action command, however, it is determined that execute the action command with it is current There is conflict in deployment, and current deployment is to execute the result of another action command, it is determined that another described action refers to It enables and whether belongs to same strategy with the action command currently to be executed;When another determining described action command and currently to hold Capable action command belongs to same strategy, it is determined that whether the priority for the action command currently to be executed is higher than described other one The priority of a action command, if so, executing the action command currently to be executed;Otherwise, do not execute currently to be executed it is dynamic It instructs;When another determining described action command is not belonging to same strategy with the action command currently to be executed, it is determined that Whether the priority of the strategy belonging to the action command currently to be executed is higher than the strategy belonging to another described action command Priority, if so, execute the action command currently to be executed;Otherwise, the action command currently to be executed is not executed.
12. according to the device described in claim 7-10 any one, which is characterized in that
The processing unit is further used for before executing an action command, however, it is determined that execute the action command with it is current There is conflict in deployment, and current deployment is the preconfigured deployment of this control centre, then prompts whether to execute the action command;When When receiving the order for executing the action command, the action command is executed;When receiving the order for not executing the action command, The action command is not executed.
CN201510145408.2A 2015-03-31 2015-03-31 A kind of event-handling method and device Active CN104717096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510145408.2A CN104717096B (en) 2015-03-31 2015-03-31 A kind of event-handling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510145408.2A CN104717096B (en) 2015-03-31 2015-03-31 A kind of event-handling method and device

Publications (2)

Publication Number Publication Date
CN104717096A CN104717096A (en) 2015-06-17
CN104717096B true CN104717096B (en) 2018-10-09

Family

ID=53416087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510145408.2A Active CN104717096B (en) 2015-03-31 2015-03-31 A kind of event-handling method and device

Country Status (1)

Country Link
CN (1) CN104717096B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105354094A (en) * 2015-09-29 2016-02-24 北京金山安全软件有限公司 Output method and device of information prompt bubbles
CN105653322B (en) * 2015-12-25 2019-02-26 上海帝联信息科技股份有限公司 The processing method of O&M server and server event
CN108768724B (en) * 2018-05-30 2021-11-16 上海顺舟智能科技股份有限公司 Gateway control method and intelligent gateway

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1277196C (en) * 2004-06-09 2006-09-27 中兴通讯股份有限公司 Method for applied server of computer system
US7546601B2 (en) * 2004-08-10 2009-06-09 International Business Machines Corporation Apparatus, system, and method for automatically discovering and grouping resources used by a business process
CN101187993A (en) * 2006-11-17 2008-05-28 中兴通讯股份有限公司 Policy management method in enterprise informationization management system
CN102594783B (en) * 2011-01-14 2014-10-22 中国科学院软件研究所 Network security emergency responding method

Also Published As

Publication number Publication date
CN104717096A (en) 2015-06-17

Similar Documents

Publication Publication Date Title
US9100282B1 (en) Generating optimal pathways in software-defined networking (SDN)
CN102291455B (en) Distributed cluster processing system and message processing method thereof
CN109150685B (en) Intelligent interconnection method and system for heterogeneous network
US20150143470A1 (en) Managing an interface between an application and a network
US20040190502A1 (en) System and method for centralized, intelligent proxy driver for a switch fabric
US10715597B2 (en) Methods and systems to create a network-agnostic SDN-based cloud gateway for connectivity to multiple cloud service providers
CN103475722A (en) Implement system for business collaboration platform
US20070180124A1 (en) Session data records and related alarming within a session over internet protocol (SOIP) network
CN104717096B (en) A kind of event-handling method and device
US10530681B2 (en) Implementing forwarding behavior based on communication activity between a controller and a network device
US20190199622A1 (en) Data packet forwarding unit in a data transmission network
CN106797319B (en) Network service aware router and application thereof
US8191107B1 (en) System and method for lost contact response
US8238265B2 (en) Auto-binding SDP RSVP LSP tunnel
CN101601227A (en) The system and method relevant with network management
CN107508730B (en) SDN network-based data center interconnection method and device
JP6897343B2 (en) Graphical policy interface for network control systems
CN108011825B (en) Multi-network equipment interconnection reality method and system based on software defined network
CN105634765A (en) Controller replacement method and controller replacement device
CN112671914B (en) IOT (Internet of things) equipment communication method and system based on actor model
CN105812274B (en) Service data processing method and related equipment
Nguyen et al. S-MANAGE protocol for software-defined IoT
CN108259330B (en) Message forwarding method and device
US10050841B2 (en) Applying a multi-instance spanning tree protocol (MSTP) configuration
CN109756420B (en) Detection method, storage medium and processor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

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

Applicant after: Xinhua three Technology Co., Ltd.

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

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant