Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
State method, apparatus, computer storage medium and the equipment of the automatic discovery network equipment of problem.
One aspect of the present invention provides a kind of method of automatic discovery network equipment, comprising:
Network equipment sending device inquiry request message based on from snmp protocol to Target IP section;
The response message that the network equipment in the Target IP section is returned based on snmp protocol is received, in the response message
Carry the parameter information of the network equipment;
Judge whether the corresponding network equipment has been registered according to the parameter information;
If the network equipment is not registered, facility registration is carried out according to the parameter information.
Optionally, format constraints information is carried in the equipment query request message, the format constraints information is used for
The format of parameter information and the parameter information that the specified network equipment returns.
Optionally, before based on network equipment sending device inquiry request message of the snmp protocol into Target IP section,
The method also includes:
The configuration parameter for obtaining user, the range of the Target IP section is determined according to the configuration parameter.
It is optionally, described that facility registration is carried out according to the parameter information, comprising:
Registration reminder message is generated according to the parameter information;
The registration reminder message is shown or is sent to terminal device, so that network management administrator is according to the registration
Reminder message registers the network equipment access device.
It is optionally, described to judge whether the corresponding network equipment has been registered according to the parameter information, comprising:
Judge that the parameter information whether there is in current facility registration information list, if the parameter information is not in institute
It states in facility registration information list, then the network equipment is not registered.
Another aspect of the present invention provides a kind of device of automatic discovery network equipment, comprising:
Sending module, for the network equipment sending device inquiry request message based on snmp protocol into Target IP section;
Receiving module, the response message returned for receiving the network equipment in the Target IP section based on snmp protocol,
The parameter information of the network equipment is carried in the response message;
Judgment module, for judging whether the corresponding network equipment has been registered according to the parameter information;
Registration module carries out facility registration according to the parameter information if not registered for the network equipment.
Optionally, described device further include:
Configuration module, for the network equipment sending device in the sending module based on snmp protocol into Target IP section
Before inquiry request message, the configuration parameter of user is obtained, the range of the Target IP section is determined according to the configuration parameter.
Optionally, the registration module is specifically used for generating registration reminder message according to the parameter information;By the note
Volume reminder message be shown or be sent to terminal device, for network management administrator according to the registration reminder message to the net
The registration of network equipment access device.
In addition, it is stored thereon with computer program the present invention also provides a kind of computer readable storage medium, the program
The step of method as described above is realized when being executed by processor.
In addition, the present invention also provides a kind of equipment, including memory, processor and storage on a memory and can located
The step of computer program run on reason device, the processor realizes method as described above when executing described program.
Method, apparatus, computer storage medium and the equipment of the automatic discovery network equipment provided in an embodiment of the present invention are led to
The snmp protocol communication scanner crossed between snmp management station and the network equipment finds the network equipment that do not registered, can search for
To the network equipment not monitored, solve the problems, such as that snmp protocol monitoring of tools is lost and the monitoring of network deployment is not congruent,
O&M cost is significantly reduced, the O&M time is reduced.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless otherwise will not be explained in an idealized or overly formal meaning by specific definitions.
The purpose of the present invention is provide SNMP in a kind of solution traditional technology for above-mentioned problems of the prior art
The solution of protocol devices found automatically.The present invention (is hereafter referred to as according to management station's (being hereafter referred to as network management) and agent
The network equipment) between normal SNMP communication, IP section of SNMP parameter query is fixed in network management after actuation, and inquiry is specified to be joined
Number.When thering is equipment to install and energy normal communication, the query information of network management just will receive, and replied according to information.
After network management receives reply, judge whether to have been registered with the facility information, be recorded if not registering, with further into
The registration of row facility information.SNMP automatic device discovery thus may be implemented and prompt to network management, reach equipment and normally monitor
And reduce the purpose for linking up cost.
Fig. 1 is the flow chart of the method for the automatic discovery network equipment of one embodiment of the invention.Referring to Fig.1, of the invention
The method of the automatic discovery network equipment of embodiment specifically includes the following steps:
S11, the network equipment sending device inquiry request message based on snmp protocol into Target IP section.
In the embodiment of the present invention, the network equipment (i.e. generation of the network management (i.e. management station) based on snmp protocol into Target IP section
Reason station) successively sending device inquiry request message.Format constraints letter is carried in equipment query request message in the present embodiment
Breath, the format of parameter information and the parameter information that the format constraints information is used to that the network equipment to be specified to return.
In a specific embodiment, network management and equipment will arrange the parameter information of several interactive information, tool in advance
The parameter information that body needs is as shown in table 1, including but not limited to following parameter information:
Table 1
Node meaning |
Nodename |
Remarks |
Device product sequence number |
SNOID |
|
Device type |
NeTypeOID |
|
In actual operation, network management to the equipment query request message of equipment is realized according to unified mode,
Equipment may be sent to there are many inquiry request simultaneously, if there is it is multiple when, network management be difficult to distinguish it is specific which return
Information is used required for automatic discovery.So the return message that solicited message and equipment that network management issues report will be according to about
Fixed node is sent, so as to network management differentiation.
S12, the response message that the network equipment in the Target IP section is returned based on snmp protocol is received, the response disappears
The parameter information of the network equipment is carried in breath.
In the present embodiment, when the response message that the network equipment is returned based on snmp protocol, taken according in inquiry request message
The format constraints information of band sends out the parameter information specified in format constraints information according to the format specified in format constraints information
It is sent to network management (i.e. management station).
S13, judge whether the corresponding network equipment has been registered according to the parameter information.
Specifically, judge whether the corresponding network equipment has been registered according to the parameter information, especially by with
Lower step is realized: judging that the parameter information whether there is in current facility registration information list, if the parameter information is not
In the facility registration information list, then the network equipment is not registered.
If S14, the network equipment are not registered, facility registration is carried out according to the parameter information.
The method of the automatic discovery network equipment provided in an embodiment of the present invention, by between snmp management station and the network equipment
Snmp protocol communication scanner find the network equipment do not registered, the network equipment not monitored can be searched, solved
Snmp protocol monitoring of tools loses and the monitoring not congruent problem of network deployment, significantly reduces O&M cost, reduces
The O&M time.
In embodiments of the present invention, in the network equipment sending device inquiry request based on snmp protocol into Target IP section
Before message, further includes: the configuration parameter for obtaining user determines the range of the Target IP section according to the configuration parameter.
It is described that facility registration is carried out according to the parameter information in the embodiment of the present invention, specifically includes the following steps:
Registration reminder message is generated according to the parameter information;
The registration reminder message is shown or is sent to terminal device, so that network management administrator is according to the registration
Reminder message registers the network equipment access device.
In the present embodiment, network management when initiating automatic discovery feature, will to the corresponding network equipment of IP each in IP sections into
The inquiry operation of row two above parameter.Network management information is replied if when equipment on-line receives query messages, network management receives information
Afterwards, if it find that equipment does not register facility information in network management, different mention is generated according to device product sequence number and device type
Show information, reminds network management administrator to carry out the registration operation of equipment, and will be prompted to information preservation in network management designated position.
Fig. 2 shows management stations in the method for the automatic discovery network equipment of the embodiment of the present invention and agent to be based on SNMP
The message interaction process figure of agreement.Referring to fig. 2, the method for message interaction based on snmp protocol mainly comprises the steps that
Network management (i.e. management station) is sent to the agent (i.e. the network equipment) in IP sections one by one according to the IP section of actual disposition
Equipment query request message, the parameter informations such as inquiry SNOID and NeTypeOID.
The network equipment (i.e. agent) is configured according to itself, and the information such as SN and NeType are returned to network management.
After network management receives return information, judge whether the equipment has been registered in network management.
If unregistered, network management generates prompt information according to return information and stores.
Network management reminds network management administrator to carry out facility registration operation by interface or short message.
In conclusion the method for the automatic discovery network equipment provided by the invention based on snmp protocol, it can be effective
The equipment not monitored has been searched, the time for communication of operation maintenance personnel is reduced, has improved the not congruent problem of monitoring of existing wet end administration.
The method of the automatic discovery network equipment provided in an embodiment of the present invention is at least had the following advantages and beneficial effects:
Process of the invention is suitable for all devices and producer, and it is not in that different manufacturers are irrealizable that compatibility is strong
Situation;
Information of the invention is not limited to automatic discovering device, it can also be used to which the timing of equipment on-line state detects;
Process of the invention is not any to snmp protocol itself to distort, and supports the snmp protocol of any version.
For embodiment of the method, for simple description, therefore, it is stated as a series of action combinations, but this field
Technical staff should be aware of, and embodiment of that present invention are not limited by the describe sequence of actions, because implementing according to the present invention
Example, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know that, specification
Described in embodiment belong to preferred embodiment, the actions involved are not necessarily necessary for embodiments of the present invention.
Fig. 3 diagrammatically illustrates the structural schematic diagram of the device of the automatic discovery network equipment of one embodiment of the invention.
Referring to Fig. 3, the device of the automatic discovery network equipment of the embodiment of the present invention specifically include sending module 301, receiving module 302,
Judgment module 303 and registration module 304, in which:
Sending module 301, for being disappeared based on network equipment sending device inquiry request of the snmp protocol into Target IP section
Breath.
Wherein, format constraints information is carried in equipment query request message, the format constraints information is for specifying net
The format of parameter information and the parameter information that network equipment returns.
Receiving module 302 disappears for receiving the response that the network equipment in the Target IP section is returned based on snmp protocol
It ceases, the parameter information of the network equipment is carried in the response message.
Judgment module 303, for judging whether the corresponding network equipment has been registered according to the parameter information.
Registration module 304 carries out equipment note according to the parameter information if not registered for the network equipment
Volume.
In the embodiment of the present invention, described device further includes attached configuration module not shown in the figure, which is used for
Before the sending module is based on network equipment sending device inquiry request message of the snmp protocol into Target IP section, obtains and use
The configuration parameter at family determines the range of the Target IP section according to the configuration parameter.
In the embodiment of the present invention, the registration module 304 disappears specifically for generating registration according to the parameter information and reminding
Breath;The registration reminder message is shown or is sent to terminal device, so that network management administrator reminds according to the registration
Message registers the network equipment access device.
In the embodiment of the present invention, the judgment module 303 is specifically used for judging that the parameter information whether there is in current
Facility registration information list, if the parameter information is not in the facility registration information list, the network equipment is not
It is registered.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member
It is physically separated with being or may not be, component shown as a unit may or may not be physics list
Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs
In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness
Labour in the case where, it can understand and implement.
The method, apparatus of the automatic discovery network equipment provided in an embodiment of the present invention is set by snmp management station with network
Snmp protocol communication scanner between standby finds the network equipment that do not registered, can search the network not monitored and set
It is standby, solve the problems, such as snmp protocol monitoring of tools lose and network deployment monitoring it is not congruent, significantly reduce O&M at
This, reduces the O&M time.
In addition, it is stored thereon with computer program the embodiment of the invention also provides a kind of computer readable storage medium,
The step of program realizes method as described above when being executed by processor.
In the present embodiment, if module/unit that the device of the automatic discovery network equipment integrates is with software function list
Member form realize and when sold or used as an independent product, can store in a computer-readable storage medium
In.Based on this understanding, the present invention realizes all or part of the process in above-described embodiment method, can also pass through computer
Program is completed to instruct relevant hardware, and the computer program can be stored in a computer readable storage medium, should
Computer program is when being executed by processor, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program
Including computer program code, the computer program code can be source code form, object identification code form, executable file
Or certain intermediate forms etc..The computer-readable medium may include: can carry the 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 the content that the computer-readable medium includes can be according in jurisdiction
Legislation and the requirement of patent practice carry out increase and decrease appropriate, such as in certain jurisdictions, according to legislation and patent practice, meter
Calculation machine readable medium does not include electric carrier signal and telecommunication signal.
Fig. 4 is the schematic diagram of equipment provided in an embodiment of the present invention.Equipment provided in an embodiment of the present invention, including memory
401, processor 402 and the computer program that can be run on memory 401 and on the processor 402, the processor are stored in
The step in the embodiment of the method for above-mentioned each automatic discovery network equipment is realized when the 402 execution computer program, such as
S11 shown in FIG. 1, the network equipment sending device inquiry request message based on snmp protocol into Target IP section.S12, reception
The response message that the network equipment in the Target IP section is returned based on snmp protocol carries network in the response message and sets
Standby parameter information.S13, judge whether the corresponding network equipment has been registered according to the parameter information.If S14, institute
It states the network equipment not registered, then facility registration is carried out according to the parameter information.Alternatively, the processor 402 executes institute
The function of each module/unit in the Installation practice of above-mentioned each automatic discovery network equipment is realized when stating computer program, such as
Sending module 301, receiving module 302, judgment module 303 and registration module 304 shown in Fig. 3.
Illustratively, the computer program can be divided into one or more module/units, one or more
A module/unit is stored in the memory, and is executed by the processor, to complete the present invention.It is one or more
A module/unit can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing institute
State implementation procedure of the computer program in the device of the automatic discovery network equipment.For example, the computer program can be with
It is divided into sending module 301, receiving module 302, judgment module 303 and registration module 304.
The equipment can be desktop PC, notebook, palm PC and cloud server etc. and calculate equipment.It is described
Equipment may include, but be not limited only to, processor, memory.It will be understood by those skilled in the art that the schematic diagram 4 is only
The example of the equipment does not constitute the restriction to equipment, may include components more more or fewer than diagram, or combine certain
A little components or different components, such as the equipment can also include input-output equipment, network access equipment, bus etc..
The processor can be central processing unit (Central Processing Unit, CPU), can also be it
His general processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng the processor is the control centre of the equipment, utilizes the various pieces of various interfaces and connection whole equipment.
The memory can be used for storing the computer program and/or module, and the processor is by operation or executes
Computer program in the memory and/or module are stored, and calls the data being stored in memory, described in realization
The various functions of equipment.The memory can mainly include storing program area and storage data area, wherein storing program area can deposit
Application program (such as sound-playing function, image player function etc.) needed for storing up operating system, at least one function etc.;Storage
Data field, which can be stored, uses created data (such as audio data, phone directory etc.) etc. according to mobile phone.In addition, memory can
It can also include nonvolatile memory, such as hard disk, memory, plug-in type hard disk, intelligence to include high-speed random access memory
Energy storage card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash
Card), at least one disk memory, flush memory device or other volatile solid-state parts.
In embodiments of the present invention, it should be understood that disclosed device and method, it can be real by another way
It is existing.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit or unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of equipment or unit
It connects, can be electrical or other forms.
It will be appreciated by those of skill in the art that although some embodiments in this include included in other embodiments
Certain features rather than other feature, but the combination of the feature of different embodiments means to be within the scope of the present invention simultaneously
And form different embodiments.For example, in the following claims, the one of any of embodiment claimed all may be used
Come in a manner of in any combination using.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and
Range.