CN112887153A - SNMP management system - Google Patents

SNMP management system Download PDF

Info

Publication number
CN112887153A
CN112887153A CN202110144609.6A CN202110144609A CN112887153A CN 112887153 A CN112887153 A CN 112887153A CN 202110144609 A CN202110144609 A CN 202110144609A CN 112887153 A CN112887153 A CN 112887153A
Authority
CN
China
Prior art keywords
snmp agent
snmp
management system
service processing
agent module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110144609.6A
Other languages
Chinese (zh)
Other versions
CN112887153B (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.)
GHT CO Ltd
Original Assignee
GHT 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 GHT CO Ltd filed Critical GHT CO Ltd
Priority to CN202110144609.6A priority Critical patent/CN112887153B/en
Publication of CN112887153A publication Critical patent/CN112887153A/en
Application granted granted Critical
Publication of CN112887153B publication Critical patent/CN112887153B/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
    • 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]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • 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/04Network management architectures or arrangements
    • H04L41/046Network management architectures or arrangements comprising network management agents or mobile agents therefor

Abstract

The invention discloses an SNMP management system, which comprises a network management system, an SNMP agent module, a service processing module and a shared memory bank; the network management system is used for sending a request instruction to the SNMP agent module and receiving an operation result forwarded by the SNMP agent module; the SNMP agent module is used for receiving the request instruction sent by the network management system, analyzing the request instruction, sending the analyzed message to the service processing module and receiving an operation result returned by the service processing module; the service processing module is used for receiving the analyzed message sent by the SNMP agent module, performing corresponding operation on the management information base data of the shared memory base according to the analyzed message, and returning an operation result to the SNMP agent module; and the shared memory bank is used for storing the management information base data. The invention transfers the service function in the SNMP agent to the service processing module, thereby realizing the independence of the service and the agent and better maintaining the SNMP agent.

Description

SNMP management system
Technical Field
The invention relates to the technical field of communication, in particular to an SNMP management system.
Background
In the traditional sense, the SNMP agent generally needs to perform integrated management on network communication, data analysis, data storage and service processing, and the managed information generally comprises indexes related to a system or hardware, such as a network, a disk, a cpu, a memory, time and the like; the acquisition or update mode of the indexes can be traced, and the indexes can be realized according to the information of an operating system or hardware.
However, in many cases, different service systems need to be managed and configured by the SNMP agent, and the service systems have different related indexes and are variable along with the development of services, so that the maintenance of the SNMP agent becomes difficult.
Disclosure of Invention
The embodiment of the invention aims to provide an SNMP management system, which realizes the independence of a service and an agent and better maintains the SNMP agent by transferring the service function in the SNMP agent to a service processing module.
In order to achieve the above object, an embodiment of the present invention provides an SNMP management system, including a network management system, an SNMP agent module, a service processing module, and a shared memory; wherein the content of the first and second substances,
the network management system is used for sending a request instruction to the SNMP agent module and receiving an operation result forwarded by the SNMP agent module;
the SNMP agent module is used for receiving the request instruction sent by the network management system, analyzing the request instruction, sending the analyzed message to the service processing module and receiving the operation result returned by the service processing module;
the service processing module is used for receiving the analyzed message sent by the SNMP agent module, performing corresponding operation on the management information base data of the shared memory base according to the analyzed message, and returning an operation result to the SNMP agent module;
the shared memory bank is used for storing management information base data.
Preferably, the SNMP agent module comprises a query unit; wherein the content of the first and second substances,
and the query unit is used for querying corresponding data information from the shared memory bank and returning a query result to the network management system when the SNMP agent module receives a query instruction sent by the network management system.
Preferably, the service processing module includes an updating unit; wherein the content of the first and second substances,
and the updating unit is used for carrying out corresponding operation on the management information base data of the shared memory base according to the analyzed message sent by the SNMP agent module.
Preferably, the operations include adding, modifying and deleting.
Preferably, the information interaction between the SNMP agent module and the service processing module is performed through a message queue.
Preferably, the request instruction includes an indicator data type and a status field.
Compared with the prior art, the SNMP management system provided by the embodiment of the invention generates a service-independent agent by erasing the service processing code in the SNMP agent, improves the stability of the agent program and enables the agent to support more network devices; the service index maintenance is realized in the service processing module, the service processing module can realize the SNMP protocol maintenance of the service data, and the flexibility of the mib expansion is improved. The invention not only realizes the decoupling of the agent program and the service data processing and enhances the maintainability and the expansibility, but also uses the shared memory bank to store the service data, thereby improving the data access efficiency and the flexibility of the data processing.
Drawings
Fig. 1 is a schematic structural diagram of an SNMP management system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a schematic structural diagram of an SNMP management system according to embodiment 1 of the present invention is shown, where the SNMP management system includes a network management system, an SNMP agent module, a service processing module, and a shared memory; wherein the content of the first and second substances,
the network management system is used for sending a request instruction to the SNMP agent module and receiving an operation result forwarded by the SNMP agent module;
the SNMP agent module is used for receiving the request instruction sent by the network management system, analyzing the request instruction, sending the analyzed message to the service processing module and receiving the operation result returned by the service processing module;
the service processing module is used for receiving the analyzed message sent by the SNMP agent module, performing corresponding operation on the management information base data of the shared memory base according to the analyzed message, and returning an operation result to the SNMP agent module;
the shared memory bank is used for storing management information base data.
Specifically, an SNMP (simple Network management protocol) management system includes a Network Management System (NMS), an SNMP agent module, a service processing module, and a shared memory bank. In the invention, the SNMP agent module, the service processing module and the shared memory are all arranged on the managed device. Wherein the content of the first and second substances,
and the network management system NMS is used for sending a request instruction to the SNMP agent module and receiving an operation result forwarded by the SNMP agent module. Namely, the network management system NMS is connected with the SNMP agent module, and SNMP management is realized through the SNMP agent module. One network management system can manage a plurality of managed devices, namely, a plurality of SNMP agent modules can be connected.
And the SNMP agent module is used for receiving the request instruction sent by the network management system, analyzing the request instruction, sending the analyzed message to the service processing module and receiving an operation result returned by the service processing module. In order to realize that the proxy is irrelevant to the service, the service processing code of the SNMP proxy module is erased, and the service function is transferred to the service processing module. The SNMP agent module is associated with the service processing module through the service configuration file with the uniform format, so that the difference between the modules can be blurred, and the independence of the agent and the service can be realized.
And the service processing module is used for receiving the analyzed message sent by the SNMP agent module, performing corresponding operation on the management information base data of the shared memory base according to the analyzed message, and returning an operation result to the SNMP agent module. The service processing module is mainly used for processing service programs, and when the service types of the managed equipment are more or the service changes more frequently, the maintenance is difficult only by a conventional SNMP agent.
Generally, a service processing module implements SNMP protocol maintenance of service data by simple coding and configuration file writing according to specifications provided by an agent program. The configuration file is a mib (management Information base) file, which can define a data structure, for example, a user table user, including Information such as job number, name, phone number, address, etc.; the agent program reads the mib file after running, and the user table can be stored in the shared memory bank.
Meanwhile, the service processing module is called by the SNMP agent module in a dynamic library mode, and the SNMP agent module has the advantages that a plurality of dynamic libraries can be loaded at the same time, and the service processing module can be refined into a plurality of sub-processing modules, so that the isolation is enhanced.
And the shared memory bank is used for storing the management information base data. The data of the shared memory bank is shared by the SNMP agent module and the service processing module, and both the SNMP agent module and the service processing module can operate the data of the shared memory bank. Besides being linked to the SNMP agent module and the service processing module, the data of the shared memory bank can be linked to other service processing modules, so that the data access efficiency is improved, and the flexibility of data processing is improved.
Embodiment 1 of the present invention provides an SNMP management system, which changes storage in an SNMP agent into a shared memory storage manner and transfers a service function to a service processing module, thereby implementing independence between expansion of a management information base and the agent and maintaining the SNMP agent better.
As an improvement of the above scheme, the SNMP agent module includes a query unit; wherein the content of the first and second substances,
and the query unit is used for querying corresponding data information from the shared memory bank and returning a query result to the network management system when the SNMP agent module receives a query instruction sent by the network management system.
Specifically, the SNMP agent module comprises a query unit; wherein the content of the first and second substances,
and the query unit is used for querying corresponding data information from the shared memory bank and returning a query result to the network management system when the SNMP agent module receives a query instruction sent by the network management system. The query unit is called by the SNMP agent module in a dynamic library mode.
The detailed query flow is as follows:
the SNMP agent module receives a request instruction of the NMS, analyzes the request instruction to obtain a query instruction, calls the query unit, and obtains corresponding data information from the shared memory according to the query instruction, and returns a query result to the SNMP agent module, and the SNMP agent module forwards the query result to the NMS.
As an improvement of the above scheme, the service processing module includes an updating unit; wherein the content of the first and second substances,
and the updating unit is used for carrying out corresponding operation on the management information base data of the shared memory base according to the analyzed message sent by the SNMP agent module.
Specifically, the service processing module comprises an updating unit; wherein the content of the first and second substances,
and the updating unit is used for carrying out corresponding operation on the management information base data of the shared memory base according to the analyzed message sent by the SNMP agent module. Generally, the operation object is index data, which may be system data, such as memory, cpu, network information, etc.; or service data, such as the operation condition of a service program, user management of a service system, traffic statistics, and the like.
As an improvement of the above, the operations include addition, modification, and deletion.
Specifically, the operations include adding records, modifying records, and deleting records. Generally, add records and delete records are directed to a table structure, and the table contains a Status field (Row Status), and the values are two types: 2 and 4, 2 indicating an added record and 4 indicating a deleted record. The modification record is for each data item, i.e. node, in the table. It is also noted that the query is directed to nodes of the table.
Wherein, the flow of adding records is as follows:
the SNMP agent module receives and analyzes a request instruction of the NMS, the request index is required to be a table, and the status field is 2; the SNMP agent module forwards the analyzed message to an updating unit in the service processing module through a message queue; the updating unit judges the record according to the index, judges whether the record already exists, and modifies the record if the record already exists; if not, increasing the record; in this embodiment, if there is no record, a record is added to the shared memory; the update unit returns the operation result to the SNMP agent module through the message queue, and the SNMP agent module forwards the operation result to the NMS.
The procedure for deleting a record is as follows:
the SNMP agent module receives and analyzes a request instruction of the NMS, the request index is required to be a table, and the status field is 4; the SNMP agent module analyzes the request instruction and then forwards the request instruction to an updating unit in the service processing module through a message queue; the updating unit deletes the corresponding record in the shared memory base according to the index; the update unit returns the operation result to the SNMP agent module through the message queue, and the SNMP agent module forwards the operation result to the NMS.
The flow of modifying the record is as follows:
the SNMP agent module receives and analyzes a request instruction of the NMS, the request index is required to be a table, and the status field is 2; the SNMP agent module analyzes the request instruction and then forwards the request instruction to an updating unit in the service processing module through a message queue; the updating unit updates the corresponding record in the shared memory bank; the updating unit returns the operation result to the SNMP agent module through the message queue; the SNMP agent module forwards the operation result to the NMS.
As an improvement of the above scheme, the information interaction between the SNMP agent module and the service processing module is performed through a message queue.
Specifically, the information interaction between the SNMP agent module and the service processing module is performed through a message queue, so that the information transmission between the SNMP agent module and the service processing module is facilitated, and the processing and feedback of the request instruction of the NMS are accelerated.
As an improvement of the scheme, the request instruction comprises an index data type and a state field.
Specifically, the request instruction includes an indicator data type and a status field. The data stored in the shared memory bank includes system data and business data, the index data type may indicate a type of data that the NMS requests for processing, and the status field may indicate an operation requested by the NMS. For example, the index data type mentioned in the above embodiment is a table, and the status field is 2 or 4.
To sum up, the SNMP management system provided in the embodiment of the present invention modifies an SNMP agent of a NET-SNMP framework, erases a service processing code related to the system, generates an agent unrelated to a service, improves stability of an agent program, and enables the agent to support more network devices; the maintenance of the service index is realized in the service processing module, and the service processing module can realize the SNMP protocol maintenance of the service data through simple coding and configuration file compiling according to the specification provided by the agent program, thereby improving the flexibility when the mib is expanded. The invention not only realizes the decoupling of the agent program and the service data processing, enhances the maintainability and the expansibility, but also uses the shared memory bank to store the service data, improves the access efficiency, and simultaneously uses the shared memory bank, thereby being convenient for other service programs to participate in the management of the service data and improving the flexibility of the data processing. The service processing module is used for the SNMP agent to call in a dynamic library mode, and the agent program can simultaneously load a plurality of dynamic libraries, so the service processing module can be further refined into a sub-processing module, and the isolation is enhanced. Because the SNMP agent only processes general services, such as network connection, message transceiving, data packet coding and decoding and the like; for special service processing, the SNMP agent is associated with the service processing module through the service configuration file with the uniform format, so that the difference among the modules is blurred, and the universality is improved.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (6)

1. An SNMP management system is characterized by comprising a network management system, an SNMP agent module, a service processing module and a shared memory bank; wherein the content of the first and second substances,
the network management system is used for sending a request instruction to the SNMP agent module and receiving an operation result forwarded by the SNMP agent module;
the SNMP agent module is used for receiving the request instruction sent by the network management system, analyzing the request instruction, sending the analyzed message to the service processing module and receiving the operation result returned by the service processing module;
the service processing module is used for receiving the analyzed message sent by the SNMP agent module, performing corresponding operation on the management information base data of the shared memory base according to the analyzed message, and returning an operation result to the SNMP agent module;
the shared memory bank is used for storing management information base data.
2. An SNMP management system according to claim 1, wherein the SNMP agent module comprises a query unit; wherein the content of the first and second substances,
and the query unit is used for querying corresponding data information from the shared memory bank and returning a query result to the network management system when the SNMP agent module receives a query instruction sent by the network management system.
3. An SNMP management system according to claim 1, wherein said service processing module comprises an updating unit; wherein the content of the first and second substances,
and the updating unit is used for carrying out corresponding operation on the management information base data of the shared memory base according to the analyzed message sent by the SNMP agent module.
4. An SNMP management system according to claim 3, wherein said operations include addition, modification and deletion.
5. An SNMP management system according to claim 1, wherein the information interaction of said SNMP agent module with said service processing module is via a message queue.
6. An SNMP management system according to claim 1, wherein said request instruction includes an indicator data type and status field.
CN202110144609.6A 2021-02-02 2021-02-02 SNMP management system Active CN112887153B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110144609.6A CN112887153B (en) 2021-02-02 2021-02-02 SNMP management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110144609.6A CN112887153B (en) 2021-02-02 2021-02-02 SNMP management system

Publications (2)

Publication Number Publication Date
CN112887153A true CN112887153A (en) 2021-06-01
CN112887153B CN112887153B (en) 2023-04-07

Family

ID=76055820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110144609.6A Active CN112887153B (en) 2021-02-02 2021-02-02 SNMP management system

Country Status (1)

Country Link
CN (1) CN112887153B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001333072A (en) * 2000-05-19 2001-11-30 Toyo Commun Equip Co Ltd Snmp network management system and method
US20040214576A1 (en) * 2003-04-28 2004-10-28 Chantry Networks Inc. Wireless network communication system and method
CN1929486A (en) * 2006-09-22 2007-03-14 华为技术有限公司 Communication business processing system and method
CN101321086A (en) * 2007-06-08 2008-12-10 华为技术有限公司 Connecting equipment management method and connecting equipment, management equipment and communication system
CN101355453A (en) * 2008-09-08 2009-01-28 创新科存储技术(深圳)有限公司 Operation management maintenance proxy apparatus and method for implementing network management
CN102694675A (en) * 2011-03-25 2012-09-26 中兴通讯股份有限公司 Asynchronous communication method and device based on SNMP (Simple Network Management Protocol)
CN104468172A (en) * 2013-09-25 2015-03-25 中兴通讯股份有限公司 Acquisition adapter management method and system
CN106301838A (en) * 2015-05-26 2017-01-04 国家电网公司 A kind of transmission network Unified Network Management based on SNMP
CN111798345A (en) * 2020-07-03 2020-10-20 四川坤卫科技有限公司 Patent-sharing information processing system, method, storage medium, and computer program

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001333072A (en) * 2000-05-19 2001-11-30 Toyo Commun Equip Co Ltd Snmp network management system and method
US20040214576A1 (en) * 2003-04-28 2004-10-28 Chantry Networks Inc. Wireless network communication system and method
CN1929486A (en) * 2006-09-22 2007-03-14 华为技术有限公司 Communication business processing system and method
CN101321086A (en) * 2007-06-08 2008-12-10 华为技术有限公司 Connecting equipment management method and connecting equipment, management equipment and communication system
CN101355453A (en) * 2008-09-08 2009-01-28 创新科存储技术(深圳)有限公司 Operation management maintenance proxy apparatus and method for implementing network management
CN102694675A (en) * 2011-03-25 2012-09-26 中兴通讯股份有限公司 Asynchronous communication method and device based on SNMP (Simple Network Management Protocol)
CN104468172A (en) * 2013-09-25 2015-03-25 中兴通讯股份有限公司 Acquisition adapter management method and system
CN106301838A (en) * 2015-05-26 2017-01-04 国家电网公司 A kind of transmission network Unified Network Management based on SNMP
CN111798345A (en) * 2020-07-03 2020-10-20 四川坤卫科技有限公司 Patent-sharing information processing system, method, storage medium, and computer program

Also Published As

Publication number Publication date
CN112887153B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
US7716355B2 (en) Method and apparatus for processing simple network management protocol (SNMP) requests for bulk information
US7610343B2 (en) Presence data management method
JP4509916B2 (en) SNMP-based network management apparatus and method
JP3439337B2 (en) Network management system
CN108427619B (en) Log management method and device, computing equipment and storage medium
CN111314450B (en) Data transmission method and device, electronic equipment and computer storage medium
CN111757353B (en) Network data processing method and device in 5G core network
CN110851082B (en) Method for storing container butt-jointed optical fiber network
US8387068B2 (en) Method and device for managing object instance label
US8433768B1 (en) Embedded model interaction within attack projection framework of information system
CN110781149A (en) Method, device, equipment and storage medium for managing live broadcast room information
CN101848110B (en) TR069 network management method and equipment
JP2000252986A (en) Communication apparatus and communication method
CN112887153B (en) SNMP management system
WO1999034557A1 (en) Method and system for software version management in a network management system
US20050188380A1 (en) Cache control device, and method and computer program for the same
CN112637037B (en) Cross-region container communication system, method, storage medium and computer equipment
CN110019113B (en) Database service processing method and database server
CN110019259B (en) Data updating method, device and storage medium of distributed index service engine
US6622146B1 (en) System managing method and apparatus for decreasing a load applied to a common processing unit
US9077612B2 (en) Method for managing configuration information of an outsourced part, and method and system for managing an alarm of an outsourced part
CN101478425B (en) Method and system for network management proxy
US7548965B2 (en) System and method for organizing network management information
CN116192937B (en) Service implementation method, system, medium and device in Kubernetes cluster system
CN113626105B (en) SDK system of mobile terminal mixed mode and mobile device

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
GR01 Patent grant
GR01 Patent grant