Summary of the invention
Object of the present invention is exactly that a kind of alarm remote processing method and device of standby system are provided in order to overcome the defect of above-mentioned prior art existence, can utilize transmitting-receiving note to carry out alarm to standby system, when detecting production system fault and standby system faults itself, standby system can initiatively with short message mode, notify keeper, make keeper the very first time to system, to carry out emergency disposal by short message mode, reduce standby system management cost, promoted the fail safe of data simultaneously.
Object of the present invention can be achieved through the following technical solutions:
1. an alarm remote processing method for standby system, is characterized in that, comprises the following steps:
1) standby system generation alarm event, and alert manager has configured relevant alarming processing operation, i.e. each operating and setting command code;
2) judge whether alarm event repeats, and repeated execution of steps 4), repeat to perform step 3);
3) expired time of extending sessions, and perform step 5);
4) remote session manager is registered as remote operation session by the alarming processing operation of alarm event and support in standby system, and this session is provided with unique identifier in standby system;
5) message builder by standby system generates short message, and this short message comprises alarm event and alarming processing operation;
6), by the short message transceiving device of standby system, the short message of generation is sent to Message Processing terminal in the mode of note;
7) Message Processing terminal obtains after this short message by sending and receiving short messages device, replys corresponding identification code add operation code standby system is carried out to assigned operation;
8) enter short message and process sub-process;
9) enter session cleaning sub-process;
Described step 8) short message is processed sub-process, comprises the following steps:
801) receive remote operation short message;
802) check whether be that system meets legal short message format, perform step if yes 803), otherwise perform step 812);
803) judge whether alarming processing operation is effective, whether alarming processing operation when the alarming processing in short message operates with registration is consistent, if yes, performs step 805), otherwise perform step 804);
804) send result, and perform step 811);
805) executable operations code moves accordingly;
806) revising session status is " in processing ";
807) operation that standby system is asked;
808) judge whether to operate successfully, perform step if yes 809), otherwise perform step 813);
809) revising session status is " finishing dealing with ";
810) revising alarm status is " removing ";
811) by sending and receiving short messages device transmission processing result;
812) finish;
813) the extending sessions time;
814) generate retry note, then perform step 811);
Described step 9) session cleaning sub-process step comprises:
901) start;
902) obtain next remote operation session;
903) judge whether to also have and do not detect, perform step if yes 905), otherwise perform step 904);
904) finish;
905) detect Dialog processing state;
906) judge that whether session finishes dealing with, and performs step 911 if yes), otherwise perform step 907);
907) detect the expired state of session;
908) judge whether out of dately, perform step if yes 909), otherwise perform step 913);
909) whether detect is, in processing, to perform step if yes 910), otherwise perform step 911);
910) extend expired time, return to step 902);
911) cleaning session;
912) send SMS message, perform step 902);
913) whether judging distance expiration time is less than setting threshold, returns to if yes step 912), otherwise return to step 902).
A kind of processing unit of alarm remote processing method of standby system, it is characterized in that, comprise original backup management module, alert manager, remote session manager, message builder, the first sending and receiving short messages device and Message Processing terminal, in described Message Processing terminal, be provided with the second sending and receiving short messages device;
Described alert manager configuration alarming processing operation, message builder generates the short message of alarm event and alarming processing operation, and by sending to Message Processing terminal by the first sending and receiving short messages device, the second sending and receiving short messages device successively, described Message Processing terminal is carried out short message processing, the whole remote session process of remote session manager coordinates.
Described alert manager is used for configuring alarming processing operation, comprising:
1) configuration alarm item;
2) there is the remote operation of carrying out after alarm in configuration;
3) term of validity that subsequent operation is carried out in configuration alarm;
4) alarming processing operation information is distributed to other modules of standby system;
5) support the releasing operation of alarm event, if fault get rid of; without carrying out again teleprocessing.
Described remote session manager generates remote operation session, and processes the note of receiving, is specially:
1) the subsequent operation list of all warning information is preserved according to the expired time arranging, generate remote operation session;
2) according to the corresponding session of the content matching of the reply of short message, the identity information of simultaneous verification Message Processing terminal;
3) call other modules of standby system, and will call result and reply to Message Processing terminal;
4) upgrade the remote session that session status cleaning were lost efficacy.
Described message builder generates and sends to the content of short message of Message Processing terminal to comprise:
1) brief information of alarm record;
2) the subsequent operation list and the term of validity that in warning information, configure;
3) identifying code of remote session.
Described remote session manager sending and receiving note, employing be third-party note cat, support AT order to receive and dispatch note, itself and standby system have two kinds of mounting meanss:
1) by the PCI/COM/USB interface on standby system mainboard, be directly connected on standby system;
2) be arranged in alarm agent client, standby system is by network control alarm agent client.
The first described sending and receiving short messages device comprises two kinds, and a kind of is the third party's note cat being placed in standby system, another kind of for receiving and dispatching the mobile terminal of short message.
Described third party's note cat, can be directly installed in standby system or in alarm agent client.
Compared with prior art, the present invention has following advantage:
(1) be not subject to the restriction in space and place, as long as standby system (equipment) breaks down, just can the very first time notify related personnel;
(2) except notifying keeper, can also provide follow-up emergency processing measure, realize the real remote failure of standby system (equipment) is processed;
(3), when reducing management cost, reduce the fail safe of protected system and standby system.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
Embodiment
As shown in Figure 1 and Figure 2, a kind of alarm remote processing unit of standby system, comprise original backup management module, alert manager, remote session manager, message builder, the first sending and receiving short messages device and Message Processing terminal, in described Message Processing terminal, be provided with the second sending and receiving short messages device; Described alert manager configuration alarming processing operation, message builder generates the short message of alarm event and alarming processing operation, and by sending to Message Processing terminal by the first sending and receiving short messages device, the second sending and receiving short messages device successively, described Message Processing terminal is carried out short message processing, the whole remote session process of remote session manager coordinates.
Fig. 1 short message R-T unit is directly installed on standby system, and Fig. 2 short message R-T unit is directly installed on agent client.
Described alert manager is used for configuring alarming processing operation, comprising:
1) configuration alarm item;
2) there is the remote operation of carrying out after alarm in configuration;
3) term of validity that subsequent operation is carried out in configuration alarm;
4) alarming processing operation information is distributed to other modules of standby system;
5) support the releasing operation of alarm event, if fault get rid of; without carrying out again teleprocessing.
Described remote session manager generates remote operation session, and processes the note of receiving, is specially:
1) the subsequent operation list of all warning information is preserved according to the expired time arranging, generate remote operation session;
2) according to the corresponding session of the content matching of the reply of short message, the identity information of simultaneous verification Message Processing terminal;
3) call other modules of standby system, and will call result and reply to Message Processing terminal;
4) upgrade the remote session that session status cleaning were lost efficacy.
Described message builder generates and sends to the content of short message of Message Processing terminal to comprise:
1) brief information of alarm record;
2) the subsequent operation list and the term of validity that in warning information, configure;
3) identifying code of remote session.
Described remote session manager sending and receiving note, employing be third-party note cat, support AT order to receive and dispatch note, itself and standby system have two kinds of mounting meanss:
1) by the PCI/COM/USB interface on standby system mainboard, be directly connected on standby system;
2) be arranged in alarm agent client, standby system is by network control alarm agent client.
The first described sending and receiving short messages device comprises two kinds, and a kind of is the third party's note cat being placed in standby system, another kind of for receiving and dispatching the mobile terminal of short message.
Described third party's note cat, can be directly installed in standby system or in alarm agent client.
As shown in Figure 5, a kind of alarm remote processing method of standby system, comprises the following steps:
1) standby system generation alarm event, and alert manager has configured relevant alarming processing operation, i.e. each operating and setting command code;
2) judge whether alarm event repeats, and repeated execution of steps 4), repeat to perform step 3);
3) expired time of extending sessions, and perform step 5);
4) remote session manager is registered as the operation of alarm event and support a remote operation session in standby system, and for preventing malicious operation or repetitive operation, this session has unique identifier in system;
5) message builder by standby system generates short message, comprises alarm event and alarming processing operation;
6), by the short message transceiving device of standby system, the short message of production is sent to Message Processing terminal in the mode of note;
7) processor obtains after this short message by sending and receiving short messages device, replys corresponding identification code add operation code system is carried out to assigned operation;
8) enter short message and process sub-process;
9) enter session cleaning sub-process;
As shown in Figure 3, short message handling process, comprises the following steps:
801) receive remote operation short message;
802) check whether system meets legal short message format, legal execution step 803), illegal execution step 812);
803) check remote operation validity, effectively perform step 805), invalid execution step 804);
804) send check result, and perform step 811);
805) executable operations code moves accordingly;
806) revising session status is " in processing ";
807) operation that standby system is asked;
808) whether check and operate successfully, be execution step 809), no execution step 813);
809) revising session status is " finishing dealing with ";
810) revising alarm status is " removing ";
811) by sending and receiving short messages device transmission processing result;
812) finish;
813) the extending sessions time;
814) generate retry note, then perform step 811);
As shown in Figure 4, session clean-up process step comprises:
901) start;
902) obtain next remote operation session;
903) judging whether to also have and do not detect, is execution step 905), no execution step 904);
904) finish;
905) detect Dialog processing state;
906) judging whether session finishes dealing with, is execution step 911), no execution step 907);
907) detect the expired state of session;
908) judge whether out of date, be execution step 909), no execution step 913);
909) whether be process in, be execution step 910 if detecting), no execution step 911);
910) extend expired time, perform step 902);
911) cleaning session;
912) send SMS message, perform step 902);
913) judging whether will be expired, be execution step 912), no execution step 902);
Specific embodiment is as follows
The configuration of standby system is as follows:
1. adopt the 2U X86-based cabinet-type server of totally 12 dish positions;
2. support PCI-E slot, support 1000M network interface;
3. note cat adopts the PCI slot equipment of built-in WAVECOM Q24 chip, and inserts 1 SIM card.
In the present embodiment, adopt the data of standby system to carry out the persistence processing of data, need the content of persistence to be:
1., after each alarm event occurs, the emergency measures set that can take is designated as O:
A) restart alternate device hardware, be designated as O1;
B) restart network (network interface card), be designated as O2;
C) restart backup software service, be designated as O3;
D) again initiate backup tasks, be designated as O4;
E) storage medium is carried out to garbage data cleaning, be designated as O5;
F) delete the stale data of backup tasks, be designated as O6;
G) start back-up system and take over flow process, be designated as O7.
2. in standby system, need to carry out remote-operated alarm event, the set of these events is designated as W:
A) backup tasks is carried out unsuccessfully, is designated as W1;
B) alternate device insufficient space, is designated as W2;
C) alternate device hardware fault, is designated as W3.
3. remote session, is designated as S, each remote session comprise in have:
A) numbering of remote session, for guaranteeing the uniqueness of remote session, adopts the random GUID of generation (GUID) to preserve, because GUID forms by 128, so the probability repeating is very little;
B) this remote-operated identifying code, 4 random digits, comprise letter and number, promote fail safe;
C) there is the object (by recording the ID of backup tasks, backup medium ID) of alarm;
D) corresponding alarm event;
E) expired time of remote session, supports the above time configuration in 1 minute of operation arbitrarily;
F) remote session state (untreated, process in, finish dealing with).
4. short message processor's phone number.
5. the alarm and the respective operations that in database, record are as shown in table 1:
Table 1
In the present embodiment, remote alarm is raw and short message transmission flow is as follows:
1. there is alarm event W in standby system (equipment), and import event into alert manager;
2. alert manager checks whether this alarm event has configured support teleprocessing action, if not configuration directly finishes;
If 3. the event configuration of describing in 3 teleprocessing action, in remote session manager, whether inquiry has not end process of identical remote session, if had, upgrades the term of validity of original event, is set to current time;
4. if there is no untreated same remote session in remote session manager, in remote session manager, register new session, step is as follows:
A) generate GUID, as the label of remote session;
B) generate random session operation demonstration code;
C) the processing action that the alert event of inquiry is supported;
D) above-mentioned information is saved in data.
5. remote session manager produces short message by calling short message maker, and content comprises
A) alarm object and warning information;
B) remote operation identifying code;
C) the processing Action number of supporting;
D) term of validity of remote session;
6. the transmission short-message instruction of message call transceiver, sends to corresponding recipient's message builder by the short message of generation, and the rule that generates short message is:
Identifying code+the mere suggestion of the operation+current sessions of object+alarm event that alarm occurs+can carry out.
If there is event W2-alternate device insufficient space in system, the backup tasks making a mistake is " AAA ", and client is BBB, and failure cause is that media server is full, and the content of note is:
In the present embodiment, the expired processing of remote session triggers once for every 1 minute, and handling process is as follows:
1. the session Si in remote session manager is obtained in circulation, if not, flow process finishes;
2. check whether Si state is " finishing dealing with ";
3., if Si state is " finishing dealing with ", in remote session manager, removes Si, and send the short message prompt processor of by information receiving and transmitting device;
4. if Si is about to expire, and state is " untreated ", and the short breath that sends again is reminded processor;
5. if Si expires, and state is " processing ", session expired time extended to 1 minute;
6. if Si expires, and state is still " untreated ", and remote session manager will be removed Si;
7. repeat 1 to 6 flow process.
In the present embodiment, if the short message that processor has received, and reply, handling process is as follows:
1. information receiving and transmitting device is received process information, by readjustment remote session manager, makes standby system perception;
2. receive after message, first check whether be legal processing messages, during condition, the content of recovery only comprises 4 identifying codes and a bit manipulation code, if illegal, flow process finishes;
3. the message content of receiving is legal, needs to do following inspection, the validity that checking is replied:
The content of a) replying is not for ignoring this alarm;
B) in alert manager, inquiring about corresponding alarm event unmarked is " removing ";
C) remote session that identifying code is corresponding exists in the term of validity;
D) note sender (phone number) recipient is for specifying the processor of alarm event;
E) command code is the valid function of correct configuration.
4. if above-mentioned condition does not meet, send short breath prompting processor check result, flow process finishes;
5., if find corresponding remote operation session Si, according to teleprocessing command code, call other modules of standby system (equipment) and process accordingly, and the treatment state of session Si is set to " in processing ";
6. if operating result success, adjusts back remote session manager, Si state is set to " finishing dealing with ", corresponding alarm Wi state is set to " removing " simultaneously, and sends a success message;
7. if operating result is unsuccessfully, the expired time of extending sessions Si, points out user can again attempt same operation or other operations, and the replying short message at this moment generating is:
A) reason of operation failure;
B) operation+identifying code+mere suggestion of warning information+identifying code+support;
Once occur in above-mentioned all flow processs that note sends failed problem, information receiving and transmitting equipment is attempted resending automatically, until send successfully.