CN103997420A - Trap information processing method and device - Google Patents

Trap information processing method and device Download PDF

Info

Publication number
CN103997420A
CN103997420A CN201410162632.8A CN201410162632A CN103997420A CN 103997420 A CN103997420 A CN 103997420A CN 201410162632 A CN201410162632 A CN 201410162632A CN 103997420 A CN103997420 A CN 103997420A
Authority
CN
China
Prior art keywords
information
trap
trap information
processing
unit
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
Application number
CN201410162632.8A
Other languages
Chinese (zh)
Other versions
CN103997420B (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.)
Hangzhou Jiji 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 CN201410162632.8A priority Critical patent/CN103997420B/en
Publication of CN103997420A publication Critical patent/CN103997420A/en
Application granted granted Critical
Publication of CN103997420B publication Critical patent/CN103997420B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a trap information processing method and device. The trap information processing method comprises the following steps: when an alarm event occurs, whether trap information matched with the alarm event exists is judged; when the trap information matched with the alarm event exists, whether additional information in the trap information is null is judged; when the additional information is not null, whether the trap information comprises special binding variables is traversed; and when the trap information comprises the special binding variables, the value of the additional information is set to be the range corresponding to the special variables. According to the trap information processing method, when the additional information in the trap information is not null and the trap information comprises the special binding variables, the value of the additional information is set to be the range corresponding to the special variables, thereby increasing the content of the trap information, and realizing special information reporting.

Description

The processing method of trap information and device
Technical field
The present invention relates to communication technical field, relate in particular to a kind of processing method and processing unit of trap information.
Background technology
SNMP (Simple Network Management Protocol, Simple Network Management Protocol) is the solution that the needs due to standard network management agreement produce, and it provides the network management framework of bottom for network management system.SNMP is because it is simple in structure, implement the alarm management that the characteristics such as convenience are widely used in network equipment switch, router etc.
Snmp protocol operates on manager-agency's administrative model, and direct, a basic method of exchange of management information between manager's entity and agent entity is provided.The information exchanging between manager's entity and agent entity has multiple, for important type of message of SNMP, is exactly Trap (trap) message.Agency in managed devices can be at any time to network management workstation reporting errors situation, for example, formulate in advance the threshold value degree etc. of crossing the border.Agency does not need Deng Dao management work station just can report when obtaining these error situation polls.
Processing for trap in traditional snmp protocol is to carry out analyzing and processing by the binding information in trap data, these informational needs comprise the locating information of alarm, produce the state of reason and current alarm object etc., because the form of these binding informations is all fixed, so the method adopting when resolving these binding informations is also very single.These binding informations must be some MIB node (management information banks, Management Information Base), and must be can the value of getting MIB node, the needed index number of each node and the index value in addition that with these MIB nodes, report together, otherwise cannot obtain the value of binding information, SNMP is for mib information and the index of these bindings, adopt in the same way, namely the common method of obtaining MIB node goes to obtain their concrete value, also have the information such as data type, and the value getting is encapsulated in trap packet together, be reported to NM server, user can see these binding informations by NM server, and by checking analysis, the reason that current alarm object is produced, current state is analyzed, thereby understand current system situation and need to process or how to process for alarm.
Although existing method can meet the needs of most of alarm, in practical application, also have much very important information to go to get relevant information by normal MIB node.
Summary of the invention
What the present invention solved is cannot obtain by normal MIB node the problem of specific information in prior art.
For addressing the above problem, the invention provides a kind of processing method of trap information, comprising:
When alarm event produces, judge whether to exist the trap information of mating with this alarm event;
When there is the trap information of coupling, judge whether the additional information in described trap information is empty;
When described additional information is not sky, travels through described trap information and whether comprise special binding variable;
When comprising special binding variable, the value of additional information is set to the codomain that special variable is corresponding.
Optionally, the processing method of described trap information also comprises: other information in trap information are processed according to predetermined manner, and reported after the trap information after processing is encapsulated.
Optionally, describedly judge whether the additional information in described trap information is that empty step comprises:
Obtain the OID information of described trap information;
Whether the additional information that judges described trap information according to the OID information getting is empty.
Optionally, the processing method of described trap information also comprises:
When described additional information is sky, travel through other information in described trap information;
Other information in described trap information are processed according to predetermined manner;
After being encapsulated, other information in trap information after processing report.
Optionally, the processing method of described trap information also comprises:
When described trap information does not comprise special binding variable, travel through other information in described trap information;
Other information in described trap information are processed according to predetermined manner;
After being encapsulated, other information in trap information after processing report.
The present invention also provides a kind of processing unit of trap information, comprising:
Matching unit, is suitable for when alarm event produces, and judges whether to exist the trap information of mating with this alarm event;
Judging unit, is suitable for when there is the trap information of coupling, judges whether the additional information in described trap information is empty;
Query unit, is suitable for, when described additional information is not sky, travels through described trap information and whether comprising special binding variable;
The first processing unit, is suitable for when comprising special binding variable, and the value of additional information is set to the codomain that special variable is corresponding.
Optionally, the processing unit of described trap information also comprises:
The second processing unit, is suitable for other information in trap information to process according to predetermined manner;
Encapsulation unit, be suitable for and the trap information after processing is encapsulated after report.
Optionally, described the second processing unit, is also suitable for, when described additional information is sky, traveling through other information in described trap information, and other information in described trap information are processed according to predetermined manner;
Described encapsulation unit, reports after being also suitable for other information in the trap information after processing to encapsulate.
Optionally, described the second processing unit, is also suitable for, when described trap information does not comprise special binding variable, traveling through other information in described trap information, and other information in described trap information are processed according to predetermined manner;
Described encapsulation unit, reports after being also suitable for other information in the trap information after processing to encapsulate.
Optionally, described judging unit comprises:
Acquiring unit, is suitable for obtaining the OID information of described trap information;
Verification unit, is suitable for judging according to the OID information getting whether the additional information of described trap information is empty.
Compared with prior art, technical scheme of the present invention has the following advantages:
The processing method of trap information of the present invention, specific information needs being reported by predetermined set adds in the additional information in trap information, and by the special binding variable in judgement additional information, the value of additional information is set to the codomain that special variable is corresponding, thereby increased the content of trap information, realized the reporting functions of specific information.
Further, in the processing method of trap information of the present invention, while not comprising specific information in trap information, be that additional information is while being sky, other information in described trap information are processed according to predetermined manner, and report after the trap information after processing is encapsulated, so just can realize reporting of normal information.That is to say, the present invention is given the correct time and also can be realized reporting of specific information in normal information, thereby has improved trap practicality of information.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of embodiment of the processing method of trap information of the present invention;
Fig. 2 is the structural representation of a kind of embodiment of the processing unit of trap information of the present invention;
Fig. 3 is the structural representation of another kind of embodiment of the processing unit of trap information of the present invention.
Embodiment
As described in the background art, existing trap information only can report the normal information of MIB node upper giving the correct time, the content reporting is fixed, cannot realize reporting of specific information by MIB node, and these specific informations may be important and very significant, so just may cause and cannot carry out real-time management to the state of equipment, thereby affect the performance of system.
The present invention adds in the additional information of trap information by the specific information that needs are reported, and the value of additional information is set to the codomain that special variable is corresponding, on being carried out, trap information gives the correct time like this, the specific information that just user can be needed reports simultaneously, thereby increased the content of trap information, and realized the reporting functions of specific information.
For above-mentioned purpose of the present invention, feature and advantage can more be become apparent, below in conjunction with accompanying drawing, specific embodiments of the invention are described in detail.
Fig. 1 shows the schematic flow sheet of a kind of embodiment of the processing method of trap information of the present invention.With reference to figure 1, the processing method of described trap information comprises:
Step S1: alarm event produces;
In concrete application, need the trap information that first will report equipment to design, that is to say, need to be according to user's demand, analyze each alarm and need to bind which information upper giving the correct time, whether the existing MIB node of equipment can satisfy the demand, if existing MIB node can meet the demand of reporting information, does not need to design so special variable; If existing MIB node cannot get the specific information that user needs, so need to arrange again the binding variable of a trap, what this binding variable was corresponding is the needed specific information of user.
Like this, after device trigger alarm, while sending alarm to agent side, not only need alarm index to send to agency, also need the form by additional information by binding variable corresponding to specific information to report.
Step S2: judge whether to exist the trap information of mating with this alarm event;
If do not exist, mate with this alarm event trap information time, do not deal with.
If while there is the trap information of mating with this alarm event, execution step S3: judge whether the additional information in described trap information is empty;
When described additional information is not sky, execution step S4: travel through described trap information and whether comprise special binding variable;
When not comprising special binding variable, do not need additional information to operate; When comprising special binding variable, execution step S5: the value of additional information is set to the codomain that special variable is corresponding.
Then perform step S6: other information in trap information are processed according to predetermined manner;
Other information in Trap information comprise: the common variableses such as index, types of variables.It should be noted that, special binding variable in the present embodiment refers to some variablees relative with common variables, namely by existing MIB node cannot get, but some variablees relevant to the state of equipment, special binding variable can be according to user's demand and different, and different users can arrange different special binding variables.
The processing mode that can adopt trap information of the prior art when other information in trap information are processed, this is well known to those skilled in the art, and does not repeat them here.After execution step S6, the common variables being about in trap information obtains after corresponding variable name and index information according to existing mode, finally performs step S7: after the trap information after processing is encapsulated, report.
In the processing method of the trap information of the present embodiment, by increased the setting of special binding variable in trap information, thereby the specific information of user's request is encapsulated and reported, thereby increased the amount of information that trap information comprises, realized reporting of specific information.
It should be noted that, in the present embodiment, described step S2, describedly judges whether the additional information in described trap information is that empty step comprises: the OID information of obtaining described trap information; Whether the additional information that judges described trap information according to the OID information getting is empty.
The implementation of step S2 and implementation of the prior art are similar, do not repeat them here.
Continuation is with reference to figure 1, and the processing method of described trap information also comprises:
At execution of step S3, when described additional information is sky, execution step S8: travel through other information in described trap information;
Then perform step S9: other information in described trap information are processed according to predetermined manner;
Finally perform step S10: after other information in the trap information after processing are encapsulated, report.
Correspondingly, at execution of step S4, when described trap information does not comprise special binding variable, execution step S8: travel through other information in described trap information;
Then perform step S9: other information in described trap information are processed according to predetermined manner;
Finally perform step S10: after other information in the trap information after processing are encapsulated, report.
When additional information is while not comprising special binding variable in sky or trap information, do not need additional information to process, thereby only its dependent variable in trap information is processed to obtain corresponding variable name and index information etc. according to existing mode, thereby realize the encapsulation of normal trap information and report.
Those skilled in the art should be understood that, when SNMP task is received after the trap information that adopts the present invention's transmission, can test to special binding variable, determine whether this special binding variable can get by MIB node, if MIB node cannot get so and not report, if can get corresponding special variable by MIB node, so report.Particularly, can when obtaining these mib informations, first judge whether the codomain of special binding variable is empty, not check if not empty, directly skip, according to existing mode, test if it is empty.
When SNMP task goes to obtain the value of binding information by obtaining the mode of MIB nodal value, also to take this mode to remove to skip those special variablees, otherwise can be considered to obtain failure, due in processing before, according to the mode of SNMP task encapsulation, the value of special variable is packaged, so this one-phase does not need other processing to special variable.So just can effectively solve the problem that special binding variable cannot report, and be reported to result and other binding variables in Network Management Station, seen as broad as long.
Fig. 2 shows the structural representation of embodiment mono-of the processing unit of trap information of the present invention.With reference to figure 2, the processing unit of described trap information, comprising:
Matching unit 10, is suitable for when alarm event produces, and judges whether to exist the trap information of mating with this alarm event;
Judging unit 20, is suitable for when there is the trap information of coupling, judges whether the additional information in described trap information is empty;
Query unit 30, is suitable for, when described additional information is not sky, travels through described trap information and whether comprising special binding variable;
The first processing unit 40, is suitable for when comprising special binding variable, and the value of additional information is set to the codomain that special variable is corresponding.
In the present embodiment, described judging unit 20 can comprise: acquiring unit and verification unit (not shown).
Described acquiring unit is suitable for obtaining the OID information of described trap information;
Described verification unit is suitable for judging according to the OID information getting whether the additional information of described trap information is empty.
The processing unit of the trap information of the present embodiment arranges accordingly by 40 pairs of special binding variables of described the first processing unit, thereby specific information is increased in trap information, follow-up like this to trap information encapsulate and on give the correct time and just comprised corresponding specific information, thereby can specific information be received and be processed.
In other embodiments, as shown in Figure 3, the processing unit of described trap information can also comprise: the second processing unit 50 and encapsulation unit 60.
Described the second processing unit 50 is suitable for other information in trap information to process according to predetermined manner;
Described encapsulation unit 60 be suitable for and the trap information after processing is encapsulated after report.
One skilled in the art will appreciate that described the second processing unit 50 is also suitable for, when described additional information is sky, traveling through other information in described trap information, other information in described trap information are processed according to predetermined manner; Described encapsulation unit 60 reports after being also suitable for other information in the trap information after processing to encapsulate.
Similarly, described the second processing unit 50 is also suitable for, when described trap information does not comprise special binding variable, traveling through other information in described trap information, and other information in described trap information are processed according to predetermined manner; Described encapsulation unit 60 reports after being also suitable for other information in the trap information after processing to encapsulate.
Although the present invention discloses as above, the present invention is not defined in this.Any those skilled in the art, without departing from the spirit and scope of the present invention, all can make various changes or modifications, so protection scope of the present invention should be as the criterion with claim limited range.

Claims (10)

1. a processing method for trap information, is characterized in that, comprising:
When alarm event produces, judge whether to exist the trap information of mating with this alarm event;
When there is the trap information of coupling, judge whether the additional information in described trap information is empty;
When described additional information is not sky, travels through described trap information and whether comprise special binding variable;
When comprising special binding variable, the value of additional information is set to the codomain that special variable is corresponding.
2. the processing method of trap information as claimed in claim 1, is characterized in that, also comprises: other information in trap information are processed according to predetermined manner, and reported after the trap information after processing is encapsulated.
3. the processing method of trap information as claimed in claim 1, is characterized in that, describedly judges whether the additional information in described trap information is that empty step comprises:
Obtain the OID information of described trap information;
Whether the additional information that judges described trap information according to the OID information getting is empty.
4. the processing method of trap information as claimed in claim 1, is characterized in that, also comprises:
When described additional information is sky, travel through other information in described trap information;
Other information in described trap information are processed according to predetermined manner;
After being encapsulated, other information in trap information after processing report.
5. the processing method of trap information as claimed in claim 1, is characterized in that, also comprises:
When described trap information does not comprise special binding variable, travel through other information in described trap information;
Other information in described trap information are processed according to predetermined manner;
After being encapsulated, other information in trap information after processing report.
6. a processing unit for trap information, is characterized in that, comprising:
Matching unit, is suitable for when alarm event produces, and judges whether to exist the trap information of mating with this alarm event;
Judging unit, is suitable for when there is the trap information of coupling, judges whether the additional information in described trap information is empty;
Query unit, is suitable for, when described additional information is not sky, travels through described trap information and whether comprising special binding variable;
The first processing unit, is suitable for when comprising special binding variable, and the value of additional information is set to the codomain that special variable is corresponding.
7. the processing unit of trap information as claimed in claim 6, is characterized in that, also comprises:
The second processing unit, is suitable for other information in trap information to process according to predetermined manner;
Encapsulation unit, be suitable for and the trap information after processing is encapsulated after report.
8. the processing unit of trap information as claimed in claim 7, is characterized in that,
Described the second processing unit, is also suitable for, when described additional information is sky, traveling through other information in described trap information, and other information in described trap information are processed according to predetermined manner;
Described encapsulation unit, reports after being also suitable for other information in the trap information after processing to encapsulate.
9. the processing unit of trap information as claimed in claim 7, is characterized in that,
Described the second processing unit, is also suitable for, when described trap information does not comprise special binding variable, traveling through other information in described trap information, and other information in described trap information are processed according to predetermined manner;
Described encapsulation unit, reports after being also suitable for other information in the trap information after processing to encapsulate.
10. the processing unit of trap information as claimed in claim 6, is characterized in that, described judging unit comprises:
Acquiring unit, is suitable for obtaining the OID information of described trap information;
Verification unit, is suitable for judging according to the OID information getting whether the additional information of described trap information is empty.
CN201410162632.8A 2014-04-22 2014-04-22 The processing method and processing unit of Trap information Active CN103997420B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410162632.8A CN103997420B (en) 2014-04-22 2014-04-22 The processing method and processing unit of Trap information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410162632.8A CN103997420B (en) 2014-04-22 2014-04-22 The processing method and processing unit of Trap information

Publications (2)

Publication Number Publication Date
CN103997420A true CN103997420A (en) 2014-08-20
CN103997420B CN103997420B (en) 2018-05-01

Family

ID=51311429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410162632.8A Active CN103997420B (en) 2014-04-22 2014-04-22 The processing method and processing unit of Trap information

Country Status (1)

Country Link
CN (1) CN103997420B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017117870A1 (en) * 2016-01-08 2017-07-13 中兴通讯股份有限公司 Processing method and apparatus for trap instruction trap

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070031121A1 (en) * 2005-08-08 2007-02-08 Hideo Ando Information storage medium, information playback apparatus, information playback method, and information playback program
CN102801569A (en) * 2012-09-12 2012-11-28 上海斐讯数据通信技术有限公司 Data driven Agent end Trap alarming method
CN103414596A (en) * 2013-08-28 2013-11-27 上海斐讯数据通信技术有限公司 Method for recognizing and processing all manufacturer Traps based on simple network management protocol

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070031121A1 (en) * 2005-08-08 2007-02-08 Hideo Ando Information storage medium, information playback apparatus, information playback method, and information playback program
CN102801569A (en) * 2012-09-12 2012-11-28 上海斐讯数据通信技术有限公司 Data driven Agent end Trap alarming method
CN103414596A (en) * 2013-08-28 2013-11-27 上海斐讯数据通信技术有限公司 Method for recognizing and processing all manufacturer Traps based on simple network management protocol

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ROCKYWEI2010: "《SNMP基础》", 《HTTP://WWW.DOCIN.COM/P-656308659.HTML》 *
STELLA_FIGHTING: "《SNMP Trap》", 《HTTP://BLOG.CSDN.NET/STELLA_FIGHTING/ARTICLE/DETAILS/6892018》 *
吴贵达: "《基于Internet的动态网络资源管理——网络故障监控与性能趋势分析》", 《万方数据企业知识服务平台》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017117870A1 (en) * 2016-01-08 2017-07-13 中兴通讯股份有限公司 Processing method and apparatus for trap instruction trap

Also Published As

Publication number Publication date
CN103997420B (en) 2018-05-01

Similar Documents

Publication Publication Date Title
CN110312279B (en) Network data monitoring method and device
KR101576758B1 (en) A method, apparatus and communication network for root cause analysis
CN102647299B (en) Hierarchical alarm analysis method and hierarchical alarm analysis system based on content delivery network
CN110233868A (en) A kind of edge calculations data safety and method for secret protection based on Fabric
CN1298137C (en) Proxy network management realizing method based on SNMP protocol
CN105429977A (en) Method for monitoring abnormal flows of deep packet detection equipment based on information entropy measurement
CN103152341B (en) The network security situation awareness emulation mode that a kind of actual situation combines and system
CN105589782A (en) User behavior collection method based on browser
CN111181800A (en) Test data processing method and device, electronic equipment and storage medium
CN105812210A (en) Distributed network performance measuring system
CN102647432B (en) A kind of authentication information transmission method, device and certification middleware
EP3096492B1 (en) Page push method and system
CN106067879A (en) The detection method of information and device
CN104363187A (en) Gateway resource response method and gateway resource response device for internet of things
CN104639351A (en) Processing system and method for constructing network structure deployment diagram
CN100413248C (en) Improved method and system for carrying out charging based on flow
CN103997419A (en) Universal template configuration management method and apparatus compatible with multiple services
CN103997420A (en) Trap information processing method and device
CN106452970A (en) Analysis system for network flow monitoring
CN103997416A (en) Correcting method and correcting apparatus of mobile terminal networking
CN103297480A (en) System and method for automatically detecting application service
CN109831335A (en) A kind of data monitoring method, monitor terminal, storage medium and data monitoring system
CN104462235A (en) Internet of Things general event service mechanism based on Restful Web Service
CN104735039A (en) Communication conversion method
CN110061886B (en) Prepress network management system based on SNMP

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate 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: 20201113

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 Guangfulin road 4855 Lane 20, No. 90

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

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20140820

Assignee: Hangzhou xiaobuzhixue Information Technology Co.,Ltd.

Assignor: Hangzhou Jiji Intellectual Property Operation Co., Ltd

Contract record no.: X2021330000454

Denomination of invention: Trap information processing method and device

Granted publication date: 20180501

License type: Common License

Record date: 20211019

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20140820

Assignee: Hangzhou national software industry base Co.,Ltd.

Assignor: Hangzhou Jiji Intellectual Property Operation Co., Ltd

Contract record no.: X2021330000669

Denomination of invention: Trap information processing method and device

Granted publication date: 20180501

License type: Common License

Record date: 20211103