CN108848147B - SNMP proxy equipment registration method, device, computer equipment and storage medium - Google Patents

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

Info

Publication number
CN108848147B
CN108848147B CN201810563565.9A CN201810563565A CN108848147B CN 108848147 B CN108848147 B CN 108848147B CN 201810563565 A CN201810563565 A CN 201810563565A CN 108848147 B CN108848147 B CN 108848147B
Authority
CN
China
Prior art keywords
registration
identifier
snmp
snmp agent
information
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.)
Active
Application number
CN201810563565.9A
Other languages
Chinese (zh)
Other versions
CN108848147A (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 Network 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 Network Systems Co Ltd filed Critical Comba Network Systems Co 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
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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]

Abstract

The application relates to a registration method, a system, a computer device and a storage medium for SNMP proxy equipment. The method comprises the following steps: acquiring object identifiers corresponding to device basic information of SNMP proxy equipment, and binding each object identifier to a trap message with the identifier as a registration identifier; the device basic information comprises at least one of a product serial number, a device type, a device interaction address, a reading instruction and a writing instruction of the SNMP agent device; and sending the trap message with the identifier as the registration identifier to an SNMP management station, wherein the SNMP management station registers the network element information of the SNMP agent equipment according to the object identifier. By adopting the method, the SNMP agent equipment can automatically register the network element information in the SNMP management station, and the station opening efficiency of the SNMP agent equipment is effectively improved.

Description

SNMP proxy equipment registration method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of data communication technologies, and in particular, to a method and an apparatus for registering an SNMP agent device, a computer device, and a storage medium.
Background
Currently, the most common environment Management Protocol is Simple Network Management Protocol (SNMP). The SNMP protocol is mainly composed of two major components: the SNMP management station is a central node and is responsible for collecting and maintaining information of each SNMP element, processing the information and finally feeding the information back to a network administrator; the SNMP agent equipment runs on each managed network node, is responsible for counting various information of the node, interacts with the SNMP management station and receives and executes commands of the SNMP management station.
When an SNMP agent device needs to open a network and access a network, it needs to register network element information in an SNMP management station. In the large-scale SNMP agent equipment construction process, the workload of registering the network element information of the SNMP agent equipment is large, and the traditional registration technology of the SNMP agent equipment often causes the reduction of the station opening efficiency of the SNMP agent equipment.
Disclosure of Invention
Based on this, it is necessary to provide an SNMP agent device registration method, apparatus, computer device and storage medium for solving the technical problem that the conventional registration technique of the SNMP agent device often results in low efficiency of opening a station of the SNMP agent device.
An SNMP agent device registration method includes the following steps:
acquiring object identifiers corresponding to device basic information of SNMP proxy equipment, and binding each object identifier to a trap message with the identifier as a registration identifier;
and sending a trap message which is bound with each object identifier and takes the identifier as a registration identifier to an SNMP management station, wherein the trap message which takes the identifier as the registration identifier is used for indicating the SNMP management station to register the network element information of the SNMP agent equipment according to the object identifier.
In one embodiment, after the step of sending the trap message, in which the identifier bound to each object identifier is a registration identifier, to the SNMP management station, the method further includes the following steps:
receiving a registration state identifier fed back by the SNMP management station;
if the registration of the registration state identifier mark is successful, reporting heartbeat information to an SNMP management station at regular time;
and if the registration state identifier marks that the registration fails, sending a trap message which takes the identifier bound with each object identifier as the registration identifier to the SNMP management station again.
In one embodiment, after the step of receiving the registration status identifier fed back by the SNMP management station, the method further includes the following steps:
and receiving the registration failure reason information fed back by the SNMP management station.
In one embodiment, the device infrastructure information includes at least one of a product serial number, a device type, a device interaction address, a read instruction, and a write instruction of the SNMP agent device.
An SNMP agent device registration apparatus, comprising:
the object identifier acquisition module is used for acquiring object identifiers corresponding to the equipment basic information of the SNMP proxy equipment and binding the object identifiers to trap messages with the identifiers as registration identifiers;
and the object identifier sending module is used for sending a trap message which is bound with each object identifier and takes the identifier as a registration identifier to the SNMP management station, wherein the trap message which takes the identifier as the registration identifier is used for indicating the SNMP management station to register the network element information of the SNMP agent equipment according to the object identifier.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring object identifiers corresponding to device basic information of SNMP proxy equipment, and binding each object identifier to a trap message with the identifier as a registration identifier;
and sending a trap message which is bound with each object identifier and takes the identifier as a registration identifier to an SNMP management station, wherein the trap message which takes the identifier as the registration identifier is used for indicating the SNMP management station to register the network element information of the SNMP agent equipment according to the object identifier.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring object identifiers corresponding to device basic information of SNMP proxy equipment, and binding each object identifier to a trap message with the identifier as a registration identifier;
and sending a trap message which is bound with each object identifier and takes the identifier as a registration identifier to an SNMP management station, wherein the trap message which takes the identifier as the registration identifier is used for indicating the SNMP management station to register the network element information of the SNMP agent equipment according to the object identifier.
According to the SNMP agent equipment registration method, after the SNMP agent equipment is installed, the trap message with the identifier as the registration identifier is actively sent to the SNMP management station, equipment basic information is attached to the trap message, the SNMP management station extracts the equipment basic information carried in the trap message after receiving the trap message, network element information registration of the SNMP agent equipment is carried out, the SNMP agent equipment automatically registers the network element information in the SNMP management station, and the network element information opening efficiency of the SNMP agent equipment is effectively improved.
An SNMP agent device registration method includes the following steps:
receiving a trap message which is sent by SNMP agent equipment and takes an identifier as a registration identifier, wherein the trap message which takes the identifier as the registration identifier is bound with an object identifier corresponding to equipment basic information of the SNMP agent equipment;
reading the object identifier in the trap message with the identifier as the registration identifier, and registering the network element information of the SNMP agent equipment according to the object identifier.
In one embodiment, after the step of registering network element information to the SNMP agent device according to the object identifier, the method includes the following steps:
returning a registration status identifier to the SNMP agent device;
if the registration of the network element information of the SNMP agent equipment is successful, setting a registration state identifier as a successful registration mark; if the registration of the network element information of the SNMP agent equipment fails, the registration state identifier is set as a registration failure mark.
In one embodiment, after the step of registering network element information to the SNMP agent device according to the object identifier, the method includes the following steps:
returning registration failure reason information to the SNMP agent equipment; and if the SNMP agent equipment is successfully registered, the registration failure reason information is a null value.
An SNMP agent device registration apparatus, comprising:
the object identifier receiving module is used for receiving a trap message which is sent by the SNMP agent equipment and takes an identifier as a registration identifier, wherein the trap message which takes the identifier as the registration identifier is bound with an object identifier corresponding to the equipment basic information of the SNMP agent equipment;
and the network element information registration module is used for reading the object identifier in the trap message with the identifier as the registration identifier and registering the network element information of the SNMP proxy equipment according to the object identifier.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
receiving a trap message which is sent by SNMP agent equipment and takes an identifier as a registration identifier, wherein the trap message which takes the identifier as the registration identifier is bound with an object identifier corresponding to equipment basic information of the SNMP agent equipment;
reading the object identifier in the trap message with the identifier as the registration identifier, and registering the network element information of the SNMP agent equipment according to the object identifier.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving a trap message which is sent by SNMP agent equipment and takes an identifier as a registration identifier, wherein the trap message which takes the identifier as the registration identifier is bound with an object identifier corresponding to equipment basic information of the SNMP agent equipment;
reading the object identifier in the trap message with the identifier as the registration identifier, and registering the network element information of the SNMP agent equipment according to the object identifier.
According to the SNMP agent equipment registration method, the SNMP management station receives the trap message actively sent by the SNMP agent equipment, extracts the equipment basic information carried in the trap message, and registers the network element information of the equipment according to the equipment basic information, so that the SNMP agent equipment automatically registers the network element information in the SNMP management station, and the station opening efficiency of the SNMP agent equipment is effectively improved.
Drawings
Fig. 1 is a diagram illustrating an application environment of a registration method of an SNMP agent device in accordance with an embodiment of the present invention;
fig. 2 is a flowchart of a method for registering an SNMP agent device in accordance with an embodiment of the present invention;
fig. 3 is a flowchart of a method for registering an SNMP agent device in accordance with another embodiment of the present invention;
fig. 4 is a flowchart of a SNMP agent device registration method in accordance with another embodiment of the present invention;
FIG. 5 is a table of object identifiers in one embodiment of the invention;
fig. 6 is a schematic structural diagram of an SNMP agent device registration apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an SNMP agent device registration apparatus according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of an SNMP agent device registration apparatus according to another embodiment of the present invention;
fig. 9 is a schematic structural diagram of an SNMP agent device registration apparatus according to still another embodiment of the present invention;
fig. 10 is an internal structural view of a computer device in one embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The SNMP proxy device registration method provided by the application can be applied to the application environment shown in figure 1. Wherein the SNMP agent device 110 communicates with the SNMP management station 120 via a network. After the SNMP agent device 110 is installed, the trap information with the identifier as the registration identifier is actively sent to the SNMP management station 120, wherein the trap information carries the device basic information of the SNMP agent device 110, and the SNMP management station extracts the device basic information in the trap information after receiving the trap information and registers the network element information of the SNMP agent device 110, so that the SNMP agent device can automatically register the network element information in the SNMP management station.
Referring to fig. 2, fig. 2 is a flowchart of an SNMP agent device registration method according to an embodiment of the present invention, where the embodiment provides an SNMP agent device registration method, and the method is described by taking an SNMP agent device side in fig. 1 as an example, and includes the following steps:
step S210: and acquiring object identifiers corresponding to the device basic information of the SNMP proxy device, and binding each object identifier to a trap message with the identifier as a registration identifier.
In this step, the Trap message (Trap) is one of three basic operation commands of the SNMP protocol, and is used for the SNMP agent device to actively notify the SNMP management station of an important event. The SNMP agent device fills Object Identifiers (OID) corresponding to various types of device information according to the device basic information of the SNMP agent device, and binds the Object Identifiers as additional information into a Trap message with the Identifiers as registration Identifiers.
Step S220: and sending a trap message which is bound with each object identifier and takes the identifier as a registration identifier to the SNMP management station, wherein the trap message with the identifier as the registration identifier is used for indicating the SNMP management station to register the network element information of the SNMP agent equipment according to the object identifier.
In this step, the SNMP agent device sends the Trap message to the SNMP management station, and after the SNMP management station receives the Trap message, the SNMP management station reads an object identifier corresponding to the device basis information of the SNMP agent device in the Trap message and registers the network element information according to the object identifier.
According to the SNMP agent equipment registration method, after the SNMP agent equipment is installed, a Trap message with an identifier as a registration identifier is actively sent to an SNMP management station, equipment basic information is attached to the Trap message, the SNMP management station extracts the equipment basic information carried in the Trap message after receiving the Trap message, and network element information registration of the SNMP agent equipment is carried out, so that the SNMP agent equipment automatically registers the network element information in the SNMP management station, the network element information of the SNMP agent equipment is effectively improved, the network element opening efficiency of the SNMP agent equipment is effectively improved, and the network element opening fault probability and the labor cost of the SNMP agent equipment are reduced; meanwhile, because the communication between the SNMP agent equipment and the SNMP management station is realized through the Trap operation instruction, the introduction of a third-party protocol is avoided, the SNMP agent equipment and the SNMP management station can be compatible with various types of SNMP agent equipment and SNMP management stations, and the compatibility and the usability are good.
Optionally, the device infrastructure information includes at least one of a serial number of the SNMP agent device, a device type, a device interaction address, a read instruction, and a write instruction.
In one embodiment, after the step of sending the trap message of the registration identifier as the identifier bound to each object identifier to the SNMP management station, the method further comprises the following steps: receiving a registration state identifier fed back by the SNMP management station; if the registration of the registration state identifier mark is successful, reporting heartbeat information to an SNMP management station at regular time; and if the registration state identifier marks that the registration fails, sending a trap message which takes the identifier bound with each object identifier as the registration identifier to the SNMP management station again.
In this embodiment, the SNMP agent device receives a registration status identifier fed back by the SNMP management station, if the registration status identifier indicates that registration is successful, that is, the SNMP agent device successfully registers network element information in the SNMP management station, and the network element is successfully created, the SNMP agent device finishes the registration process, and then periodically reports heartbeat information to the SNMP management station; if the registration state identifier marks that the registration fails, namely the SNMP agent equipment fails to register the network element information in the SNMP management station and cannot create the network element, the SNMP agent equipment sends a Trap message to the SNMP management station again; further, if the SNMP agent device fails to create the network element in the SNMP management station, a Trap message is sent to the SNMP management station at regular time until the SNMP agent device successfully registers the network element information in the SNMP management station, and the network element is successfully created.
In one embodiment, after the step of receiving the registration status identifier fed back by the SNMP management station, the method further comprises the following steps: and receiving registration failure reason information fed back by the SNMP management station.
In the embodiment, the SNMP agent equipment receives the registration failure reason information fed back by the SNMP management station; the registration failure reason information may be a failure code corresponding to a specific registration failure reason, or may be set as text information of the specific registration failure reason.
Furthermore, the SNMP agent device can make an alarm prompt of registration failure according to the registration failure reason information so as to inform a manager to adjust parameters of the SNMP agent device; the SNMP agent device can also automatically adjust the parameters of the device according to the registration failure reason information.
Referring to fig. 3, fig. 3 is a flowchart of an SNMP agent device registration method according to another embodiment of the present invention, where this embodiment provides an SNMP agent device registration method, which is described by taking the SNMP management station side in fig. 1 as an example, and includes the following steps:
step S310: and receiving a trap message which is sent by the SNMP agent device and has an identifier of a registration identifier, wherein the trap message with the identifier of the registration identifier is bound with an object identifier corresponding to the device basic information of the SNMP agent device.
In this step, the SNMP management station receives a Trap message with an identifier being a registration identifier sent by the SNMP agent device, wherein the Trap message is bound with an object identifier corresponding to device basic information of the SNMP agent device.
Step S320: reading the object identifier in the trap message with the identifier as the registration identifier, and registering the network element information of the SNMP proxy equipment according to the object identifier.
In this step, the SNMP management station extracts the object identifier carried by the Trap message and registers the network element information of the SNMP agent device according to the object identifier.
Specifically, the SNMP management station receives multiple types of Trap messages sent by the SNMP agent device, and when the SNMP management station recognizes that an identifier of a certain Trap message is a registered identifier, reads an object identifier carried by the Trap.
Optionally, the device basic information of the SNMP agent device includes at least one of a serial number of the SNMP agent device product, a device type, a device interaction address, a read instruction, and a write instruction.
According to the SNMP agent equipment registration method, the SNMP management station receives the Trap message actively sent by the SNMP agent equipment, extracts the basic equipment information carried in the Trap message, and registers the network element information of the equipment according to the basic equipment information, so that the SNMP agent equipment automatically registers the network element information in the SNMP management station, the open-station efficiency of the SNMP agent equipment is effectively improved, and the open-station error probability and the labor cost of the SNMP agent equipment are reduced; meanwhile, because the communication between the SNMP agent equipment and the SNMP management station is realized through the Trap operation instruction, the introduction of a third-party protocol is avoided, the SNMP agent equipment and the SNMP management station can be compatible with various types of SNMP agent equipment and SNMP management station, and the compatibility and the usability are good.
In one embodiment, after the step of registering the network element information to the SNMP agent device according to each object identifier, the method includes the following steps: returning the registration state identifier to the SNMP agent device; if the SNMP agent equipment network element information is successfully registered, setting the registration state identifier as a successful registration mark; if the registration of the network element information of the SNMP agent equipment fails, the registration state identifier is set as a registration failure mark.
In this embodiment, the SNMP management station registers the network element information of the SNMP agent device according to the object identifier, and returns the registration status identifier to the SNMP agent device according to a result of the registration of the network element information. Specifically, the SNMP management station may send the registration status identifier to the SNMP agent device by issuing a Set operation instruction.
Further, in one embodiment, after the step of registering the network element information to the SNMP agent device according to each object identifier, the method includes the following steps: returning the registration failure reason information to the SNMP agent equipment; if the SNMP agent equipment is successfully registered, the registration failure reason information is set to be a null value.
Optionally, when the registration of the SNMP agent device fails, the registration failure reason information may be set to a failure code corresponding to a specific registration failure reason, or may be set to text information of the specific registration failure reason.
In this embodiment, the SNMP management station returns a registration failure reason information symbol to the SNMP agent device, wherein if the SNMP agent device successfully registers the network element information in the SNMP management station and the network element is successfully created, the SNMP management station sets the registration failure reason information symbol to a null value and sends the null value to the SNMP agent device; if the SNMP agent equipment fails to register the network element information in the SNMP management station, the SNMP management station cannot create the network element, and fills a failure code or text information corresponding to a specific failure reason into the registration failure reason information and sends the registration failure reason information to the SNMP agent equipment; specifically, the SNMP management station may also send the registration failure cause information to the SNMP agent device by issuing a Set operation instruction.
Referring to fig. 4, fig. 4 is a flowchart of a registration method of an SNMP agent device according to another embodiment of the present invention, where the present embodiment provides a registration method of an SNMP agent device, and the method is described by taking an example of interaction between the SNMP agent device and an SNMP management station in fig. 1, and includes the following steps:
step S410: the SNMP agent equipment acquires object identifiers corresponding to the equipment basic information and binds the object identifiers to trap messages with the identifiers being registered identifiers; the device basic information comprises at least one of a product serial number, a device type, a device interaction address, a reading instruction and a writing instruction of the SNMP agent device.
Specifically, Trap messages sent by the SNMP agent device are all received by the SNMP management station in a uniform manner, multiple Trap messages may be sent to the SNMP management station at the same time, and if multiple Trap messages exist, the SNMP management station is difficult to distinguish the specific request types of the Trap messages. Therefore, the Trap message reported by the device is sent according to the appointed node, so as to be distinguished by the network manager. Therefore, the SNMP management station and the SNMP agent device subscribe the nodes of the interaction information in advance, each node has an Object Identifier (OID) to uniquely identify, and the specific node setting is as shown in fig. 5.
According to the illustration in fig. 5, the SNMP agent device fills out the corresponding object identifiers, such as SNOID, NeTypeOID, IpOID, ReadOID, WriteOID, etc., according to the product serial number, the device type, the device interaction address, the read instruction, and the write instruction, and binds the SNOID, the NeTypeOID, the IpOID, the ReadOID, and the WriteOID to the Trap message with the identifier of register oid.
Step S420: the SNMP agent device sends a trap message of the identifier bound with each object identifier as a registration identifier to the SNMP management station.
Step S430: the SNMP management station receives a trap message which is sent by the SNMP agent device and has the identifier of the registration identifier.
In this step, the SNMP management station receives the Trap message sent by the SNMP agent device, and acquires necessary information in the SNOID, the nettypeoid, the IpOID, the ReadOID, and the WriteOID required for registration according to the appointed node when detecting that the Trap message identifier is the registereid.
Step S440: the SNMP management station reads the object identifier in the trap message with the identifier as the registration identifier, and registers the network element information of the SNMP agent equipment according to the object identifier.
Step S450: the SNMP management station returns a registration state identifier to the SNMP agent equipment, wherein if the SNMP agent equipment successfully registers the network element information, the registration state identifier is set as a registration success mark; if the registration of the network element information of the SNMP agent equipment fails, the registration state identifier is set as a registration failure mark.
Step S460: and the SNMP agent equipment receives the registration state identifier fed back by the SNMP management station.
Step S470: if the registration state identifier is a registration success mark, reporting heartbeat information to the SNMP management station at regular time.
Step S480: and if the registration state identifier is a registration failure mark, sending the object identifiers and the registration identifiers to the SNMP management station again.
According to the SNMP agent equipment registration method, the SNMP management station receives the Trap message actively sent by the SNMP agent equipment, extracts the equipment basic information carried in the Trap message, and realizes that the SNMP agent equipment automatically registers the network element information in the SNMP management station according to the registration of the network element information of the equipment, so that the start efficiency of the SNMP agent equipment is effectively improved, and the start error probability and the labor cost of the SNMP agent equipment are reduced; meanwhile, the communication between the SNMP agent equipment and the SNMP management station is realized through a Trap operation instruction, so that the introduction of a third-party protocol is avoided.
It should be understood that, although the steps in the flowcharts of fig. 2 to 4 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
According to the above registration method of the SNMP agent device, the present invention further provides an SNMP agent device registration apparatus, and the following describes in detail an embodiment of the apparatus of the present invention.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an SNMP agent device registration apparatus according to an embodiment of the present invention; in this embodiment, the SNMP agent device registration apparatus includes:
an object identifier obtaining module 610, configured to obtain object identifiers corresponding to device basis information of the SNMP agent device, and bind each object identifier to a trap message whose identifier is a registration identifier;
and an object identifier sending module 620, configured to send a trap message, which is bound to each object identifier and takes an identifier as a registration identifier, to the SNMP management station, where the trap message, which takes the identifier as the registration identifier, is used to instruct the SNMP management station to register the network element information of the SNMP agent device according to the object identifier.
Fig. 7 is a schematic structural diagram of an SNMP agent device registration apparatus according to another embodiment of the present invention; in this embodiment, the SNMP agent device registration apparatus further includes a registration status identifier receiving module 630, where the registration status identifier receiving module 630 is configured to receive a registration status identifier fed back by the SNMP management station; when the registration of the registration state identifier mark is successful, reporting heartbeat information to an SNMP management station at regular time; when the registration state identifier indicates a registration failure, the object identifier sending module 620 is caused to send a trap message, in which the identifier bound to each object identifier is the registration identifier, to the SNMP management station again.
In one embodiment, the registration state identifier receiving module is configured to receive a registration state identifier fed back by the SNMP management station and registration failure cause information.
In one embodiment, the device infrastructure information includes at least one of SNMP agent device product serial number, device type, device interaction address, read instruction, and write instruction.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an SNMP agent device registration apparatus according to another embodiment of the present invention; in this embodiment, the SNMP agent device registration apparatus includes:
an object identifier receiving module 710, configured to receive a trap message with an identifier of a registered identifier sent by an SNMP agent device, where the trap message with the identifier of the registered identifier is bound to an object identifier corresponding to device infrastructure information of the SNMP agent device;
and the network element information registering module 720 is configured to read the object identifier in the trap message with the identifier being the registration identifier, and register the network element information of the SNMP agent device according to the object identifier.
Referring to fig. 9, fig. 9 is a schematic structural diagram of an SNMP agent device registration apparatus according to still another embodiment of the present invention; in this embodiment, the SNMP agent device registration apparatus further includes a registration status identifier sending module 730, where the registration status identifier sending module is configured to return a registration status identifier to the SNMP agent device; when the SNMP agent equipment network element information is successfully registered, the registration state identifier is set as a registration success mark; and when the registration of the network element information of the SNMP agent equipment fails, setting the registration state identifier as a registration failure mark.
In one embodiment, the registration status identifier sending module 730 is configured to return the registration failure reason information to the SNMP agent device; when the SNMP agent equipment is successfully registered, the registration failure reason information is set to be a null value.
For the specific limitation of the SNMP agent device registration apparatus, reference may be made to the above limitation of the SNMP agent device registration method, which is not described herein again. The modules in the SNMP agent device registration apparatus may be wholly or partially implemented by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 10. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an SNMP agent device registration method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the present invention further provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the following steps when executing the computer program:
acquiring object identifiers corresponding to device basic information of SNMP proxy equipment, and binding each object identifier to a trap message with the identifier as a registration identifier; and sending a trap message which is bound with each object identifier and takes the identifier as a registration identifier to the SNMP management station, wherein the trap message with the identifier as the registration identifier is used for indicating the SNMP management station to register the network element information of the SNMP agent equipment according to the object identifier.
In one embodiment, the processor, when executing the computer program, further performs the steps of: receiving a registration state identifier fed back by the SNMP management station; if the registration of the registration state identifier mark is successful, reporting heartbeat information to an SNMP management station at regular time; and if the registration state identifier marks that the registration fails, sending a trap message which takes the identifier bound with each object identifier as the registration identifier to the SNMP management station again.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and receiving registration failure reason information fed back by the SNMP management station.
In one embodiment, the device infrastructure information includes at least one of SNMP agent device product serial number, device type, device interaction address, read instruction, and write instruction.
In one embodiment, the present invention further provides a computer readable storage medium having a computer program stored thereon, the computer program when executed by a processor implementing the steps of:
acquiring object identifiers corresponding to device basic information of SNMP proxy equipment, and binding each object identifier to a trap message with the identifier as a registration identifier; and sending a trap message which is bound with each object identifier and takes the identifier as a registration identifier to the SNMP management station, wherein the trap message with the identifier as the registration identifier is used for indicating the SNMP management station to register the network element information of the SNMP agent equipment according to the object identifier.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving a registration state identifier fed back by the SNMP management station; if the registration of the registration state identifier mark is successful, reporting heartbeat information to an SNMP management station at regular time; and if the registration state identifier marks that the registration fails, sending a trap message which takes the identifier bound with each object identifier as the registration identifier to the SNMP management station again.
In one embodiment, the computer program when executed by the processor further performs the steps of: and receiving registration failure reason information fed back by the SNMP management station.
In one embodiment, the present invention further provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the following steps when executing the computer program:
receiving a trap message which is sent by the SNMP agent device and takes an identifier as a registration identifier, wherein the trap message which takes the identifier as the registration identifier is bound with an object identifier corresponding to the device basic information of the SNMP agent device;
reading the object identifier in the trap message with the identifier as the registration identifier, and registering the network element information of the SNMP proxy equipment according to the object identifier.
In one embodiment, the processor, when executing the computer program, further performs the steps of: returning the registration state identifier to the SNMP agent device; if the SNMP agent equipment network element information is successfully registered, setting the registration state identifier as a successful registration mark; if the registration of the network element information of the SNMP agent equipment fails, the registration state identifier is set as a registration failure mark.
In one embodiment, the processor, when executing the computer program, further performs the steps of: returning the registration failure reason information to the SNMP agent equipment; and if the SNMP agent equipment is successfully registered, setting the registration failure reason information as a null value.
In one embodiment, the present invention further provides a computer readable storage medium having a computer program stored thereon, the computer program when executed by a processor implementing the steps of:
receiving a trap message which is sent by the SNMP agent device and takes an identifier as a registration identifier, wherein the trap message which takes the identifier as the registration identifier is bound with an object identifier corresponding to the device basic information of the SNMP agent device;
reading the object identifier in the trap message with the identifier as the registration identifier, and registering the network element information of the SNMP proxy equipment according to the object identifier.
In one embodiment, the computer program when executed by the processor further performs the steps of: returning the registration state identifier to the SNMP agent device;
if the SNMP agent equipment network element information is successfully registered, setting the registration state identifier as a successful registration mark; if the registration of the network element information of the SNMP agent equipment fails, the registration state identifier is set as a registration failure mark.
In one embodiment, the computer program when executed by the processor further performs the steps of: returning the registration failure reason information to the SNMP agent equipment; and if the SNMP agent equipment is successfully registered, setting the registration failure reason information as a null value.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. An SNMP agent device registration method is characterized by comprising the following steps:
when the SNMP agent equipment is installed, acquiring object identifiers corresponding to equipment basic information of the SNMP agent equipment, and binding the object identifiers to trap messages with the identifiers being registered identifiers;
sending a trap message which is bound with each object identifier and takes the identifier as a registration identifier to an SNMP management station, wherein the trap message which takes the identifier as the registration identifier is used for indicating the SNMP management station to register network element information of the SNMP agent equipment according to the object identifier;
receiving a registration state identifier fed back by the SNMP management station;
if the registration of the registration state identifier mark is successful, reporting heartbeat information to an SNMP management station at regular time;
if the registration state identifier marks that the registration fails, the trap message which is bound with each object identifier and takes the identifier as the registration identifier is sent to the SNMP management station again until the network element information is registered successfully;
and receiving registration failure reason information fed back by the SNMP management station, wherein if the registration of the SNMP agent equipment is successful, the registration failure reason information is a null value.
2. The SNMP agent device registration method according to claim 1, wherein the step of receiving the registration failure cause information fed back from the SNMP management station further comprises the steps of:
making an alarm prompt of registration failure according to the registration failure reason information;
or the like, or, alternatively,
and automatically adjusting the parameters of the self equipment according to the registration failure reason information.
3. The SNMP agent device registration method according to claim 1, wherein the device infrastructure information includes at least one of a product serial number, a device type, a device interaction address, a read instruction, and a write instruction of the SNMP agent device.
4. An SNMP agent device registration method is characterized by comprising the following steps:
receiving a trap message which is sent by SNMP agent equipment and takes an identifier as a registration identifier, wherein the trap message which takes the identifier as the registration identifier is bound with an object identifier corresponding to equipment basic information of the SNMP agent equipment, and the trap message is actively sent by the SNMP agent equipment after the installation is finished;
reading the object identifier in the trap message with the identifier as a registration identifier, and registering the network element information of the SNMP agent equipment according to the object identifier;
returning a registration state identifier to the SNMP agent equipment, wherein if the registration of the network element information of the SNMP agent equipment is successful, the registration state identifier is set as a registration success mark; if the registration of the network element information of the SNMP agent equipment fails, setting a registration state identifier as a registration failure mark;
and returning registration failure reason information to the SNMP agent equipment, wherein if the SNMP agent equipment is successfully registered, the registration failure reason information is a null value.
5. The SNMP agent device registration method according to claim 4, wherein the registration failure cause information is a failure code corresponding to a specific registration failure cause or text information of the specific registration failure cause.
6. An SNMP agent device registration apparatus, comprising:
an object identifier obtaining module, configured to obtain, when the SNMP agent device is installed, object identifiers corresponding to device basic information of the SNMP agent device, and bind each object identifier to a trap message whose identifier is a registration identifier;
an object identifier sending module, configured to send a trap message, which is bound to each object identifier and is a registration identifier, to an SNMP management station, where the trap message, which is a registration identifier, is used to instruct the SNMP management station to register network element information of an SNMP agent device according to the object identifier;
a registration state identifier receiving module, configured to receive a registration state identifier fed back by the SNMP management station, report heartbeat information to the SNMP management station at a fixed time if registration of the registration state identifier is successful, and send a trap message, which is bound to each object identifier and takes the identifier as a registration identifier, to the SNMP management station again if registration of the registration state identifier is failed, until network element information is successfully registered;
the registration state identifier receiving module is further configured to receive registration failure cause information fed back by the SNMP management station, where the registration failure cause information is a null value if the SNMP agent device is successfully registered.
7. An SNMP agent device registration apparatus, comprising:
the SNMP agent equipment comprises an object identifier receiving module, a registration identifier sending module and a processing module, wherein the object identifier receiving module is used for receiving a trap message which is sent by the SNMP agent equipment and takes the identifier as the registration identifier, the trap message which takes the identifier as the registration identifier is bound with an object identifier corresponding to the equipment basic information of the SNMP agent equipment, and the trap message is actively sent by the SNMP agent equipment after the installation is finished;
a network element information registration module, configured to read the object identifier in the trap message whose identifier is a registration identifier, and perform network element information registration on the SNMP agent device according to the object identifier;
a registration state identifier sending module, configured to return a registration state identifier to the SNMP agent device, where the registration state identifier is set to a registration success flag if the registration of the network element information of the SNMP agent device is successful, and the registration state identifier is set to a registration failure flag if the registration of the network element information of the SNMP agent device is failed;
the registration state identifier sending module is further configured to return registration failure reason information to the SNMP agent device, where the registration failure reason information is a null value if the SNMP agent device is successfully registered.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the SNMP agent device registration method according to any one of claims 1 to 5 when executing the computer program.
9. A computer-readable storage medium on which a computer program is stored, the computer program, when being executed by a processor, implementing the steps of the SNMP agent device registration method according to any one of claims 1 to 5.
CN201810563565.9A 2018-06-04 2018-06-04 SNMP proxy equipment registration method, device, computer equipment and storage medium Active 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 CN108848147A (en) 2018-11-20
CN108848147B true CN108848147B (en) 2021-08-24

Family

ID=64210645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810563565.9A Active 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109714444A (en) * 2018-12-04 2019-05-03 中国电子技术标准化研究院 A kind of method of registration management, 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
实现接入网设备资源清查自动化的方法讨论;盛宇路;《信息通信》;20171031;第249页 *

Also Published As

Publication number Publication date
CN108848147A (en) 2018-11-20

Similar Documents

Publication Publication Date Title
CN110311831B (en) Container cloud-based system resource monitoring method and related equipment
CN108897658B (en) Method and device for monitoring master database, computer equipment and storage medium
CN109308227B (en) Fault detection control method and related equipment
CN109150572B (en) Method, device and computer readable storage medium for realizing alarm association
CN108446172B (en) Data calling method and device, computer equipment and storage medium
CN111026725A (en) Data processing method and device for consumption data, computer equipment and storage medium
CN109391482B (en) Network function upgrading method and upgrading management entity
CN109361525B (en) Method, device, control terminal and medium for restarting distributed deployment of multiple services
CN110457157B (en) Distributed transaction exception handling method and device, computer equipment and storage medium
CN112866408B (en) Service switching method, device, equipment and storage medium in cluster
CN106331081B (en) Information synchronization method and device
US20170085673A1 (en) Attribute Operating Method and Apparatus
CN108848147B (en) SNMP proxy equipment registration method, device, computer equipment and storage medium
CN113612814B (en) Session information screening method, device, terminal and storage medium
CN111813348A (en) Node event processing device, method, equipment and medium in unified storage equipment
CN110809262A (en) Internet of things equipment operation and maintenance management method based on COAP protocol
CN112153146B (en) Operation notification method and apparatus, storage medium, and electronic apparatus
CN108241616B (en) Message pushing method and device
CN108345508B (en) Interface call testing method and device
CN113190371A (en) Task compensation method and device, electronic equipment and readable storage medium
CN111211925A (en) Alarm information synchronization method and device, computer equipment and storage medium
CN113010306A (en) Service data processing method and device, computer equipment and storage medium
CN112070585A (en) Order state unified management method and device, computer equipment and storage medium
US10674337B2 (en) Method and device for processing operation for device peripheral
CN115729477A (en) Distributed storage IO path data writing and reading method, device and equipment

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: Jingxin Communication System (China) Co., Ltd.

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

Applicant before: Jingxin Communication System (China) Co., Ltd.

Applicant before: Jingxin Communication System (Guangzhou) Co., Ltd.

Applicant before: Jingxin Communication Technology (Guangzhou) Co., Ltd.

Applicant before: TIANJIN COMBA TELECOM SYSTEMS CO., 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 System (China) Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant