Method and device for realizing system equipment monitoring based on SNMP protocol low code

Through a low-code method based on the SNMP protocol, a custom JSON communication instruction file is generated and parsed into an SNMP communication instruction, which solves the problem of connecting equipment and obtaining data in the operation and maintenance monitoring system, achieving fast docking and efficient data acquisition, and satisfying the system's requirements. Scalability and real-time requirements.

CN115834323BActive Publication Date: 2024-09-27VTRON GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211457429.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-21
Publication Date
2024-09-27
Estimated Expiration
2042-11-21

AI Technical Summary

Technical Problem

The existing operation and maintenance monitoring system is difficult to quickly connect to various devices and obtain operation and maintenance data, and the development cycle is long, which cannot meet the scalability requirements of the system.

Method used

Adopting a low-code method based on the SNMP protocol, by generating a custom JSON communication command file and parsing it into SNMP communication commands, it can achieve rapid connection with the device and obtain operation and maintenance data, and use the ORM framework to store data to meet the scalability and scalability of the system. Real-time requirements.

Benefits of technology

It achieves rapid connection with various devices and acquisition of operation and maintenance data, reduces the development cycle, improves development and interaction efficiency, and meets the scalability requirements of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115834323B
    Figure CN115834323B
Patent Text Reader

Abstract

The present invention relates to the field of computer network technology, and discloses a method and device for realizing system equipment monitoring based on the SNMP protocol with low code. The present invention receives a device adding instruction including a JSON communication instruction file sent by a WEB client, and the JSON communication instruction file is generated by the WEB client according to the target SNMP protocol content of the device docking according to the first custom grammar rule; the JSON communication instruction file is parsed to obtain the corresponding SNMP communication instruction; according to the SNMP communication instruction, an instruction to obtain operation and maintenance data is sent to the corresponding device, and the operation and maintenance data fed back by the corresponding device according to the instruction to obtain operation and maintenance data is received; and the received operation and maintenance data is sent to the WEB client. The present invention realizes rapid docking with the device and equipment operation and maintenance monitoring in a low-code manner, which can meet the scalability of the system, reduce the development cycle, and improve the development and interaction efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer network technology, and in particular to a method and device for implementing system equipment monitoring based on SNMP protocol low code. Background Art

[0002] With the rapid development of the computer field, network-based applications and services have also exploded. As the scale of the network gradually expands, network devices are also increasing. Considering the reliability of the system, the operation and maintenance monitoring of the system equipment has become an urgent problem to be solved.

[0003] However, due to the diversity of equipment and the professionalism of operation and maintenance data, the requirements for an operation and maintenance monitoring system are gradually increasing. Not only is the operation and maintenance monitoring system required to be able to connect to a variety of equipment and obtain operation and maintenance data, but it also places higher requirements on the development cycle and development scalability. Summary of the invention

[0004] The present invention provides a method and device for realizing system equipment monitoring based on SNMP protocol with low code, which solves the technical problem of how to realize rapid connection with various equipment while meeting scalability and reducing development cycle, so as to obtain operation and maintenance data.

[0005] The first aspect of the present invention provides a method for implementing system equipment monitoring based on SNMP protocol low code, comprising:

[0006] Receive a device adding instruction sent by a WEB client; the device adding instruction includes a JSON communication instruction file, and the JSON communication instruction file is generated by the WEB client according to the target SNMP protocol content of the device docking according to the first custom grammar rule;

[0007] Parse the JSON communication instruction file to obtain corresponding SNMP communication instructions;

[0008] Sending an instruction to obtain operation and maintenance data to a corresponding device according to the SNMP communication instruction, and receiving operation and maintenance data fed back by the corresponding device according to the instruction to obtain operation and maintenance data;

[0009] The received operation and maintenance data is sent to the WEB client.

[0010] According to an achievable manner of the first aspect of the present invention, parsing the JSON communication instruction file includes:

[0011] Determining a second custom grammar rule corresponding to the first custom grammar rule;

[0012] The JSON communication instruction file is parsed according to the second custom grammar rule.

[0013] According to an achievable manner of the first aspect of the present invention, the sending of an instruction to obtain operation and maintenance data to a corresponding device according to the SNMP communication instruction includes:

[0014] According to the SNMP communication instructions, instructions for obtaining operation and maintenance data are regularly sent to the corresponding device at preset time intervals.

[0015] According to an achievable manner of the first aspect of the present invention, the method further includes:

[0016] The JSON communication instruction file and / or the received operation and maintenance data are stored in a database through an interface provided by an ORM (object relational mapping) framework.

[0017] A second aspect of the present invention provides a device for implementing system equipment monitoring based on SNMP protocol low code, comprising:

[0018] The device management module is used to receive a device adding instruction sent by a WEB client; the device adding instruction includes a JSON communication instruction file, and the JSON communication instruction file is generated by the WEB client according to the target SNMP protocol content of the device docking according to the first custom grammar rule;

[0019] A JSON file parsing module, used to parse the JSON communication instruction file to obtain corresponding SNMP communication instructions;

[0020] An SNMP communication module is used to send an instruction to obtain operation and maintenance data to a corresponding device according to the SNMP communication instruction, and receive operation and maintenance data fed back by the corresponding device according to the instruction to obtain operation and maintenance data;

[0021] The sending module is used to send the received operation and maintenance data to the WEB client.

[0022] According to an achievable manner of the second aspect of the present invention, the JSON file parsing module includes:

[0023] a determining unit, configured to determine a second user-defined grammar rule corresponding to the first user-defined grammar rule;

[0024] A parsing unit is used to parse the JSON communication instruction file according to the second custom grammar rule.

[0025] According to an achievable manner of the second aspect of the present invention, the SNMP communication module includes:

[0026] The SNMP communication unit is used to send instructions for obtaining operation and maintenance data to the corresponding device at preset time intervals according to the SNMP communication instructions.

[0027] According to an achievable manner of the second aspect of the present invention, the device further includes:

[0028] The ORM module is used to store the JSON communication instruction file and / or the received operation and maintenance data in a database through an interface provided by the ORM framework.

[0029] The third aspect of the present invention provides a device for implementing system equipment monitoring based on SNMP protocol low code, including:

[0030] A memory for storing instructions; wherein the instructions are used to implement the method for implementing system equipment monitoring based on the SNMP protocol low code as described in any of the above implementation methods;

[0031] A processor is used to execute instructions in the memory.

[0032] A fourth aspect of the present invention is a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for implementing system equipment monitoring based on the SNMP protocol with low code as described in any of the above-mentioned methods can be implemented.

[0033] It can be seen from the above technical solutions that the present invention has the following advantages:

[0034] The present invention receives a device adding instruction including a JSON communication instruction file sent by a WEB client, the JSON communication instruction file is generated by the WEB client according to the target SNMP protocol content of the device docking according to the first custom grammar rule; the JSON communication instruction file is parsed to obtain the corresponding SNMP communication instruction; according to the SNMP communication instruction, an instruction to obtain operation and maintenance data is sent to the corresponding device, and the operation and maintenance data fed back by the corresponding device according to the instruction to obtain operation and maintenance data; the received operation and maintenance data is sent to the WEB client; the present invention constructs a recognizable JSON communication instruction file according to the custom grammar rules for the SNMP protocol content of the device docking, and then parses it into specific SNMP communication instructions, and communicates with the device according to this instruction to achieve the purpose of obtaining operation and maintenance data. The custom JSON communication instruction file can be dynamically configured through a visual interface and can be adjusted according to the rules. Through this low-code method, rapid docking with the device and device operation and maintenance monitoring are realized, which can meet the scalability of the system, reduce the development cycle, and improve the development and interaction efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0036] Figure 1 A flowchart of a method for implementing system equipment monitoring based on SNMP protocol low code provided for an optional embodiment of the present invention;

[0037] Figure 2 A flowchart of a method for implementing system equipment monitoring based on SNMP protocol low code provided in another optional embodiment of the present invention;

[0038] Figure 3 A structural connection block diagram of a device for implementing system equipment monitoring based on SNMP protocol low code, provided as an optional embodiment of the present invention;

[0039] Figure 4 A structural connection block diagram of an apparatus for implementing system equipment monitoring based on the SNMP protocol with low code is provided as another optional embodiment of the present invention.

[0040] Reference numerals:

[0041] 1-Device management module; 2-JSON file parsing module; 3-SNMP communication module; 4-Sending module; 5-ORM module. DETAILED DESCRIPTION

[0042] The embodiments of the present invention provide a method and apparatus for implementing system equipment monitoring based on the SNMP protocol with low code, which is used to solve the technical problem of how to achieve rapid docking with various devices while meeting scalability and reducing the development cycle, so as to obtain operation and maintenance data.

[0043] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0044] The present invention provides a method for realizing system equipment monitoring based on SNMP protocol low code. The method of the present application can be executed by a server.

[0045] See also Figure 1, Figure 1 A flow chart of a method for implementing system equipment monitoring based on low code of SNMP protocol provided by an embodiment of the present invention is shown.

[0046] An embodiment of the present invention provides a method for implementing system equipment monitoring based on SNMP protocol low code, including:

[0047] Step S1, receiving a device adding instruction sent by a WEB client; the device adding instruction includes a JSON communication instruction file, and the JSON communication instruction file is generated by the WEB client according to the target SNMP protocol content of the device docking according to the first custom grammar rule.

[0048] The SNMP protocol (Simple Network Management Protocol) consists of a set of network management standards, including an application layer protocol, a database schema, and a set of resource objects. The protocol can support network management systems to monitor whether the devices connected to the network have any situations that cause management concerns. The equipment for operation and maintenance monitoring is required to support the SNMP standard protocol or the SNMP private protocol customized according to the specification. The relevant operation and maintenance data of the equipment can be obtained through the SNMP protocol. In this embodiment, the SNMP protocol content of the device docking is constructed into a recognizable JSON communication instruction file according to the customized grammatical rules. Since the grammatical rules are customized, the JSON communication instruction file can be dynamically configured through a visual interface and adjusted according to the rules. It can improve the flexibility of system equipment monitoring, thereby meeting the scalability of the system, and the low-code method can reduce the development cycle and improve the development and interaction efficiency.

[0049] Step S2, parsing the JSON communication instruction file to obtain corresponding SNMP communication instructions.

[0050] In this embodiment, the JSON communication instruction file may be parsed according to a custom grammar rule or by calling an external function parsing module.

[0051] In one achievable manner, parsing the JSON communication instruction file includes:

[0052] Determining a second custom grammar rule corresponding to the first custom grammar rule;

[0053] The JSON communication instruction file is parsed according to the second custom grammar rule.

[0054] As a specific implementation, the same custom grammar rule may be set, so that after receiving the JSON communication instruction file, the built-in custom grammar rule is directly called as the second custom grammar rule to parse the JSON communication instruction file.

[0055] As another specific implementation, different custom grammar rules are set. When determining the second custom grammar rule corresponding to the first custom grammar rule, it is necessary to match the second custom grammar rule. The matching method can be: matching the second custom grammar rule through a pre-set list storing the correspondence between identification information and custom grammar rules; or, obtaining the second custom grammar rule through interaction with a WEB client or other preset clients. The identification information can be the identification information of the WEB client, the identification information of the JSON communication instruction file, or the identification information of the first custom grammar rule.

[0056] Step S3: sending an instruction for obtaining operation and maintenance data to the corresponding device according to the SNMP communication instruction, and receiving the operation and maintenance data fed back by the corresponding device according to the instruction for obtaining operation and maintenance data.

[0057] The number of times the instruction to obtain operation and maintenance data is sent to the corresponding device may be one or more times, and the specific number is set according to the actual situation.

[0058] In one achievable manner, according to the SNMP communication instruction, an instruction for obtaining operation and maintenance data is periodically sent to the corresponding device at a preset time interval.

[0059] By sending instructions for obtaining operation and maintenance data at regular intervals, automatic and regular acquisition of operation and maintenance data can be achieved, meeting the real-time nature of equipment operation and maintenance monitoring.

[0060] Step S4, sending the received operation and maintenance data to the WEB client.

[0061] In this embodiment, the received operation and maintenance data is sent to the WEB client, and the WEB client can visualize the operation and maintenance data, thereby intuitively presenting the corresponding data to the user.

[0062] In one achievable manner, such as Figure 2 As shown, in Figure 1 Based on the method shown, the method also includes:

[0063] Step S5: store the JSON communication instruction file and / or the received operation and maintenance data in a database through an interface provided by an ORM framework.

[0064] In this embodiment, a database based on the ORM framework is used to establish a mapping relationship between the object model and the relational model, so that data processing operations can be efficiently performed on the relational database through the mapping relationship, thereby realizing convenient query of related data, data addition and data deletion and other operations.

[0065] The present invention also provides a device for implementing system equipment monitoring based on the SNMP protocol with low code, which can be used to execute the method for implementing system equipment monitoring based on the SNMP protocol with low code as described in any of the above embodiments of the present invention.

[0066] See also Figure 3 , Figure 3 A structural connection block diagram of a device for implementing system equipment monitoring based on SNMP protocol low code provided by an embodiment of the present invention is shown.

[0067] An embodiment of the present invention provides a device for implementing system equipment monitoring based on SNMP protocol low code, including:

[0068] The device management module 1 is used to receive a device adding instruction sent by a WEB client; the device adding instruction includes a JSON communication instruction file, and the JSON communication instruction file is generated by the WEB client according to the target SNMP protocol content of the device docking according to the first custom grammar rule;

[0069] JSON file parsing module 2, used to parse the JSON communication instruction file to obtain corresponding SNMP communication instructions;

[0070] SNMP communication module 3, used for sending an instruction to obtain operation and maintenance data to the corresponding device according to the SNMP communication instruction, and receiving the operation and maintenance data fed back by the corresponding device according to the instruction to obtain operation and maintenance data;

[0071] The sending module 4 is used to send the received operation and maintenance data to the WEB client.

[0072] In one achievable manner, the JSON file parsing module 2 includes:

[0073] a determining unit, configured to determine a second user-defined grammar rule corresponding to the first user-defined grammar rule;

[0074] A parsing unit is used to parse the JSON communication instruction file according to the second custom grammar rule.

[0075] In one achievable manner, the SNMP communication module 3 includes:

[0076] The SNMP communication unit is used to send instructions for obtaining operation and maintenance data to the corresponding device at preset time intervals according to the SNMP communication instructions.

[0077] In one achievable manner, such as Figure 4 As shown, in Figure 3 Based on the device shown, the device also includes:

[0078] The ORM module 5 is used to store the JSON communication instruction file and / or the received operation and maintenance data in a database through an interface provided by the ORM framework.

[0079] The present invention also provides a device for realizing system equipment monitoring based on SNMP protocol low code, including:

[0080] A memory for storing instructions; wherein the instructions are used to implement the method for implementing system equipment monitoring based on the SNMP protocol low code as described in any of the above embodiments;

[0081] A processor is used to execute instructions in the memory.

[0082] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for implementing system equipment monitoring based on the SNMP protocol with low code as described in any of the above embodiments is implemented.

[0083] In the above-mentioned embodiment of the present invention, the SNMP protocol content of the device docking is constructed into a recognizable JSON communication instruction file according to custom grammatical rules, and then parsed into specific SNMP communication instructions, and communicated with the device according to this instruction to achieve the purpose of obtaining operation and maintenance data. The custom JSON communication instruction file can be dynamically configured through a visual interface and can be adjusted according to the rules. Through this low-code method, rapid docking with the device and device operation and maintenance monitoring are realized, which can meet the scalability of the system, reduce the development cycle, and improve the development and interaction efficiency.

[0084] Technicians in the relevant field can clearly understand that, for the convenience and conciseness of description, the specific working processes of the devices, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and the specific beneficial effects of the devices, modules and units described above can refer to the corresponding beneficial effects in the aforementioned method embodiments, which will not be repeated here.

[0085] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another device, or some features can be ignored or not executed.

[0086] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0087] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of software functional modules.

[0088] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0089] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for realizing system equipment monitoring based on SNMP protocol low code, characterized in that: include: Receive a device adding instruction sent by a WEB client; the device adding instruction includes a JSON communication instruction file, and the JSON communication instruction file is generated by the WEB client according to the target SNMP protocol content of the device docking according to the first custom grammar rule; Parse the JSON communication instruction file to obtain corresponding SNMP communication instructions; The parsing of the JSON communication instruction file includes: Determining a second custom grammar rule corresponding to the first custom grammar rule; Parsing the JSON communication instruction file according to the second custom grammar rule; Sending an instruction to obtain operation and maintenance data to a corresponding device according to the SNMP communication instruction, and receiving operation and maintenance data fed back by the corresponding device according to the instruction to obtain operation and maintenance data; The received operation and maintenance data is sent to the WEB client.

2. According to the method for realizing system equipment monitoring based on SNMP protocol low code according to claim 1, it is characterized in that: The step of sending an instruction to obtain operation and maintenance data to a corresponding device according to the SNMP communication instruction includes: According to the SNMP communication instructions, instructions for obtaining operation and maintenance data are regularly sent to the corresponding device at preset time intervals.

3. The method for realizing system equipment monitoring based on SNMP protocol low code according to claim 1 is characterized in that: The method further comprises: The JSON communication instruction file and / or the received operation and maintenance data are stored in a database through an interface provided by an ORM framework.

4. A device for realizing system equipment monitoring based on SNMP protocol low code, characterized in that: include: The device management module is used to receive a device adding instruction sent by a WEB client; the device adding instruction includes a JSON communication instruction file, and the JSON communication instruction file is generated by the WEB client according to the target SNMP protocol content of the device docking according to the first custom grammar rule; A JSON file parsing module, used to parse the JSON communication instruction file to obtain corresponding SNMP communication instructions; The JSON file parsing module includes: a determining unit, configured to determine a second user-defined grammar rule corresponding to the first user-defined grammar rule; A parsing unit, configured to parse the JSON communication instruction file according to the second custom grammar rule; An SNMP communication module is used to send an instruction to obtain operation and maintenance data to a corresponding device according to the SNMP communication instruction, and receive operation and maintenance data fed back by the corresponding device according to the instruction to obtain operation and maintenance data; The sending module is used to send the received operation and maintenance data to the WEB client.

5. The device for realizing system equipment monitoring based on SNMP protocol low code according to claim 4 is characterized in that: The SNMP communication module comprises: The SNMP communication unit is used to send instructions for obtaining operation and maintenance data to the corresponding device at preset time intervals according to the SNMP communication instructions.

6. The device for realizing system equipment monitoring based on SNMP protocol low code according to claim 4 is characterized in that: The device also includes: The ORM module is used to store the JSON communication instruction file and / or the received operation and maintenance data in a database through an interface provided by the ORM framework.

7. A device for implementing system equipment monitoring based on SNMP protocol low code, characterized in that: include: A memory for storing instructions; wherein the instructions are used to implement the method for realizing system equipment monitoring based on the SNMP protocol low code as described in any one of claims 1-3; A processor is used to execute instructions in the memory.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, it implements the method for low-code system equipment monitoring based on the SNMP protocol as described in any one of claims 1 to 3.