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.
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.