CN105302703B - A kind of method of the alarm data management of OLT device - Google Patents

A kind of method of the alarm data management of OLT device Download PDF

Info

Publication number
CN105302703B
CN105302703B CN201510604315.1A CN201510604315A CN105302703B CN 105302703 B CN105302703 B CN 105302703B CN 201510604315 A CN201510604315 A CN 201510604315A CN 105302703 B CN105302703 B CN 105302703B
Authority
CN
China
Prior art keywords
alarm
data
alarm data
warning
olt device
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
CN201510604315.1A
Other languages
Chinese (zh)
Other versions
CN105302703A (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.)
Huzhou Yinglie Intellectual Property Operation Co ltd
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510604315.1A priority Critical patent/CN105302703B/en
Publication of CN105302703A publication Critical patent/CN105302703A/en
Application granted granted Critical
Publication of CN105302703B publication Critical patent/CN105302703B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a kind of method of the alarm data management of OLT device, comprises the following steps:Associated data where S1, lookup and global position variable identical warning position variable transfers identification guide number as current associated data in current associated data;Whether S2, detection identification guide number are equal to initialization data, if it is not, step S3 is performed, if so, performing step S4;S3, the alarm data identified guided by guide number is deleted, perform step S4;S4, alarm entry is inserted into warning watch, and the session identifier of alarm entry is saved as the identification guide number of current associated data;S5, global position variable add 1.The present invention can be directly after the oldest alarm entry of aging, then newly one alarm entry of insertion, and the warning watch only needs to preserve a alarm data, saves space, and internal processes operation is quick, it is necessary to safeguard that size of code is few.

Description

A kind of method of the alarm data management of OLT device
Technical field
The present invention relates to data managing method technical field, more particularly to the method for the alarm data management of OLT device.
Background technology
OLT device is important local side apparatus, for connecting the terminal device of fiber optic backbone.OLT device occurs in operation When abnormal, network management system needs to notify attendant in time, adopts an effective measure, recovers the normal operation of OLT device.OLT is set Standby alarm management provides the mode such as alarm monitoring, remote alarm notification, and the very first time notifies attendant, ensures troubleshooting Real-time effectiveness.Alarm management provides alarm shield, and alarm suppresses, and improves the accuracy and efficiency of alarming processing.Alarm management Most important is exactly the management to alarm data, and alarm data mainly has current alarm data, history alarm data, historical events Data.
OLT device alarm data management is the core in alarm management, and alarm management module must be fast and effective to alarm Data quickly search and travel through.Currently existing scheme is that alarm data is preserved two parts at present, and portion is the shape of RBTree Formula, another is chained list, and RBTree can be quickly searched alarm data, and chained list can travel through to alarm data.
OLT alarm data data volumes are big, if carrying out quickly searching and traveling through to alarm data, current method is red-black The preservation form of tree can be quickly searched data, and the form of chained list can travel through to data, although meeting announcement The requirement of alert management, but waste space, the operation to alarm data is, it is necessary to safeguard two parts of data every time, efficiency nor It is very high.
When equipment is run, alarm can be constantly be generated, and because the space of equipment limits, the alarm entry for storing alarm is that have One definite limitation, after alarm entry is full, it is necessary to aging is carried out to alarm, just can ensure that the insertion of new alarm.
The content of the invention
It is an object of the invention to provide a kind of method of the alarm data management of OLT device, by OLT record alert databases In each warning watch configure an association list item to preserve the session identification number of all alarms, location variable points to warning watch Next available items, if warning watch write it is full after, directly after the oldest alarm entry of aging, can be accused in new insertion one Alert entry.
In order to realize the purpose of the present invention, the present invention is achieved by the following technical solutions:
A kind of method of the alarm data management of OLT device, establishes warning watch and contingency table in record alert database, described Warning watch is used to store multigroup alarm data, and the contingency table is used to store multigroup associated data, and the alarm data includes meeting Identifier is talked about, the associated data includes identification guide number and warning position variable, is additionally provided with the record alert database complete Office's location variable, the method for the alarm data management comprise the following steps:
Associated data where S1, lookup and global position variable identical warning position variable is as current incidence number According to, transferred in current associated data identification guide number;
Whether S2, detection identification guide number are equal to initialization data, if it is not, step S3 is performed, if so, performing step S4;
S3, the alarm data identified guided by guide number is deleted, perform step S4;
S4, alarm entry is inserted into warning watch, and the session identifier of alarm entry is saved as current associated data Identification guide number;
S5, global position variable add 1.
Further, current alarm table, history alarm table and event table, and current announcement are provided with the record alert database Alert table, history alarm table and event table include one group of warning watch and contingency table.
Further, concretely comprising the following steps in the step S3:
S31, the session identifier in each alarm data in warning watch is searched successively, whether detection session identifier is equal to Identification guide number, if so, performing step S32;
S32, delete current alarm data.
Further, in the step S5, global position variable add 1 after also with list of entries N modulus.
Further, the warning watch and contingency table are maintained in embedded database.
Further, session identifier, alarm number, alarm description and alarm time are stored with the current alarm table.
Further, when session identifier, alarm number, alarm description, alarm setting are stored with the history alarm table Between, alarm cleared time, associated alarm number.
Further, session identifier, alarm number, event description and Time To Event are stored with the event table.
Further, when contingency table is set in the record alert database, the identification guide number of contingency table is initialized as 0。
The present invention preserves all announcements by configuring an association list item to each warning watch in OLT record alert databases Alert session identification number, location variable point to next available items of warning watch, if after warning watch is write completely, can be directly old After changing oldest alarm entry, then newly one alarm entry of insertion, and the warning watch only needs to preserve a alarm data, section Save space, internal processes operation are quick, it is necessary to safeguard that size of code is few.
Brief description of the drawings
The present invention is described in further detail with reference to the accompanying drawings and detailed description:
Fig. 1 is the method schematic of the method for the alarm data management of the OLT device of the present invention.
Embodiment
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, explanation and accompanying drawing are for the present invention below It is exemplary, and is understood not to the limitation present invention.Numerous details are following description described to facilitate to this hair Sensible solution.However, in some instances, well known or conventional details does not specify simultaneously, to meet the succinct requirement of specification.
As shown in fig.1, a kind of method of the alarm data management of OLT device, establishes warning watch in record alert database And contingency table, warning watch are used to store multigroup alarm data, contingency table is used to store multigroup associated data, and alarm data includes meeting Identifier is talked about, including identifying guide number and warning position variable, identification guide number alerts associated data for pointing to one of which When data, global position variable is additionally provided with record alert database, and contingency table is set in record alert database, by contingency table Identification guide number is initialized as 0, or is initialized as other data that can be distinguished with session identifier.And stored in warning watch Alarm data is limited, and the quantity for presetting alarm entry herein is N groups, and number of entries phase in warning watch and contingency table Together.
The method of alarm data management comprises the following steps:
Associated data where S1, lookup and global position variable identical warning position variable is as current incidence number According to, transferred in current associated data identification guide number;The step is used for, and searches in the contingency table guided by global position variable Associated data, the identification that the associated data is stored, which is guided, number takes out.
Whether S2, detection identification guide number are equal to initialization data, if it is not, step S3 is performed, if so, performing step S4; Whether the step is used to detect once is stored with identification guide number in this associated data, if storing identification guide number, The identification guide number guided by alarm data be oldest alarm data, it is necessary to delete, if not storing alarm data, Alarm data is then directly stored in warning watch is needed.
S3, the identification guide number identified guided by guide number is deleted, perform step S4;
S4, alarm entry is inserted into warning watch, and the session identifier of alarm entry is saved as current associated data Identification guide number;The step is used for, and when global position variable points to the associated data again, can be directed to the incidence number According to the alarm data of sensing, so as to which newest alarm data is deleted and replaced with from alarm data.
S5, global position variable add 1, and with list of entries N modulus.The step is used for, and edits one group of association every time After data, global position variable can point at next group of associated data, and so setting to ensure in S1, global position variable Guided associated data data are oldest, i.e., the alarm data guided by associated data is also oldest.
Concretely comprising the following steps in step S3:
S31, the session identifier in each alarm data in warning watch is searched successively, whether detection session identifier is equal to Identification guide number, if so, performing step S32;
S32, delete current alarm data.
During the alarm management of OLT device, warning watch is in particular in current alarm table, history alarm table and event In table, i.e., current alarm table, history alarm table and event table are provided with record alert database, and current alarm table, history are accused Alert table and event table include one group of warning watch and contingency table.
Warning watch and contingency table are maintained in embedded database.The embedded database can be sqlite, Progress, Empress etc..
In the present embodiment, session identifier, alarm number, alarm description and alarm time are stored with current alarm table.
When session identifier, alarm number, alarm description, alarm setting time, alarm clearance are stored with history alarm table Between, associated alarm number.
Session identifier, alarm number, event description and Time To Event are stored with event table.
It should be noted that above-described embodiment can independent assortment as needed.Described above is only the preferred of the present invention Embodiment, it is noted that for those skilled in the art, do not departing from the premise of the principle of the invention Under, some omissions, improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (8)

1. the method for the alarm data management of a kind of OLT device, it is characterised in that warning watch and pass are established in record alert database Join table, the warning watch is used to store multigroup alarm data, and the contingency table is used to store multigroup associated data, the alarm number According to including session identifier, the associated data includes identification guide number and warning position variable, and the identification guide number is used for One of which alarm data is pointed to, and warning watch is identical with number of entries in contingency table, is provided with and works as in the record alert database Preceding warning watch, history alarm table and event table, and current alarm table, history alarm table and event table include one group of warning watch and Contingency table, global position variable is additionally provided with the record alert database, the method for the alarm data management includes following step Suddenly:
Associated data where S1, lookup and global position variable identical warning position variable as current associated data, Identification guide number is transferred in current associated data;
Whether S2, detection identification guide number are equal to initialization data, if it is not, step S3 is performed, if so, performing step S4;
S3, the alarm data identified guided by guide number is deleted, perform step S4;
S4, alarm entry is inserted into warning watch, and the session identifier of alarm entry is saved as the knowledge of current associated data Not Zhi Yin number;
S5, global position variable add 1.
2. the method for the alarm data management of OLT device according to claim 1, it is characterised in that:In the step S3 Concretely comprise the following steps:
S31, the session identifier in each alarm data in warning watch is searched successively, whether detection session identifier is equal to identification Guide number, if so, performing step S32;
S32, delete current alarm data.
3. the method for the alarm data management of OLT device according to claim 1, it is characterised in that:In the step S5, Global position variable add 1 after also with list of entries N modulus.
4. the method for the alarm data management of OLT device according to claim 1, it is characterised in that:The warning watch and Contingency table is maintained in embedded database.
5. the method for the alarm data management of OLT device according to claim 1, it is characterised in that:The current alarm Session identifier, alarm number, alarm description and alarm time are stored with table.
6. the method for the alarm data management of OLT device according to claim 1, it is characterised in that:The history alarm Session identifier, alarm number, alarm description, alarm setting time, alarm cleared time, associated alarm number are stored with table.
7. the method for the alarm data management of OLT device according to claim 1, it is characterised in that:In the event table It is stored with session identifier, alarm number, event description and Time To Event.
8. the method for the alarm data management of OLT device according to claim 1, it is characterised in that:The alarm data When contingency table is set in storehouse, the identification guide number of contingency table is initialized as 0.
CN201510604315.1A 2015-09-21 2015-09-21 A kind of method of the alarm data management of OLT device Active CN105302703B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510604315.1A CN105302703B (en) 2015-09-21 2015-09-21 A kind of method of the alarm data management of OLT device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510604315.1A CN105302703B (en) 2015-09-21 2015-09-21 A kind of method of the alarm data management of OLT device

Publications (2)

Publication Number Publication Date
CN105302703A CN105302703A (en) 2016-02-03
CN105302703B true CN105302703B (en) 2018-01-30

Family

ID=55199993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510604315.1A Active CN105302703B (en) 2015-09-21 2015-09-21 A kind of method of the alarm data management of OLT device

Country Status (1)

Country Link
CN (1) CN105302703B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592233A (en) * 2003-08-30 2005-03-09 华为技术有限公司 Safety journal realizing method
CN103425663A (en) * 2012-05-16 2013-12-04 中兴通讯股份有限公司 Method and device for creating tables, saving records and deleting records for embedded system database
CN103595569A (en) * 2013-11-15 2014-02-19 南京云川信息技术有限公司 Method for handling database storage of alarm information of network management system
CN104038378A (en) * 2014-07-01 2014-09-10 上海斐讯数据通信技术有限公司 Alarm management system and method of access network device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100489690B1 (en) * 2003-02-14 2005-05-17 삼성전자주식회사 Method for procesing event and controlling real error and modeling database table

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592233A (en) * 2003-08-30 2005-03-09 华为技术有限公司 Safety journal realizing method
CN103425663A (en) * 2012-05-16 2013-12-04 中兴通讯股份有限公司 Method and device for creating tables, saving records and deleting records for embedded system database
CN103595569A (en) * 2013-11-15 2014-02-19 南京云川信息技术有限公司 Method for handling database storage of alarm information of network management system
CN104038378A (en) * 2014-07-01 2014-09-10 上海斐讯数据通信技术有限公司 Alarm management system and method of access network device

Also Published As

Publication number Publication date
CN105302703A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
CN110661659B (en) Alarm method, device and system and electronic equipment
CN104363106B (en) A kind of communicating for power information fault pre-alarming analysis method based on big data technology
CN105099783B (en) A kind of method and system for realizing operation system alarm emergency disposal automation
CN102798389B (en) Method and system for personnel location
CN106407030A (en) Failure processing method and system for storage cluster system
CN114548706A (en) Early warning method for business risk and related equipment
CN107070680A (en) A kind of intelligent operational system of IT information machine rooms and method
WO2016188187A1 (en) Testing method and device for passive optical network alarm
CN104038373A (en) Information early warning and self repairing system and method
CN105187239A (en) Communication alarm analysis system based on data mining and processing method thereof
JP2020057416A (en) Method and device for processing data blocks in distributed database
CN105591770A (en) Determination method and apparatus for fault type in PON
CN103776492A (en) OPGW condition monitoring system
CN103607295A (en) Alarm processing method and alarm system
CN103763127A (en) Device state alarm monitoring method and system
WO2015180542A1 (en) Method and apparatus for detecting continuous-mode optical network unit, and network management device
CN109409113A (en) A kind of electric network data safety protecting method and distributed power grid data safety guard system
CN105512707A (en) Monitoring system and method for operation site
CN104243192A (en) Fault treatment method and system
WO2016202044A1 (en) Method and apparatus for detecting fault point of optical fiber
CN113190623B (en) Data processing method, device, server and storage medium
CN105302703B (en) A kind of method of the alarm data management of OLT device
CN104683145A (en) Warning monitoring system server, client and warning information processing and querying method
CN110162450A (en) A kind of IT phenomenon of the failure feedback system
CN110311809A (en) The access terminal monitoring and managing method and device of video monitoring system

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201118

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201216

Address after: 8319 Yanshan Road, Bengbu City, Anhui Province

Patentee after: Bengbu Lichao Information Technology Co.,Ltd.

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210312

Address after: 313000 room 1019, Xintiandi commercial office, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Address before: 8319 Yanshan Road, Bengbu City, Anhui Province

Patentee before: Bengbu Lichao Information Technology Co.,Ltd.

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A method of alarm data management for OLT equipment

Effective date of registration: 20221204

Granted publication date: 20180130

Pledgee: Huzhou Wuxing Rural Commercial Bank Co.,Ltd. high tech Zone Green sub branch

Pledgor: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Registration number: Y2022330003406

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20231205

Granted publication date: 20180130

Pledgee: Huzhou Wuxing Rural Commercial Bank Co.,Ltd. high tech Zone Green sub branch

Pledgor: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Registration number: Y2022330003406