CN103957119B - Method and browser that a kind of use mib file is managed to the network equipment - Google Patents

Method and browser that a kind of use mib file is managed to the network equipment Download PDF

Info

Publication number
CN103957119B
CN103957119B CN201410160223.4A CN201410160223A CN103957119B CN 103957119 B CN103957119 B CN 103957119B CN 201410160223 A CN201410160223 A CN 201410160223A CN 103957119 B CN103957119 B CN 103957119B
Authority
CN
China
Prior art keywords
node
oid
network equipment
mib file
next stage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410160223.4A
Other languages
Chinese (zh)
Other versions
CN103957119A (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.)
Jiangsu Trans Union Information Stock Co ltd
Original Assignee
Nanjing College of Information Technology
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 Nanjing College of Information Technology filed Critical Nanjing College of Information Technology
Priority to CN201410160223.4A priority Critical patent/CN103957119B/en
Publication of CN103957119A publication Critical patent/CN103957119A/en
Application granted granted Critical
Publication of CN103957119B publication Critical patent/CN103957119B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The method and browser being managed to the network equipment the invention provides a kind of use mib file, the OID of each node is obtained by parsing mib file, and OID is stored in Hash table, the mapping path inquired about between the OID and node of each node and next stage node by Hash table again, when user selectes a node, the OID and data of all next stage nodes for only needing to load the node, and need not load all MIB nodes in mib file.The present invention uses the local loading strategy, accelerates the lookup speed of the OID of node, improves the loading efficiency of mib file, reduces the occupancy of memory source.

Description

Method and browser that a kind of use mib file is managed to the network equipment
Technical field
It is especially a kind of to use mib file to network the present invention relates to the management method and browser of a kind of network equipment Method and browser that equipment is managed.
Background technology
MIB(Management information bank)It is a database, it represents certain equipment or a set of of service manages object.By SNMP(Simple Network Management Protocol)Every main frame of management must have a MIB, and it describes to manage right on the main frame As.MIB management objects represent one or more variables of network equipment running status, and these management objects are with tree structure group Knit, each node has the indications OID of its special name and a digital form(Object indications).Snmp management device exists When being connected with other agencies, using the information in MIB, recognize how the information on the agency is organized.SNMP is to count at present Most widely used NMP in calculation machine network, SNMP provides a series of shirtsleeve operations to monitor and manage network Equipment, its basic function includes monitoring network performance, tests and analyzes network operation mistake and the network equipment is configured etc..
The existing network equipment is managed in method, after user chooses mib file, will load the mib file in The OID of all corresponding nodes(Object identifier), i.e., begun stepping through from MIB root nodes on backstage, successively parse, finally navigate to The MIB nodes specified, and all OID are shown on interface, OID is the mark added to find the object distinguished in entirety Note, the method is although significantly simpler to implement, all out of question to desktop or C/S softwares, but for B/S softwares, just Loading velocity can be brought slow, the too high problem of browser EMS memory occupation influences service efficiency.
Hash table(Hash table, hash table), it is the number directly conducted interviews according to key value (Key value) According to structure.That is, it accesses record by the way that key value is mapped in table a position, with the speed for accelerating to search Degree.
The content of the invention
It is an object of the invention to provide a kind of method that quickly can be managed to the network equipment under B/S frameworks.
In order to solve the above-mentioned technical problem, the network equipment is managed the invention provides a kind of use mib file Method, including,
Step 1, reads mib file, and the tree structure of the network equipment managed in initialization mib file sets tree-like knot The corresponding OID of each node in structure, and the OID of setting is stored in Hash table, and the OID of each node is all with it There is corresponding mapping path in next stage node;
Step 2, obtains the selected order for checking a certain node;
Step 3, selected node to its all next stage nodes is extracted according to the selected OID for checking node in Hash table Mapping path;
Step 4, according to the OID and data of all next stage nodes under the mapping path loading selected node for extracting;
Step 5, shows the OID and data of all next stage nodes of loading.
It is selected in user using the OID and the mapping path between node and next stage node of Hash table storage node During a certain node, it is only necessary to load the OID and data of all next stage nodes under the node according to mapping path, and need not plus The OID and data of all nodes in load mib file, accelerate the lookup speed of the OID of node, improve under B/S frameworks Mib file loading efficiency, reduce the occupancy of memory source.
As further limits scheme of the invention, also include,
Step 6, control command is sent by snmp protocol to the corresponding network equipment of selected node.
Control command is sent to the corresponding network equipment of selected node by snmp protocol, the real-time of the network equipment is realized Controllability.
Present invention also offers the browser that a kind of use mib file is managed to the network equipment, including,
Initialization module, for reading mib file, the tree structure of the network equipment of management in initialization mib file, if Determine the corresponding OID of each node in tree structure, and the OID of setting be stored in Hash table, and the OID of each node with There is corresponding mapping path in its all next stage nodes;
Interface module, for obtaining the selected order for checking a certain node, and all next stage nodes that display is loaded OID and data;
Parsing module, for extracting selected node in Hash table under it all according to the selected OID for checking node The mapping path of first nodes;
Load-on module, for according to extract mapping path loading selected node under all next stage nodes OID and Data.
Selected node to its all next stage sections is extracted in Hash table according to the OID of selected node using parsing module The mapping path of point, so that browser only needs to load the OID and data of a part of node every time, accelerates node The lookup speed of OID, improves the loading efficiency of mib file, reduces the occupancy of memory source.
As further limits scheme of the invention, also include,
Management module, for sending control command to the corresponding network equipment of selected node by snmp protocol.
Control command is sent to the corresponding network equipment of selected node by snmp protocol using management module, net is realized The Real time and controllable of network equipment.
This beneficial effect is:(1)Sampling local loading technology, using Hash table storage node OID and node with Mapping path between next stage node, it is selected every time to only need to load all next stage sections under the node according to mapping path The OID and data of point, accelerate the lookup speed of the OID of node, improve the loading efficiency of mib file, reduce memory source Occupancy;(2)Control command is sent to the corresponding network equipment of selected node by snmp protocol, the network equipment is realized Real time and controllable.
Brief description of the drawings
Fig. 1 is flow chart of the method for the present invention;
Fig. 2 is browser structure schematic diagram of the invention.
Specific embodiment
As shown in figure 1, the method that use mib file of the invention is managed to the network equipment, comprises the following steps:
Step 1, reads mib file, and initialization process is carried out to mib file, obtains the network managed in mib file and sets Standby tree structure, after the completion of initialization, resets the corresponding OID of each node in tree structure, and the OID that will be set makees For key value is stored in Hash table, and there is corresponding mapping in the OID of each node with its all next stage nodes Path;
Step 2, obtains the selected order for checking a certain node;
Step 3, selected node to its all next stage nodes is extracted according to the selected OID for checking node in Hash table Mapping path;
Step 4, according to the OID and data of all next stage nodes under the mapping path loading selected node for extracting;
Step 5, shows the OID and data of all next stage nodes of loading.
Using the OID and the mapping path between node and next stage node of Hash table storage node, selected a certain When node is inquired about, it is only necessary to load the OID and data of all next stage nodes under the node according to mapping path, and nothing The OID and data of all nodes in load networks are needed, the lookup speed of the OID of node is accelerated, the loading of mib file is improved Efficiency, reduces the occupancy of memory source.
In order to realize being controlled the network equipment, the method for the present invention also include step 6, by snmp protocol to Select the corresponding network equipment of node and send control command.
As shown in Fig. 2 present invention also offers the browser that a kind of use mib file is managed to the network equipment, bag Include,
Initialization module, for reading mib file, and carries out initialization process to mib file, obtains pipe in mib file The tree structure of the network equipment of reason, after the completion of initialization, resets the corresponding OID of each node in tree structure, and will The OID of setting is stored in Hash table as key value, and the OID of each node exists with its all next stage nodes Corresponding mapping path;
Interface module, for obtaining the selected order for checking a certain node, and all next stage nodes that display is loaded OID and data, and be articulated under selected node;
Parsing module, for being searched in Hash table according to the OID of selected node, when the OID values are found, enters one Step extracts selected node to the mapping path of its all next stage nodes;
Load-on module, for according to extract mapping path loading selected node under all next stage nodes OID and Data.
Browser of the invention operationally, reads mib file, and mib file is carried out first with initialization module Initialization process, obtains the tree structure of the network equipment managed in mib file, after the completion of initialization, resets tree-like knot The corresponding OID of each node in structure, and the OID of setting is stored in Hash table as key value, and each node OID All there is corresponding mapping path with its all next stage nodes;Then user is selected to check certain to recycle interface module to obtain The order of one node;Check that the OID of node is searched in Hash table according to selected by parsing module again, when finding the OID During value, selected node to the mapping path of its all next stage nodes is further extracted;Again by load-on module according to extraction Mapping path loading selected node under all next stage nodes OID and data;Last display by interface module again is added The OID and data of all next stage nodes for carrying, and be articulated under selected node.
Selected node to its all next stage sections is extracted in Hash table according to the OID of selected node using parsing module The mapping path of point, so that browser only needs to load the OID and data of a part of node every time, realizes browser Local loading strategy, when user's point selectes a certain node on a web browser, browser is by the OID of the selected node of basis to Hash Table is retrieved, and the OID and data of all next stage nodes of the OID are obtained by mapping path, by local loading plan Slightly, can avoid for whole tree structure being loaded into the internal memory burden that browser is caused to system, improve the loading effect of mib file Rate, reduces the occupancy of memory source.
In order to realize the Real time and controllable of the network equipment, present invention additionally comprises a management module, for being assisted by SNMP Discuss and send control command to the corresponding network equipment of selected node, management module is by snmp protocol to the corresponding net of selected node Network equipment sends control command.

Claims (4)

1. a kind of method that use mib file is managed to the network equipment, it is characterised in that:Including,
Step 1, reads mib file, the tree structure of the network equipment managed in initialization mib file, in setting tree structure The corresponding OID of each node, and the OID of setting is stored in Hash table, and the OID of each node is all next with it There is corresponding mapping path in level node;
Step 2, obtains the selected order for checking a certain node;
Step 3, selected node reflecting to its all next stage nodes is extracted according to the selected OID for checking node in Hash table Rays footpath;
Step 4, according to the OID and data of all next stage nodes under the mapping path loading selected node for extracting;
Step 5, shows the OID and data of all next stage nodes of loading.
2. the method that use mib file according to claim 1 is managed to the network equipment, it is characterised in that:Also wrap Include,
Step 6, control command is sent by snmp protocol to the corresponding network equipment of selected node.
3. the browser that a kind of use mib file is managed to the network equipment, it is characterised in that:Including,
Initialization module, for reading mib file, the tree structure of the network equipment managed in initialization mib file, setting tree The corresponding OID of each node in shape structure, and the OID of setting is stored in Hash table, and the OID of each node with it There is corresponding mapping path in all next stage nodes;
Interface module, for obtaining the selected order for checking a certain node, and the OID for showing all next stage nodes of loading And data;
Parsing module, for extracting selected node to its all next stage in Hash table according to the selected OID for checking node The mapping path of node;
Load-on module, for OID and data according to all next stage nodes under the mapping path loading selected node for extracting.
4. the browser that use mib file according to claim 3 is managed to the network equipment, it is characterised in that:Also Including,
Management module, for sending control command to the corresponding network equipment of selected node by snmp protocol.
CN201410160223.4A 2014-04-21 2014-04-21 Method and browser that a kind of use mib file is managed to the network equipment Active CN103957119B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410160223.4A CN103957119B (en) 2014-04-21 2014-04-21 Method and browser that a kind of use mib file is managed to the network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410160223.4A CN103957119B (en) 2014-04-21 2014-04-21 Method and browser that a kind of use mib file is managed to the network equipment

Publications (2)

Publication Number Publication Date
CN103957119A CN103957119A (en) 2014-07-30
CN103957119B true CN103957119B (en) 2017-07-04

Family

ID=51334349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410160223.4A Active CN103957119B (en) 2014-04-21 2014-04-21 Method and browser that a kind of use mib file is managed to the network equipment

Country Status (1)

Country Link
CN (1) CN103957119B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105608082A (en) * 2014-11-10 2016-05-25 中兴通讯股份有限公司 Data processing method, equipment and system
CN106330543A (en) * 2016-08-25 2017-01-11 成都广达新网科技股份有限公司 XML technology-based MIB data capture method and device
CN106341469B (en) * 2016-08-31 2020-03-17 东软集团股份有限公司 Loading method and device of tree node data
CN110266526B (en) * 2019-06-10 2022-12-06 浙江大华技术股份有限公司 Equipment tree loading method and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369918A (en) * 2008-09-25 2009-02-18 浙江工业大学 Network management browser
CN102497286A (en) * 2011-12-12 2012-06-13 杭州华三通信技术有限公司 Method and device for matching management information base (MIB)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7716320B2 (en) * 2006-08-30 2010-05-11 Cisco Technology, Inc. Method and apparatus for persisting SNMP MIB integer indexes across multiple network elements

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369918A (en) * 2008-09-25 2009-02-18 浙江工业大学 Network management browser
CN102497286A (en) * 2011-12-12 2012-06-13 杭州华三通信技术有限公司 Method and device for matching management information base (MIB)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"网管***中MIB文件解析的实现";王崟;《计算机光盘软件与应用》;20130301;正文第3节MIB文件结构,图1-2 *

Also Published As

Publication number Publication date
CN103957119A (en) 2014-07-30

Similar Documents

Publication Publication Date Title
CN103957119B (en) Method and browser that a kind of use mib file is managed to the network equipment
CN101098248B (en) Method and system for implementing universal network management based on configuration describing document
CN105141441B (en) A kind of method that IP network graphically configures
CN103903188A (en) Controlling method of configuration file of intelligent transformer substation system
CN102932198B (en) A kind of monitoring signaling device realizing PS territory distributed structure/architecture
US8700632B2 (en) Managing heterogeneous data
CN105760272B (en) Monitoring backstage business customizing method and its system based on plug-in unit
CN107241305A (en) A kind of network protocol analysis system and its analysis method based on polycaryon processor
CN104852813B (en) The on-demand loading method and system of TR069 Parameter nodes in family gateway equipment
CN107193917A (en) Whole station CONFIG.SYS lossless data update method based on IID
CN108123840A (en) Log processing method and system
CN109120477A (en) Dynamic analysis method, apparatus, server and storage medium based on modbus agreement
US8321544B2 (en) Method and system for the transfer of communication network administration information
CN115278737B (en) Data acquisition method of 5G network
CN103997412A (en) Management information base file generation method and device, and data processing system
WO2021196463A1 (en) Blockchain data synchronization method and apparatus, and electronic device and storage medium
CN104202328B (en) A kind of method, configuration module and the subscription end of subscription GOOSE/SMV messages
CN108073582A (en) A kind of Computational frame selection method and device
CN109714208A (en) A kind of equipment is included in method, storage medium and the electronic equipment of network management
CN103117880A (en) Web technology based network topological generation method
CN103281202B (en) The system and its front end rendering method of a kind of browser/server framework
CN101917282A (en) Method, device and system for processing alarm shielding rules
CN106502856A (en) A kind of information processing method and device
CN106612193A (en) Network deployment configuration method and device in virtualization technology
CN107864199A (en) The realization device of Internet of Things communication means, device and Internet of Things Network Communication

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20190430

Address after: Room 601, Building C6, No. 2-3 Zidong Road, Qixia District, Nanjing City, Jiangsu Province, 210000

Patentee after: JIANGSU TRANS UNION INFORMATION STOCK CO.,LTD.

Address before: 210023 No. 99 Wenlan Road, Xianlin University City, Nanjing, Jiangsu Province

Patentee before: Nanjing Vocational College of Information Technology

TR01 Transfer of patent right