CN109215158A - A kind of PON equipment routing inspection method, apparatus and storage medium - Google Patents

A kind of PON equipment routing inspection method, apparatus and storage medium Download PDF

Info

Publication number
CN109215158A
CN109215158A CN201810982725.3A CN201810982725A CN109215158A CN 109215158 A CN109215158 A CN 109215158A CN 201810982725 A CN201810982725 A CN 201810982725A CN 109215158 A CN109215158 A CN 109215158A
Authority
CN
China
Prior art keywords
inspection
information
equipment
command information
current command
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.)
Pending
Application number
CN201810982725.3A
Other languages
Chinese (zh)
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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201810982725.3A priority Critical patent/CN109215158A/en
Publication of CN109215158A publication Critical patent/CN109215158A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C1/00Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people
    • G07C1/20Checking timed patrols, e.g. of watchman
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects

Abstract

The present invention provides a kind of PON equipment routing inspection method, apparatus and storage mediums, its method includes generating inspection template according to the type information of equipment to be inspected, inspection template includes log-on message and inspection command information operation inspection software, inspection software reads the log-on message in inspection template, and according to log-on message Telnet equipment to be inspected;Inspection software reads the inspection command information in inspection template, and treats inspection device according to inspection command information and carry out inspection.The present invention is by inspection configuration template, when needing to carry out inspection to other kinds of equipment, only need in inspection template adaptability modification inspection command information, the inspection to the type equipment can be completed in inspection software;Inspection software of the invention can be adapted to different types of equipment, increase the versatility of inspection software so that a large amount of inspection software of guardian's Maintenance free, and guardian can in inspection command information flexible inspection configuration content, increase the flexibility of inspection.

Description

A kind of PON equipment routing inspection method, apparatus and storage medium
Technical field
The present invention relates to field of communication technology, in particular to a kind of PON equipment routing inspection method, apparatus and storage medium.
Background technique
Optical-fiber network refers to the network structure transmitted using optical fiber.The establishment of optical-fiber network is accessed dependent on equipment such as OLT, ONU Connection and networking, to realize the transmission and forwarding of data in a fiber.
In order to guarantee the stable operation of equipment, the guardian of equipment needs regularly to obtain the operation data of equipment, and right Data are for statistical analysis, in advance, timely to find the problem and solve the problems, such as, generate bigger shadow after avoiding problem from occurring It rings.Meanwhile the data of acquisition are also used as the foundation whether OLT needs dilatation, avoid OLT oepration at full load or overload fortune Row.
Since data are huge on network for OLT and ONU equipment, it is difficult to obtain data by artificial mode, needs to pass through Health check tool obtains data.Currently, there is very big difference, equipment manufacturer's meeting in the order line of all kinds of OLT devices (ONU equipment) Corresponding inspection software is provided according to different types of equipment, guardian needs to run different patrol according to different types of equipment Software is examined, to obtain the data of equipment.Such mode, not only guardian needs to safeguard a large amount of inspection software, increases guardian Workload, and guardian can not flexible setting inspection content.
Summary of the invention
The object of the present invention is to provide a kind of PON equipment routing inspection method, apparatus and storage mediums, realize adaptation different type PON equipment and can flexible setting inspection content purpose.
Technical solution provided by the invention is as follows:
On the one hand, a kind of PON equipment routing inspection method is provided, comprising:
Inspection template is generated according to the type information of equipment to be inspected, the inspection template includes log-on message and inspection life Enable information;
Inspection software is run, the inspection software reads the log-on message in the inspection template, and according to the login Information remote logs in the equipment to be inspected;
The inspection software reads the inspection command information in the inspection template, and according to the inspection command information pair The equipment to be inspected carries out inspection.
Further, the inspection software reads the log-on message in the inspection template, and according to the log-on message Equipment to be inspected described in Telnet specifically includes;
The inspection software reads the log-on message in the inspection template, and each level is obtained from the log-on message The username and password of corresponding entry address and the corresponding equipment to be inspected of each entry address;
According to the corresponding entry address of main layer grade and the user name and password, main layer grade described in Telnet is corresponding Equipment to be inspected;
It is corresponding wait patrol from the main layer grade according to the corresponding entry address of child level and the user name and password Examine the corresponding equipment to be inspected of child level described in Telnet in equipment.
In the present solution, can input directly in log-on message and each step on when equipment to be inspected is equipped with username and password Record the username and password of the corresponding equipment to be inspected in address so that detection device can smoothly Telnet to equipment to be inspected On;When sub- equipment inside equipment to be inspected is also required to inspection, it is also necessary to from the corresponding son of Telnet in equipment to be inspected In equipment, to carry out inspection to sub- equipment.
Further, the inspection software reads the inspection command information in the inspection template, and according to the inspection Command information carries out inspection to the equipment to be inspected and specifically includes:
The inspection software reads the inspection command information in the inspection template, and the inspection command information includes multiple Command information;
From the inspection command information, the current command information is obtained;
According to the current command information, described the current command is executed, and export implementing result.
Further, described that described the current command is executed according to the current command information, and after exporting implementing result Further include:
According to the key word information in the current command information, searches in the implementing result and believe with the keyword The matched information of manner of breathing, and export lookup result;
And/or;
According to the row information and column information in the current command information, target letter is found out in the implementing result Breath;
Numerical value in the target information is compared with the preset threshold in the current command information, and output pair Compare result.
In the present solution, when executing the current command, and after exporting implementing result, it, can when needing to analyze output result Information relevant to analysis is inputted in the current command information can work as such as when requiring to look up the information for meeting querying condition The key word information required to look up is inputted in preceding command information, so that inspection software is looked into implementing result automatically according to keyword The information with Keywords matching is looked for, routing inspection efficiency is improved;It, can be in the current command information when needing to carry out thresholding comparison analysis Position (such as row information and column information) and preset threshold value of the information that input needs to compare in the implementing result of output, inspection Software finds corresponding information according to location information automatically in the implementing result of output, and is compared with preset threshold, Comparison result is exported, it is after the analysis of inspection software as a result, can maintain easily needed for personnel more intuitively get oneself Information.
Further, described according to the current command information, described the current command is executed, and it is specific to export implementing result Include:
According to the current command information, described the current command is executed, when described the current command is within a preset time without sound At once, described the current command is repeated, when repeating described the current command and reaching preset times, executes subsequent command, And export implementing result;
When described the current command responds within a preset time, implementing result is exported, and continue to execute subsequent command.
In the present solution, allowing every order when first time, execution cannot respond to, preset times are repeated, can be prevented out Existing unstable networks, when network message delay, order can not be executed.
On the other hand, a kind of equipment patrolling device is also provided, comprising:
Inspection template generation module, for generating inspection template, the inspection mould according to the type information of equipment to be inspected Plate includes log-on message and inspection command information;
Starting module, for running inspection software;
Telnet module, for reading the log-on message in the inspection template, and it is long-range according to the log-on message Log in the equipment to be inspected;
Polling module, for reading the inspection command information in the inspection template, and according to the inspection command information Inspection is carried out to the equipment to be inspected.
Further, the Telnet module includes:
First reading unit, for reading the log-on message in the inspection template;
First acquisition unit, for obtaining the corresponding entry address of each level and each from the log-on message The username and password of the corresponding equipment to be inspected of entry address;
Telnet unit is used for according to the corresponding entry address of main layer grade and the user name and password, remotely Log in the corresponding equipment to be inspected of the main layer grade;
It is also used to according to the corresponding entry address of child level and the user name and password, it is corresponding from the main layer grade Equipment to be inspected on the corresponding equipment to be inspected of child level described in Telnet.
Further, the polling module includes:
Second reading unit, for reading the inspection command information in the inspection template, the inspection command information packet Include multiple command informations;
Second acquisition unit, for obtaining the current command information from the inspection command information;
Execution unit, for executing described the current command according to the current command information;
Output unit, for exporting implementing result.
Further, the polling module further include:
Searching unit, for being searched in the implementing result according to the key word information in the current command information The information to match with the key word information;
The output unit is also used to export lookup result;
And/or;
The searching unit, for executing knot described according to the row information and column information in the current command information Target information is found out in fruit;
Comparison unit, for carrying out the numerical value in the target information and the preset threshold in the current command information Comparison;
The output unit is also used to export comparing result.
In another aspect, providing a kind of storage medium, computer program, the computer program are stored on the storage medium When being executed by processor, above-mentioned equipment routing inspection method is realized.
A kind of PON equipment routing inspection method, apparatus and storage medium, bring provided through the invention has the beneficial effect that
Inspection software of the invention is general framework, is not intended to be limited to certain a kind of equipment and uses, increases the general of inspection Property, and it is convenient for safeguarding.When inspection, the device type of meeting inspection as needed generates the inspection template of default, inspection software root According to the relevant information read in inspection template inspection can be carried out to corresponding equipment to be inspected;If there is patrolling for new type at scene When inspection equipment needs inspection, only need to newly-increased or modification inspection command information, the inspection software of adaptability be in inspection template The achievable inspection to the type equipment, increases the flexibility of inspection, improves routing inspection efficiency;Meanwhile operator is without the palm Hold the edit script knowledge of profession, a large amount of inspection software of Maintenance free, it is only necessary to it is familiar with needing the equipment of inspection, it can basis Oneself needs to edit inspection template, to complete customized inspection content.The present invention requires simply running environment, not office It is limited to run on a certain hardware device, as long as there is a computer that can run this inspection software.
Detailed description of the invention
Below by clearly understandable mode, preferred embodiment is described with reference to the drawings, to a kind of equipment routing inspection side PON Above-mentioned characteristic, technical characteristic, advantage and its implementation of method, device and storage medium are further described.
Fig. 1 is a kind of flow diagram of the embodiment one of PON equipment routing inspection method of the present invention;
Fig. 2 is the networking model figure of the network equipment of the invention;
Fig. 3 is a kind of flow diagram of the embodiment two of PON equipment routing inspection method of the present invention;
Fig. 4 is the schematic diagram that a kind of two medium-long range of embodiment of PON equipment routing inspection method of the present invention logs in each level;
Fig. 5 is a kind of flow diagram one of the embodiment three of PON equipment routing inspection method of the present invention;
Fig. 6 is a kind of flow diagram two of the embodiment three of PON equipment routing inspection method of the present invention;
Fig. 7 is a kind of flow diagram three of the embodiment three of PON equipment routing inspection method of the present invention;
Fig. 8 is a kind of flow diagram four of the embodiment three of PON equipment routing inspection method of the present invention;
Fig. 9 is a kind of structural schematic diagram of one embodiment of PON equipment patrolling device of the present invention;
Figure 10 is a kind of structural schematic diagram of another embodiment of PON equipment patrolling device of the present invention.
Specific embodiment
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, Detailed description of the invention will be compareed below A specific embodiment of the invention.It should be evident that drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing, and obtain other embodiments.
To make simplified form, part related to the present invention is only schematically shown in each figure, they are not represented Its practical structures as product.In addition, there is identical structure or function in some figures so that simplified form is easy to understand Component only symbolically depicts one of those, or has only marked one of those.Herein, "one" is not only indicated " only this ", can also indicate the situation of " more than one ".
Embodiment one, as shown in Figure 1,
A kind of PON equipment routing inspection method, comprising:
S100 generates inspection template according to the type information of equipment to be inspected, and inspection template includes log-on message and inspection life Enable information;
S200 runs inspection software, and inspection software reads the log-on message in inspection template, and long-range according to log-on message Log in equipment to be inspected;
S300 inspection software reads the inspection command information in inspection template, and is set according to inspection command information to be inspected It is standby to carry out inspection.
Specifically, equipment to be inspected can be the relevant device in seven layer protocols of networks such as OLT, ONU in the present embodiment.It patrols The information in software reading inspection template is examined, equipment to be inspected is then remotely logged into according to the log-on message in inspection template On, the inspection for treating inspection device is completed further according to the inspection command information in inspection template.In optical-fiber network, in OLT system Portion is connected by optical fiber, and OLT can be connected with upper layer device by network or optical fiber.OLT is as a kind of access device, geographical location On can distribute very scattered, farther out, for convenience of safeguarding, every end OLT needs to distribute management IP to distance, and similarly, ONU equipment is also assigned IP.The networking model (OLT, ONU, interchanger, router etc.) of the network equipment is as shown in Figure 2.Inspection software is logged in by reading IP Telnet equipment to be inspected in information, for example, the OLT 10.10.12.1 in network can be first logged by NAT, It initiates to log in from OLT 10.10.12.1 again, logs on to the other equipment of Intranet, for example log on to ONU 10.10.12.2.Far The mode of Cheng Denglu equipment to be inspected may also be arranged in inspection template, and login mode can be stepped on for Telnet login mode or ssh2 Record mode.
Inspection software of the invention uses generic structure, decouples with device type, is applicable to various types of networks and sets It is standby, such as OLT, ONU, interchanger, router, as long as equipment supports telnet or ssh, inspection is can be completed in login;Inspection When, the inspection of the achievable equipment to a type of an inspection template, when there is the equipment of new type to need inspection, it is only necessary to The increase or modification inspection command information of adaptability in inspection template, inspection software, which can be completed, patrols the type equipment Inspection, increases the versatility and flexibility of inspection.Meanwhile the also achievable multi-layer inspection of inspection software of the invention, i.e., After telnet or ssh to the first level equipment, using the first level equipment as springboard, telnet is set to the second level again It is standby, and so on, to realize that multi-layer logs in inspection.In addition, the operation of inspection software of the invention does not have to rely on or set Corresponding hardware is counted, can be in any system computerized upper operation (including but not limited to windows, mac, linux etc.), this software can be with It is realized with script, is also possible to executable binary program and realizes, running environment required lower;Software user is not necessarily to foot Originally it writes or the basis of software programming, need to only be familiar with the operational order of inspection device, the inspection mould imported needed for editor's inspection Inspection work can be completed in plate file.
Embodiment two
The present embodiment is the optimal enforcement example of above-described embodiment one, as shown in figure 3, the present embodiment and one phase of above-described embodiment Than main improve is that S200 inspection software reads the log-on message in inspection template, and waits for according to log-on message Telnet Inspection device specifically includes;
S210 inspection software reads the log-on message in inspection template, obtains that each level is corresponding to step on from log-on message Record the username and password of address and the corresponding equipment to be inspected of each entry address;
For S220 according to the corresponding entry address of main layer grade and user name and password, Telnet main layer grade is corresponding to be inspected Equipment;
S230 is corresponding from the main layer grade according to the corresponding entry address of child level and the user name and password The corresponding equipment to be inspected of child level described in Telnet in equipment to be inspected.
Specifically, if there is sub- equipment, such as card insert type equipment inside OLT device, every height is set in the present embodiment It is standby to be also required to distribute independent IP, it, can be according to the level in log-on message when needing to carry out inspection to the sub- equipment inside OLT It is logged in, such as comprising the first level, the second level and third level, the first level is OLT, the second level is line card, three Level is ONU equipment, and multiple line cards are hung under single OLT, multiple ONU equipments are hung under each line card.By taking Fig. 4 as an example, the first level Including three OLT devices, the IP of three OLT devices is respectively 1.1.1.1,1.1.1.2,1.1.1.3;Wherein OLT device 1.1.1.1 there are three pieces of line cards to need inspection in, the IP of three pieces of line cards be respectively 10.10.10.1,10.10.10.2, 10.10.10.3;Wherein inspection is needed there are three ONU under line card 10.10.10.1;The IP of three ONU equipments is respectively 10.10.100.1,10.10.100.2,10.10.100.3.When Telnet, the OLT device of the first level is first logged in 1.1.1.1, then according to the IP of line card 10.10.10.1, from OLT device in Telnet to line card, finally further according to three 10.10.100.1,10.10.100.2,10.10.100.3IP of ONU equipment, from line card in Telnet to ONU equipment.This The schematic diagram of each level of the Telnet of embodiment is as shown in Figure 4.Fig. 4, which is omitted, to be hung under OLT1.1.1.2,1.1.1.3 The ONU equipment hung under line card, and corresponding line card.
When Telnet equipment to be inspected, when such as equipment to be inspected is equipped with username and password, directly letter can logged in The username and password of the corresponding equipment to be inspected of each entry address is inputted in breath, so that detection device can smooth Telnet On to equipment to be inspected.
Embodiment three
As shown in figure 5, S300 inspection software is read in inspection template on the basis of above-described embodiment one or embodiment two Inspection command information, and according to inspection command information treat inspection device carry out inspection specifically include:
S310 inspection software reads the inspection command information in inspection template, and the inspection command information includes multiple orders Information;
S320 obtains the current command information from inspection command information;
S330 executes the current command according to the current command information, and exports implementing result.
Preferably, as shown in figs 6-8, according to the current command information, the current command is executed, and exports implementing result and goes back later Include:
S340 is searched in implementing result and is matched with key word information according to the key word information in the current command information Information, and export lookup result;
And/or;
S350 finds out target information according to row information and column information in the current command information in implementing result;
S360 compares the numerical value in target information with the preset threshold in the current command information, and exports comparison knot Fruit.
Specifically, include multiple command informations in inspection command information, include an order in each command information And analyze the relevant information of the implementing result of the order.By taking a command information as an example comprising: DIRECTORYNAME: life Catalogue where enabling row;COMMAND: order;CHECKRANGE [optional parameters]: in the implementing result after indicating order execution, it is The inspection of a line a line or Global Information check together;RECORD NAME [optional parameters]: it indicates in record implementing result Column name, if it is multiple titles, corresponding multiple row is then separated with English comma;CHECK KEY [optional parameters]: and CHECK RANGE are associated, indicate the keyword checked, i.e. inspection checkpoint of interest, such as task extension is extremely suspend, when When checking in information comprising suspend, need to record the error message of this task, write-in inspection result etc..After COMMAND order Optional parameters information can be added according to actual needs.
Inspection software successively executes mentioned order according to the command information in inspection command information, and is ordered according to every Export corresponding implementing result.By executing order, the result of output is there may be more information, and therefore, it is necessary to output Information is analyzed.Such as the current command are as follows: show task (display task run information), the implementing result of output is 103task 11e44985099suspend 61d31ce519eb000, it is dead that the key word information for including in the current command information is that task is hung Suspend, inspection software i.e. searched whether in 103task 11e44985099suspend 61d31c e519eb000 include Suspend needs to record the error message of this task, and remember to the error message of this task when comprising suspend Record, write-in lookup result simultaneously export,, can a line a line when searching key word information in the implementing result after order executes Check, can also Global Information check together.When finding which task extension is dead, the address is recorded, and according to the address search Current task hangs dead reason out, or searches and hang the associated information of hipocratic face with task.
It, can also will be a certain in current implementing result other than it can search qualified information in current implementing result Numerical value is compared with the preset threshold in the current command information, i.e. progress thresholding compares analysis.It can be first in the current command information Middle input needs row and column of the target information compared where in implementing result, and inspection software is according in the current command information Row information and column information find out target information and compare with the preset threshold in the current command information, then output comparison knot Fruit.Such as in the current command information, line number or row number where the information that input needs to record, if the current command information In there are RECORD COLUMN No, then record the value that RECORD COLUMN No is shown, and RECORD COLUMN is shown Value is compared with preset threshold;If it does not exist, then the value of RECORDNAME is necessary for character string present in the current command, And searched in the current command by the value that RECORD NAME is arranged, it is exported the data being located next to after this value as data, such as In the current command information, COMMAND:show status pon 1onu 11, RECORD NAME:pon, onu, then in output As a result in, the gauge outfit for having two column is respectively pon and onu, and corresponding value is respectively 1 and 11.Wherein, table 1 is the inspection knot of output Fruit example, LOGIN LEVEL1 indicates that level-one logs in IP in table 1, and LOGIN LEVEL2 indicates that second level logs in IP, and port indicates end Message breath, current speed indicate the real value being retrieved, and overthreshold indicated high threshold, i.e., default threshold Maximum value in value, belowthreshold indicated threshold ones, i.e. minimum value in preset threshold, and over flag is indicated Whether real value is more than maximum value, and below flag indicates whether real value is lower than minimum value.The present embodiment is by executing knot Fruit is analyzed, and the personnel that can maintain easily more intuitively get the information needed for oneself.
Table 1
Preferably, according to the current command information, the current command is executed, and exports implementing result and specifically includes: according to The current command information, execute the current command, when the current command within a preset time without response when, repeat the current command, when When repeating the current command and reaching preset times, subsequent command is executed, and export implementing result;When described the current command is pre- If in the time when response, exporting implementing result, and continue to execute subsequent command.
Since network is there are unstability, network message situations such as there are packet losses, delay, so being needed during inspection This situation is carried out fault-tolerant.Every subcommand executes the wait-for-response time and executes number and can be configured before inspection starts.Example Such as: it is 2 seconds that the wait-for-response time, which can be set, and executing number is 3 times, then it represents that when every order input, if rung in 2 seconds Answer, then at once execute subsequent commands, if do not responded in 2 seconds, maximum wait 2 seconds, repeat 3 the current commands without Response then continues subsequent command.
Example IV
A kind of PON equipment patrolling device, as shown in Figure 9, comprising:
Inspection template generation module 100 generates inspection template according to the type information of equipment to be inspected, and inspection template includes Log-on message and inspection command information;
Starting module 200, for running inspection software;
Telnet module 300, for reading the log-on message in the inspection template, and it is remote according to the log-on message Cheng Denglu equipment to be inspected;
Polling module 400 is believed for reading the inspection command information in the inspection template, and according to the inspection order Breath carries out inspection to the equipment to be inspected.
Specifically, equipment to be inspected can be the relevant device in seven layer protocols of networks such as OLT, ONU.Inspection template and inspection Software is arranged in the terminals such as the computer of guardian's operation.Before inspection, the inspection configuration template on the terminal devices such as computer, then Inspection software is run, inspection software readable takes the information in inspection template, then long-range according to the log-on message in inspection template Log on in equipment to be inspected, the inspection for treating inspection device is completed further according to the inspection command information in inspection template.In light It in network, is connected inside OLT system by optical fiber, OLT can be connected with upper layer device by network or optical fiber.OLT is as a kind of Access device, can distribute on geographical location very scattered, and farther out, for convenience of safeguarding, every end OLT needs to distribute management IP to distance, similarly, ONU equipment is also assigned IP.Inspection software is waited for by reading the IP Telnet equipment to be inspected in log-on message, Telnet The mode of inspection device may also be arranged in inspection template, and login mode can be Telnet login mode or ssh2 login mode.
The present invention is in inspection configuration template, it is only necessary to adaptively change log-on message according to the information of equipment to be inspected With inspection command information, the inspection for treating inspection device can be completed.Inspection software of the invention can be decoupled with device type, and It is adapted to different types of equipment simultaneously, increases the versatility of inspection software, and guardian can order in the inspection of inspection template Flexible inspection configuration content in information is enabled, the flexibility of inspection is increased.
Embodiment five
The present embodiment is a kind of another embodiment of PON equipment patrolling device, as shown in Figure 10, comprising:
Inspection template generation module 100 generates inspection template according to the type information of equipment to be inspected, and inspection template includes Log-on message and inspection command information;
Starting module 200, for running inspection software;
Telnet module 300 is waited for for reading the log-on message in inspection template, and according to log-on message Telnet Inspection device;
Polling module 400 for reading the inspection command information in inspection template, and is treated according to inspection command information and is patrolled It examines equipment and carries out inspection.
Preferably, Telnet module 300 includes:
First reading unit 310, for reading the log-on message in inspection template;
First acquisition unit 320, for obtaining the corresponding entry address of each level from log-on message and each stepping on Record the username and password of the corresponding equipment to be inspected in address;
Telnet unit 330, for according to the corresponding entry address of main layer grade and user name and password, Telnet master The corresponding equipment to be inspected of level;
It is also used to according to the corresponding entry address of child level and user name and password, from the corresponding equipment to be inspected of main layer grade The corresponding equipment to be inspected of upper Telnet child level.
Preferably, polling module 400 includes:
Second reading unit 410, for reading the inspection command information in inspection template;
Second acquisition unit 420, for obtaining the current command information from inspection command information;
Execution unit 430, for executing the current command according to the current command information;
Output unit 440, for exporting implementing result.
Preferably, polling module 400 further include:
Searching unit 450, for being searched in implementing result and key according to the key word information in the current command information The information that word information matches;
Output unit 440 is also used to export lookup result;
And/or;
Searching unit 450, for being found out in implementing result according to the row information and column information in the current command information Target information;
Comparison unit 460, for comparing the numerical value in target information with the preset threshold in the current command information;
Output unit 440 is also used to export comparing result.
The concrete operations mode of modules in the present embodiment has been carried out in above-mentioned corresponding embodiment of the method Detailed description, therefore no longer repeated one by one.
Embodiment six
A kind of computer readable storage medium is present embodiments provided, computer program, computer program are stored thereon with All methods or Part Methods of above-described embodiment one to three any embodiment of embodiment are realized when being executed by processor.
The present invention realizes all or part of the process of the above-described embodiment one into the method for any embodiment of embodiment three, Relevant hardware can also be instructed to complete by computer program, computer program can be stored in a computer-readable storage In medium, the computer program is when being executed by processor, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, it calculates Machine program includes computer program code, and computer program code can be source code form, object identification code form, executable text Part or certain intermediate forms etc..Computer-readable medium may include: can carry computer program code any entity or Device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software Distribution medium etc..It should be noted that computer-readable medium include content can according in jurisdiction legislation and specially The requirement of benefit practice carries out increase and decrease appropriate, such as in certain jurisdictions, computer-readable according to legislation and patent practice Medium does not include electric carrier signal and telecommunication signal.
It should be noted that above-described embodiment can be freely combined as needed.The above is only of the invention preferred Embodiment, it is noted that for those skilled in the art, in the premise for not departing from the principle of the invention Under, several improvements and modifications can also be made, these modifications and embellishments should also be considered as the scope of protection of the present invention.

Claims (10)

1. a kind of PON equipment routing inspection method characterized by comprising
Inspection template is generated according to the type information of equipment to be inspected, the inspection template includes log-on message and inspection order letter Breath;
Inspection software is run, the inspection software reads the log-on message in the inspection template, and according to the log-on message Equipment to be inspected described in Telnet;
The inspection software reads the inspection command information in the inspection template, and according to the inspection command information to described Equipment to be inspected carries out inspection.
2. equipment routing inspection method according to claim 1, it is characterised in that: the inspection software reads the inspection template In log-on message, and the equipment to be inspected according to the log-on message Telnet specifically includes:
The inspection software reads the log-on message in the inspection template, and it is corresponding that each level is obtained from the log-on message Entry address and the corresponding equipment to be inspected of each entry address username and password;
According to the corresponding entry address of main layer grade and the user name and password, main layer grade described in Telnet it is corresponding to Inspection device;
According to the corresponding entry address of child level and the user name and password, to be inspected set from the main layer grade is corresponding The corresponding equipment to be inspected of child level described in standby upper Telnet.
3. equipment routing inspection method according to claim 1, it is characterised in that: the inspection software reads the inspection template In inspection command information, and inspection is carried out to the equipment to be inspected according to the inspection command information, specifically included:
The inspection software reads the inspection command information in the inspection template, and the inspection command information includes multiple orders Information;
From the inspection command information, the current command information is obtained;
According to the current command information, described the current command is executed, and export implementing result.
4. equipment routing inspection method according to claim 3, it is characterised in that: according to the current command information, execute institute The current command is stated, and after exporting implementing result further include:
According to the key word information in the current command information, searched and the key word information phase in the implementing result Matched information, and export lookup result;
And/or;
According to the row information and column information in the current command information, target information is found out in the implementing result;
Numerical value in the target information is compared with the preset threshold in the current command information, and exports comparison knot Fruit.
5. equipment routing inspection method according to claim 3, it is characterised in that: it is described according to the current command information, it holds The described the current command of row, and implementing result is exported, it specifically includes:
According to the current command information, execute described the current command, when described the current command within a preset time without response when, Described the current command is repeated, when repeating described the current command and reaching preset times, executes subsequent command, and export Implementing result;
When described the current command responds within a preset time, implementing result is exported, and continue to execute subsequent command.
6. a kind of PON equipment patrolling device characterized by comprising
Inspection template generation module, for generating inspection template, the inspection template packet according to the type information of equipment to be inspected Include log-on message and inspection command information;
Starting module, for starting inspection software;
Telnet module, for reading the log-on message in the inspection template, and according to the log-on message Telnet The equipment to be inspected;
Polling module, for reading the inspection command information in the inspection template, and according to the inspection command information to institute It states equipment to be inspected and carries out inspection.
7. a kind of PON equipment patrolling device according to claim 6, which is characterized in that the Telnet module includes:
First reading unit, for reading the log-on message in the inspection template;
First acquisition unit, for obtaining the corresponding entry address of each level and each login from the log-on message The username and password of the corresponding equipment to be inspected in address;
Telnet unit, for according to the corresponding entry address of main layer grade and the user name and password, Telnet The corresponding equipment to be inspected of the main layer grade;
Be also used to according to the corresponding entry address of child level and the user name and password, from the main layer grade it is corresponding to The corresponding equipment to be inspected of child level described in Telnet on inspection device.
8. a kind of PON equipment patrolling device according to claim 6, which is characterized in that the polling module includes:
Second reading unit, for reading the inspection command information in the inspection template, the inspection command information includes more A name information;
Second acquisition unit, for obtaining the current command information from the inspection command information;
Execution unit, for executing described the current command according to the current command information;
Output unit, for exporting implementing result.
9. a kind of PON equipment patrolling device according to claim 8, which is characterized in that the polling module further include:
Searching unit, for according to the key word information in the current command information, being searched in the implementing result and institute State the information that key word information matches;
The output unit is also used to export lookup result;
And/or;
The searching unit, for according to the row information and column information in the current command information, in the implementing result Find out target information;
Comparison unit, for carrying out pair the numerical value in the target information and the preset threshold in the current command information Than;
The output unit is also used to export comparing result.
10. a kind of storage medium, computer program is stored on the storage medium, which is characterized in that the computer program quilt When processor executes, method described in any one of claim 1 to 5 is realized.
CN201810982725.3A 2018-08-27 2018-08-27 A kind of PON equipment routing inspection method, apparatus and storage medium Pending CN109215158A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810982725.3A CN109215158A (en) 2018-08-27 2018-08-27 A kind of PON equipment routing inspection method, apparatus and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810982725.3A CN109215158A (en) 2018-08-27 2018-08-27 A kind of PON equipment routing inspection method, apparatus and storage medium

Publications (1)

Publication Number Publication Date
CN109215158A true CN109215158A (en) 2019-01-15

Family

ID=64989352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810982725.3A Pending CN109215158A (en) 2018-08-27 2018-08-27 A kind of PON equipment routing inspection method, apparatus and storage medium

Country Status (1)

Country Link
CN (1) CN109215158A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110706364A (en) * 2019-09-30 2020-01-17 凌云天博光电科技股份有限公司 Inspection method and device applied to operation and maintenance of network equipment
CN110992511A (en) * 2019-11-18 2020-04-10 中盈优创资讯科技有限公司 Inspection data detection method and device
CN111835583A (en) * 2020-06-19 2020-10-27 深圳奇迹智慧网络有限公司 Attribute inspection method and device for products of Internet of things and computer equipment
CN112787895A (en) * 2021-03-05 2021-05-11 上海中通吉网络技术有限公司 Network inspection method, device and equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852175A (en) * 2005-09-08 2006-10-25 华为技术有限公司 Data-logging method and system therefor
CN1913452A (en) * 2006-08-18 2007-02-14 亿阳信通股份有限公司 Method and equipment of intelligent patrol detection for communication network
CN101043692A (en) * 2007-04-30 2007-09-26 华为技术有限公司 Patrol checking method and patrol checking server
CN101141309A (en) * 2007-10-22 2008-03-12 中兴通讯股份有限公司 Remote command line management method of passive optical network terminal
CN101159598A (en) * 2007-10-19 2008-04-09 中兴通讯股份有限公司 Remote management method of passive optical network terminal equipment
CN102684927A (en) * 2012-05-31 2012-09-19 迈普通信技术股份有限公司 Method and device for inspecting network device
CN105071995A (en) * 2015-08-28 2015-11-18 北京华青融天技术有限责任公司 Out-of-band network based network device patrolling method, device and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852175A (en) * 2005-09-08 2006-10-25 华为技术有限公司 Data-logging method and system therefor
CN1913452A (en) * 2006-08-18 2007-02-14 亿阳信通股份有限公司 Method and equipment of intelligent patrol detection for communication network
CN101043692A (en) * 2007-04-30 2007-09-26 华为技术有限公司 Patrol checking method and patrol checking server
CN101159598A (en) * 2007-10-19 2008-04-09 中兴通讯股份有限公司 Remote management method of passive optical network terminal equipment
CN101141309A (en) * 2007-10-22 2008-03-12 中兴通讯股份有限公司 Remote command line management method of passive optical network terminal
CN102684927A (en) * 2012-05-31 2012-09-19 迈普通信技术股份有限公司 Method and device for inspecting network device
CN105071995A (en) * 2015-08-28 2015-11-18 北京华青融天技术有限责任公司 Out-of-band network based network device patrolling method, device and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110706364A (en) * 2019-09-30 2020-01-17 凌云天博光电科技股份有限公司 Inspection method and device applied to operation and maintenance of network equipment
CN110992511A (en) * 2019-11-18 2020-04-10 中盈优创资讯科技有限公司 Inspection data detection method and device
CN110992511B (en) * 2019-11-18 2022-04-08 中盈优创资讯科技有限公司 Inspection data detection method and device
CN111835583A (en) * 2020-06-19 2020-10-27 深圳奇迹智慧网络有限公司 Attribute inspection method and device for products of Internet of things and computer equipment
CN111835583B (en) * 2020-06-19 2022-04-15 深圳奇迹智慧网络有限公司 Attribute inspection method and device for products of Internet of things and computer equipment
CN112787895A (en) * 2021-03-05 2021-05-11 上海中通吉网络技术有限公司 Network inspection method, device and equipment

Similar Documents

Publication Publication Date Title
CN109215158A (en) A kind of PON equipment routing inspection method, apparatus and storage medium
CN104022904B (en) Distributed computer room information technoloy equipment management platform
CN102739802B (en) Service application-oriented IT centralized operation and maintenance analyzing system
CN111835585B (en) Inspection method and device for Internet of things equipment, computer equipment and storage medium
WO2017165018A1 (en) Automated event id field analysis on heterogeneous logs
WO2021114454A1 (en) Method and apparatus for detecting crawler request
CN110537187A (en) A kind of topology treating method and apparatus and system
CN111030857A (en) Network alarm method, device, system and computer readable storage medium
CN107957940B (en) Test log processing method, system and terminal
CN107508722A (en) A kind of business monitoring method and device
CN201623722U (en) Supervising platform for running and maintaining information security of electric power secondary system
CN113347170B (en) Intelligent analysis platform design method based on big data framework
US10210068B2 (en) Device topology definition system
US11681606B2 (en) Automatic configuration of logging infrastructure for software deployments using source code
CN108228430A (en) A kind of server monitoring method and device
CN109213919A (en) A kind of information technology consultative service system Internet-based
CN109040028B (en) Industrial control full-flow analysis method and device
CN107911251A (en) A kind of method for configuring network equipment, device and medium
Ivanović et al. Collection and analysis of system usage data in smart home automation systems
CN114630201B (en) Operation and maintenance control system and method for data machine room
CN106021114B (en) Towards the automated testing method and system of intelligent robot
CN113572757B (en) Server access risk monitoring method and device
CN110502538A (en) Label of drawing a portrait generates method, system, equipment and the storage medium of logical mappings
CN106844158A (en) The monitoring method and device of a kind of server node state
WO2016091141A1 (en) Method and apparatus for information collection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190115