CN101815012B - Method and device for acquiring performance data - Google Patents
Method and device for acquiring performance data Download PDFInfo
- Publication number
- CN101815012B CN101815012B CN2009101055458A CN200910105545A CN101815012B CN 101815012 B CN101815012 B CN 101815012B CN 2009101055458 A CN2009101055458 A CN 2009101055458A CN 200910105545 A CN200910105545 A CN 200910105545A CN 101815012 B CN101815012 B CN 101815012B
- Authority
- CN
- China
- Prior art keywords
- data
- module
- performance data
- sign
- oid
- 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
Links
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
The invention discloses a method and a device for acquiring performance data. The acquisition device comprises an application programming interface module, a data acquisition module, an identifier generation module and a data analysis module; the corresponding acquisition method comprises the following steps of: setting a management object identifier, an index identifier and an inquiry condition identifier of a management information base through the data acquisition module, and then combining the management object identifier, the index identifier and the inquiry condition identifier of the management information base by calling the identifier generation module to generate a new object identifier; and extracting corresponding performance data from the management information base by using the application programming interface module according to the new object identifier, and converting the performance data into a required data format by calling the data analysis module. The method and the device can effectively realize the concentrated management of the performance data, and can conveniently realize acquiring replenishment and customized query.
Description
Technical field
The present invention relates to the Metro Ethernet data product, relate in particular to a kind of method and device that carries out performance data collection through snmp protocol (Simple Network Management Protocol, Simple Network Management Protocol).
Background technology
SNMP is a kind of application layer protocol that is used for managing network device.It is the equipment of variety classes, different manufacturers, different model, has defined unified interface and agreement, makes webmastering software can use unified appearance to manage.MIB (Management Information Base, management information bank) is the important component part of SNMP, and it has defined operable management information on the network equipment.In MIB, each management object all has a unique OID (ObjectIdentifier, object identity).OID organizes through the form of string number, for example 1.3.6.1.2.1.1.So the OID that the network manager just can constitute through string number reads or writes certain data among the MIB on the slave unit clearly.
The general data product all carries out data acquisition through snmp protocol.The performance data of same type of acquisition target is placed in the MIB table and manages.Webmaster through a MIB table and an index-group unification OID, carries out value when image data.For example the interface inbound traffics data of acquisition interface fei_1/1 just can make up OID and the fei_1/1 of interface inbound traffics in MIB, and then obtain the desired data value on the slave unit at the index OID of MIB.
To the characteristic of Metro Ethernet, the webmaster of data product need satisfy some new demands.And at present can't satisfy these demands based on the performance data MIB of standard SNMP, and be mainly reflected in: not free information among the performance data MIB, what appear all the time is up-to-date data, can't satisfy webmaster like this to take off under the tubulose attitude demand that data keep; Have only the data that just can get access to, can't satisfy the demand of fuzzy query like this through OID accurately; Performance data is dispersed among many MIB, can't satisfy the demand of unified management like this.
Summary of the invention
Technical problem to be solved by this invention provides a kind of acquisition method of performance data, and a kind of harvester of performance data, makes snmp protocol can satisfy the performance data collection demand of Metro Ethernet better.
For solving the problems of the technologies described above, the present invention has adopted following solution:
A kind of acquisition method of performance data, this method comprises:
MIB management object OID, index OID and querying condition OID are set, then said MIB management object OID, index OID and querying condition OID combination are generated new OID;
From the MIB table, extract corresponding performance data according to said new OID, convert thereof into required data format after it is resolved.
Wherein, the method to set up of said querying condition OID is: different querying conditions is organized generation according to predetermined order and coded system.
Wherein, said querying condition is collection point, time, data validity and/or out-of-limit state.
Wherein, in the said method,, said index OID then is set for empty if said index OID is unknown.
A kind of harvester of performance data comprises SNMP API (ApplicationProgramming Interface, API) module, also comprises data acquisition module, OID generation module, data resolution module;
Said data acquisition module; Be used to be provided with MIB management object OID, index OID and querying condition OID; Call said OID generation module so that said MIB management object OID, index OID and querying condition combination are generated new OID; Utilize SNMP API module from MIB table, to extract corresponding performance data then, and call data resolution module and said performance data is resolved convert required data format to according to said new OID.
Wherein, also comprise the collection scheduling module, be used for said data acquisition module, OID generation module, data resolution module and SNMP API module being dispatched at the gatherer process of performance data.
The present invention has following beneficial effect:
In the prior art, the snmp protocol of standard can only obtain particular data exactly, and if when wanting to obtain several values that satisfy specified conditions, just must carry out full MIB table traversal, filter by webmaster again after obtaining all values; And use the OID semanteme after the expansion of the present invention can realize fuzzy query, and significantly reduced unnecessary query manipulation, improved search efficiency, so also expanded the application model of snmp protocol, make it possess the ability of wider management data.
Be attached to this concrete application scenarios of metropolitan area network performance management; The function of centralized management performance data has the advantage that unified benefit is adopted, unification is inquired about; And exist the too huge shortcoming of data quantity stored in the MIB table simultaneously, thereby usually performance data is stored in a plurality of MIB tables in the prior art; And, can dissolve the shortcoming of centralized management function because the present invention can realize more accurate inquiry, so adopt the present invention, can realize the centralized management of performance data effectively; Simultaneously, also can realize easily mending and adopt, setting-up time querying condition in querying condition OID can be mended the performance data of special time period and adopt; Also be convenient to realize custom-built query, for example only inquire about all properties data of certain port.
Description of drawings
Fig. 1 is the structure chart of performance data acquisition unit in one embodiment of the present of invention;
Fig. 2 is the flow chart of performance data acquisition method in one embodiment of the present of invention.
Embodiment
Core concept of the present invention is: the OID that proposes a kind of expansion is semantic.As shown in table 1 below, standard OID is made up of two parts: MIB management object OID and index OID.Wherein MIB management object OID is the unified fixed value in the whole world; The value of index OID depends on different running environment, but also is a fixing value under a concrete application scenarios.
As shown in table 2 below, the OID after the expansion proposed by the invention has increased querying condition OID part on original base.Querying condition OID is according to the rule of making an appointment, and querying condition is reached certain coded system in a certain order organize and obtain.The treaty rule as for how can be planned according to the actual motion scene.In Metro Ethernet, querying condition OID can be set to any one or more and logical combination in the querying conditions such as collection point (veneer, port), time, data validity, out-of-limit state.
Table 1
MIB management object OID | Index OID |
Table 2
MIB management object OID | Index OID | Querying condition OID |
What need additional description is that after expansion, some variations have taken place the semanteme of index OID.In the OID of standard, index OID is used to management object of unique definition.But when having used querying condition, index OID is unknown sometimes, because need explain this situation with special coding, can use complete 1 mode to express.
To combine accompanying drawing and specific embodiment that the present invention is described in further detail below:
See also Fig. 1, this figure is depicted as the structure of performance data acquisition unit in the present embodiment, and this device mainly comprises with lower module:
The collection scheduling module is used for the gatherer process of control and management performance data, and other each modules are dispatched;
SNMP API (application programming interfaces) is used for extracting performance data from the MIB table;
Data acquisition module; Be used to be provided with MIB management object OID, index OID and querying condition OID; Call the OID generation module and make up the new OID of generation in view of the above, utilize SNMP API from the MIB table, to extract corresponding performance data then, and it is transferred to data resolution module handle according to new OID;
The OID generation module, the MIB management object OID, index OID and the querying condition OID combination that are used for data acquisition module is provided with generate new OID, and it is returned to data acquisition module;
Data resolution module is used at data acquisition module after the success of MIB table image data, the performance data of being gathered being resolved, and converts thereof into the required data format of webmaster.
See also Fig. 2, this figure is depicted as the flow chart of performance data acquisition method in the present embodiment, and this method mainly may further comprise the steps:
201, collection scheduling module triggering collection process, the log-on data acquisition module carries out acquisition operations.
202, data acquisition module is provided with MIB management object OID, index OID and querying condition OID.Present embodiment is a fuzzy query, so index OID is set to sky, the index of reference placeholder is represented.
203, data acquisition module calls the OID that the OID generation module generates the band querying condition, and the OID that data acquisition module generates according to the OID generation module extracts the performance data that satisfies querying condition successively and resolves from the MIB table;
In this process, when whenever extracting one group of performance data, data resolution module is resolved earlier its OID, through the characteristic of GET_NEXT, has judged whether to accomplish whole inquiries (this link is operated consistent with the SNMP of standard), if accomplished, and end operation then; If do not accomplish; Then data resolution module is resolved performance data that this extracted row cache of going forward side by side; The index OID that returns simultaneously among the current OID that resolves gives the OID generation module; The OID generation module generates the OID of new band querying condition, and data acquisition module carries out the collection of next group data in view of the above.
Above embodiment is only unrestricted in order to technical scheme of the present invention to be described, only with reference to preferred embodiment the present invention is specified.Those of ordinary skill in the art should be appreciated that and can make amendment or be equal to replacement technical scheme of the present invention, and do not break away from the spirit and the scope of technical scheme of the present invention, all should be encompassed in the middle of the claim scope of the present invention.
Claims (6)
1. the acquisition method of a performance data is characterized in that, this method comprises:
Management object sign, index sign and the querying condition sign of management information bank are set, and management object sign, index sign and the querying condition identifier combination with said management information bank generates new object identity then;
From management information base table, extract corresponding performance data according to said new object identity, convert thereof into required data format after it is resolved.
2. the acquisition method of performance data as claimed in claim 1 is characterized in that, the method to set up of said querying condition sign is: different querying conditions is organized generation according to predetermined order and coded system.
3. the acquisition method of performance data as claimed in claim 2 is characterized in that, said querying condition is collection point, time, data validity and/or out-of-limit state.
4. the acquisition method of performance data as claimed in claim 1 is characterized in that, in the said method, if said index sign is unknown, said index then is set is designated sky.
5. the harvester of a performance data comprises SNMP API module, it is characterized in that, also comprises data acquisition module, sign generation module, data resolution module;
Said data acquisition module; Be used to be provided with management object sign, index sign and the querying condition sign of management information bank; Call said sign generation module and generate new object identity with management object sign, index sign and querying condition identifier combination with said management information bank; Utilize SNMP API module from management information base table, to extract corresponding performance data then, and call data resolution module and said performance data is resolved convert required data format to according to said new object identity.
6. the harvester of performance data as claimed in claim 5; It is characterized in that; Also comprise the collection scheduling module, be used for said data acquisition module, sign generation module, data resolution module and SNMP API module being dispatched at the gatherer process of performance data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101055458A CN101815012B (en) | 2009-02-20 | 2009-02-20 | Method and device for acquiring performance data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101055458A CN101815012B (en) | 2009-02-20 | 2009-02-20 | Method and device for acquiring performance data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101815012A CN101815012A (en) | 2010-08-25 |
CN101815012B true CN101815012B (en) | 2012-04-04 |
Family
ID=42622135
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009101055458A Active CN101815012B (en) | 2009-02-20 | 2009-02-20 | Method and device for acquiring performance data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101815012B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102236718B (en) * | 2011-07-20 | 2019-09-13 | 南京中兴新软件有限责任公司 | A kind of method and device of data query |
CN108270599B (en) * | 2016-12-30 | 2021-05-11 | 北京亿阳信通科技有限公司 | Data analysis processing method and system based on SNMP (simple network management protocol) |
CN107196827A (en) * | 2017-07-28 | 2017-09-22 | 郑州云海信息技术有限公司 | A kind of method and device of monitoring device node |
CN110750690B (en) * | 2019-09-06 | 2022-12-06 | 华云数据控股集团有限公司 | Method and system for quickly searching monitoring index of management information base |
CN111352955A (en) * | 2020-02-23 | 2020-06-30 | 中国平安财产保险股份有限公司 | Index data query method and device, electronic equipment and storage medium |
CN114745249B (en) * | 2022-03-31 | 2023-06-20 | 烽台科技(北京)有限公司 | Method for generating management information base and electronic equipment |
CN115442201B (en) * | 2022-08-09 | 2023-06-23 | 武汉烽火技术服务有限公司 | Method and equipment for dynamically collecting EMS data based on SNMP agent |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1753402A (en) * | 2004-09-22 | 2006-03-29 | 中兴通讯股份有限公司 | Method of using simple network management protocol to act multirariant block inquiry |
CN101282234A (en) * | 2007-04-06 | 2008-10-08 | 中兴通讯股份有限公司 | Method for packet setting proxy multivariate based on simple network management protocol |
-
2009
- 2009-02-20 CN CN2009101055458A patent/CN101815012B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1753402A (en) * | 2004-09-22 | 2006-03-29 | 中兴通讯股份有限公司 | Method of using simple network management protocol to act multirariant block inquiry |
CN101282234A (en) * | 2007-04-06 | 2008-10-08 | 中兴通讯股份有限公司 | Method for packet setting proxy multivariate based on simple network management protocol |
Also Published As
Publication number | Publication date |
---|---|
CN101815012A (en) | 2010-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101815012B (en) | Method and device for acquiring performance data | |
CN100395987C (en) | Method and system for realizing telecommunication network universal performance management | |
CN101335648A (en) | Automatic converting method for packets of different interfaces and apparatus thereof | |
CN102447585A (en) | Method and device for converting network configuration protocol response message into command line | |
CN100372290C (en) | Method for automatic generating of net management report form | |
CN1980144A (en) | Method for quickly configurating large data-quantity network management data | |
CN101247310B (en) | Virtual local area network filtering configuration method and system | |
CN109213820A (en) | Method for realizing fusion use of multiple types of databases | |
EP3873102A1 (en) | Method for achieving optical line terminal slicing, storage medium, electronic device, and apparatus | |
CN107065813A (en) | A kind of workshop appliance data monitoring system and method | |
CN101127630A (en) | Method, device and system for managing object instant | |
CN105868196A (en) | Method for generating industrial data report in server | |
CN102891768A (en) | Method and network element for network management | |
CN109150854A (en) | Dynamic and configurable communication protocol converting system based on XML file | |
CN107807977B (en) | Object attribute metadata extraction system based on configuration | |
CN101924658A (en) | Alarm shielding method of access device | |
CN105868170A (en) | Method for generating industrial data report in server | |
CN105847047B (en) | A method of realizing that special OID is acquired and parsed in MIB using plug-in unitization | |
CN101179444B (en) | Configuration take-effective method, configuration system and configuration gateway | |
KR20160103110A (en) | Network element data access method and apparatus, and network management system | |
CN101552695B (en) | A unified network management method and system for multi-disciplinary networks | |
CN103957119A (en) | Method for managing network equipment by using MIB file and browser | |
CN101094099A (en) | Configuration system and method for multiple exchanges | |
CN114124859B (en) | Intelligent customer service robot of network maintenance platform and maintenance method | |
CN109586974B (en) | Method for automatically adapting and managing different local side equipment OLT |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20190123 Address after: Delaware Patentee after: Open Invention Network Co., Ltd. Address before: 518057, Nanshan District high tech Industrial Park, Guangdong province Shenzhen science and technology south road Zhongxing building A block 6 Patentee before: ZTE Corporation |