CN102202327B - Alarm module automatic generation method and device - Google Patents

Alarm module automatic generation method and device Download PDF

Info

Publication number
CN102202327B
CN102202327B CN201110152642.XA CN201110152642A CN102202327B CN 102202327 B CN102202327 B CN 102202327B CN 201110152642 A CN201110152642 A CN 201110152642A CN 102202327 B CN102202327 B CN 102202327B
Authority
CN
China
Prior art keywords
alarm
network equipment
service logic
alarm module
establish
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
CN201110152642.XA
Other languages
Chinese (zh)
Other versions
CN102202327A (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.)
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 CN201110152642.XA priority Critical patent/CN102202327B/en
Publication of CN102202327A publication Critical patent/CN102202327A/en
Application granted granted Critical
Publication of CN102202327B publication Critical patent/CN102202327B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of alarm module automatic generation method and device, its method includes:Establish network equipment service logic model;Configuration template file;Network equipment service logic model is parsed according to the extension file based on template file, generates alarm module.The present invention passes through the fault message of the alarm module collection network equipment automatically generated, warning information is converted to after analyzing fault message, webmaster is reported to according to predetermined policy, alarm module can be from the various network equipments of adaptation, seamless operation supports the failure Collecting and dealing of each network equipment on the various network equipments, by service logic and bottom layer realization integrated separation, the repeatability of construction unit is increased, improves the compatibility of alarm module and the network equipment.Network administrator only needs to safeguard a network equipment service logic model on alarm module, you can realizes the real time monitoring to each network equipment, improves the work efficiency of network administrator.

Description

Alarm module automatic generation method and device
Technical field
The present invention relates to wireless communication technique field, more particularly to a kind of alarm module automatic generation method and device.
Background technology
Network administrator is responsible for the work such as network architecture design, installation and configuration, while is responsible for each in the monitoring network equipment The working condition and working status of a unit module so that it can supervise the overall operation situation of the network equipment in real time Control.And be to the effective way that the network equipment is monitored the collection to network equipment failure provided by alarm module and Corresponding accident analysis function is realized.
At present, the alarm module of the existing network equipment, its main business logic is very consistent, and the work(of alarm module It can realize and be coupled with the ardware feature of the various network equipments closely, when the industry for operating in the alarm module on the monitored network equipment When business logic needs to occur some changes, to regenerate new alarm module, redesign and the volume of a large amount of codes will be caused Write.
In addition, when newly-increased one needs the physical characteristic of the network equipment or network equipment monitored to change, then need Again exploitation and the matched alarm module of network equipment physical characteristic, its construction cycle length, code maintenance is of high cost and is not easy Safeguard, thus the configuration mode of existing alarm module can not the various network equipments of automatic adaptation service logic attribute, it is compatible Property is poor.
The content of the invention
It is a primary object of the present invention to provide a kind of alarm module automatic generation method and device, improve alarm module with The compatibility of the network equipment.
In order to achieve the above object, the present invention proposes a kind of alarm module automatic generation method, including:
Establish network equipment service logic model;
Configuration template file;
The network equipment service logic model is parsed according to based on the extension file of the template file, is generated Alarm module.
Preferably, described the step of establishing network equipment service logic model, includes:
Establish network equipment failure and collect service logic;
Establish accident analysis decision business logic;
Establish failure and alarm transformation service logic;
Establish alarm report service logic.
Preferably, the failure and alarm transformation service logic include:By the error code of network equipment failure according to default Conversion fault table be converted to alarm code, and be buffered in alarm bitmap in.
Preferably, the alarm report service logic includes:Establish the communication link with webmaster;According to alarm code conversion Time order and function order dispenses the alarm code, and is reported to the webmaster by the communication link.
Preferably, the alarm bitmap passes through alarm code described in dynamic generation chain table cache.
Preferably, by XML, (Extensible Markup Language, can for the alarm code and Conversion fault table Extending mark language) file configuration.
The present invention also proposes a kind of alarm module automatically generating device, including:
Module is established, for establishing network equipment service logic model;
Configuration module, for configuration template file;
Generation module, for basis based on the extension file of the template file to the network equipment service logic model Parsed, generate alarm module.
Preferably, the module of establishing is additionally operable to establish network equipment failure collection service logic;Accident analysis is established to determine Plan service logic;Establish failure and alarm transformation service logic;And establish alarm report service logic.
Preferably, the failure and alarm transformation service logic include:By the error code of the network equipment failure according to Default Conversion fault table is converted to alarm code, and is buffered in alarm bitmap.
Preferably, the alarm report service logic includes:
Establish the communication link with webmaster;The alarm code is divided according to the time order and function order of alarm code conversion Dress, and the webmaster is reported to by the communication link.
A kind of alarm module automatic generation method and device proposed by the present invention, by establishing network equipment service logic mould Type;Configuration template file and network equipment service logic model is parsed according to the extension file based on template file, The alarm module automatically generated, by the fault message of alarm module collection network equipment, is changed after analyzing fault message For warning information, webmaster is reported to according to predetermined policy, alarm module can be from the various network equipments be adapted to, and seamless operation is each On the kind network equipment, support the failure Collecting and dealing of each network equipment, service logic and bottom layer realization integrated separation add The big repeatability of construction unit, improves the compatibility of alarm module and the network equipment.Network administrator only needs maintenance one Network equipment service logic model of the part on alarm module, you can realize the real time monitoring to each network equipment, improve The work efficiency of network administrator.
Brief description of the drawings
Fig. 1 is one embodiment flow diagram of alarm module automatic generation method of the present invention;
Fig. 2 is one example structure schematic diagram of alarm module automatically generating device of the present invention.
In order to make technical scheme clearer, clear, it is described in further detail below in conjunction with attached drawing.
Embodiment
Solution for embodiment of the invention is mainly:Believed by the failure of the alarm module collection network equipment automatically generated Breath, is converted to warning information after analyzing fault message, is reported to webmaster according to predetermined policy, alarm module can be adaptive With the various network equipments, seamless operation is on the various network equipments, to improve the compatibility of alarm module and the network equipment.
As shown in Figure 1, one embodiment of the invention proposes a kind of alarm module automatic generation method, including:
Step S101, establishes network equipment service logic model;
In the present embodiment, establishing network equipment service logic model includes:Establish network equipment failure and collect service logic; Establish accident analysis decision business logic;Establish failure and alarm transformation service logic;Establish alarm report service logic.Its In, failure and alarm transformation service logic include:The error code of network equipment failure is changed according to default Conversion fault table For alarm code, and it is buffered in alarm bitmap.Alarm report service logic includes:Establish the communication link with webmaster;According to announcement The time order and function order of alert code conversion dispenses alarm code, and is reported to webmaster by communication link.
It is to realize every service logic work(of the alarm module automatically generated to establish network equipment service logic model Energy.It includes:The fault message of collection network equipment;Fault message is analyzed;Fault message after analysis is converted to Warning information simultaneously caches;Warning information is reported to webmaster according to predetermined policy.
The present embodiment passes through the fault message of the alarm module collection network equipment automatically generated, alarm module automatic adaptation The bottom physical characteristic for the network equipment that alarm module is run, shields caused by network equipment physics bottom otherness The otherness that failure is collected and troubleshooting mode is brought;The alarm module automatically generated being capable of across a network equipment, bottom Operating system seamless operation.In the fault message of collection network equipment, can specifically be joined according to the fault type of the network equipment Number is collected.
Wherein fault message, which is analyzed, to judge whether the failure needs to report using predetermined mechanism.Work as net After network equipment has reported failure, during the information of later collection to fault recovery delay report, if this failure is again during stabilization Secondary generation, then fault recovery are considered as invalid, no longer carry out fault recovery and report processing.
Fault message is converted to warning information to refer to turn the error code of warning information according to default Conversion fault table Change the alarm code of warning information into.Wherein, Conversion fault table is configured by XML file;Each warning information corresponds to an announcement Alert code, the alarm code of warning information are configured by XML file.
The present embodiment caches the global data area of warning information using bitmap is alerted, realize warning information reliably report, Repeat the basis of the functions such as alarm filter.Wherein, alarm bitmap stores warning information by the way of dynamic generation chained list.
Alarm module initially sets up the communication link with webmaster;Then it is right according to the time order and function order of warning information conversion Warning information is dispensed, and is reported to webmaster by communication link.In the above process, alarm module needs the alarm to caching Information is judged, judges whether it has reported, and the alarm report repeated is filtered;If not reporting, according to announcement The time order and function order of alert information conversion is reported.
For the warning information reported, if webmaster does not receive, webmaster can send to alarm module and report request again, When receive webmaster transmission when reporting request again, alarm module according to report again request report again it is corresponding alarm letter Breath.
The network equipment such as peripheral single board for being not provided with alarm module, it can use RUDP between plate (Reliable User Datagram Protocol, Reliable User Datagram Protocol) message is to the network with alarm module Equipment such as master control borad report and alarm information.
By taking peripheral single board and master control borad as an example, in order to ensure that warning information can reliably be reported to master control borad, periphery is single The alarm report of plate can use acknowledgement mechanism.The warning information collected is included in alarm report queue by peripheral single board first, Then to master control borad report and alarm information, deleted after the response of master control borad is received, then by the warning information from alarm queue.
Step S102, configuration template file;
Step S103, parses network equipment service logic model according to the extension file based on template file, raw Into alarm module.
In the present embodiment, template file is mainly definition and some macrodefinitions of public function, for replacing template Middle special parameter.Autgmentability file is a series of template files.
The present embodiment refers to the logic of the network equipment service logic model analysis of network equipment service logic solution to model The logic that partial replacement falls in template file is quoted, and ultimately generates alarm module application, the alarm module generated.
The present embodiment solves the problem of current network equipment bottom otherness is big, and software development cost is big;Using standard The component model of change, enhances the scalability and interoperability of alarm module.Pass through the alarm module collecting net automatically generated The fault message of network equipment, warning information is converted to after analyzing fault message, and webmaster is reported to according to predetermined policy, is accused Alert module can be from the various network equipments be adapted to, and seamless operation supports the failure of each network equipment on the various network equipments Collecting and dealing, by service logic and bottom layer realization integrated separation, increases the repeatability of construction unit, improves alarm mould The compatibility of block and the network equipment.Network administrator only needs to safeguard a network equipment service logic mould on alarm module Type, you can realize the real time monitoring to each network equipment, improve the work efficiency of network administrator.
As shown in Fig. 2, one embodiment of the invention proposes a kind of alarm module automatically generating device, including:Establish module 201st, configuration module 202 and generation module 203, wherein:
Module 201 is established, for establishing network equipment service logic model;
Configuration module 202, for configuration template file;
Generation module 203, for being carried out according to the extension file based on template file to network equipment service logic model Parsing, generates alarm module.
In the present embodiment, establishing network equipment service logic model includes:Establish network equipment failure and collect service logic; Establish accident analysis decision business logic;Establish failure and alarm transformation service logic;Establish alarm report service logic.Its In, failure and alarm transformation service logic include:The error code of network equipment failure is changed according to default Conversion fault table For alarm code, and it is buffered in alarm bitmap.Alarm report service logic includes:Establish the communication link with webmaster;According to announcement The time order and function order of alert code conversion dispenses alarm code, and is reported to webmaster by communication link.
It is to realize every service logic work(of the alarm module automatically generated to establish network equipment service logic model Energy.It includes:The fault message of collection network equipment;Fault message is analyzed;Fault message after analysis is converted to Warning information simultaneously caches;Warning information is reported to webmaster according to predetermined policy.
The present embodiment passes through the fault message of the alarm module collection network equipment automatically generated, alarm module automatic adaptation The bottom physical characteristic for the network equipment that alarm module is run, shields caused by network equipment physics bottom otherness The otherness that failure is collected and troubleshooting mode is brought;The alarm module automatically generated being capable of across a network equipment, bottom Operating system seamless operation.In the fault message of collection network equipment, can specifically be joined according to the fault type of the network equipment Number is collected
Wherein fault message, which is analyzed, to judge whether the failure needs to report using predetermined mechanism.Work as net After network equipment has reported failure, during the information of later collection to fault recovery delay report, if this failure is again during stabilization Secondary generation, then fault recovery are considered as invalid, no longer carry out fault recovery and report processing.
Fault message is converted to warning information to refer to turn the error code of warning information according to default Conversion fault table Change the alarm code of warning information into.Wherein, Conversion fault table is configured by XML file;Each warning information corresponds to an announcement Alert code, the alarm code of warning information are configured by XML file.
The present embodiment caches the global data area of warning information using bitmap is alerted, realize warning information reliably report, Repeat the basis of the functions such as alarm filter.Wherein, alarm bitmap stores warning information by the way of dynamic generation chained list.
Alarm module initially sets up the communication link with webmaster;Then it is right according to the time order and function order of warning information conversion Warning information is dispensed, and is reported to webmaster by communication link.In the above process, alarm module needs the alarm to caching Information is judged, judges whether it has reported, and the alarm report repeated is filtered;If not reporting, according to announcement The time order and function order of alert information conversion is reported.
For the warning information reported, if webmaster does not receive, webmaster can send to alarm module and report request again, When receive webmaster transmission when reporting request again, alarm module according to report again request report again it is corresponding alarm letter Breath.
The network equipment such as peripheral single board for being not provided with alarm module, RUDP message is to tool between it can use plate There is the network equipment such as master control borad report and alarm information of alarm module.
By taking peripheral single board and master control borad as an example, in order to ensure that warning information can reliably be reported to master control borad, periphery is single The alarm report of plate can use acknowledgement mechanism.The warning information collected is included in alarm report queue by peripheral single board first, Then to master control borad report and alarm information, deleted after the response of master control borad is received, then by the warning information from alarm queue.
In the present embodiment, template file is mainly definition and some macrodefinitions of public function, for replacing template Middle special parameter.Autgmentability file is a series of template files.
The present embodiment refers to the logic of the network equipment service logic model analysis of network equipment service logic solution to model The logic that partial replacement falls in template file is quoted, and ultimately generates alarm module application, the alarm module generated.
The method and device that alarm module of the embodiment of the present invention automatically generates is by establishing network equipment service logic model; Configuration template file and network equipment service logic model is parsed according to the extension file based on template file, automatically The alarm module of generation, by the fault message of alarm module collection network equipment, is converted to announcement after analyzing fault message Alert information, is reported to webmaster, alarm module can be from the various network equipments be adapted to, and seamless operation is in various nets according to predetermined policy In network equipment, support the failure Collecting and dealing of each network equipment, service logic and bottom layer realization integrated separation increase The repeatability of construction unit, improves the compatibility of alarm module and the network equipment.Network administrator only needs to safeguard a pass In the network equipment service logic model of alarm module, you can realize the real time monitoring to each network equipment, improve network The work efficiency of administrator.
The foregoing is merely the preferred embodiment of the present invention, is not intended to limit the scope of the invention, every utilization Equivalent structure or the flow conversion that description of the invention and accompanying drawing content are made, are directly or indirectly used in other relevant skills Art field, is included within the scope of the present invention.

Claims (8)

  1. A kind of 1. alarm module automatic generation method, it is characterised in that including:
    Network equipment service logic model is established, is specifically included:Establish network equipment failure and collect service logic;Establish failure point Analyse decision business logic;Establish failure and alarm transformation service logic;Establish alarm report service logic;
    Configuration template file;
    The network equipment service logic model is parsed according to based on the extension file of the template file, generation alarm Module, wherein, parsing is carried out to the network equipment service logic model and is referred to the logic of network equipment service logic model The logic that partial replacement falls in template file is quoted.
  2. 2. method according to claim 1, it is characterised in that the failure and alarm transformation service logic include:By network The error code of equipment fault is converted to alarm code according to default Conversion fault table, and is buffered in alarm bitmap.
  3. 3. method according to claim 1, it is characterised in that the alarm report service logic includes:Establish and webmaster Communication link;The alarm code is dispensed according to the time order and function order of alarm code conversion, and passes through the communication link It is reported to the webmaster.
  4. 4. method according to claim 3, it is characterised in that the alarm bitmap passes through announcement described in dynamic generation chain table cache Alert code.
  5. 5. method according to claim 2, it is characterised in that the alarm code and Conversion fault table pass through extensible markup Language XML document configures.
  6. A kind of 6. alarm module automatically generating device, it is characterised in that including:
    Module is established, for establishing network equipment service logic model;Establish network equipment failure and collect service logic;Establish event Hinder analysis decision service logic;Establish failure and alarm transformation service logic;And establish alarm report service logic;
    Configuration module, for configuration template file;
    Generation module, for being carried out according to based on the extension file of the template file to the network equipment service logic model Parsing, generates alarm module, wherein, parsing is carried out to the network equipment service logic model and refers to patrol network equipment business The logic that the logical gate of volume model is replaced in template file is quoted.
  7. 7. device according to claim 6, it is characterised in that the failure and alarm transformation service logic include:By institute The error code for stating network equipment failure is converted to alarm code according to default Conversion fault table, and is buffered in alarm bitmap.
  8. 8. alarm module automatically generating device according to claim 6, it is characterised in that the alarm report service logic Including:Establish the communication link with webmaster;The alarm code is dispensed according to the time order and function order of alarm code conversion, and The webmaster is reported to by the communication link.
CN201110152642.XA 2011-06-08 2011-06-08 Alarm module automatic generation method and device Active CN102202327B (en)

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 CN102202327A (en) 2011-09-28
CN102202327B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
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
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7284194B2 (en) * 2001-10-23 2007-10-16 Sun Microsystems, Inc. XML based report generator
CN101022476B (en) * 2007-03-13 2010-06-16 中兴通讯股份有限公司 Fault detail warning system, method and relative server
CN101384054B (en) * 2007-09-04 2012-01-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

Also Published As

Publication number Publication date
CN102202327A (en) 2011-09-28

Similar Documents

Publication Publication Date Title
CN105578659B (en) A kind of intelligent lighting system applied to field of street lamp lighting
CN102202327B (en) Alarm module automatic generation method and device
CN105574205B (en) The log dynamic analysis system of distributed computing environment
CN111447128A (en) Vehicle data acquisition and uploading method capable of being remotely and dynamically configured and storage medium
CN101848478B (en) Wireless sensor network fault processing method
CN103746849A (en) IT (information technology) operation and maintenance management system based on mobile intelligent terminal
CN101877618A (en) Monitoring method, server and system based on proxy-free mode
EP1890454A1 (en) Method and apparatus for carrying out a predetermined operation in a management device
WO2019223062A1 (en) Method and system for processing system exceptions
CN110806921B (en) OVS (optical virtual system) abnormity alarm monitoring system and method
CN100555952C (en) Screen the implementation method of relevant alarm
CN105516293A (en) Cloud resource monitoring system of intelligent substation
CN102238465A (en) Mobile data service end-to-end quality analysis method and system
CN108632864A (en) A kind of network optimization system for collecting signaling based on terminal baseband chip
CN103067209A (en) Heartbeat module self-testing method
CN107463490B (en) Cluster log centralized collection method applied to platform development
CN110929896A (en) Security analysis method and device for system equipment
CN103237080B (en) A kind of remote fault information processing method of wind power generating set
CN104410686A (en) Bank power grid intelligent monitoring system
CN106682078A (en) Industrial control computer data dump method and system
CN102904744A (en) Method and system for acquiring performance data
WO2016177054A1 (en) Charging equipment management method and device
CN101677278A (en) Method and system for monitoring availability of network information system
CN101499935B (en) Alarm processing method for WiMAX base station
CN112506154A (en) Internet of things monitoring system for domestic sewage treatment station

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