CN104660447A - SNMP node information management method and management system - Google Patents

SNMP node information management method and management system Download PDF

Info

Publication number
CN104660447A
CN104660447A CN201510046460.2A CN201510046460A CN104660447A CN 104660447 A CN104660447 A CN 104660447A CN 201510046460 A CN201510046460 A CN 201510046460A CN 104660447 A CN104660447 A CN 104660447A
Authority
CN
China
Prior art keywords
node
snmp
mib
information
management
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
CN201510046460.2A
Other languages
Chinese (zh)
Other versions
CN104660447B (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 CNCR-IT Co Ltd
Original Assignee
Hangzhou CNCR-IT 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 Hangzhou CNCR-IT Co Ltd filed Critical Hangzhou CNCR-IT Co Ltd
Priority to CN201510046460.2A priority Critical patent/CN104660447B/en
Publication of CN104660447A publication Critical patent/CN104660447A/en
Application granted granted Critical
Publication of CN104660447B publication Critical patent/CN104660447B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention is applied to the field of computers, and provides an SNMP node information management method and management system. The method comprises the following steps: converting MIB management information base files of SNMP (Simple Network Management Protocol) equipment into XML extensive markup language files which comprise MIB node attributes comprising OID object identifiers of an MIB node; obtaining a node tree of the MIB node according to the XML files and obtaining a node name of the MIB node according to the node tree; obtaining an SNMP operation node according to the OID and/or the node name; managing the information of an SNMP node by the SNMP operation node. By carrying out the method and the system, the XML files can update configuration files of the SNMP node in real time, and MIB files can be updated without recompiling codes.

Description

A kind of management method of SNMP nodal information and management system
Technical field
The invention belongs to computer realm, particularly relate to a kind of management method and management system of SNMP nodal information.
Background technology
The standard that SNMP (Simple Network Management Protocol is called for short: Simple Network Management Protocol) is managed by a group network forms, and comprises an application protocol, database model and one group of resource object.Whether this agreement can network enabled management system, have anyly cause the upper situation about paying close attention to of management in order to the monitoring equipment be connected on network.The target of SNMP is the hardware and software platform of numerous manufacturer production on managing internet Internet, and therefore SNMP is also very large by the impact of Internet standard network Governance framework.
When using snmp management, need developer to MIB (Management Information Base, be called for short: management information bank) encapsulate, different MIB has different nodes to need disposition and management, cause when developing, the information that developer constantly provides according to MIB is carried out adding corresponding object and is processed, have how many MIB node just to need how many objects to safeguard, workload is identical with the capacity of MIB, a lot of library file can be produced accordingly realize, can cause:
1, needing to develop all mib information storehouses is all independently develop, inefficiency;
2, to software anomaly not unification catch;
3, when mib structure changes, need the class libraries safeguarding MIBs to modify, need to upgrade to management software;
4, the autgmentability of software is poor;
5, the information of MIBs is embedded in code, and coupling is high, produces complicated and high dependence to structure upper strata MIBs operation layer
Summary of the invention
Given this, the invention provides a kind of management method and management system of SNMP nodal information, with the technical problem that the snmp management workload solving prior art is large.
The embodiment of the present invention is achieved in that a kind of management method of SNMP nodal information, said method comprising the steps of:
Be XML extensible markup language document by snmp simple network management protocol equipment MIB management information bank file transform, described XML file comprises the attribute of MIB node, and described attribute comprises: the OID object identifier of described MIB node;
Obtain the node tree of described MIB node according to described XML file, and obtain the nodename of described MIB node according to described node tree;
SNMP running node is obtained according to described OID and/or described nodename;
Manage according to the information of described SNMP running node to SNMP node.
The embodiment of the present invention also provides a kind of management system of SNMP nodal information, and described system comprises:
Converting unit, for being XML extensible markup language document by snmp simple network management protocol equipment MIB management information bank file transform, described XML file comprises the attribute of MIB node, and described attribute comprises: the OID object identifier of described MIB node;
Nodename acquiring unit, the XML file for changing according to described converting unit obtains the node tree of described MIB node, and obtains the nodename of described MIB node according to described node tree;
SNMP running node acquiring unit, the nodename obtained for the OID that obtains according to described converting unit and/or described nodename acquiring unit obtains SNMP running node;
Administrative unit, manages for the information of SNMP running node to SNMP node obtained according to described SNMP running node acquiring unit.
The embodiment of the present invention, SNMP equipment MIB library file is converted to XML file, OID and/or the nodename of MIB node is obtained according to XML, according to this OID and/or nodename, SNMP node is managed, make XML file can the configuration file of real-time update SNMP node, without the need to recompilating code to mib file of upgrading.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the SNMP node information management method that the embodiment of the present invention provides;
Fig. 2 a is the schematic diagram of the SNMP equipment mib file that the embodiment of the present invention provides;
Fig. 2 b is the schematic diagram of the XML file after the conversion that provides of the embodiment of the present invention;
Fig. 3 is the schematic diagram of the node tree of the MIB node that the embodiment of the present invention provides;
Fig. 4 is the schematic diagram of the SNMP running node that the embodiment of the present invention provides;
Fig. 5 is the schematic diagram in the entity object storehouse of the interface mode expansion that the embodiment of the present invention provides;
Fig. 6 is the structure chart of the SNMP nodal information management system that the embodiment of the present invention provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
In order to technical solutions according to the invention are described, be described below by specific embodiment.
Embodiment one
Be illustrated in figure 1 the flow chart of the SNMP node information management method that the embodiment of the present invention provides, said method comprising the steps of:
Step S101, be XML extensible markup language document by snmp simple network management protocol equipment MIB management information bank file transform, described XML file comprises the attribute of MIB node, and described attribute comprises: the OID object identifier of described MIB node.
In embodiments of the present invention, the system of carrying out the management of SNMP nodal information first by iReasoningMIB Browser software by SNMP (Simple Network Management Protocol, be called for short: Simple Network Management Protocol) equipment MIB (Management Information Base, being called for short: management information bank) file transform is XML (Extensible Markup Language, be called for short: extend markup language) file, wherein, XML file after conversion comprises the attribute of MIB node, concrete attribute includes but not limited to: OID (the Object Identifier of MIB node, be called for short: object identifier) and/or the title of MIB node.
The schematic diagram of the SNMP equipment mib file provided for the embodiment of the present invention as shown in Figure 2 a, Fig. 2 b is depicted as the schematic diagram of the XML file after the conversion that the embodiment of the present invention provides.
Step S102, obtains the node tree of described MIB node according to described XML file, and obtains the nodename of described MIB node according to described node tree.
In embodiments of the present invention, XML file is loaded in internal memory by XML file resolver by the system of carrying out the management of SNMP nodal information, this XML file can be converted to MIB node tree, and then according to this MIB node tree, obtains the nodename of MIB node.
Be illustrated in figure 3 the schematic diagram of the node tree of the MIB node that the embodiment of the present invention provides.
Step S103, obtains SNMP running node according to described OID and/or described nodename.
In embodiments of the present invention, because XML file obtains according to SNMP equipment mib file, the OID that the system of therefore carrying out the management of SNMP nodal information can obtain according to above-mentioned steps and nodename obtain SNMP running node.
Be illustrated in figure 4 the schematic diagram of the SNMP running node that the embodiment of the present invention provides.
Step S104, manages according to the information of described SNMP running node to SNMP node.
In embodiments of the present invention, carry out the system of SNMP nodal information management after obtaining SNMP running node, can manage the information of SNMP node.The described step managed according to the information of described SNMP running node to SNMP node, comprising:
1, corresponding object is obtained according to described SNMP running node.
In embodiments of the present invention, have selected SNMP running node and can select corresponding object, to make to obtain corresponding information in subsequent step.
2, described object is managed.
In embodiments of the present invention, can manage after have selected object to object, wherein, this management includes but not limited to: carry out acquisition of information and/or information configuration to object.
The embodiment of the present invention, SNMP equipment MIB library file is converted to XML file, OID and/or the nodename of MIB node is obtained according to XML, according to this OID and/or nodename, SNMP node is managed, make XML file can the configuration file of real-time update SNMP node, without the need to recompilating code to mib file of upgrading.
As an embodiment of the present invention, after the described step managed according to the information of described SNMP running node to SNMP node, described method is further comprising the steps of:
The function of described XML file is expanded by interface mode.
In embodiments of the present invention, by interface mode, XML file is expanded, the function of XML file can be increased, reduce coupling, facilitate the subsequent expansion of developer.
Be illustrated in figure 5 the schematic diagram in the entity object storehouse of the interface mode expansion that the embodiment of the present invention provides.
Embodiment two
Be illustrated in figure 6 the structure chart of the SNMP nodal information management system that the embodiment of the present invention provides, for convenience of explanation, the part relevant to the embodiment of the present invention be only shown, comprise:
Converting unit 601, for being XML extensible markup language document by snmp simple network management protocol equipment MIB management information bank file transform, described XML file comprises the attribute of MIB node, and described attribute comprises: the OID object identifier of described MIB node.
In embodiments of the present invention, converting unit 601 passes through iReasoning MIB Browser software by SNMP (Simple Network Management Protocol, be called for short: Simple Network Management Protocol) equipment MIB (Management Information Base, being called for short: management information bank) file transform is XML (Extensible Markup Language, be called for short: extend markup language) file, wherein, XML file after conversion comprises the attribute of MIB node, concrete attribute includes but not limited to: OID (the Object Identifier of MIB node, be called for short: object identifier) and/or the title of MIB node.
Nodename acquiring unit 602, the XML file for changing according to described converting unit 601 obtains the node tree of described MIB node, and obtains the nodename of described MIB node according to described node tree.
In embodiments of the present invention, XML file is loaded in internal memory by XML file resolver by nodename acquiring unit 602, this XML file can be converted to MIB node tree, and then according to this MIB node tree, obtains the nodename of MIB node.
SNMP running node acquiring unit 603, obtains SNMP running node for the nodename obtained according to OID and/or the described nodename acquiring unit 602 of described converting unit 601 acquisition.
In embodiments of the present invention, because XML file obtains according to SNMP equipment mib file, therefore SNMP running node acquiring unit 603 can obtain SNMP running node according to the OID of above-mentioned steps acquisition and nodename.
Administrative unit 604, manages for the information of SNMP running node to SNMP node obtained according to described SNMP running node acquiring unit 603.
In embodiments of the present invention, administrative unit 604, after obtaining SNMP running node, can manage the information of SNMP node.Described administrative unit 604 comprises:
Object acquisition subelement 6041, for obtaining corresponding object according to described SNMP running node.
In embodiments of the present invention, have selected SNMP running node and can select corresponding object, to make to obtain corresponding information in subsequent step.
Management subelement 6042, manages for the object obtained described object acquisition subelement 6041.
In embodiments of the present invention, can manage after have selected object to object, wherein, this management includes but not limited to: go back and/or information configuration to the object information of carrying out.
The embodiment of the present invention, SNMP equipment MIB library file is converted to XML file, OID and/or the nodename of MIB node is obtained according to XML, according to this OID and/or nodename, SNMP node is managed, make XML file can the configuration file of real-time update SNMP node, without the need to recompilating code to mib file of upgrading.
As an embodiment of the present invention, after described administrative unit 604 manages, described system also comprises:
Expanding element 605, for expanding the function of described XML file by interface mode.
In embodiments of the present invention, by interface mode, XML file is expanded, the function of XML file can be increased, reduce coupling, facilitate the subsequent expansion of developer.
One of ordinary skill in the art will appreciate that the unit included by above-described embodiment two is carry out dividing according to function logic, but be not limited to above-mentioned division, as long as corresponding function can be realized; In addition, the concrete title of each functional unit, also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
Those of ordinary skill in the art it is also understood that, the all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program has come, described program can be stored in a computer read/write memory medium, described storage medium, comprises ROM/RAM, disk, CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. a management method for SNMP nodal information, is characterized in that, said method comprising the steps of:
Be XML extensible markup language document by snmp simple network management protocol equipment MIB management information bank file transform, described XML file comprises the attribute of MIB node, and described attribute comprises: the OID object identifier of described MIB node;
Obtain the node tree of described MIB node according to described XML file, and obtain the nodename of described MIB node according to described node tree;
SNMP running node is obtained according to described OID and/or described nodename;
Manage according to the information of described SNMP running node to SNMP node.
2. the method for claim 1, is characterized in that, after the described step managed according to the information of described SNMP running node to SNMP node, described method is further comprising the steps of:
The function of described XML file is expanded by interface mode.
3. the method for claim 1, is characterized in that, the described step managed according to the information of described SNMP running node to SNMP node, comprising:
Corresponding object is obtained according to described SNMP running node;
Described object is managed.
4. the method as described in any one of claims 1 to 3, is characterized in that, described management comprises:
Acquisition of information and/or information configuration.
5. a management system for SNMP nodal information, is characterized in that, described system comprises:
Converting unit, for being XML extensible markup language document by snmp simple network management protocol equipment MIB management information bank file transform, described XML file comprises the attribute of MIB node, and described attribute comprises: the OID object identifier of described MIB node;
Nodename acquiring unit, the XML file for changing according to described converting unit obtains the node tree of described MIB node, and obtains the nodename of described MIB node according to described node tree;
SNMP running node acquiring unit, the nodename obtained for the OID that obtains according to described converting unit and/or described nodename acquiring unit obtains SNMP running node;
Administrative unit, manages for the information of SNMP running node to SNMP node obtained according to described SNMP running node acquiring unit.
6. system as claimed in claim 5, is characterized in that, after described administrative unit management, described system also comprises:
Expanding element, for expanding the function of described XML file by interface mode.
7. system as claimed in claim 5, it is characterized in that, described administrative unit, comprising:
Object acquisition subelement, for obtaining corresponding object according to described SNMP running node;
Management subelement, manages for the object obtained described object acquisition subelement.
8. the system as described in any one of claim 5-7, is characterized in that, described management comprises:
Acquisition of information and/or information configuration.
CN201510046460.2A 2015-01-29 2015-01-29 A kind of management method of SNMP nodal informations and management system Active CN104660447B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510046460.2A CN104660447B (en) 2015-01-29 2015-01-29 A kind of management method of SNMP nodal informations and management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510046460.2A CN104660447B (en) 2015-01-29 2015-01-29 A kind of management method of SNMP nodal informations and management system

Publications (2)

Publication Number Publication Date
CN104660447A true CN104660447A (en) 2015-05-27
CN104660447B CN104660447B (en) 2018-10-26

Family

ID=53251178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510046460.2A Active CN104660447B (en) 2015-01-29 2015-01-29 A kind of management method of SNMP nodal informations and management system

Country Status (1)

Country Link
CN (1) CN104660447B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107864060A (en) * 2017-11-13 2018-03-30 广东电网有限责任公司电力科学研究院 A kind of method and device for making interchanger configuration tool synchronous with interchanger
CN108536453A (en) * 2017-03-03 2018-09-14 台湾聚引移动有限公司 The method of the unified Extensible Firmware Interface firmware of update
CN109086072A (en) * 2018-08-01 2018-12-25 郑州云海信息技术有限公司 A kind of scenario generation method and device
CN109510728A (en) * 2018-12-24 2019-03-22 成都天奥电子股份有限公司 The method that a kind of network management information library mib file is automatically converted into XML file
CN113726587A (en) * 2021-11-04 2021-11-30 海尔数字科技(青岛)有限公司 Network security management method and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546260A (en) * 2012-02-06 2012-07-04 烽火通信科技股份有限公司 Simulator based on SNMP (Simple Network Management Protocol) network management
CN102571420A (en) * 2011-12-20 2012-07-11 深圳市同洲视讯传媒有限公司 Method and system for network element data management
CN103684869A (en) * 2013-12-21 2014-03-26 中电科航空电子有限公司 Method and device for reporting status information of multi-interface airborne equipment
CN103902269A (en) * 2012-12-27 2014-07-02 中国科学院声学研究所 System and method for generating MIB files through XML files

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571420A (en) * 2011-12-20 2012-07-11 深圳市同洲视讯传媒有限公司 Method and system for network element data management
CN102546260A (en) * 2012-02-06 2012-07-04 烽火通信科技股份有限公司 Simulator based on SNMP (Simple Network Management Protocol) network management
CN103902269A (en) * 2012-12-27 2014-07-02 中国科学院声学研究所 System and method for generating MIB files through XML files
CN103684869A (en) * 2013-12-21 2014-03-26 中电科航空电子有限公司 Method and device for reporting status information of multi-interface airborne equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108536453A (en) * 2017-03-03 2018-09-14 台湾聚引移动有限公司 The method of the unified Extensible Firmware Interface firmware of update
CN107864060A (en) * 2017-11-13 2018-03-30 广东电网有限责任公司电力科学研究院 A kind of method and device for making interchanger configuration tool synchronous with interchanger
CN109086072A (en) * 2018-08-01 2018-12-25 郑州云海信息技术有限公司 A kind of scenario generation method and device
CN109510728A (en) * 2018-12-24 2019-03-22 成都天奥电子股份有限公司 The method that a kind of network management information library mib file is automatically converted into XML file
CN109510728B (en) * 2018-12-24 2022-02-22 成都天奥电子股份有限公司 Method for automatically converting MIB file of network management information base into XML file
CN113726587A (en) * 2021-11-04 2021-11-30 海尔数字科技(青岛)有限公司 Network security management method and equipment

Also Published As

Publication number Publication date
CN104660447B (en) 2018-10-26

Similar Documents

Publication Publication Date Title
US11250344B2 (en) Machine learning based analytics platform
US10705808B2 (en) Software defined network controller
US9424112B1 (en) Execution plan generator and execution engine for interfacing with application programming interfaces
CN107743072B (en) Efficient and extensible network simulation scene generation method
CN109951315B (en) Method and system for mapping YANG model to internal model
US8515799B2 (en) Constructing change plans from component interactions
CN104660447A (en) SNMP node information management method and management system
CN105094818A (en) Construction method and system for comprehensive application of natural resources based on SOA
CN110391949B (en) configuration change method and related device
CN103268226A (en) Test script file generation method and device
CN103729450A (en) Function authority centralized management method and device
CN104184826A (en) Multi-data-center storage environment managing method and system
CN105824944B (en) A kind of XML configuration data maintaining method and system based on scripting language
JP2013235584A (en) Control system asset management method
CN113467782B (en) Method, device and equipment for determining business process
WO2016197953A1 (en) Method and device for deploying multi-mode base station
CN112035466B (en) External index development framework for block chain query
CN111831696A (en) Asset information storage method and system based on graph theory
CN115878860A (en) Menu generation method, device, server equipment and medium
Jelliti et al. A model based framework supporting ITIL service IT management
EP3629616B1 (en) Data interaction method, device and equipment
CN113987764A (en) Simulation model construction method and system based on SCA domain description file
CN113805850A (en) Artificial intelligence management system based on multiple deep learning and machine learning frameworks
CN110891239B (en) PNF configuration and PNFD TOSCA implementation method and device
Maruna et al. The business process transformation framework implementation through metamodel extension

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