CN102202327A - Alarm module automatic generation method and device thereof - Google Patents
Alarm module automatic generation method and device thereof Download PDFInfo
- Publication number
- CN102202327A CN102202327A CN201110152642XA CN201110152642A CN102202327A CN 102202327 A CN102202327 A CN 102202327A CN 201110152642X A CN201110152642X A CN 201110152642XA CN 201110152642 A CN201110152642 A CN 201110152642A CN 102202327 A CN102202327 A CN 102202327A
- Authority
- CN
- China
- Prior art keywords
- alarm
- service logic
- network equipment
- alarm module
- fault
- 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.)
- Granted
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to an alarm module automatic generation method and device, wherein the method comprises the steps of: establishing a network device business logic model; configuring a template file; and analyzing the network device business logic model based on an extension file of the template file to generate an alarm module. According to the invention, fault information of a network device is collected by the automatically generated alarm module, and converted to alarm information after analyzed, and the alarm information is reported to a web master according to preset strategies. The alarm module can be adapted to various network devices, seamlessly runs on the network devices, and supports fault collection and treatment of the network devices so that business logic and a bottom layer are coupled and decoupled, thus repeatability of a construction unit is improved, and the compatibility between the alarm module and the network device is improved. The web master monitor to each network device in real time by only maintaining the network device business logic model about the alarm module, thus the working efficiency of the web master is improved.
Description
Technical field
The present invention relates to the wireless communication technique field, relate in particular to a kind of alarm module and generate method and device automatically.
Background technology
The network manager is responsible for work such as network architecture design, installation and configuration, is responsible for the working condition and the operating state of each unit module in the monitor network equipment simultaneously, makes it to monitor in real time the overall operation situation of the network equipment.And be by alarm module provides the collection of network equipment failure and corresponding accident analysis function are realized to the effective way that the network equipment is monitored.
At present, the alarm module of the existing network equipment, its main business logic is very consistent, and the function of alarm module realizes with the ardware feature coupling of various network device tight, when some variation need take place in the service logic of the alarm module on operating in the monitored network equipment, for regenerating new alarm module, the redesign that will cause a large amount of codes with write.
In addition, when the physical characteristic of the network equipment that increases a needs monitoring newly or the network equipment changes, then need to develop again the alarm module that mates with this network equipment physical characteristic, its construction cycle is long, high and the easy care not of code maintenance cost, therefore the service logic attribute that the configuration mode of existing alarm module can't automatic adaptive various network device is compatible relatively poor.
Summary of the invention
Main purpose of the present invention is to provide a kind of alarm module to generate method and device automatically, improves the compatibility of the alarm module and the network equipment.
In order to achieve the above object, the present invention proposes a kind of alarm module and generates method automatically, comprising:
Set up network equipment service logic model;
The configuration template file;
According to extendfile described network equipment service logic model is resolved, generate alarm module based on described template file.
Preferably, the described step of setting up network equipment service logic model comprises:
Set up network equipment failure and collect service logic;
Set up accident analysis decision business logic;
Set up fault and alarm transformation service logic;
Set up the alarm report service logic.
Preferably, described fault and alarm transformation service logic comprise: is alarm code with the diagnostic trouble code of network equipment failure according to default fault translation table, and is buffered in the alarm bitmap.
Preferably, described alarm report service logic comprises: set up the communication link with webmaster; Time order and function order according to the alarm code conversion is carried out packing to described alarm code, and reports described webmaster by described communication link.
Preferably, described alarm bitmap is by dynamically generating the described alarm code of chain table cache.
Preferably, described alarm code and fault conversion table are all by XML (Extensible Markup Language, extend markup language) file configuration.
The present invention also proposes a kind of alarm module automatically generating device, comprising:
Set up module, be used to set up network equipment service logic model;
Configuration module is used for the configuration template file;
Generation module is used for generating alarm module according to based on the extendfile of described template file described network equipment service logic model being resolved.
Preferably, the described module of setting up also is used to set up network equipment failure collection service logic; Set up accident analysis decision business logic; Set up fault and alarm transformation service logic; And set up the alarm report service logic.
Preferably, described fault and alarm transformation service logic comprise: is alarm code with the diagnostic trouble code of described network equipment failure according to default fault translation table, and is buffered in the alarm bitmap.
Preferably, described alarm report service logic comprises:
Set up communication link with webmaster; Time order and function order according to the alarm code conversion is carried out packing to described alarm code, and reports described webmaster by described communication link.
A kind of alarm module that the present invention proposes generates method and device automatically, by setting up network equipment service logic model; Configuration template file and network equipment service logic model is resolved according to extendfile based on template file, the automatic alarm module that generates, fault message by alarm module collection network equipment, be converted to warning information after fault message analyzed, report webmaster according to predetermined policy, alarm module can be from adaptive various network device, seamless operation is on various network device, support the fault Collecting and dealing of each network equipment, service logic is separated with the bottom layer realization coupling, strengthen the repeatability of construction unit, improved the compatibility of the alarm module and the network equipment.The network manager only need safeguard a network equipment service logic model about alarm module, can realize the real-time monitoring to each network equipment, has improved network manager's operating efficiency.
Description of drawings
Fig. 1 is that alarm module of the present invention generates method one embodiment schematic flow sheet automatically;
Fig. 2 is alarm module automatically generating device one an example structure schematic diagram of the present invention.
In order to make technical scheme of the present invention clearer, clear, be described in further detail below in conjunction with accompanying drawing.
Embodiment
Solution for embodiment of the invention mainly is: the fault message of the alarm module collection network equipment by automatic generation, be converted to warning information after fault message analyzed, report webmaster according to predetermined policy, alarm module can be from adaptive various network device, seamless operation is on various network device, to improve the compatibility of the alarm module and the network equipment.
As shown in Figure 1, one embodiment of the invention proposes a kind of alarm module and generates method automatically, comprising:
Step S101 sets up network equipment service logic model;
In the present embodiment, set up network equipment service logic model and comprise: set up network equipment failure and collect service logic; Set up accident analysis decision business logic; Set up fault and alarm transformation service logic; Set up the alarm report service logic.Wherein, fault and alarm transformation service logic comprise: is alarm code with the diagnostic trouble code of network equipment failure according to default fault translation table, and is buffered in the alarm bitmap.The alarm report service logic comprises: set up the communication link with webmaster; Time order and function order according to the alarm code conversion is carried out packing to alarm code, and reports webmaster by communication link.
Setting up network equipment service logic model is in order to realize every logic of business functions of the alarm module of generation automatically.It comprises: the fault message of collection network equipment; Fault message is analyzed; Fault message after analyzing is converted to warning information and buffer memory; Warning information is reported webmaster according to predetermined policy.
Present embodiment is by the fault message of the automatic alarm module collection network equipment that generates, the bottom physical characteristic of the network equipment that the automatic adaptive alarm module of alarm module is moved, the otherness that fault is collected and the troubleshooting mode is brought that shielding causes owing to network equipment physics bottom otherness; The alarm module that should automatically generate can across a network equipment, the underlying operating system seamless operation.When the fault message of collection network equipment, specifically can collect according to the fault type parameter of the network equipment.
Wherein can adopt predetermined mechanism to judge whether this fault needs to report etc. to fault message analysis.After the network equipment had reported fault, the follow-up delay when collecting the information of fault recovery reported, if this fault takes place once more during anti-shake, then fault recovery is considered as invalidly, no longer carries out fault recovery and reports processing.
Fault message is converted to warning information is meant that the fault conversion table according to default converts the diagnostic trouble code of warning information to the alarm code of warning information.Wherein, the fault conversion table is by the XML file configuration; The corresponding alarm code of each bar warning information, the alarm code of warning information is by the XML file configuration.
The global data district that present embodiment utilization alarm bitmap comes the buffer memory warning information realizes the basis that warning information reliably reports, repeats functions such as alarm filter.Wherein, the alarm bitmap adopts the mode that dynamically generates chained list to store warning information.
Alarm module is at first set up the communication link with webmaster; According to the time order and function order of warning information conversion warning information is carried out packing then, and report webmaster by communication link.In the said process, alarm module need be judged the warning information of buffer memory judge whether it reports, the alarm report that repeats is filtered; If do not report, then the time order and function according to the warning information conversion reports in proper order.
For the warning information that has reported, if webmaster does not receive that webmaster can send the request that reports again to alarm module, when receiving that reporting again of webmaster transmission asked, alarm module is according to reporting request to report corresponding warning information again again.
For the network equipment that alarm module is not set such as peripheral single board, its can adopt RUDP between plate (Reliable User Datagram Protocol, RUDP) message to the network equipment with alarm module such as master control borad report and alarm information.
With peripheral single board and master control borad is example, can report master control borad reliably in order to guarantee warning information, and the alarm report of peripheral single board can adopt acknowledgement mechanism.Peripheral single board is at first listed the warning information that collects in the alarm report formation, then to master control borad report and alarm information, after the response of receiving master control borad, this warning information is deleted from the alarm formation again.
Step S102, the configuration template file;
Step S103 resolves network equipment service logic model according to the extendfile based on template file, generates alarm module.
In the present embodiment, template file is mainly definition and some macrodefinitions of public function, is used for replacing special parameter in the template.The autgmentability file is a series of template files.
Present embodiment is meant that to the parsing of the network equipment service logic model logic that the logical gate with network equipment service logic model replaces in the template file quotes, and finally generates alarm module and uses the alarm module that obtains generating.
It is big that present embodiment has solved present network equipment bottom otherness, the problem that software development cost is big; Adopt standardized component model, strengthened the extensibility and the interoperability of alarm module.The fault message of the alarm module collection network equipment by automatic generation, be converted to warning information after fault message analyzed, report webmaster according to predetermined policy, alarm module can be from adaptive various network device, seamless operation is supported the fault Collecting and dealing of each network equipment on various network device, service logic is separated with the bottom layer realization coupling, strengthen the repeatability of construction unit, improved the compatibility of the alarm module and the network equipment.The network manager only need safeguard a network equipment service logic model about alarm module, can realize the real-time monitoring to each network equipment, has improved network manager's operating efficiency.
As shown in Figure 2, one embodiment of the invention proposes a kind of alarm module automatically generating device, comprising: set up module 201, configuration module 202 and generation module 203, wherein:
Set up module 201, be used to set up network equipment service logic model;
In the present embodiment, set up network equipment service logic model and comprise: set up network equipment failure and collect service logic; Set up accident analysis decision business logic; Set up fault and alarm transformation service logic; Set up the alarm report service logic.Wherein, fault and alarm transformation service logic comprise: is alarm code with the diagnostic trouble code of network equipment failure according to default fault translation table, and is buffered in the alarm bitmap.The alarm report service logic comprises: set up the communication link with webmaster; Time order and function order according to the alarm code conversion is carried out packing to alarm code, and reports webmaster by communication link.
Setting up network equipment service logic model is in order to realize every logic of business functions of the alarm module of generation automatically.It comprises: the fault message of collection network equipment; Fault message is analyzed; Fault message after analyzing is converted to warning information and buffer memory; Warning information is reported webmaster according to predetermined policy.
Present embodiment is by the fault message of the automatic alarm module collection network equipment that generates, the bottom physical characteristic of the network equipment that the automatic adaptive alarm module of alarm module is moved, the otherness that fault is collected and the troubleshooting mode is brought that shielding causes owing to network equipment physics bottom otherness; The alarm module that should automatically generate can across a network equipment, the underlying operating system seamless operation.When the fault message of collection network equipment, specifically can collect according to the fault type parameter of the network equipment
Wherein can adopt predetermined mechanism to judge whether this fault needs to report etc. to fault message analysis.After the network equipment had reported fault, the follow-up delay when collecting the information of fault recovery reported, if this fault takes place once more during anti-shake, then fault recovery is considered as invalidly, no longer carries out fault recovery and reports processing.
Fault message is converted to warning information is meant that the fault conversion table according to default converts the diagnostic trouble code of warning information to the alarm code of warning information.Wherein, the fault conversion table is by the XML file configuration; The corresponding alarm code of each bar warning information, the alarm code of warning information is by the XML file configuration.
The global data district that present embodiment utilization alarm bitmap comes the buffer memory warning information realizes the basis that warning information reliably reports, repeats functions such as alarm filter.Wherein, the alarm bitmap adopts the mode that dynamically generates chained list to store warning information.
Alarm module is at first set up the communication link with webmaster; According to the time order and function order of warning information conversion warning information is carried out packing then, and report webmaster by communication link.In the said process, alarm module need be judged the warning information of buffer memory judge whether it reports, the alarm report that repeats is filtered; If do not report, then the time order and function according to the warning information conversion reports in proper order.
For the warning information that has reported, if webmaster does not receive that webmaster can send the request that reports again to alarm module, when receiving that reporting again of webmaster transmission asked, alarm module is according to reporting request to report corresponding warning information again again.
For the network equipment that alarm module is not set such as peripheral single board, its can adopt between plate RUDP message to the network equipment with alarm module such as master control borad report and alarm information.
With peripheral single board and master control borad is example, can report master control borad reliably in order to guarantee warning information, and the alarm report of peripheral single board can adopt acknowledgement mechanism.Peripheral single board is at first listed the warning information that collects in the alarm report formation, then to master control borad report and alarm information, after the response of receiving master control borad, this warning information is deleted from the alarm formation again.
In the present embodiment, template file is mainly definition and some macrodefinitions of public function, is used for replacing special parameter in the template.The autgmentability file is a series of template files.
Present embodiment is meant that to the parsing of the network equipment service logic model logic that the logical gate with network equipment service logic model replaces in the template file quotes, and finally generates alarm module and uses the alarm module that obtains generating.
Method that embodiment of the invention alarm module generates automatically and device are by setting up network equipment service logic model; Configuration template file and network equipment service logic model is resolved according to extendfile based on template file, the automatic alarm module that generates, fault message by alarm module collection network equipment, be converted to warning information after fault message analyzed, report webmaster according to predetermined policy, alarm module can be from adaptive various network device, seamless operation is on various network device, support the fault Collecting and dealing of each network equipment, service logic is separated with the bottom layer realization coupling, strengthen the repeatability of construction unit, improved the compatibility of the alarm module and the network equipment.The network manager only need safeguard a network equipment service logic model about alarm module, can realize the real-time monitoring to each network equipment, has improved network manager's operating efficiency.
The above only is the preferred embodiments of the present invention; be not so limit claim of the present invention; every equivalent structure or flow process conversion that utilizes specification of the present invention and accompanying drawing content to be done; or directly or indirectly be used in other relevant technical field, all in like manner be included in the scope of patent protection of the present invention.
Claims (10)
1. an alarm module generates method automatically, it is characterized in that, comprising:
Set up network equipment service logic model;
The configuration template file;
According to extendfile described network equipment service logic model is resolved, generate alarm module based on described template file.
2. according to the described method of claim 1, it is characterized in that the described step of setting up network equipment service logic model comprises:
Set up network equipment failure and collect service logic;
Set up accident analysis decision business logic;
Set up fault and alarm transformation service logic;
Set up the alarm report service logic.
3. according to the described method of claim 2, it is characterized in that described fault and alarm transformation service logic comprise: is alarm code with the diagnostic trouble code of network equipment failure according to default fault translation table, and is buffered in the alarm bitmap.
4. according to the described method of claim 2, it is characterized in that described alarm report service logic comprises: set up communication link with webmaster; Time order and function order according to the alarm code conversion is carried out packing to described alarm code, and reports described webmaster by described communication link.
5. according to the described method of claim 3, it is characterized in that described alarm bitmap is by dynamically generating the described alarm code of chain table cache.
6. according to claim 3,4 or 5 described methods, it is characterized in that described alarm code and fault conversion table are all by the expandable mark language XML file configuration.
7. an alarm module automatically generating device is characterized in that, comprising:
Set up module, be used to set up network equipment service logic model;
Configuration module is used for the configuration template file;
Generation module is used for generating alarm module according to based on the extendfile of described template file described network equipment service logic model being resolved.
8. device according to claim 7 is characterized in that, the described module of setting up also is used to set up network equipment failure collection service logic; Set up accident analysis decision business logic; Set up fault and alarm transformation service logic; And set up the alarm report service logic.
9. device according to claim 8 is characterized in that, described fault and alarm transformation service logic comprise: is alarm code with the diagnostic trouble code of described network equipment failure according to default fault translation table, and is buffered in the alarm bitmap.
10. device according to claim 8 is characterized in that, described alarm report service logic comprises:
Set up communication link with webmaster; Time order and function order according to the alarm code conversion is carried out packing to described alarm code, and reports described webmaster by described communication link.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110152642.XA CN102202327B (en) | 2011-06-08 | 2011-06-08 | Alarm module automatic generation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110152642.XA CN102202327B (en) | 2011-06-08 | 2011-06-08 | Alarm module automatic generation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102202327A true CN102202327A (en) | 2011-09-28 |
CN102202327B CN102202327B (en) | 2018-05-01 |
Family
ID=44662639
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110152642.XA Active CN102202327B (en) | 2011-06-08 | 2011-06-08 | Alarm module automatic generation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102202327B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102932172A (en) * | 2012-10-23 | 2013-02-13 | 华为技术有限公司 | Method, equipment and system for detecting Ethernet ring failure node |
CN105337769A (en) * | 2015-10-22 | 2016-02-17 | 上海斐讯数据通信技术有限公司 | System and method for alarming processing flow |
CN105446707A (en) * | 2014-07-09 | 2016-03-30 | 杭州海康威视系统技术有限公司 | Data conversion method |
CN117035293A (en) * | 2023-07-28 | 2023-11-10 | 广州慧云网络科技有限公司 | DICT operation and maintenance notification method and device, terminal equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1306771A2 (en) * | 2001-10-23 | 2003-05-02 | Sun Microsystems, Inc. | XML based report generator |
CN101022476A (en) * | 2007-03-13 | 2007-08-22 | 中兴通讯股份有限公司 | Fault detail warning system, method and relative server |
CN101384054A (en) * | 2007-09-04 | 2009-03-11 | 中兴通讯股份有限公司 | Method for network exception condition monitoring through performance data |
CN102055545A (en) * | 2009-10-30 | 2011-05-11 | 华为技术有限公司 | Method and device for analyzing reliability of synchronous digital system network |
-
2011
- 2011-06-08 CN CN201110152642.XA patent/CN102202327B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1306771A2 (en) * | 2001-10-23 | 2003-05-02 | Sun Microsystems, Inc. | XML based report generator |
CN101022476A (en) * | 2007-03-13 | 2007-08-22 | 中兴通讯股份有限公司 | Fault detail warning system, method and relative server |
CN101384054A (en) * | 2007-09-04 | 2009-03-11 | 中兴通讯股份有限公司 | Method for network exception condition monitoring through performance data |
CN102055545A (en) * | 2009-10-30 | 2011-05-11 | 华为技术有限公司 | Method and device for analyzing reliability of synchronous digital system network |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102932172A (en) * | 2012-10-23 | 2013-02-13 | 华为技术有限公司 | Method, equipment and system for detecting Ethernet ring failure node |
CN105446707A (en) * | 2014-07-09 | 2016-03-30 | 杭州海康威视系统技术有限公司 | Data conversion method |
CN105446707B (en) * | 2014-07-09 | 2020-02-21 | 杭州海康威视系统技术有限公司 | Data conversion method |
CN105337769A (en) * | 2015-10-22 | 2016-02-17 | 上海斐讯数据通信技术有限公司 | System and method for alarming processing flow |
CN117035293A (en) * | 2023-07-28 | 2023-11-10 | 广州慧云网络科技有限公司 | DICT operation and maintenance notification method and device, terminal equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN102202327B (en) | 2018-05-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101877618B (en) | Monitoring method, server and system based on proxy-free mode | |
CN101483545B (en) | Financial service monitoring method and system | |
CN101605056B (en) | J2EE server monitoring device and monitoring method employing same | |
CN100479575C (en) | Method and apparatus for realizing scheduled operation in equipment management | |
EP1604486B1 (en) | Relational model for management information in network devices | |
CN100554985C (en) | A kind of method of inspection of north direction interface data integrity | |
CN104092575A (en) | Resource monitoring method and system | |
CN101605346A (en) | The fault restoration method and apparatus | |
CN103746849A (en) | IT (information technology) operation and maintenance management system based on mobile intelligent terminal | |
CN104038373B (en) | information early warning and self-repairing system and method | |
CN107807872A (en) | A kind of power transmission and transformation system method for monitoring operation states | |
CN103139018B (en) | Network card status monitoring under a kind of modulation integral system and TCP communication method | |
CN102202327A (en) | Alarm module automatic generation method and device thereof | |
CN105052076A (en) | Interface management service entity, functional service entity and network element management method | |
CN104243185A (en) | Experiential service monitoring system and method | |
CN101729567A (en) | Web alarm monitoring system and method based on Socket protocol | |
CN103902389A (en) | Equipment management method supporting bidirectional communication based on android platform | |
CN107463490B (en) | Cluster log centralized collection method applied to platform development | |
CN105187233A (en) | System for reporting terminal data of IOT (Internet of Things) and working method thereof | |
CN108228755A (en) | The data of MySQL database based on daily record analytic technique to Hadoop platform synchronize clone method | |
CN111127250A (en) | Electric power data monitoring event analysis system and method | |
CN106682078A (en) | Industrial personal computer data dump method and system | |
CN105743695A (en) | Monitoring method and system based on IEC 104 protocol | |
CN101227324A (en) | Fault information gathering method of communication equipment as well as communication equipment and system thereof | |
CN102148702B (en) | Method for managing network by utilizing network configuration protocol |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |