CN100450045C - Method and system of network equipment detection - Google Patents
Method and system of network equipment detection Download PDFInfo
- Publication number
- CN100450045C CN100450045C CNB2006101119526A CN200610111952A CN100450045C CN 100450045 C CN100450045 C CN 100450045C CN B2006101119526 A CNB2006101119526 A CN B2006101119526A CN 200610111952 A CN200610111952 A CN 200610111952A CN 100450045 C CN100450045 C CN 100450045C
- Authority
- CN
- China
- Prior art keywords
- network equipment
- value
- present node
- management unit
- network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Abstract
This invention discloses a method and system for detecting network devices, which sets a TCL script to take out the node values of the objects in the MIB orderly and evaluates them to the affiliated objects: A, appointing objects of network management unit in the MIB to evaluate the object in the MIB by TCL, B, the network management unit instructs the network device to apply the function corresponding to the object after evaluation and feeds back the operation result to determine if the function corresponding to the network device is normal.
Description
Technical field
The present invention relates to the measuring technology in the network, particularly a kind of method and system of network equipment detection.
Background technology
Along with network size is more and more huger, network equipment kind is also more and more diversified, network management system ground uses also more and more widely, and management information bank (MIB) is with the object of each function of the tree view representation network equipment, become main network device management approach, also essential to the concern of MIB operation in test.
At present, between the administrative unit and the network equipment, undertaken alternately by MIB, when the network equipment when administrative unit sends data, the MIB to administrative unit of the data wall scroll serial that the network equipment will send reports; Perhaps the MIB of administrative unit issues querying command to the network equipment, and the network equipment that receives querying command returns to administrative unit with Query Result.
When the network equipment is tested, the employing manual mode is carried out the practical operation test to the MIB of administrative unit, the main MIB browser that adopts, operations such as object assignment by each function of MIB map network equipment or value realize monitoring and configuration to the network equipment.
By manual mode be: after artificially using the MIB browser to carry out assignment or value operation corresponding to the object of each network equipment function by mouse to the process that the MIB of administrative unit carries out the practical operation test, the indication network equipment operation adopts the corresponding function after assignment or the value, return operation result, administrative unit determines according to operation result whether the corresponding function of the network equipment moves normally.Like this, whether unusual and (each function of the network equipment all have corresponding object in MIB, and adopts object identity to identify) such as boundary value tests of carrying out function of function that just can network apparatus test.
Adopt this manual mode that the MIB of administrative unit is operated, thereby the function of network apparatus test exists shortcoming: need artificially each function of the network equipment corresponding object in the MIB of administrative unit to be carried out assignment or value, thereby finish the functional test of the network equipment, consider that the object number in MIB is huge, in the time all will carrying out functional test to all functions of the network equipment, after just must traveling through to the object among the MIB corresponding to network equipment all functions, distinguish assignment or value again, can cause manual execution efficient low like this, the object among the MIB all be traveled through also unrealistic; The heavy test assignment of artificial execution artificial wrong diagnosis may occur for the operation result that is returned by the network equipment after some object tools or the value operation.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method of network equipment detection, and this method does not need by manual mode, just can realize the test of each function on the network equipment.
The present invention also provides a kind of system of network equipment detection, and this system does not need by manual mode, just can realize the test of each function on the network equipment.
According to above-mentioned purpose, technical scheme of the present invention is achieved in that
A kind of method of network equipment detection is characterized in that, this method comprises:
A, test all-purpose language TCL script by being provided with, obtain legal nodal value as the present node value according to the node sequence of object among the management information bank MIB of network management unit, with present node value assignment in object, up to the whole assignment of all nodes in the current object till the current object;
B, network management unit indication network equipment operation adopt the function of the object correspondence after the assignment, and the network equipment returns operation result to network management unit, and administrative unit determines according to operation result whether the function of network equipment correspondence is moved normally.
Whether the nodal value that described judgement is obtained is legal is to obtain by the size judgement with the previous nodal value of present node value of present node value relatively: if the present node value is bigger than the previous nodal value of present node value, then legal; If the present node value is littler than the previous nodal value of present node value, and is then illegal.
Describedly obtain legal nodal value and be as the process of present node value:
When the present node value equates with the previous nodal value of present node value, the present node value is added 1 as the legal nodal value that is obtained.
Before steps A, this method also comprises:
According to the object among the MIB of the tested function appointment network management unit of the described network equipment.
This system comprises the network management unit and the tested network equipment, wherein,
Network management unit, be used for test all-purpose language TCL script by having, obtain legal nodal value as the present node value according to the node sequence of object among the management information bank MIB of network management unit, with present node value assignment in object, after till the whole assignment of all nodes in the current object are arrived current object, indicate the operation of the tested network equipment to adopt the function of the object correspondence after the assignment, and, determine whether this function of this network equipment is moved normally according to the operation result that this network equipment that receives returns;
The tested network equipment is used to carry out the indication of network management unit, and the function of the object correspondence after the assignment is adopted in operation, and returns operation result and give network management unit.
Described network management unit is a multirouting platform, and its address route according to the network equipment is passed through network-to-network equipment.
From such scheme as can be seen, the present invention is provided with the TCL script, this TCL script each nodal value under the object among the MIB of network management unit is taken out successively and assignment in affiliated object, when carrying out the functional test of the network equipment, direct this TCL script of operation in corresponding to the object of the MIB of this function, make in this object each nodal value successively automatic assignment in this object, the indication network equipment operation adopts the function of this object correspondence of assignment, obtain returning to network management unit behind the operation result, administrative unit determines according to operation result whether the function of network equipment correspondence is moved normally.Therefore, system and method provided by the invention does not need by manual mode, just can realize the test of each function on the network equipment, thereby testing efficiency is high and artificial wrong diagnosis can not occur.
Description of drawings
Fig. 1 is the method flow diagram of network equipment detection of the present invention;
Fig. 2 is the workflow diagram of TCL script of the present invention;
Fig. 3 is the system flow chart of network equipment detection of the present invention;
The TCL script schematic diagram of Fig. 4 in network management unit, moving;
The operation result schematic diagram that Fig. 5 returns for the network equipment.
Embodiment
In order to make the purpose, technical solutions and advantages of the present invention clearer, below lift specific embodiment and, the present invention is described in more detail with reference to accompanying drawing.
The present invention carries out ergodic assign operation test by test all-purpose language (TCL) script to the object among the MIB of administrative unit, each nodal value under the appointed object taken out successively be set to again in this object, the indication network equipment operation adopts the corresponding function after the assignment, return operation result, thereby administrative unit determines according to operation result whether the corresponding function of the network equipment moves the functional test of normally finishing the network equipment of this object correspondence.Certainly, adopt this mode can also carry out Infinite Cyclic time traversal test apace automatically.In the present invention, each nodal value under the object is the value that the pairing network equipment function of object can be chosen.
Fig. 1 is the method flow diagram of network equipment detection of the present invention, and its concrete steps are:
Object among the MIB of step 101, appointment network management unit carries out assignment by the TCL script to the object among the MIB.
Be to specify object among the MIB of network management unit in the present invention according to the tested function of the network equipment.
When the operation of gateway unit indication Network Management Equipment, also need according to network appliance address, determine as Internet protocol (IP) address which network equipment is carried out functional test.
Fig. 2 is the workflow diagram of TCL script of the present invention, and concrete steps are:
Whether the present node value that step 204, judgement obtain is legal, if, execution in step 205; Otherwise, ending said process.
Whether the present node value is legal is to obtain according to judging with the previous nodal value of present node value, promptly judge the size of two nodal values, judge in order to realize this legitimacy, two functions need be set in the TCL script, one is the head value of obtaining two adjacent nodal values, for example: present node value 123.21 obtains 123, and the previous nodal value 123 of present node value obtains 123; Another is the tail-end value that obtains two adjacent nodal values, and for example: present node value 123.21 obtains 21, and the previous nodal value 123 of present node value obtains 0.If the present node value is bigger than the previous nodal value of present node value, and is then legal; If the present node value is littler than the previous nodal value of present node value, and is then illegal.Whether like this, just can judge the present node value legal.
Under normal circumstances, the present node value should be greater than the previous nodal value of present node value (in the prior art, nodal value in object all is according to tactic from small to large), if the two equates, assignment again after then can adding 1 to the present node value, prevent endless loop, if the present node value is less than the nodal value before it, represent that then the present node value is illegal nodal value, need put in the illegal nodal value class table of setting and show, make things convenient for the user to carry out the location of illegal nodal value.
If desired the network equipment function of the object correspondence among the MIB is carried out unlimited test, promptly the object among the MIB is carried out unlimited traversing operation, then the described process of Fig. 2 is arranged in the unlimited circulation TCL script just passable.
Fig. 3 is the system flow chart of network equipment detection of the present invention, and this system comprises that the network management unit and the network equipment are connected to each other by network, wherein,
Network management unit is a multirouting platform, and it can be routed to according to the address of the network equipment on the network equipment, and the function by the object correspondence after the network indication network equipment operation employing assignment receives the operation result that the network equipment returns; Also be provided with the TCL script in the network element, directly each nodal value under the mib object in the network management unit is taken out successively and assignment in affiliated object.
The network equipment is used for the function by the object correspondence after the operation employing assignment of network execution network management unit indication, and returns operation result and give network management unit.
Lifting an object lesson describes.
The TCL script schematic diagram of Fig. 4 in network management unit, moving, as shown in the figure, at first, the IP address of the network equipment that network management unit will be tested is 10.71.57.66, and the 1.3.1.4.1.2011.2.22.6.2.1.1.18 that is designated of the mib object that need travel through is set; Then, network management unit operation TCL script makes this object carry out the assignment of each nodal value under this object successively; At last, the function of the object correspondence after the assignment is adopted in network equipment operation with IP address of 10.71.57.66 of network management unit indication.
The network equipment of IP address with 10.71.57.66 is according to the indication of network management unit, and the function of the object correspondence after the assignment is adopted in operation, and returns operation result to network management unit.
Fig. 5 is the operation result schematic diagram that the network equipment returns, and the function of the object correspondence after the assignment is adopted in the network equipment operation with IP address of 10.71.57.66, and the function of the object correspondence after the assignment, the operation result that obtains are adopted in operation successively.As shown in the figure: operation result comprises the time of execution and the nodal value that obtains, Network Management Equipment determines according to prior art whether the function of network equipment correspondence is moved normally according to operation result, promptly judge according to the time of implementation of returning whether the object after this assignment is normal, judge according to the nodal value that returns whether the object after this assignment is normal.
The TCL script that the present invention passes through to be provided with is realized the functional test to the MIB node spreadability of network management unit, providing for other operational trialss on the basis of background service, also conveniently avoided manual loaded down with trivial details repetitive operation, fundamentally improved testing efficiency and test mass in network equipment functional test.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being made within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.
Claims (6)
1, a kind of method of network equipment detection is characterized in that, this method comprises:
A, test all-purpose language TCL script by being provided with, obtain legal nodal value as the present node value according to the node sequence of object among the management information bank MIB of network management unit, with present node value assignment in object, up to the whole assignment of all nodes in the current object till the current object;
B, network management unit indication network equipment operation adopt the function of the object correspondence after the assignment, and the network equipment returns operation result to network management unit, and administrative unit determines according to operation result whether the function of network equipment correspondence is moved normally.
2, the method for claim 1, it is characterized in that, whether the nodal value that described judgement is obtained is legal is to obtain by the size judgement with the previous nodal value of present node value of present node value relatively: if the present node value is bigger than the previous nodal value of present node value, then legal; If the present node value is littler than the previous nodal value of present node value, and is then illegal.
3, the method for claim 1 is characterized in that, describedly obtains legal nodal value and as the process of present node value is:
When the present node value equates with the previous nodal value of present node value, the present node value is added 1 as the legal nodal value that is obtained.
4, the method for claim 1 is characterized in that, before steps A, this method also comprises:
According to the object among the MIB of the tested function appointment network management unit of the described network equipment.
5, a kind of system of network equipment detection is characterized in that, this system comprises the network management unit and the tested network equipment, wherein,
Network management unit, be used for test all-purpose language TCL script by having, obtain legal nodal value as the present node value according to the node sequence of object among the management information bank MIB of network management unit, with present node value assignment in object, after till the whole assignment of all nodes in the current object are arrived current object, indicate the operation of the tested network equipment to adopt the function of the object correspondence after the assignment, and, determine whether this function of this network equipment is moved normally according to the operation result that this network equipment that receives returns;
The tested network equipment is used to carry out the indication of network management unit, and the function of the object correspondence after the assignment is adopted in operation, and returns operation result and give network management unit.
6, system as claimed in claim 5 is characterized in that, described network management unit is a multirouting platform, and its address route according to the network equipment is passed through network-to-network equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101119526A CN100450045C (en) | 2006-08-28 | 2006-08-28 | Method and system of network equipment detection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101119526A CN100450045C (en) | 2006-08-28 | 2006-08-28 | Method and system of network equipment detection |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1913460A CN1913460A (en) | 2007-02-14 |
CN100450045C true CN100450045C (en) | 2009-01-07 |
Family
ID=37722240
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006101119526A Expired - Fee Related CN100450045C (en) | 2006-08-28 | 2006-08-28 | Method and system of network equipment detection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100450045C (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106899451B (en) * | 2017-02-22 | 2020-04-17 | 广州市诚毅科技软件开发有限公司 | Method and device for testing MIB (management information base) |
CN109086072A (en) * | 2018-08-01 | 2018-12-25 | 郑州云海信息技术有限公司 | A kind of scenario generation method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6122639A (en) * | 1997-12-23 | 2000-09-19 | Cisco Technology, Inc. | Network device information collection and change detection |
US6233612B1 (en) * | 1998-08-31 | 2001-05-15 | International Business Machines Corporation | Dynamic network protocol management information base options |
US6397359B1 (en) * | 1999-01-19 | 2002-05-28 | Netiq Corporation | Methods, systems and computer program products for scheduled network performance testing |
CN1394040A (en) * | 2001-06-22 | 2003-01-29 | 友讯科技股份有限公司 | Management system and manager for society's Ethernet switch |
CN1790957A (en) * | 2004-12-14 | 2006-06-21 | 华为技术有限公司 | Apparatus testing method |
-
2006
- 2006-08-28 CN CNB2006101119526A patent/CN100450045C/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6122639A (en) * | 1997-12-23 | 2000-09-19 | Cisco Technology, Inc. | Network device information collection and change detection |
US6233612B1 (en) * | 1998-08-31 | 2001-05-15 | International Business Machines Corporation | Dynamic network protocol management information base options |
US6397359B1 (en) * | 1999-01-19 | 2002-05-28 | Netiq Corporation | Methods, systems and computer program products for scheduled network performance testing |
CN1394040A (en) * | 2001-06-22 | 2003-01-29 | 友讯科技股份有限公司 | Management system and manager for society's Ethernet switch |
CN1790957A (en) * | 2004-12-14 | 2006-06-21 | 华为技术有限公司 | Apparatus testing method |
Non-Patent Citations (2)
Title |
---|
基于SNMP的网络层拓扑发现. 张海飞.长春师范学院学报(自然科学版),第25卷第3期. 2006 |
基于SNMP的网络层拓扑发现. 张海飞.长春师范学院学报(自然科学版),第25卷第3期. 2006 * |
Also Published As
Publication number | Publication date |
---|---|
CN1913460A (en) | 2007-02-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105554876B (en) | A kind of mobile terminal locating method and mobile terminal | |
CN105357076B (en) | Network connectivty detection method and device between a kind of node | |
CN105809942A (en) | Data processing method and device for electricity information collection system | |
CN105323085A (en) | Processing method and device for establishing performance measurement task and performance measurement result | |
CN109450743A (en) | Platform of internet of things pressure testing system, method, apparatus and server | |
CN102684947A (en) | Speed measurement method for network accelerating system | |
CN102902547A (en) | Command construction and analysis method of command line interface | |
CN105117345A (en) | Interface testing method and device for application program | |
CN102571416B (en) | Positioning method and device for virtual machine | |
CN107040429A (en) | A kind of method of testing and system of port forwarding performance | |
CN1432231A (en) | Method and appts. for measuring internet router traffic | |
CN107092502B (en) | Automatic application configuration method and device based on cloud operating system | |
CN100450045C (en) | Method and system of network equipment detection | |
CN103379179A (en) | Method and system for planning network IP address | |
CN104301186B (en) | A kind of method and system for testing route forwarding table correctness | |
CN105976087A (en) | New method of analyzing enterprise information system fault influence range based on graphic modeling | |
CN109491890A (en) | The interface scans method and terminal device of application program | |
CN108234246A (en) | A kind of method and system of multidirectional server network performance | |
CN104270269A (en) | Method for automatically configuring network cards | |
CN106850347B (en) | Longitudinal virtualization test method and device | |
CN106951213A (en) | A kind of command analysis method and device | |
CN106413001A (en) | Flow control method and device of wireless network connection | |
CN109828910A (en) | Method and device, the computer equipment, storage medium of monkey test | |
US7778804B2 (en) | Network system analysis | |
CN105490878B (en) | NM server performance test methods and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090107 Termination date: 20170828 |
|
CF01 | Termination of patent right due to non-payment of annual fee |