CN101056228A - Test method and system for data device alarming - Google Patents

Test method and system for data device alarming Download PDF

Info

Publication number
CN101056228A
CN101056228A CNA2007101234143A CN200710123414A CN101056228A CN 101056228 A CN101056228 A CN 101056228A CN A2007101234143 A CNA2007101234143 A CN A2007101234143A CN 200710123414 A CN200710123414 A CN 200710123414A CN 101056228 A CN101056228 A CN 101056228A
Authority
CN
China
Prior art keywords
alarm
warning message
warning
data equipment
send
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.)
Pending
Application number
CNA2007101234143A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNA2007101234143A priority Critical patent/CN101056228A/en
Publication of CN101056228A publication Critical patent/CN101056228A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a data equipment alarm test method and system, and preset data equipment alarm testing alarm scenario, the method includes: when fulfill the data equipment alarm management tests, select the required alarms from the alarm scenario, then send the alarms to the alarm message; receive and analyze the alarm message, trigger the alarm processing according to the analyzed results. The invention may directly call the alarm scenario, simulate the alarms of sending equipment to improve the coverage rate of network administration alarm tests, and realizes the automation of alarm tests.

Description

The method of testing of data device alarming and system
Technical field
The present invention relates to communication technical field, relate in particular to a kind of method of testing and system of data device alarming.
Background technology
In the alarm management test of data equipment, usually all be to produce all kinds of alarms by data equipment, as the alarm, the CPU usage that plug ambient temperature generation above 65 ℃ ambient temperatures on netting twine, restarting equipment, the equipment reach one-level threshold value alarm or the like, data equipment sends the TRAP message that carries warning information, and Network Management Equipment is checked the warning message that send by packet catcher or webmastering software.In test process,,, can test its alarm condition by data equipment hand-manipulated as the alarm that plug netting twine, restarting equipment etc. produce for the test of some alarm; But for some alarm, surpass 65 ℃ of alarm, CPU usage that produce ambient temperature as ambient temperature on the equipment and reach one-level threshold value alarm etc., realization generally can not appear or be not easy in this class alarm, so, often can not carry out for the test of this class alarm.
In a word, present alarm management test can only manage test to the part alarm, and the coverage rate of alarm test is lower, and fails to realize the automation of alarm test.
Summary of the invention
The invention provides a kind of method of testing and system of data device alarming, the present invention is by the common alarm script that directly calls, and the alarm of simulation transmitting apparatus reaches the coverage rate that improves the network management alarm test, and has realized the automation of alarm test.
The invention provides a kind of method of testing of data device alarming, preset the alarm script of data device alarming test usefulness, when carrying out the alarm management test of data equipment, described method comprises:
From described alarm script, select the alarm of needs, send the warning message of described alarm then; Reception is also resolved described warning message, and the result who obtains according to parsing triggers alarming processing.
Wherein, before carrying out the step that sends warning message, also comprise:
The transmission parameter is set, and described transmission parameter comprises in the following parameter at least: send at interval, send number, transmission frequency.
The step of described transmission warning message specifically comprises:
The destination address and the warning information that send according to described alarm generate warning message;
Send described warning message.
Receive and also to resolve described warning message, the step that the result who obtains according to parsing carries out alarming processing specifically comprises:
Listen to described warning message;
Judge according to the destination address of described warning message whether the data equipment that sends described warning message belongs to manageable data equipment, if the warning information in the described warning message is resolved, and carries out alarming processing according to the result who resolves, otherwise, abandon described warning message.
The present invention also provides a kind of test macro of data device alarming, comprising:
Alarm script memory cell is used to store and the alarm script of usefulness is tested in the management data equipment alarm;
The alarm transmitting element, when carrying out the alarm management test of data equipment, described alarm selected cell is used for selecting from described alarm script memory cell the alarm of needs, and sends the warning message of described alarm;
The warning analysis unit receives and resolves described warning message, and the result who obtains according to parsing triggers alarming processing;
Warning processing module, the result who is used for obtaining according to parsing carries out alarming processing.
Wherein, described alarm transmitting element specifically comprises:
The warning message generation module, the destination address and the warning information that are used for sending according to described alarm generate warning message;
The warning message sending module is used to send described warning message.
Described warning analysis unit specifically comprises:
Warning message is intercepted module, is used to intercept warning message, after listening to described warning message, triggers the alarm judge module;
The alarm judge module is used for judging according to the destination address of described warning message whether the data equipment that sends described warning message belongs to manageable data equipment, if, trigger the warning information parsing module, otherwise, described warning message abandoned;
The warning information parsing module is used for the warning information of described warning message is resolved, and triggers alarming processing according to the result who resolves.
To sum up, the present invention is by the common alarm script that directly calls, and the alarm of simulation transmitting apparatus reaches the coverage rate that improves the network management alarm test, and has realized the automation of alarm test.
Description of drawings
Fig. 1 is the schematic flow sheet of the method for testing of the described data device alarming of the embodiment of the invention;
Fig. 2 is the structural representation of the test macro of the described data device alarming of the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing the described system and method for the embodiment of the invention is elaborated.
1 pair of described method of the embodiment of the invention is elaborated at first in conjunction with the accompanying drawings.
As shown in Figure 1, the described method of the embodiment of the invention specifically comprises:
Step 11, predefine generate the alarm script of data device alarming test usefulness,, write the alarm script in advance that is, script can be used as automatic test script, for different data equipments after all verifying and passing through, directly load this script, can carry out the automatic test of network management alarm; Writing of script is according to each warning information, and promptly OID (object identifier) information also needs in the script variable that comprises in this OID information is defined respectively.Note when writing, last of OID information be exactly this alarm call number (as following for example in last position is 1, representing alarm code is 1 alarm), for all alarms of hardware classes, the OID of alarm is basic identical, is exactly the call number difference of last alarm.
The OID information that the explanation of giving one example is below alarmed:
Type: the environment alarm: the device interior temperature surpasses the high severity alarm threshold value;
The high severity alarm of TrapOid:.1.3.6.1.4.1.3902.3.4.20.1.0//device interior temperature above 65 ℃;
SMI_INTEGER, 1, the shelf number of .1.3.6.1.4.1.3902.3.4.6.1.1.1.1//generation alarm;
SMI_INTEGER, 1, the frame number of .1.3.6.1.4.1.3902.3.4.6.1.2.1.1//generation alarm;
SMI_INTEGER, 11, the veneer of .1.3.6.1.4.1.3902.3.4.6.1.3.1.1//generation alarm number;
SMI_INTEGER, 6, the port numbers of .1.3.6.1.4.1.3902.3.4.6.1.4.1.1//generation alarm;
SMI_INTEGER, 1 .1.3.6.1.4.1.3902.3.4.6.1.5.1.1//alarm code number;
SMI_INTEGER, 1 .1.3.6.1.4.1.3902.3.4.6.1.6.1.1//alarm level;
SMI_TIMETICKS, 200585965 .1.3.6.1.4.1.3902.3.4.6.1.7.1.1//alarm time;
SMI_INTEGER, 1 .1.3.6.1.4.1.3902.3.4.6.1.8.1.1//alarm status;
SMI_INTEGER, 1 .1.3.6.1.4.1.3902.3.4.6.1.9.1.1//alarm type;
SMI_INTEGER, 0 .1.3.6.1.4.1.3902.3.4.6.1.10.1.1//alarm variable;
SMI_INTEGER, 0 .1.3.6.1.4.1.3902.3.4.6.1.11.1.1//alarm Upper threshold;
SMI_INTEGER, 0 .1.3.6.1.4.1.3902.3.4.6.1.12.1.1//alarm Lower Threshold;
SMI_STRING,>65 .1.3.6.1.4.1.3902.3.4.6.1.13.1.1//alarm description;
Step 12, when alarm management when test of carrying out data equipment, the alarm that selection needs from described alarm script, send the warning message of described alarm then, described warning message is all gone up at 162 ports (trap Trap port) usually and is sent, and will guarantee that at first 162 ports are not taken by other program before sending message.Start alarm and send thread, need to be provided with alarm before sending and send parameter, described transmission parameter comprises: send at interval, send number, transmission frequency etc.;
Load the alarm script,, construct a warning message, then described warning message is sent to Network Management Equipment based on SNMP (Simple Network Management Protocol) according to the destination address of described alarm transmission and the OID information in the alarm script; In the specific implementation process of the embodiment of the invention, described warning message can be the Trap message;
Step 13, receive and resolve described warning message, the result who obtains according to parsing triggers alarming processing.
After warning message sent out, network management system can capture this warning message with packet catcher, also can receive and resolve this message with webmastering software.Specifically as described in Figure 2, after network management system arrives these messages by 162 port snoopings, through the alarm filter device, incident of preliminary generation, by resolving the IP address in the warning message, check this IP address whether in manageable network element address, if, illustrate that the data equipment that sends warning message belongs to the equipment that need carry out test and management, further resolves OID information; Parsing obtains parameters such as alarm code, alarm type, and Network Management Equipment carries out alarming processing then, if the OID that obtains is incorrect, abandons described warning message.For the concrete processing procedure of described alarming processing, existing ripe solution repeats no more herein in the prior art;
2 pairs of described systems of the embodiment of the invention are elaborated below in conjunction with accompanying drawing.
As shown in Figure 2, the described system of the embodiment of the invention specifically comprises:
Alarm script memory cell, be used to store the also alarm script of management data equipment alarm test usefulness, be exactly specifically, before the alarm test, need write the script of various alarms in advance, after script is all verified and is passed through, can be used as automatic test script, all alarm scripts are stored in the alarm script memory cell, in the specific implementation process of the embodiment of the invention, described alarm script memory cell all is alarm script storehouse usually, and writing of script is according to each warning information, i.e. OID (object identifier) information.
The alarm transmitting element, when carrying out the alarm management test of data equipment, described alarm selected cell is used for selecting from described alarm script memory cell the alarm of needs, described alarm comprises: produce all kinds of alarms by data equipment, as plug ambient temperature on netting twine, restarting equipment, the equipment and surpass 65 ℃ of alarm, CPU usage that produce ambient temperatures and reach one-level threshold value alarm etc., described alarm transmitting element specifically comprises:
The warning message generation module is used for destination address that sends according to described alarm and the warning information of alarming script, and promptly the OID information structuring becomes one based on SNMP (Simple Network Management Protocol) warning message;
The warning message sending module is used for described warning message is sent to Network Management Equipment.
The warning analysis unit, after warning message sent out, network management system can capture this warning message with packet catcher, also can and resolve this message with the webmastering software reception, resolved described warning message then, and the result who obtains according to parsing triggers alarming processing;
Described warning analysis unit specifically comprises:
Warning message is intercepted module, and network management system behind described warning message, triggers the alarm judge module by 162 port snoopings;
The alarm judge module is used for judging according to the destination address of described warning message whether the data equipment that sends described warning message belongs to manageable data equipment, if, trigger the warning information parsing module, otherwise, described warning message abandoned;
The warning information parsing module, when the data equipment that sends described warning message belongs to manageable data equipment, described warning information parsing module is resolved OID information, parsing obtains parameters such as alarm code, alarm type, trigger the alarming processing unit then, and the parameter that described parsing obtains is sent to the alarming processing unit.
The alarming processing unit, the result who is used for obtaining according to parsing carries out alarming processing, and for the concrete processing procedure of described alarming processing, existing ripe solution repeats no more herein in the prior art;
In sum, the embodiment of the invention has improved a kind of method of testing and system of data device alarming, directly calls the alarm script by common webmaster tester, the alarm of simulation transmitting apparatus, reach the coverage rate that improves the network management alarm test, and realized the automation of alarm test.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (7)

1, a kind of method of testing of data device alarming is characterized in that, presets the alarm script of data device alarming test usefulness, and when carrying out the alarm management test of data equipment, described method comprises:
From described alarm script, select the alarm of needs, send the warning message of described alarm then;
Reception is also resolved described warning message, and the result who obtains according to parsing triggers alarming processing.
2, method according to claim 1 is characterized in that, also comprises before carrying out the step that sends warning message:
The transmission parameter is set, and described transmission parameter comprises in the following parameter at least: send at interval, send number, transmission frequency.
3, method according to claim 1 and 2 is characterized in that, the step of described transmission warning message specifically comprises:
The destination address and the warning information that send according to described alarm generate warning message;
Send described warning message.
4, method according to claim 3 is characterized in that, described reception is also resolved described warning message, and the step that the result who obtains according to parsing carries out alarming processing specifically comprises:
Listen to described warning message;
Judge according to the destination address of described warning message whether the data equipment that sends described warning message belongs to manageable data equipment, if the warning information in the described warning message is resolved, and carries out alarming processing according to the result who resolves, otherwise, abandon described warning message.
5, a kind of test macro of data device alarming is characterized in that, comprising:
Alarm script memory cell is used to store and the alarm script of usefulness is tested in the management data equipment alarm;
The alarm transmitting element, when carrying out the alarm management test of data equipment, described alarm selected cell is used for selecting from described alarm script memory cell the alarm of needs, and sends the warning message of described alarm;
The warning analysis unit receives and resolves described warning message, and the result who obtains according to parsing triggers alarming processing;
Warning processing module, the result who is used for obtaining according to parsing carries out alarming processing.
6, system according to claim 5 is characterized in that, described alarm transmitting element specifically comprises:
The warning message generation module, the destination address and the warning information that are used for sending according to described alarm generate warning message;
The warning message sending module is used to send described warning message.
7, system according to claim 6 is characterized in that, described warning analysis unit specifically comprises:
Warning message is intercepted module, is used to intercept warning message, after listening to described warning message, triggers the alarm judge module;
The alarm judge module is used for judging according to the destination address of described warning message whether the data equipment that sends described warning message belongs to manageable data equipment, if, trigger the warning information parsing module, otherwise, described warning message abandoned;
The warning information parsing module is used for the warning information of described warning message is resolved, and triggers alarming processing according to the result who resolves.
CNA2007101234143A 2007-06-22 2007-06-22 Test method and system for data device alarming Pending CN101056228A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007101234143A CN101056228A (en) 2007-06-22 2007-06-22 Test method and system for data device alarming

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007101234143A CN101056228A (en) 2007-06-22 2007-06-22 Test method and system for data device alarming

Publications (1)

Publication Number Publication Date
CN101056228A true CN101056228A (en) 2007-10-17

Family

ID=38795848

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007101234143A Pending CN101056228A (en) 2007-06-22 2007-06-22 Test method and system for data device alarming

Country Status (1)

Country Link
CN (1) CN101056228A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009062419A1 (en) * 2007-11-14 2009-05-22 Huawei Technologies Co., Ltd. Testing method and system
CN101527660B (en) * 2009-04-03 2011-06-08 华为技术有限公司 Alarm method, associated equipment and system
CN101699479B (en) * 2009-11-13 2014-05-14 从兴技术有限公司 Method and system for process management
CN104270256A (en) * 2014-09-05 2015-01-07 烽火通信科技股份有限公司 Testing device and method for managing cross-platform network alarms and events
CN105245379A (en) * 2015-10-22 2016-01-13 上海斐讯数据通信技术有限公司 Method and device for testing network management system through simulating SNMP (simple network management protocol) network element
WO2016015511A1 (en) * 2014-07-31 2016-02-04 中兴通讯股份有限公司 Method, apparatus and computer storage medium for simulating data packet in network management test event
CN106330478A (en) * 2015-06-16 2017-01-11 中兴通讯股份有限公司 Method and device for processing trap message
CN106357457A (en) * 2016-10-31 2017-01-25 瑞斯康达科技发展股份有限公司 Warning test method, warning test apparatus and warning test system
CN108449235A (en) * 2018-05-07 2018-08-24 苏州德姆斯信息技术有限公司 Equipment alarm calculation processing system and processing method
CN111025183A (en) * 2019-11-27 2020-04-17 深圳供电局有限公司 Transformer substation signal alarm calibration method and device
CN111698121A (en) * 2020-06-10 2020-09-22 浪潮商用机器有限公司 SNMP trap alarm test method and related device

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009062419A1 (en) * 2007-11-14 2009-05-22 Huawei Technologies Co., Ltd. Testing method and system
CN101527660B (en) * 2009-04-03 2011-06-08 华为技术有限公司 Alarm method, associated equipment and system
CN101699479B (en) * 2009-11-13 2014-05-14 从兴技术有限公司 Method and system for process management
WO2016015511A1 (en) * 2014-07-31 2016-02-04 中兴通讯股份有限公司 Method, apparatus and computer storage medium for simulating data packet in network management test event
CN105323115A (en) * 2014-07-31 2016-02-10 中兴通讯股份有限公司 Data packet simulation method and data packet simulation device of network management test event
CN104270256B (en) * 2014-09-05 2017-11-07 烽火通信科技股份有限公司 The test device and method of a kind of cross-platform network alarm and incident management
CN104270256A (en) * 2014-09-05 2015-01-07 烽火通信科技股份有限公司 Testing device and method for managing cross-platform network alarms and events
CN106330478A (en) * 2015-06-16 2017-01-11 中兴通讯股份有限公司 Method and device for processing trap message
CN105245379A (en) * 2015-10-22 2016-01-13 上海斐讯数据通信技术有限公司 Method and device for testing network management system through simulating SNMP (simple network management protocol) network element
CN106357457A (en) * 2016-10-31 2017-01-25 瑞斯康达科技发展股份有限公司 Warning test method, warning test apparatus and warning test system
CN106357457B (en) * 2016-10-31 2019-10-25 瑞斯康达科技发展股份有限公司 A kind of alarm test method, apparatus and system
CN108449235A (en) * 2018-05-07 2018-08-24 苏州德姆斯信息技术有限公司 Equipment alarm calculation processing system and processing method
CN108449235B (en) * 2018-05-07 2023-12-12 苏州德姆斯信息技术有限公司 Equipment alarm calculation processing system and processing method
CN111025183A (en) * 2019-11-27 2020-04-17 深圳供电局有限公司 Transformer substation signal alarm calibration method and device
CN111025183B (en) * 2019-11-27 2021-11-02 深圳供电局有限公司 Transformer substation signal alarm calibration method and device
CN111698121A (en) * 2020-06-10 2020-09-22 浪潮商用机器有限公司 SNMP trap alarm test method and related device
CN111698121B (en) * 2020-06-10 2022-10-14 浪潮商用机器有限公司 SNMP trap alarm test method and related device

Similar Documents

Publication Publication Date Title
CN101056228A (en) Test method and system for data device alarming
Cejka et al. NEMEA: a framework for network traffic analysis
CN1992635A (en) Method of simulating SNMP network element and performing network management system test with the network element
CN111800412B (en) Advanced sustainable threat tracing method, system, computer equipment and storage medium
CN101043384A (en) System and method for network test
CN1203641C (en) Method and system for monitoring network intrusion
WO2010017679A1 (en) Method and device for intrusion detection
CN103716198B (en) Data network quality auto-dial testing method and system
CN1741526A (en) Method and system for detecting exception flow of network
CN101056218A (en) A network performance measurement method and system
CN109684155B (en) Monitoring configuration method, device, equipment and readable storage medium
CN109063486B (en) Safety penetration testing method and system based on PLC equipment fingerprint identification
CN113422774B (en) Automatic penetration testing method and device based on network protocol and storage medium
CN101079746A (en) Secure implementation method and device of broadband access device
CN1866951A (en) Method and system for detecting shared access host machine in network
CN101159590A (en) System and method for detecting veneer plugging condition
CN1921407A (en) Alarm managing method for SNMP protocol network managing system
CN109995429A (en) Broadband user side fault detection method, device, equipment and medium
CN112134754A (en) Pressure testing method and device, network equipment and storage medium
CN111142878A (en) SDN operation and maintenance method, device, equipment and readable storage medium
WO2024021495A1 (en) Method and apparatus for identifying flooding attack in cloud platform, and device and storage medium
CN105323128B (en) method, device and system for accessing front-end equipment to server
CN1968056A (en) Line fault diagnosis method in passive optical network
CN112000544A (en) Real-time monitoring method for large screen of Internet of things equipment
CN106330981B (en) Network web site information collection method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication