CN102801569B - Data driven Agent end Trap alarming method - Google Patents
Data driven Agent end Trap alarming method Download PDFInfo
- Publication number
- CN102801569B CN102801569B CN201210334813.5A CN201210334813A CN102801569B CN 102801569 B CN102801569 B CN 102801569B CN 201210334813 A CN201210334813 A CN 201210334813A CN 102801569 B CN102801569 B CN 102801569B
- Authority
- CN
- China
- Prior art keywords
- trap
- index
- alarm
- mib
- node variable
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000001514 detection method Methods 0.000 claims abstract description 9
- 230000003068 static effect Effects 0.000 claims description 3
- 239000003795 chemical substances by application Substances 0.000 description 27
- 238000010586 diagram Methods 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012508 change request Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
Landscapes
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a data driven Agent end Trap alarming method and belongs to a Trap alarming method in a simple network management protocol (SNMP). The alarming method comprises the following steps of: step 1, binding MIB (management information base) node variable information and a configuration information group which contains an alarm ID (identity) in an SNMP agent module; step 2, enabling a Trap submodule to receive alarm information from an alarm detection module, wherein the alarm information comprises the alarm ID and indexing information of the bound MIB node variable information; step 3, utilizing the Trap submodule to search the Trap submodule for the configuration information group corresponding to the alarm ID through the alarm ID; step 4, utilizing the Trap submodule to find out the bound MIB node variable digit group through the configuration information group and the data information corresponding to an MIB node; and step 5, utilizing the seeking data information to construct a Trap data packet and sending the Trap data packet to a server by the Trap submodule. The alarming method provided by the invention solves the problem that the Trap information is indeterminate, and the Trap function is managed in an MIB manner as required.
Description
Technical field
The present invention relates to the Trap alarm method in a kind of Simple Network Management Protocol, particularly relate to a kind of Agent end Trap alarm method of data-driven.
Background technology
It is mutual that the management of SNMP depends between management station and agency (Agent), and when particular event appears in monitored end, as system performance problems, or equipment interface is abnormal etc., and agent side is sent a warning message to network management workstation by the mode of Trap alarm.By alarm event, management station the good method of application definition can process alarm.
Network design often needs to change, and the demand of client also may change at any time, therefore, requires in the process of tissue T rap information, is open, adaptable.In some environment of reality, agent side removing management it be positioned at wherein host network management equipment outside, also can manage on behalf of another other the network equipment be attached thereto, as in PON connecting system, agency is arranged in OLT, when the ONU managed on behalf of another can not directly and network management workstation is mutual time, the agency being arranged in OLT understands proxy management ONU equipment, and can cause the uncertainty of Trap warning information in the case.
Summary of the invention
For the problems referred to above that existing SNMP Trap warning information exists, now provide a kind of Agent end Trap alarm method of data-driven, concrete technical scheme is as follows:
An Agent end Trap alarm method for data-driven, comprise with the agent side equipment of SNMP Agent module and the server with snmp protocol, snmp protocol comprises trap submodule, wherein, specifically comprises the steps:
Step 1, in SNMP agent module by management information base (hereinafter referred to as MIB) node variable information group and the configuration information group binding comprising Alarm ID, MIB node variable array comprises the network equipment mib information that described managed devices is managed on behalf of another;
Step 2, Trap submodule receive the warning information from alarm detection module, and warning information comprises the index information of Alarm ID and binding MIB node variable array;
Step 3, Trap submodule search configuration information group corresponding with Alarm ID in Trap submodule by Alarm ID;
Step 4, Trap submodule find the MIB node variable array of binding by configuration information group, and in conjunction with index information, find the data message that MIB node variable array is corresponding;
Step 5, Trap submodule by the data message that the finds data format according to Trap packet in snmp protocol, assembling datagram, and be sent to server.
The Agent end Trap alarm method of above-mentioned data-driven, wherein, described step 1 be in SNMP agent module static by MIB node variable array with comprise the configuration information group binding of warning ID.
The Agent end Trap alarm method of above-mentioned data-driven, wherein, described step 1 is control MIB node variable array by MIB in SNMP agent module and comprise the configuration information group binding of warning ID.
The Agent end Trap alarm method of above-mentioned data-driven, wherein, described index information comprises index item, subindex item and alarm-sessionID; Described index item is for indicating the index of agent side equipment, and described subindex item is for indicating the index of the equipment of managing on behalf of another of agent side equipment, and described alarm-sessionID is for expanding index.
The Agent end Trap alarm method of above-mentioned data-driven, wherein, also comprises in described step 4,
Step 4.1, index item, subindex item and alarm-sessionID are combined into index variables array;
Step 4.2, according to index variables array determine need index number;
Whether step 4.3, detection exist the MIB node variable array of binding, if existed, enter step 4.4, if there is no, index terminates;
Step 4.4, index variables type corresponding to index variables array obtain index value, until index number reaches the index number of needs;
Whether step 4.5, detection exist the MIB node variable array of next binding, if existed, enter step 4.4, if there is no, index terminates;
Step 4.6, obtain data message corresponding to MIB node variable array according to the MIB node variable array of binding and the index value that obtains.
The beneficial effect of technique scheme is:
By the mode of Trap alarm binding variable list, solve the uncertain problem of Trap information, and the management (as added, deleting and amendment) of MIBization can be carried out as required to this function of Trap, both the simple efficient of SNMP Trap mechanism had been remained, again by new Trap is supported, there is very high opening and adaptability.
Accompanying drawing explanation
Fig. 1 is the Data Control operational flow diagram of the Agent end Trap alarm method specific embodiment of a kind of data-driven of the present invention;
Fig. 2 is the module relation diagram of the Agent end Trap alarm method specific embodiment of a kind of data-driven of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the invention will be further described, but not as limiting to the invention.
Shown in composition graphs 1 and Fig. 2, the Data Control operational flow diagram of the embodiment of the Agent end Trap alarm method of a kind of data-driven of the present invention and module relation diagram, wherein, comprise with the agent side equipment of SNMP Agent module and the server with snmp protocol, snmp protocol comprises trap submodule, specifically include following steps: first, can control MIB node variable array and the configuration information group binding comprising Alarm ID by static binding or MIB in SNMP agent module, MIB node variable array comprises the network equipment mib information that managed devices is managed on behalf of another.When network occurs abnormal, Trap submodule can receive the warning information from alarm detection module, this warning information comprises the index information of Alarm ID and binding MIB node variable array, and index information comprises index item, subindex item and alarm-sessionID; Index item is for indicating the index of agent side equipment, and subindex item is for indicating the index of the equipment of managing on behalf of another of agent side equipment, and alarm-sessionID can be used for particular content expansion index, as interface message etc.Pass through Alarm ID, Trap submodule can find and the configuration information group corresponding to Alarm ID, and according to the index variables array that the data item of the index item in index information, subindex item and alarm-sessionID forms, the index number of needs can be determined.In concrete retrieval, first trap submodule can detect the MIB node variable array that whether there is binding, if there is no, index terminates, if existed, then the types of variables determined according to index variables array obtains index value, until index number reaches the index number of needs.Trap submodule can detect the MIB node variable array that whether there is next binding afterwards, if existed, return detection, if there is no, index terminates, and obtains the data message corresponding to MIB node according to the index value obtained and MIB node variable array.
Trap submodule by the data message that the finds data format according to Trap packet in snmp protocol, assembling datagram, and be sent to server; Server carries out decapsulation according to snmp protocol to packet, read data information.
When Trap runs into change request (as managing on behalf of another the change of equipment), change (add, delete and amendment) is only needed to configure.Such as when the MIB node variable dope vector of binding is not enough to describe this alert situation, can to binding the MIB node variable dope vector being more enough to illustrate this alarm event situation in the Trap item corresponding to this alarm.And if need to increase new alarm Trap information, then the mode increasing new alarm configuration information can be taked to realize.Technical scheme of the present invention can carry out the management of MIBization very easily to this function of Trap, therefore can not do rigid program coding with concrete alarm, and being conveniently transplanted to other needs, in the equipment of Trap function, to have very high applicability and autgmentability.
The present invention can be used for OLT device, and with in the ONU of webmaster Agent function or other network equipments.
The foregoing is only preferred embodiment of the present invention; not thereby embodiments of the present invention and protection range is limited; to those skilled in the art; should recognize and all should be included in the scheme that equivalent replacement done by all utilizations specification of the present invention and diagramatic content and apparent change obtain in protection scope of the present invention.
Claims (5)
1. the Agent end Trap alarm method of a data-driven, comprise the agent side equipment of SNMP Agent simple network management proxy module and the server with snmp simple network management protocol, snmp protocol comprises Trap trap message submodule, it is characterized in that, specifically comprises the steps:
Step 1, in SNMP Agent module by MIB management information bank node variable array and the configuration information group binding comprising Alarm ID;
Step 2, Trap submodule receive the warning information from alarm detection module, and warning information comprises the index information of Alarm ID and binding MIB node variable array;
Step 3, Trap submodule search configuration information group corresponding with Alarm ID in Trap submodule by Alarm ID;
Step 4, Trap submodule find the MIB node variable array of binding by configuration information group, and in conjunction with index information, find the data message that MIB node variable array is corresponding;
Step 5, Trap submodule by the data message that the finds data format according to Trap packet in snmp protocol, assembling datagram, and be sent to SNMP server.
2. the Agent end Trap alarm method of data-driven as claimed in claim 1, is characterized in that, described step 1 be static by MIB node variable array and comprise the configuration information group binding of warning ID in SNMP Agent module.
3. the Agent end Trap alarm method of data-driven as claimed in claim 1, is characterized in that, described step 1 is control MIB node variable array by MIB in SNMP Agent module and comprise the configuration information group binding of warning ID.
4. the Agent end Trap alarm method of data-driven as claimed in claim 1, it is characterized in that, described index information comprises index item, subindex item and alarm-sessionID; Described index item is for indicating the index of agent side equipment, and described subindex item is for indicating the index of the equipment of managing on behalf of another of agent side equipment, and described alarm-sessionID is for expanding index.
5. the Agent end Trap alarm method of data-driven as claimed in claim 1, is characterized in that, also comprise in described step 4,
Step 4.1, index item, subindex item and alarm-sessionID are combined into index variables array;
Step 4.2, according to index variables array determine need index number;
Whether step 4.3, detection exist the MIB node variable array of binding, if existed, enter step 4.4, if there is no, index terminates;
Step 4.4, index variables type corresponding to index variables array obtain index value, until index number reaches the index number of needs;
Whether step 4.5, detection exist the MIB node variable array of next binding, if existed, enter step 4.4, if there is no, index terminates;
Step 4.6, obtain data message corresponding to MIB node variable array according to the MIB node variable array of binding and the index value that obtains.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210334813.5A CN102801569B (en) | 2012-09-12 | 2012-09-12 | Data driven Agent end Trap alarming method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210334813.5A CN102801569B (en) | 2012-09-12 | 2012-09-12 | Data driven Agent end Trap alarming method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102801569A CN102801569A (en) | 2012-11-28 |
CN102801569B true CN102801569B (en) | 2015-04-22 |
Family
ID=47200542
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210334813.5A Expired - Fee Related CN102801569B (en) | 2012-09-12 | 2012-09-12 | Data driven Agent end Trap alarming method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102801569B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103414596B (en) * | 2013-08-28 | 2017-07-14 | 上海斐讯数据通信技术有限公司 | The method that all manufacturer Trap and processing are recognized based on simple management procotol |
CN104519017A (en) * | 2013-09-29 | 2015-04-15 | 上海斐讯数据通信技术有限公司 | Simulation SNMP (Simple Network Management Protocol) agent end system |
CN103997420B (en) * | 2014-04-22 | 2018-05-01 | 上海斐讯数据通信技术有限公司 | The processing method and processing unit of Trap information |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1445671A (en) * | 2002-03-15 | 2003-10-01 | 联想(北京)有限公司 | Monitoring method for remote alarming information in real time and with accuracy position |
KR20050080839A (en) * | 2004-02-11 | 2005-08-18 | 주식회사 대우일렉트로닉스 | The remote warning system by using simple network management protocol trap |
CN101616022A (en) * | 2008-06-26 | 2009-12-30 | 艾默生网络能源系统北美公司 | A kind of intelligent device management method and system based on snmp protocol |
CN102075351A (en) * | 2010-12-22 | 2011-05-25 | 瑞斯康达科技发展股份有限公司 | Network management remote control method and system |
-
2012
- 2012-09-12 CN CN201210334813.5A patent/CN102801569B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1445671A (en) * | 2002-03-15 | 2003-10-01 | 联想(北京)有限公司 | Monitoring method for remote alarming information in real time and with accuracy position |
KR20050080839A (en) * | 2004-02-11 | 2005-08-18 | 주식회사 대우일렉트로닉스 | The remote warning system by using simple network management protocol trap |
CN101616022A (en) * | 2008-06-26 | 2009-12-30 | 艾默生网络能源系统北美公司 | A kind of intelligent device management method and system based on snmp protocol |
CN102075351A (en) * | 2010-12-22 | 2011-05-25 | 瑞斯康达科技发展股份有限公司 | Network management remote control method and system |
Also Published As
Publication number | Publication date |
---|---|
CN102801569A (en) | 2012-11-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103546343B (en) | The network traffics methods of exhibiting of network traffic analysis system and system | |
EP3319334A1 (en) | Method for realizing switching of ont operation mode online, ont and olt | |
CN101035133B (en) | Network management method, system and device | |
CN112202609A (en) | Industrial control asset detection method and device, electronic equipment and storage medium | |
CN107959715A (en) | Remote terminal information recognition software system and recognition methods based on wireless telecommunications | |
CN102136924A (en) | Alarming information filtering and delivery processing method and server | |
CN102801569B (en) | Data driven Agent end Trap alarming method | |
CN103023702A (en) | Method for processing batched management information bases (MIB) | |
CN103595569A (en) | Method for handling database storage of alarm information of network management system | |
CN104852813A (en) | Method and system for on-demand loading of TR069 parameter node in home gateway equipment | |
CN104243198A (en) | Network management method and system based on network configuration protocol | |
US20190207805A1 (en) | Node fault isolation | |
US20070050498A1 (en) | Method and apparatus for persisting SNMP variable values | |
CN103036715B (en) | Device management method, device and corresponding network management system | |
CN105337781A (en) | Network management system and method and network system | |
CN101404587B (en) | Proxy equipment management method based on simple network management protocol and equipment thereof | |
CN102783087B (en) | Associative alarm method and device based on management layers | |
CN102594611B (en) | Trap session chain table updating method for webmaster agent | |
CN101753266A (en) | Network topology search and error control optimization method of coaxially-loading Ethernet equipment | |
CN105763380A (en) | Network management data obtaining method and device | |
CN109005205A (en) | A kind of ONT Optical Network Terminal location information collection method, apparatus and system | |
US10860409B2 (en) | Tracelog isolation of failed sessions at scale | |
CN101291257B (en) | Service topology fusion method and network management system | |
CN115694901B (en) | VPN tunnel communication method and device and electronic equipment | |
CN115225545B (en) | Message transmission 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 | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
PP01 | Preservation of patent right |
Effective date of registration: 20180313 Granted publication date: 20150422 |
|
PP01 | Preservation of patent right | ||
PD01 | Discharge of preservation of patent |
Date of cancellation: 20210313 Granted publication date: 20150422 |
|
PD01 | Discharge of preservation of patent | ||
PP01 | Preservation of patent right |
Effective date of registration: 20210313 Granted publication date: 20150422 |
|
PP01 | Preservation of patent right | ||
PD01 | Discharge of preservation of patent |
Date of cancellation: 20240313 Granted publication date: 20150422 |
|
PD01 | Discharge of preservation of patent | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150422 |
|
CF01 | Termination of patent right due to non-payment of annual fee |