CN108848147A - SNMP agent method for device registration, device, computer equipment and storage medium - Google Patents

SNMP agent method for device registration, device, computer equipment and storage medium Download PDF

Info

Publication number
CN108848147A
CN108848147A CN201810563565.9A CN201810563565A CN108848147A CN 108848147 A CN108848147 A CN 108848147A CN 201810563565 A CN201810563565 A CN 201810563565A CN 108848147 A CN108848147 A CN 108848147A
Authority
CN
China
Prior art keywords
identifier
snmp agent
snmp
registration
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810563565.9A
Other languages
Chinese (zh)
Other versions
CN108848147B (en
Inventor
王家乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Comba Network Systems Co Ltd
Original Assignee
Comba Telecom Technology Guangzhou Ltd
Comba Telecom Systems China Ltd
Comba Telecom Systems Guangzhou Co Ltd
Tianjin Comba Telecom Systems 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 Comba Telecom Technology Guangzhou Ltd, Comba Telecom Systems China Ltd, Comba Telecom Systems Guangzhou Co Ltd, Tianjin Comba Telecom Systems Co Ltd filed Critical Comba Telecom Technology Guangzhou Ltd
Priority to CN201810563565.9A priority Critical patent/CN108848147B/en
Publication of CN108848147A publication Critical patent/CN108848147A/en
Application granted granted Critical
Publication of CN108848147B publication Critical patent/CN108848147B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This application involves a kind of SNMP agent method for device registration, system, computer equipment and storage mediums.The method includes:The corresponding object identifier of Equipment Foundations information of SNMP agent equipment is obtained, and each object identifier is tied in the trap message that identifier is login ID;Wherein, Equipment Foundations information includes at least one of SNMP agent device product sequence number, device type, equipment interaction address, reading instruction and write command;The trap message that identifier is login ID is sent to snmp management station, wherein snmp management station carries out net element information registration to SNMP agent equipment according to object identifier.SNMP agent equipment can be realized using this method and register net element information at snmp management station automatically, effectively improve SNMP agent equipment and open station efficiency.

Description

SNMP agent method for device registration, device, computer equipment and storage medium
Technical field
This application involves data communication technology fields, more particularly to a kind of SNMP agent method for device registration, device, meter Calculate machine equipment and storage medium.
Background technique
Currently, most common environmental management agreement is Simple Network Management Protocol (Simple Network Management Protocol, SNMP).Snmp protocol is mainly made of two large divisions:Snmp management station and SNMP agent equipment, snmp management station It is a central node, is responsible for collecting the information for safeguarding each SNMP element, and handle these information, finally feed back to Network administrator;And SNMP agent equipment is to operate on each network node being managed, and is responsible for counting each of the node Item information, and be responsible for interacting with snmp management station, receive and execute the order at snmp management station.
When a SNMP agent equipment needs out station and accesses network, need to carry out net element information note at snmp management station Copy, in traditional technology, SNMP agent equipment needs network administrator according to the various nets of SNMP agent equipment after installation is complete Metamessage carries out network element creation operation at snmp management station manually.During large-scale SNMP agent equipment construction, SNMP The heavy workload of the net element information registration of agent equipment, the registration technology of traditional SNMP agent equipment often lead to SNMP agent The station efficiency of opening of equipment reduces.
Summary of the invention
Based on this, it is necessary to often lead to opening for SNMP agent equipment for the registration technology of traditional SNMP agent equipment The technical issues of low efficiency of standing, provides a kind of SNMP agent method for device registration, device, computer equipment and storage medium.
A kind of SNMP agent method for device registration, includes the following steps:
The corresponding object identifier of Equipment Foundations information of SNMP agent equipment is obtained, and each object identifier is tied up Determine to identifier to be in the trap message of login ID;
SNMP will be sent to for the trap message of login ID with the identifier of each object identifier binding Management station, wherein the identifier is that the trap message of login ID is used to indicate the snmp management station according to described right As identifier carries out net element information registration to SNMP agent equipment.
Described in one of the embodiments, will be sign-on ID with the identifier of each object identifier binding The trap message of symbol was sent to after the step of snmp management station, further comprising the steps of:
Receive the login state identifier of the snmp management station feedback;
It succeeds in registration if the login state identifier indicates, periodically reports heartbeat message to snmp management station;
If the login state identifier indicates registration failure, again by the institute with each object identifier binding It states the trap message that identifier is login ID and is sent to snmp management station.
In one of the embodiments, the step of login state identifier for receiving snmp management station feedback it Afterwards, further comprising the steps of:
Receive the registration failure cause information of the snmp management station feedback.
The Equipment Foundations information includes the SNMP agent device product sequence number, sets in one of the embodiments, At least one of standby type, equipment interaction address, reading instruction and write command.
A kind of SNMP agent facility registration device, including:
Object identifier obtains module, for obtaining the corresponding object identity of Equipment Foundations information of SNMP agent equipment Symbol, and each object identifier is tied in the trap message that identifier is login ID;
Object identifier sending module, for that will be sign-on ID with the identifier of each object identifier binding The trap message of symbol is sent to snmp management station, wherein the identifier is used to indicate institute for the trap message of login ID It states snmp management station and net element information registration is carried out to SNMP agent equipment according to the object identifier.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing Device realizes following steps when executing the computer program:
The corresponding object identifier of Equipment Foundations information of SNMP agent equipment is obtained, and each object identifier is tied up Determine to identifier to be in the trap message of login ID;
SNMP will be sent to for the trap message of login ID with the identifier of each object identifier binding Management station, wherein the identifier is that the trap message of login ID is used to indicate the snmp management station according to described right As identifier carries out net element information registration to SNMP agent equipment.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor Following steps are realized when row:
The corresponding object identifier of Equipment Foundations information of SNMP agent equipment is obtained, and each object identifier is tied up Determine to identifier to be in the trap message of login ID;
SNMP will be sent to for the trap message of login ID with the identifier of each object identifier binding Management station, wherein the identifier is that the trap message of login ID is used to indicate the snmp management station according to described right As identifier carries out net element information registration to SNMP agent equipment.
Above-mentioned SNMP agent method for device registration, SNMP agent equipment after the installation is completed, actively to snmp management station send out Sending identifier is the trap message of login ID, wherein attendant equipment basic information, after snmp management station receives trap message The Equipment Foundations information carried in trap message is extracted, and carries out the net element information registration of SNMP agent equipment, realizes SNMP generation It manages equipment and registers net element information at snmp management station automatically, effectively improve SNMP agent equipment and open station efficiency.
A kind of SNMP agent method for device registration, includes the following steps:
Receive the trap message that the identifier that SNMP agent equipment is sent is login ID, wherein the identifier is The object identifier binding corresponding with the Equipment Foundations information of the SNMP agent equipment of the trap message of login ID;
The object identifier in the trap message that the identifier is login ID is read, and according to the object Identifier carries out net element information registration to the SNMP agent equipment.
It is described in one of the embodiments, that network element letter is carried out to the SNMP agent equipment according to the object identifier After the step of breath registration, include the following steps:
Login state identifier is returned to the SNMP agent equipment;
Wherein, if SNMP agent network element information registering success, login state identifier are set as registering Function mark;If the SNMP agent network element information registering failure, login state identifier are set as registration failure mark.
It is described in one of the embodiments, that network element letter is carried out to the SNMP agent equipment according to the object identifier After the step of breath registration, include the following steps:
Registration failure cause information is returned to the SNMP agent equipment;Wherein, if the SNMP agent facility registration at Function, then registration failure cause information is null value.
A kind of SNMP agent facility registration device, including:
Object identifier receiving module, the identifier for receiving the transmission of SNMP agent equipment are the trap of login ID Message, wherein the identifier is the trap message of login ID and the Equipment Foundations information pair of the SNMP agent equipment The object identifier binding answered;
Net element information registration module, for reading the object in the trap message that the identifier is login ID Identifier, and net element information registration is carried out to the SNMP agent equipment according to the object identifier.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing Device realizes following steps when executing the computer program:
Receive the trap message that the identifier that SNMP agent equipment is sent is login ID, wherein the identifier is The object identifier binding corresponding with the Equipment Foundations information of the SNMP agent equipment of the trap message of login ID;
The object identifier in the trap message that the identifier is login ID is read, and according to the object Identifier carries out net element information registration to the SNMP agent equipment.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor Following steps are realized when row:
Receive the trap message that the identifier that SNMP agent equipment is sent is login ID, wherein the identifier is The object identifier binding corresponding with the Equipment Foundations information of the SNMP agent equipment of the trap message of login ID;
The object identifier in the trap message that the identifier is login ID is read, and according to the object Identifier carries out net element information registration to the SNMP agent equipment.
Above-mentioned SNMP agent method for device registration, the trap that snmp management station receives SNMP agent equipment active transmission disappear Breath extracts the Equipment Foundations information carried in trap message, and is registered according to the net element information that Equipment Foundations information carries out equipment, It realizes that SNMP agent equipment registers net element information at snmp management station automatically, effectively improves SNMP agent equipment and open station efficiency.
Detailed description of the invention
Fig. 1 is the applied environment figure of SNMP agent method for device registration in one embodiment of the invention;
Fig. 2 is the flow chart of SNMP agent method for device registration in one embodiment of the invention;
Fig. 3 is the flow chart of SNMP agent method for device registration in another embodiment of the present invention;
Fig. 4 is the flow chart of SNMP agent method for device registration in another embodiment of the invention;
Fig. 5 is the table of object identifier in one embodiment of the invention;
Fig. 6 is the structural schematic diagram of SNMP agent facility registration device in one embodiment of the invention;
Fig. 7 is the structural schematic diagram of SNMP agent facility registration device in another embodiment of the present invention;
Fig. 8 is the structural schematic diagram of SNMP agent facility registration device in another embodiment of the invention;
Fig. 9 is the structural schematic diagram of SNMP agent facility registration device in further embodiment of the present invention;
Figure 10 is the internal structure chart of computer equipment in one embodiment of the invention.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
SNMP agent method for device registration provided by the present application, can be applied in application environment as shown in Figure 1.Its In, SNMP agent equipment 110 is communicated with snmp management station 120 by network by network.When SNMP agent equipment 110 exists After the installation is completed, actively sending identifier to snmp management station 120 is login ID trap information, wherein carrying SNMP agent The Equipment Foundations information of equipment 110, snmp management station receive the Equipment Foundations information extracted after trap information in trap information, and The net element information registration for carrying out SNMP agent equipment 110 realizes that SNMP agent equipment is infused in snmp management station net element information automatically Volume.
Referring to fig. 2, Fig. 2 is the flow chart of SNMP agent method for device registration in one embodiment of the invention, the present embodiment A kind of SNMP agent method for device registration is provided, this method is illustrated by taking the SNMP agent equipment side in Fig. 1 as an example, packet Include following steps:
Step S210:The corresponding object identifier of Equipment Foundations information of SNMP agent equipment is obtained, and by each object mark Know symbol to be tied in the trap message that identifier is login ID.
In this step, trap message (Trap) is one of three kinds of basic operation commands of snmp protocol, is used for SNMP agent Equipment is actively notified to critical event to snmp management station.SNMP agent equipment is basic all types of for information solicitation according to setting for itself The corresponding object identifier of facility information (Object Identifiers, OID), and using these object identifiers as additional letter Breath is tied in the Trap message that identifier is login ID.
Step S220:The trap message that the identifier bound with each object identifier is login ID is sent to SNMP Management station, wherein identifier is that the trap message of login ID is used to indicate snmp management station according to object identifier pair SNMP agent equipment carries out net element information registration.
In this step, Trap message is sent to snmp management station by SNMP agent equipment, and snmp management station is receiving After Trap message, the corresponding object identity of Equipment Foundations information of the SNMP agent equipment in Trap message is read at snmp management station Symbol, and net element information registration is carried out according to object identifier.
Above-mentioned SNMP agent method for device registration, SNMP agent equipment after the installation is completed, actively to snmp management station send out Sending identifier is the Trap message of login ID, wherein attendant equipment basic information, after snmp management station receives Trap message The Equipment Foundations information carried in Trap message is extracted, and carries out the net element information registration of SNMP agent equipment, realizes SNMP generation It manages equipment and registers net element information at snmp management station automatically, effectively improve SNMP agent equipment and open station efficiency, reduce SNMP agent Equipment opens station probability of failure and human cost;Simultaneously as the communication using SNMP agent equipment and snmp management station is logical The realization of Trap operational order is crossed, the introducing of the third Protocol is avoided, various types of SNMP agent equipment can be compatible with And snmp management station, there is good compatibility, ease for use.
Optionally, Equipment Foundations information include SNMP agent device product sequence number, device type, equipment interaction address, At least one of reading instruction and write command.
It is in one of the embodiments, the trap message of login ID by the identifier bound with each object identifier It is further comprising the steps of after the step of being sent to snmp management station:Receive the login state identifier of snmp management station feedback; It succeeds in registration if login state identifier indicates, periodically reports heartbeat message to snmp management station;If login state identifies Symbol indicates registration failure, then again sends the trap message that the identifier bound with each object identifier is login ID To snmp management station.
In the present embodiment, SNMP agent equipment receives the login state identifier of snmp management station feedback, if login state Identifier, which indicates, to succeed in registration, i.e. SNMP agent equipment successful registration net element information in snmp management station, network element creation at Function, SNMP agent device end register flow path, then timing reports heartbeat message to snmp management station;If login state identifier Indicate registration failure, i.e. SNMP agent equipment registers net element information failure in snmp management station, fails to create NE, SNMP Agent equipment sends Trap message to snmp management station again;Further, if SNMP agent equipment net in snmp management station Member creation failure, then timing sends Trap message to snmp management station, until the success in snmp management station of SNMP agent equipment Net element information is registered, network element is successfully created.
After the step of receiving the login state identifier of snmp management station feedback in one of the embodiments, also wrap Include following steps:Receive the registration failure cause information of snmp management station feedback.
In the present embodiment, SNMP agent equipment receives the registration failure cause information of snmp management station feedback;Wherein, it registers Failure cause information can be the corresponding failure code of specific registration failure reason, may be set to be specific registration failure reason Text information.
Further, SNMP agent equipment can make the alarm prompt of registration failure according to registration failure cause information, To inform that administrative staff carry out the adjustment of SNMP agent device parameter;SNMP agent equipment can also be believed according to registration failure reason Cease adjust automatically equipment of itself parameter.
It is the flow chart of SNMP agent method for device registration in another embodiment of the invention, this implementation referring to Fig. 3, Fig. 3 Example provides a kind of SNMP agent method for device registration, and this method is illustrated by taking the snmp management station side in Fig. 1 as an example, packet Include following steps:
Step S310:Receive the trap message that the identifier that SNMP agent equipment is sent is login ID, wherein mark Symbol is the trap message object identifier binding corresponding with the Equipment Foundations information of SNMP agent equipment of login ID.
In this step, snmp management station receives the Trap that the identifier that SNMP agent equipment is sent is login ID and disappears Breath, wherein Trap message object identifier binding corresponding with the Equipment Foundations information of SNMP agent equipment.
Step S320:Reading identifier is the object identifier in the trap message of login ID, and according to object mark Know symbol and net element information registration is carried out to SNMP agent equipment.
In this step, the object identifier that Trap message carries is extracted at snmp management station, and is carried out according to object identifier The net element information of SNMP agent equipment is registered.
Specifically, snmp management station receives a plurality of types of Trap message of SNMP agent equipment transmission, work as snmp management The identifier that station recognizes a certain Trap message is login ID, then reads the object identifier of Trap carrying.
Optionally, the Equipment Foundations information of SNMP agent equipment include SNMP agent device product sequence number, device type, Equipment interacts at least one of address, reading instruction and write command.
Above-mentioned SNMP agent method for device registration, the Trap that snmp management station receives SNMP agent equipment active transmission disappear Breath extracts the Equipment Foundations information carried in Trap message, and is registered according to the net element information that Equipment Foundations information carries out equipment, It realizes that SNMP agent equipment registers net element information at snmp management station automatically, effectively improves SNMP agent equipment and open station efficiency, subtract Few SNMP agent equipment opens station probability of failure and human cost;Simultaneously as using SNMP agent equipment and snmp management station Communication be to be realized by Trap operational order, avoid the introducing of the third Protocol, various types of SNMP generations can be compatible with Equipment and snmp management station are managed, there is good compatibility, ease for use.
Carry out the step of net element information registration to SNMP agent equipment according to each object identifier in one of the embodiments, After rapid, include the following steps:Login state identifier is returned to SNMP agent equipment;Wherein, if SNMP agent network element Information registering success, then login state identifier is set as the mark that succeeds in registration;If SNMP agent network element information registering loses It loses, then login state identifier is set as registration failure mark.
In the present embodiment, snmp management station is registered according to the net element information that object identifier carries out SNMP agent equipment, and Login state identifier is returned to SNMP agent equipment according to the result of net element information registration.Specifically, snmp management station can be with By issuing Set operational order, SNMP agent equipment is sent by login state identifier.
Further, network element letter is carried out to SNMP agent equipment according to each object identifier in one of the embodiments, After the step of breath registration, include the following steps:Registration failure cause information is returned to SNMP agent equipment;Wherein, if SNMP Agent equipment succeeds in registration, and registration failure cause information is set as null value.
Optionally, when SNMP agent facility registration fails, registration failure cause information can be set to specifically register and lose The corresponding failure code of reason is lost, may be set to be the text information of specific registration failure reason.
In the present embodiment, snmp management station returns to registration failure cause information and accords with to SNMP agent equipment, wherein if SNMP Agent equipment successful registration net element information in snmp management station, network element create successfully, and snmp management station is by registration failure reason Information symbol is set as null value, and is sent in SNMP agent equipment;If SNMP agent equipment registers network element in snmp management station Information failure, fail to create NE, snmp management station by the corresponding failure code of specific failure cause or text information insert to In registration failure cause information, and it is sent in SNMP agent equipment;Specifically, snmp management station again may be by issuing Set operational order sends registration failure cause information in SNMP agent equipment.
Referring to fig. 4, Fig. 4 is the flow chart of SNMP agent method for device registration in another embodiment of the invention, this implementation Example provides a kind of SNMP agent method for device registration, and this method is interacted with the SNMP agent equipment in Fig. 1 with snmp management station For be illustrated, include the following steps:
Step S410:SNMP agent equipment obtains the corresponding object identifier of Equipment Foundations information, and by each object identity Symbol is tied in the trap message that identifier is login ID;Wherein, Equipment Foundations information includes SNMP agent device product At least one of sequence number, device type, equipment interaction address, reading instruction and write command.
Specifically, snmp management station to the Trap message that SNMP agent equipment is sent is received according to unified mode , snmp management station may be sent to there are many Trap message simultaneously, snmp management station is just when if there is multiple Trap message It is difficult to distinguish the specific request type of Trap message.So the Trap message that equipment reports will be sent according to the node of agreement, So as to network management differentiation.Therefore, snmp management station and equipment SNMP agent equipment appoint the node of interactive information in advance, each Node has an object identifier (OID) uniquely to identify, and specific node setting is as shown in Figure 5.
According to Fig.5, SNMP agent equipment according to product ID, device type, equipment interaction address, reading instruction with And write command fills in the object identifiers such as corresponding SNOID, NeTypeOID, IpOID, ReadOID, WriteOID, and will SNOID, NeTypeOID, IpOID, ReadOID, WriteOID are tied in the Trap message that identifier is RegisterOID.
Step S420:SNMP agent equipment disappears the trap that the identifier bound with each object identifier is login ID Breath is sent to snmp management station.
Step S430:Snmp management station receives the trap that the identifier that SNMP agent equipment is sent is login ID and disappears Breath.
In this step, snmp management station receives the Trap message that SNMP agent equipment is sent, and detects the Trap message Identifier is RegisterOID, then according to agreement node obtain registration needed for SNOID, NeTypeOID, IpOID, Necessary information in ReadOID, WriteOID.
Step S440:Snmp management station reading identifier is the object identifier in the trap message of login ID, and Net element information registration is carried out to SNMP agent equipment according to object identifier.
Step S450:Snmp management station returns to login state identifier to SNMP agent equipment, wherein if SNMP agent is set Standby net element information succeeds in registration, then login state identifier is set as the mark that succeeds in registration;If SNMP agent network element information Registration failure, then login state identifier is set as registration failure mark.
Step S460:SNMP agent equipment receives the login state identifier of snmp management station feedback.
Step S470:If login state identifier is the mark that succeeds in registration, periodically report heartbeat message to snmp management It stands.
Step S480:If login state identifier is registration failure mark, again by each object identifier and registration Identifier is sent to snmp management station.
Above-mentioned SNMP agent method for device registration, the Trap that snmp management station receives SNMP agent equipment active transmission disappear Breath extracts the Equipment Foundations information carried in Trap message, is registered according to the net element information for carrying out equipment, realizes that SNMP agent is set It is standby to register net element information at snmp management station automatically, it effectively improves SNMP agent equipment and opens station efficiency, reduce SNMP agent equipment Open station probability of failure and human cost;Simultaneously as the communication using SNMP agent equipment and snmp management station is to pass through What Trap operational order was realized, avoid the introducing of the third Protocol.
It should be understood that although each step in the flow chart of Fig. 2 to Fig. 4 is successively shown according to the instruction of arrow, But these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these There is no stringent sequences to limit for the execution of step, these steps can execute in other order.Moreover, Fig. 2 is into Fig. 4 At least part step may include that perhaps these sub-steps of multiple stages or stage are not necessarily same to multiple sub-steps One moment executed completion, but can execute at different times, and the execution in these sub-steps or stage sequence is also not necessarily Be successively carry out, but can at least part of the sub-step or stage of other steps or other steps in turn or Alternately execute.
According to above-mentioned SNMP agent method for device registration, the present invention also provides a kind of SNMP agent facility registration device, with Under the embodiment of the device of the invention is described in detail.
It is the structural schematic diagram of SNMP agent facility registration device in one embodiment of the invention referring to Fig. 6, Fig. 6;This reality It applies in example, SNMP agent facility registration device includes:
Object identifier obtains module 610, the corresponding object mark of Equipment Foundations information for obtaining SNMP agent equipment Know symbol, and each object identifier is tied in the trap message that identifier is login ID;
Object identifier sending module 620, the identifier for will bind with each object identifier are login ID Trap message is sent to snmp management station, wherein identifier is that the trap message of login ID is used to indicate snmp management station Net element information registration is carried out to SNMP agent equipment according to object identifier.
It is the structural schematic diagram of SNMP agent facility registration device in another embodiment of the present invention referring to Fig. 7;This implementation In example, SNMP agent facility registration device further includes login state identifier receiving module 630, and login state identifier receives mould Block 630 is used to receive the login state identifier of snmp management station feedback;When login state identifier is indicated and is succeeded in registration, Timing reports heartbeat message to snmp management station;When login state identifier indicates registration failure, send out object identifier Send module 620 that the trap message that the identifier bound with each object identifier is login ID is sent to snmp management again It stands.
Login state identifier receiving module is used to receive the registration of snmp management station feedback in one of the embodiments, Status identifier and registration failure cause information.
Equipment Foundations information includes SNMP agent device product sequence number, device type, sets in one of the embodiments, At least one of standby interaction address, reading instruction and write command.
It is the structural schematic diagram of SNMP agent facility registration device in another embodiment of the invention referring to Fig. 8, Fig. 8;This In embodiment, SNMP agent facility registration device includes:
Object identifier receiving module 710, the identifier for receiving the transmission of SNMP agent equipment are login ID Trap message, wherein identifier is that the trap message of login ID is corresponding with the Equipment Foundations information of SNMP agent equipment Object identifier binding;
Net element information registration module 720 is the object identity in the trap message of login ID for reading identifier Symbol, and net element information registration is carried out to SNMP agent equipment according to object identifier.
Referring to Fig. 9, Fig. 9 is the structural schematic diagram of SNMP agent facility registration device in further embodiment of the present invention;This In embodiment, SNMP agent facility registration device further includes login state identifier sending module 730, login state identifier hair Send module for returning to login state identifier to SNMP agent equipment;Wherein, SNMP agent network element information registering at When function, login state identifier is set as the mark that succeeds in registration;Fail in SNMP agent network element information registering, login state Identifier is set as registration failure mark.
Login state identifier sending module 730 is for returning to registration failure cause information in one of the embodiments, To SNMP agent equipment;Wherein, when succeeding in registration in SNMP agent equipment generation, registration failure cause information is set as null value.
Specific restriction about SNMP agent facility registration device may refer to above for SNMP agent facility registration The restriction of method, details are not described herein.Modules in above-mentioned SNMP agent facility registration device can be fully or partially through Software, hardware and combinations thereof are realized.Above-mentioned each module can be embedded in the form of hardware or independently of the place in computer equipment It manages in device, can also be stored in a software form in the memory in computer equipment, in order to which processor calls execution or more The corresponding operation of modules.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure Figure can be as shown in Figure 10.The computer equipment includes the processor connected by system bus, memory, network interface, shows Display screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment Memory includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer Program.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The meter The network interface for calculating machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor To realize a kind of SNMP agent method for device registration.The display screen of the computer equipment can be liquid crystal display or electronic ink Water display screen, the input unit of the computer equipment can be the touch layer covered on display screen, be also possible to computer equipment Key, trace ball or the Trackpad being arranged on shell can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Figure 10, only part relevant to application scheme The block diagram of structure, does not constitute the restriction for the computer equipment being applied thereon to application scheme, and specific computer is set Standby may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one of the embodiments, the present invention also provides a kind of computer equipment, including memory and processor, deposit Computer program is stored in reservoir, which realizes following steps when executing computer program:
The corresponding object identifier of Equipment Foundations information of SNMP agent equipment is obtained, and each object identifier is tied to Identifier is in the trap message of login ID;It is the trap of login ID by the identifier bound with each object identifier Message is sent to snmp management station, wherein identifier be login ID trap message be used to indicate snmp management station according to Object identifier carries out net element information registration to SNMP agent equipment.
Following steps are also realized when processor executes computer program in one of the embodiments,:Receive snmp management The login state identifier for feedback of standing;It succeeds in registration if login state identifier indicates, periodically reports heartbeat message extremely Snmp management station;If login state identifier indicates registration failure, identifier that will be bound again with each object identifier Snmp management station is sent to for the trap message of login ID.
Following steps are also realized when processor executes computer program in one of the embodiments,:Receive snmp management The registration failure cause information for feedback of standing.
Equipment Foundations information includes SNMP agent device product sequence number, device type, sets in one of the embodiments, At least one of standby interaction address, reading instruction and write command.
The present invention also provides a kind of computer readable storage mediums in one of the embodiments, are stored thereon with meter Calculation machine program, realizes following steps when computer program is executed by processor:
The corresponding object identifier of Equipment Foundations information of SNMP agent equipment is obtained, and each object identifier is tied to Identifier is in the trap message of login ID;It is the trap of login ID by the identifier bound with each object identifier Message is sent to snmp management station, wherein identifier be login ID trap message be used to indicate snmp management station according to Object identifier carries out net element information registration to SNMP agent equipment.
Following steps are also realized when computer program is executed by processor in one of the embodiments,:Receive SNMP pipe The login state identifier of reason station feedback;It succeeds in registration if login state identifier indicates, periodically reports heartbeat message extremely Snmp management station;If login state identifier indicates registration failure, identifier that will be bound again with each object identifier Snmp management station is sent to for the trap message of login ID.
Following steps are also realized when computer program is executed by processor in one of the embodiments,:Receive SNMP pipe The registration failure cause information of reason station feedback.
In one of the embodiments, the present invention also provides a kind of computer equipment, including memory and processor, deposit Computer program is stored in reservoir, which realizes following steps when executing computer program:
Receive the trap message that the identifier that SNMP agent equipment is sent is login ID, wherein identifier is registration The object identifier binding corresponding with the Equipment Foundations information of SNMP agent equipment of the trap message of identifier;
Reading identifier is the object identifier in the trap message of login ID, and according to object identifier to SNMP Agent equipment carries out net element information registration.
Following steps are also realized when processor executes computer program in one of the embodiments,:Return to login state Identifier is to SNMP agent equipment;Wherein, if the success of SNMP agent network element information registering, the setting of login state identifier For the mark that succeeds in registration;If SNMP agent network element information registering fails, login state identifier is set as registration failure Mark.
Following steps are also realized when processor executes computer program in one of the embodiments,:Return to registration failure Cause information is to SNMP agent equipment;Wherein, if the success of SNMP agent facility registration, registration failure cause information is set as empty Value.
The present invention also provides a kind of computer readable storage mediums in one of the embodiments, are stored thereon with meter Calculation machine program, realizes following steps when computer program is executed by processor:
Receive the trap message that the identifier that SNMP agent equipment is sent is login ID, wherein identifier is registration The object identifier binding corresponding with the Equipment Foundations information of SNMP agent equipment of the trap message of identifier;
Reading identifier is the object identifier in the trap message of login ID, and according to object identifier to SNMP Agent equipment carries out net element information registration.
Following steps are also realized when computer program is executed by processor in one of the embodiments,:Return to registration shape State identifier is to SNMP agent equipment;
Wherein, if the success of SNMP agent network element information registering, login state identifier are set as the mark that succeeds in registration Will;If SNMP agent network element information registering fails, login state identifier is set as registration failure mark.
Following steps are also realized when computer program is executed by processor in one of the embodiments,:Registration is returned to lose Cause information is lost to SNMP agent equipment;Wherein, if the success of SNMP agent facility registration, registration failure cause information are set as Null value.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (11)

1. a kind of SNMP agent method for device registration, which is characterized in that include the following steps:
The corresponding object identifier of Equipment Foundations information of SNMP agent equipment is obtained, and each object identifier is tied to Identifier is in the trap message of login ID;
Snmp management will be sent to for the trap message of login ID with the identifier of each object identifier binding It stands, wherein the identifier is that the trap message of login ID is used to indicate the snmp management station according to the object mark Know symbol and net element information registration is carried out to SNMP agent equipment.
2. SNMP agent method for device registration according to claim 1, which is characterized in that it is described will be with each object mark After trap message the step of being sent to snmp management station that the identifier for knowing symbol binding is login ID, further include with Lower step:
Receive the login state identifier of the snmp management station feedback;
It succeeds in registration if the login state identifier indicates, periodically reports heartbeat message to snmp management station;
If the login state identifier indicates registration failure, again by the mark with each object identifier binding Know the trap message that symbol is login ID and is sent to snmp management station.
3. SNMP agent method for device registration according to claim 2, which is characterized in that described to receive the snmp management It is further comprising the steps of after the step of login state identifier for feedback of standing:
Receive the registration failure cause information of the snmp management station feedback.
4. SNMP agent method for device registration according to claim 1, which is characterized in that the Equipment Foundations information includes At least one of the SNMP agent device product sequence number, device type, equipment interaction address, reading instruction and write command.
5. a kind of SNMP agent method for device registration, which is characterized in that include the following steps:
Receive the trap message that the identifier that SNMP agent equipment is sent is login ID, wherein the identifier is registration The object identifier binding corresponding with the Equipment Foundations information of the SNMP agent equipment of the trap message of identifier;
The object identifier in the trap message that the identifier is login ID is read, and according to the object identity Symbol carries out net element information registration to the SNMP agent equipment.
6. SNMP agent method for device registration according to claim 5, which is characterized in that described according to the object identity After the step of symbol carries out net element information registration to the SNMP agent equipment, include the following steps:
Login state identifier is returned to the SNMP agent equipment;
Wherein, if SNMP agent network element information registering success, login state identifier are set as the mark that succeeds in registration Will;If the SNMP agent network element information registering failure, login state identifier are set as registration failure mark.
7. according to SNMP agent method for device registration described in claim 5 any one, which is characterized in that described according to After the step of object identifier carries out net element information registration to the SNMP agent equipment, include the following steps:
Registration failure cause information is returned to the SNMP agent equipment;Wherein, if SNMP agent facility registration success, Registration failure cause information is null value.
8. a kind of SNMP agent facility registration device, which is characterized in that including:
Object identifier obtains module, for obtaining the corresponding object identifier of Equipment Foundations information of SNMP agent equipment, and Each object identifier is tied in the trap message that identifier is login ID;
Object identifier sending module, for that will be login ID with the identifier of each object identifier binding Trap message is sent to snmp management station, wherein the identifier is described in the trap message of login ID is used to indicate Snmp management station carries out net element information registration to SNMP agent equipment according to the object identifier.
9. a kind of SNMP agent facility registration device, which is characterized in that including:
Object identifier receiving module, the identifier for receiving the transmission of SNMP agent equipment are that the trap of login ID disappears Breath, wherein the identifier is that the trap message of login ID is corresponding with the Equipment Foundations information of the SNMP agent equipment Object identifier binding;
Net element information registration module, for reading the object identity in the trap message that the identifier is login ID Symbol, and net element information registration is carried out to the SNMP agent equipment according to the object identifier.
10. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the processor realizes that SNMP agent equipment described in any one of claims 1 to 7 is infused when executing the computer program The step of volume method.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of SNMP agent method for device registration described in any one of claims 1 to 7 is realized when being executed by processor.
CN201810563565.9A 2018-06-04 2018-06-04 SNMP proxy equipment registration method, device, computer equipment and storage medium Expired - Fee Related CN108848147B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810563565.9A CN108848147B (en) 2018-06-04 2018-06-04 SNMP proxy equipment registration method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810563565.9A CN108848147B (en) 2018-06-04 2018-06-04 SNMP proxy equipment registration method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108848147A true CN108848147A (en) 2018-11-20
CN108848147B CN108848147B (en) 2021-08-24

Family

ID=64210645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810563565.9A Expired - Fee Related CN108848147B (en) 2018-06-04 2018-06-04 SNMP proxy equipment registration method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108848147B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109714444A (en) * 2018-12-04 2019-05-03 中国电子技术标准化研究院 Registration management method, system and node

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1059766A3 (en) * 1999-06-11 2003-03-26 Canon Kabushiki Kaisha Network device managing apparatus and method
CN103501240A (en) * 2013-09-16 2014-01-08 华为技术有限公司 Method, device and system for finding device
CN103997412A (en) * 2013-02-18 2014-08-20 中兴通讯股份有限公司 Management information base file generation method and device, and data processing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1059766A3 (en) * 1999-06-11 2003-03-26 Canon Kabushiki Kaisha Network device managing apparatus and method
CN103997412A (en) * 2013-02-18 2014-08-20 中兴通讯股份有限公司 Management information base file generation method and device, and data processing system
CN103501240A (en) * 2013-09-16 2014-01-08 华为技术有限公司 Method, device and system for finding device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
盛宇路: "实现接入网设备资源清查自动化的方法讨论", 《信息通信》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109714444A (en) * 2018-12-04 2019-05-03 中国电子技术标准化研究院 Registration management method, system and node

Also Published As

Publication number Publication date
CN108848147B (en) 2021-08-24

Similar Documents

Publication Publication Date Title
CN111625452B (en) Flow playback method and system
US20210019849A1 (en) Method for External Data-Based Constructing Various Triggering Mechanisms to Execute Smart Contract in Blockchain Network and System Thereof
CN105119722B (en) A kind of auth method, equipment and system
CN108984388A (en) A kind of method and terminal device generating automatic test cases
CN109844744A (en) The automatic supply of IOT equipment
CN110187993A (en) A kind of processing method of misoperation, system, electronic equipment and storage medium
CN105468302B (en) A kind of method, apparatus and system of processing data
CN108509392B (en) Multi-mechanism account checking method, system, computer equipment and storage medium
CN109656778A (en) Data capture method, device, computer equipment and storage medium
CN107396199A (en) Barrage method for exhibiting data and device, computer-readable recording medium
CN108959385A (en) Database portion arranging method, device, computer equipment and storage medium
CN111182065A (en) Message processing method and device based on MQTT protocol and computer equipment
CN108510287A (en) Judgment method, electronic device and the computer readable storage medium that client pays a return visit
CN114217981A (en) Bank-enterprise direct connection communication method and device, computer equipment and storage medium
CN104994332A (en) Camera discovering and registering method based on BS
CN107277022A (en) Processes Tag method and device
CN108848147A (en) SNMP agent method for device registration, device, computer equipment and storage medium
CN113312675A (en) Attribute checking method and device, electronic equipment and storage medium
CN104731564A (en) Generation method and device for system interface call records
CN108345508B (en) Interface call testing method and device
CN112799970A (en) Test data processing method, device, electronic equipment and medium
WO2023125755A1 (en) Service request processing method and apparatus based on large-scale cluster, and device and medium
CN109933411A (en) A kind of online modification virtual machine internal configuration system and method
CN110413423A (en) Data processing method, relevant apparatus, equipment and storage medium
CN109947488A (en) Object initialization method, apparatus, equipment and the storage medium of general utility functions module

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
TA01 Transfer of patent application right

Effective date of registration: 20200110

Address after: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant after: COMBA TELECOM SYSTEMS (CHINA) Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant before: COMBA TELECOM SYSTEMS (CHINA) Ltd.

Applicant before: COMBA TELECOM SYSTEMS (GUANGZHOU) Ltd.

Applicant before: COMBA TELECOM TECHNOLOGY (GUANGZHOU) Ltd.

Applicant before: TIANJIN COMBA TELECOM SYSTEMS Ltd.

TA01 Transfer of patent application right
CB02 Change of applicant information

Address after: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant after: Jingxin Network System Co.,Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant before: COMBA TELECOM SYSTEMS (CHINA) Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210824