[go: up one dir, main page]

CN105634800A - Data storage maintenance method based on SNMP and SQLite - Google Patents

Data storage maintenance method based on SNMP and SQLite Download PDF

Info

Publication number
CN105634800A
CN105634800A CN201510993585.6A CN201510993585A CN105634800A CN 105634800 A CN105634800 A CN 105634800A CN 201510993585 A CN201510993585 A CN 201510993585A CN 105634800 A CN105634800 A CN 105634800A
Authority
CN
China
Prior art keywords
snmp
sqlite
equipment information
access
data
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
CN201510993585.6A
Other languages
Chinese (zh)
Other versions
CN105634800B (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.)
Beijing Microelectronic Technology Institute
Mxtronics Corp
Original Assignee
Beijing Microelectronic Technology Institute
Mxtronics Corp
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 Beijing Microelectronic Technology Institute, Mxtronics Corp filed Critical Beijing Microelectronic Technology Institute
Priority to CN201510993585.6A priority Critical patent/CN105634800B/en
Publication of CN105634800A publication Critical patent/CN105634800A/en
Application granted granted Critical
Publication of CN105634800B publication Critical patent/CN105634800B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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]
    • 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/024Standardisation; Integration using relational databases for representation of network management data, e.g. managing via structured query language [SQL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Computer And Data Communications (AREA)

Abstract

一种基于SNMP和SQLite的数据存储维护方法,首先使用SQLite构建设备信息库,并编写SQLite数据库访问接口且进行封装,令SNMP网络管理端根据获取或设置被管理设备指令生成SNMP数据包,然后在SNMP代理端数据包得到SNMP命令、SNMP参数,最后根据SNMP命令、SNMP参数判断访问权限等级、修改或增加设备信息,直至完成数据存储维护。本发明与现有技术相比,在SNMP代理服务的基础上面添加了对SQLite访问的功能,实现了对被管理设备信息的灵活存储、修改或维护,并且通过SQLite数据库可以让arm-linux平台其它应用程序进行实时共享。

A data storage and maintenance method based on SNMP and SQLite. Firstly, SQLite is used to build a device information base, and the SQLite database access interface is written and encapsulated, so that the SNMP network management terminal generates SNMP data packets according to the command of obtaining or setting the managed device, and then in the The SNMP agent data packet gets SNMP commands and SNMP parameters, and finally judges the access authority level according to the SNMP commands and SNMP parameters, modifies or adds device information, until the data storage maintenance is completed. Compared with the prior art, the present invention adds the function of SQLite access on the basis of SNMP proxy service, realizes the flexible storage, modification or maintenance of managed device information, and can make arm-linux platform other application for real-time sharing.

Description

一种基于SNMP和SQLite的数据存储维护方法A Data Storage Maintenance Method Based on SNMP and SQLite

技术领域technical field

本发明涉及数据存储、管理领域,特别是一种基于SNMP和SQLite的数据存储维护方法。The invention relates to the field of data storage and management, in particular to a data storage and maintenance method based on SNMP and SQLite.

背景技术Background technique

随着网络应用和网络设备的日益普及,网络设备越来越多,而且许多设备都是来自不同的厂家,网络的复杂性在不断增长,因此网络信息、网络设备信息的存储、管理查询问题也就越来越重要。大多数公司每年都要进行大量网络设备盘点、资产调整等工作。以通讯运营商为例,运营商每年除需要进行大量网路设备盘点外,同时还有数以十万计的新增设备并网运行,从而造成其设备调动管理、存储和资产清查工作异常艰巨,而且由于资产具有可移动性,因此存储管理网络信息的设备或系统也需要有可移动性。With the increasing popularity of network applications and network devices, there are more and more network devices, and many devices are from different manufacturers. The complexity of the network is increasing, so the storage and management query of network information and network device information is also becoming more and more important. becomes more and more important. Most companies have to carry out a large number of network equipment inventory and asset adjustments every year. Taking communication operators as an example, operators not only need to carry out a large number of network equipment inventory every year, but also have hundreds of thousands of new equipment connected to the network, which makes their equipment mobilization management, storage and asset inventory work extremely difficult. And because assets are mobile, the devices or systems that store and manage network information also need to be mobile.

SNMP是Internet工程任务组IETF制定的网络管理协议,它简单而易于实现,是遵循管理/代理进模式(Manager-Agent)的通信协议,其网络管理参考模型如图1所示,包括SNMP网络管理端(SNMPManager)、SNMP代理端(SNMPAgent),两者之间通过SNMP协议进行通信。虽然SNMP网络管理模型可以实时、准确的反应被管理设备的信息,但是SNMP代理端获得被管理设备信息后,无法提供一种高效、便捷的数据存储、管理、查询服务,这在嵌入式领域显得尤为不足,因此,代理端本地的其它应用就无法方便的共享SNMP代理获得的数据,因此需要一种能够在线及时快速、安全有效的存储、查询或管理所需数据的技术。SNMP is a network management protocol formulated by the Internet Engineering Task Force IETF. It is simple and easy to implement. It is a communication protocol that follows the management/agent mode (Manager-Agent). Its network management reference model is shown in Figure 1, including SNMP network management Terminal (SNMPManager), SNMP agent terminal (SNMPAgent), communicate through SNMP protocol. Although the SNMP network management model can reflect the information of the managed devices in real time and accurately, after the SNMP agent obtains the information of the managed devices, it cannot provide an efficient and convenient data storage, management, and query service. Especially insufficient, therefore, other local applications on the agent side cannot conveniently share the data obtained by the SNMP agent, so a technology that can store, query or manage the required data online is needed in a timely, fast, safe and effective manner.

发明内容Contents of the invention

本发明解决的技术问题是:克服现有技术的不足,提供了一种通过在SNMP代理端添加对设备信息SQLite数据库及SQLite数据库访问接口,实现了被管理设备信息的灵活修改或维护的基于SNMP和SQLite的数据存储维护方法。The technical problem solved by the present invention is: to overcome the deficiencies in the prior art, and to provide a SNMP-based SNMP system that realizes flexible modification or maintenance of managed device information by adding an SQLite database and an SQLite database access interface for device information at the SNMP agent end. and SQLite's data storage maintenance methods.

本发明的技术解决方案是:一种基于SNMP和SQLite的数据存储维护方法,包括如下步骤:Technical solution of the present invention is: a kind of data storage maintenance method based on SNMP and SQLite, comprises the steps:

(1)通过SNMP代理端获取被管理设备的设备信息并依次存储到SQLite数据库中,进而构建得到设备信息库,所述的设备信息的属性包括被管理设备的网络接口工作状态、软件资源、硬件资源、访问权限等级、标识符、描述信息,其中,描述信息包括数据库名、表名、数据所在行、数据所在列、数据缓冲区首地址;所述的SQLite数据库设置在SNMP代理端,SNMP代理端、SQLite数据库均工作在arm-linux环境下;(1) Obtain the device information of the managed device through the SNMP agent and store it in the SQLite database in turn, and then construct the device information library. The attributes of the device information include the network interface working status, software resources, and hardware of the managed device Resource, access authority level, identifier, description information, wherein, description information includes database name, table name, data row, data row, data buffer head address; described SQLite database is set on SNMP agent end, SNMP agent Both the client and the SQLite database work in the arm-linux environment;

(2)编写SQLite数据库访问函数并进行封装得到SQLite访问接口,然后将SQLite访问接口通过arm-linux交叉工具链编译成动态链接库,将动态链接库移植到arm-linux平台;所述的SQLite访问接口包括读SQLite访问接口、写SQLite访问接口;(2) Write the SQLite database access function and encapsulate to obtain the SQLite access interface, then the SQLite access interface is compiled into a dynamic link library by the arm-linux cross tool chain, and the dynamic link library is transplanted to the arm-linux platform; the SQLite access The interface includes reading SQLite access interface and writing SQLite access interface;

(3)监测SNMP网络管理端,当SNMP网络管理端向SNMP代理端发送获取或设置被管理设备指令时,令SNMP网络管理端根据获取或设置被管理设备指令生成SNMP数据包并发送;(3) monitor the SNMP network management terminal, when the SNMP network management terminal sends to the SNMP agent terminal to obtain or set the managed device instruction, make the SNMP network management terminal generate the SNMP packet and send it according to the obtained or set managed device instruction;

(4)在SNMP数据包到达SNMP代理端所在arm-linux平台后,解析SNMP数据包中的IP协议、UDP协议,将SNMP数据包的链路层、网络层、传输层剥离得到应用层的SNMP协议包;(4) After the SNMP data packet arrives at the arm-linux platform where the SNMP agent is located, analyze the IP protocol and UDP protocol in the SNMP data packet, and strip the link layer, network layer, and transport layer of the SNMP data packet to obtain the SNMP of the application layer protocol package;

(5)使SNMP代理端根据SNMP管理协议、BER解码规则解析SNMP协议包得到SNMP命令、SNMP参数;所述的SNMP命令包括替换、增加;所述的SNMP参数包括访问权限、需要修改的设备信息标示符或修改后设备信息属性;(5) make SNMP agent end analyze SNMP protocol bag according to SNMP management protocol, BER decoding rule and obtain SNMP command, SNMP parameter; Described SNMP command comprises replacement, increase; Described SNMP parameter comprises access authority, equipment information that needs to be revised Identifier or modified device information attribute;

(6)如果当前SNMP参数访问权限等级低于设备信息中的访问权限等级,则转到步骤(3)直至数据存储维护结束,如果当前SNMP参数访问权限等级不低于设备信息中的访问权限等级,则令SNMP代理端根据SNMP参数标示符使用动态链接库中的读访问接口遍历SQLite数据库中存储的所有设备信息,得到当前SNMP参数对应的设备信息的数据缓冲区首地址;(6) If the current SNMP parameter access authority level is lower than the access authority level in the device information, go to step (3) until the data storage maintenance is completed, if the current SNMP parameter access authority level is not lower than the access authority level in the device information , then make the SNMP agent use the read access interface in the dynamic link library to traverse all the device information stored in the SQLite database according to the SNMP parameter identifier, and obtain the data buffer first address of the device information corresponding to the current SNMP parameter;

(7)如果当前SNMP命令为替换,则根据步骤(6)得到的数据缓冲区首地址访问当前设备信息,并使用修改的设备属性替换当前设备信息中的对应属性,如果当前SNMP命令为增加,则根据步骤(6)得到的数据缓冲区首地址访问当前设备信息,并将修改的设备属性增加至当前设备信息中的对应属性后,转到步骤(3)直至数据存储维护结束。(7) If the current SNMP command is to replace, then access the current device information according to the first address of the data buffer obtained in step (6), and use the modified device attribute to replace the corresponding attribute in the current device information, if the current SNMP command is to increase, Then access the current device information according to the first address of the data buffer obtained in step (6), and after adding the modified device attribute to the corresponding attribute in the current device information, go to step (3) until the data storage maintenance ends.

所述的设备信息为对象类型。The device information is an object type.

所述的SQLite数据库访问函数为使用C语言编写。The SQLite database access function is written in C language.

本发明与现有技术相比的优点在于:The advantage of the present invention compared with prior art is:

(1)本发明在SNMP代理服务的基础上面添加了对SQLite访问的功能,实现了将获得的被管理设备信息进行灵活的数据存储、修改或维护,并且通过SQLite数据库可以让arm-linux平台其它应用程序进行实时共享;(1) The present invention has added the function that SQLite visits on the basis of SNMP proxy service, has realized that the information of the managed equipment that will be obtained is carried out flexible data storage, modification or maintenance, and can make arm-linux platform other by SQLite database applications for real-time sharing;

(2)本发明通过动态链接的方式可以灵活的加载、卸载SQLite访问数据库的功能,从而可以灵活的配置SNMP代理端服务器的大小,适用于嵌入式资源有限的特点;(2) the present invention can flexibly load, unload the function of SQLite access database by the mode of dynamic link, thereby can flexibly configure the size of SNMP agent end server, be applicable to the limited characteristic of embedded resource;

(3)本发明通过引入SQLite数据库,SNMP代理端或者其它应用程序可以方便的实现对获取到的信息进行数据存储、维护。(3) By introducing the SQLite database in the present invention, the SNMP agent or other application programs can conveniently implement data storage and maintenance of the acquired information.

附图说明Description of drawings

图1为本发明中SNMP管理端/代理端模型示意图;Fig. 1 is the schematic diagram of SNMP management end/agent end model among the present invention;

图2为本发明一种基于SNMP和SQLite的数据存储维护方法原理流程图。Fig. 2 is a principle flowchart of a data storage maintenance method based on SNMP and SQLite in the present invention.

具体实施方式detailed description

SQLite是一种便携式轻量级数据库,为可移动式工作平台提供了一种紧凑的、便捷的、高效的、可靠的数据存储、管理、查询服务,因此,本发明针对现有技术的不足,将SNMP协议、SQLite数据库结合在一起,以完成对设备信息等数据的准确、快速读取、存储、查询和管理,下面结合附图对本发明进行详细说明。SQLite is a kind of portable lightweight database, provides a kind of compact, convenient, efficient, reliable data storage, management, query service for mobile working platform, therefore, the present invention is aimed at the deficiencies in the prior art, The SNMP protocol and the SQLite database are combined to complete accurate and fast reading, storage, query and management of equipment information and other data. The present invention will be described in detail below in conjunction with the accompanying drawings.

如图2所示,本发明方法在linux环境下实现基本的SNMP代理服务,然后在SNMP代理服务上面嵌入SQLite数据库访问接口,通过SNMP协议、SQLite数据库访问接口将被管理设备信息存储在SQLite数据库,并可以随时进行访问、修改,具体实现步骤如下As shown in Figure 2, the inventive method realizes basic SNMP agent service under linux environment, then embeds SQLite database access interface above SNMP agent service, by SNMP protocol, SQLite database access interface, managed equipment information is stored in SQLite database, And can be accessed and modified at any time, the specific implementation steps are as follows

(1)获取被管理设备的设备信息并建立设备信息库,设备信息库包括被管理设备的相关信息,比如:网络接口的工作状态、被管理设备的软硬件资源等,在设备信息库里面采用对象类型(objecttype)描述被管理设备的信息,描述内容包括被管理对象文本名、被管理对象语法属性、被管理对象语意描述、被管理对象访问权限、被管理对象实现要求等。(1) Obtain the device information of the managed device and establish a device information database. The device information database includes the relevant information of the managed device, such as: the working status of the network interface, the software and hardware resources of the managed device, etc., which are used in the device information database. The object type describes the information of the managed device, and the description includes the text name of the managed object, the grammatical attribute of the managed object, the semantic description of the managed object, the access right of the managed object, and the implementation requirements of the managed object, etc.

SNMP管理的操作对象是设备信息的实例,设备信息库通过对象类型标识符唯一确定一个被管理设备对象的实例,被管理对象实例的标识符形式如下:The operation object managed by SNMP is an instance of device information. The device information library uniquely determines an instance of a managed device object through the object type identifier. The identifier of the managed object instance is in the following form:

对象实例标识符=被管理对象标识符+可变部分Object instance identifier = managed object identifier + variable part

被管理对象标识符采用Internet地址授权委员会统一管理的OID树下面的private分支,可变部分根据所描述的被管理设备信息的数据类型进行。例如,某个资产申请到了private分支下的42714分支,节点名称为asset,该设备可以作为网关和终端使用,具有读写权限,是snmp代理必须实现的对象,那么可以采用如下语句The managed object identifier adopts the private branch under the OID tree uniformly managed by the Internet Address Authorization Committee, and the variable part is performed according to the data type of the described managed device information. For example, an asset has been applied to the 42714 branch under the private branch, and the node name is asset. This device can be used as a gateway and terminal, has read and write permissions, and is an object that must be implemented by the snmp agent. Then the following statement can be used

(2)根据设备信息库中被管理设备的属性描述信息,编写C语言代码,实现对被管理设备实例的访问。根据被管理设备的属性,为每个被管理设备构建一个包含被管理对象属性的结构体,并通过这个结构体,把被管理设备的信息做成一个链表,并构造一个函数assetTable_handler对链表中的结构体进行遍历。(2) According to the attribute description information of the managed device in the device information database, write C language code to realize the access to the managed device instance. According to the properties of the managed devices, construct a structure containing the properties of the managed objects for each managed device, and through this structure, make the information of the managed devices into a linked list, and construct a function assetTable_handler The structure is traversed.

(3)SNMP服务添加SQLite函数库访问功能,利用C语言编写SQLite数据库访问函数,将其封装成接口函数。将编写的SQLite接口函数通过arm-linux交叉工具链编译成动态链接库。当步骤(2)中的请求对象确定后,就可以获得被请求对象在SQLite中的表名、行、列等信息。根据这些信息SNMP服务为SQLite接口函数提供被请求对象所在的数据库名、表名、数据所在表的行和列、以及存放数据内容的缓冲区首地址,并且打开SQLite数据库、访问被请求对象。(3) The SNMP service adds the SQLite function library access function, uses the C language to write the SQLite database access function, and encapsulates it into an interface function. Compile the written SQLite interface function into a dynamic link library through the arm-linux cross tool chain. When the request object in step (2) is determined, information such as the table name, row, and column of the requested object in SQLite can be obtained. According to these information, the SNMP service provides the SQLite interface function with the database name, table name, row and column of the table where the data is located, and the first address of the buffer where the data content is stored, and opens the SQLite database to access the requested object.

(4)将步骤(2)和步骤(3)编写的C语言代码放入NET-SNMP软件包使用arm-gcc交叉工具链编译链接,将编译链接得到的服务移植到ARM-LINUX平台下,将步骤(3)生成的动态链接库移植到arm-linux平台的指定路径下。(4) Put the C language code written in step (2) and step (3) into the NET-SNMP software package and use the arm-gcc cross tool chain to compile and link, and transplant the service obtained by compiling and linking to the ARM-LINUX platform, and The dynamic link library generated in step (3) is transplanted to the specified path of the arm-linux platform.

SNMP代理端开始工作后,首先初始化被管理设备的对象实例标识符,使其在SNMP管理中能够被唯一锁定。然后将步骤(2)中编写的数据检索函数asset_handler()注册到SNMP代理服务中,并且获得步骤(2)中编写的被管理信息属性链表的首地址。当SNMP网络管理端向SNMP代理端发送请求时,SNMP请求首先通过底层的网络接口传送到嵌入式linux操作系统。Linux操作系统解析SNMP数据包中的IP协议和UDP协议,将数据包的链路层、网络层和传输层从接收到的数据包中剥离出来,得到应用层的SNMP协议包,并将SNMP包传递给应用层的SNMP代理端,SNMP代理端根据SNMP管理协议和BER解码规则解析SNMP数据包得到SNMP命令和参数。After the SNMP agent starts working, it first initializes the object instance identifier of the managed device so that it can be uniquely locked in SNMP management. Then register the data retrieval function asset_handler() written in step (2) into the SNMP agent service, and obtain the first address of the managed information attribute linked list written in step (2). When the SNMP network management end sends a request to the SNMP agent end, the SNMP request is first transmitted to the embedded linux operating system through the underlying network interface. The Linux operating system parses the IP protocol and UDP protocol in the SNMP data packet, strips the link layer, network layer and transport layer of the data packet from the received data packet, obtains the SNMP protocol packet of the application layer, and converts the SNMP packet Pass it to the SNMP agent of the application layer, and the SNMP agent analyzes the SNMP data packet according to the SNMP management protocol and BER decoding rules to obtain SNMP commands and parameters.

SNMP代理端得到SNMP命令和参数后实现管理的过程涉及数据存储、检索、操纵等方面。数据检索是指代理端利用注册的检索函数asset_handler()检索SNMP命令请求的是被管理设备的哪个属性,该函数将解析得到的参数同步骤(2)中得到的被管理设备的信息链表中的结构体的内容进行匹配。该函数通过遍历被管理设备结构体组成的链表,将结构体内的元素同接收的参数进行比较,从而确定接收的命令是对管理设备的哪个属性进行操作。代理端根据被操作属性值在SQLite中的存放位置(属性值所在的表名称、在表中所处的行和列),SNMP代理调用步骤(3)中编写SQLite库函数打开SQLite数据库。数据的操纵涉及到对请求命令的响应,根据SNMP代理端解析SNMP数据包得到SNMP命令对SNMP代理端发出的请求类别(读请求还是写请求)。根据SNMP管理端的请求类别分别调用读SQLite数据库接口函数和写SQLite数据库接口函数完成不同的操作。SNMP代理根据属性值在SQLite中的位置向被调用的API提供位置参数,进而实现在SNMP代理端对SQLite的访问。After the SNMP agent receives SNMP commands and parameters, the management process involves data storage, retrieval, manipulation and other aspects. Data retrieval means that the agent uses the registered retrieval function asset_handler() to retrieve which attribute of the managed device the SNMP command requests. The contents of the structure are matched. This function traverses the linked list composed of the managed device structure, and compares the elements in the structure with the received parameters, so as to determine which attribute of the managed device the received command operates on. The agent end is according to the storage location (the table name at the attribute value place, the row and column in the table) of the operated attribute value in SQLite, and the SNMP agent calls the SQLite library function in step (3) to open the SQLite database. The manipulation of data involves the response to the request command, and the request category (read request or write request) sent by the SNMP command to the SNMP agent is obtained by analyzing the SNMP data packet according to the SNMP agent. According to the request category of the SNMP management terminal, the function of reading the SQLite database interface and writing the interface function of the SQLite database are respectively called to complete different operations. The SNMP agent provides location parameters to the called API according to the location of the attribute value in SQLite, and then realizes the access to SQLite on the SNMP agent side.

对于SNMP代理创建的SQLite数据库具有共享性。即对于arm-linux本地平台上面的其它应用程序同样可以通过加装步骤(3)生成的动态链接库对SQLite数据库进行访问,从而读取或者更新数据库的设备信息,达到共享SNMP代理获得的设备信息的目的。The SQLite database created by the SNMP agent is shared. That is, other applications on the arm-linux local platform can also access the SQLite database by installing the dynamic link library generated in step (3), thereby reading or updating the device information of the database, so as to share the device information obtained by the SNMP agent the goal of.

另外,如果由于某种原因SNMP服务端不再需要访问数据库的功能,出于节省嵌入式平台资源的考虑,可以在arm-linux平台上去掉步骤(3)生成的动态链接库。In addition, if for some reason the SNMP server no longer needs the function of accessing the database, for the sake of saving embedded platform resources, the dynamic link library generated in step (3) can be removed on the arm-linux platform.

本发明说明书中未作详细描述的内容属本领域技术人员的公知技术。The content that is not described in detail in the description of the present invention belongs to the well-known technology of those skilled in the art.

Claims (3)

1. the data storage system maintenance method based on SNMP and SQLite, it is characterised in that comprise the steps:
(1) obtain the equipment information of managed devices by SNMP agent end and it is stored in SQLite database successively, and then structure obtains equipment information storage, the attribute of described equipment information comprises the network interface working order of managed devices, software resource, hardware resource, access permission level, identifier, descriptor, wherein, descriptor comprises data library name, table name, data are expert at, data column, first address, data buffer; Described SQLite database is arranged on SNMP agent end, under SNMP agent end, SQLite database are all operated in arm-linux environment;
(2) write SQLite database access function and carry out encapsulation and obtain SQLite access interface, then SQLite access interface is compiled into dynamic link storehouse by arm-linux cross tool chain, arm-linux platform is transplanted in dynamic link storehouse; Described SQLite access interface comprises reading SQLite access interface, writes SQLite access interface;
(3) monitor SNMP network management terminal, when SNMP network management terminal obtains to the transmission of SNMP agent end or arranges managed devices instruction, make SNMP network management terminal that according to acquisition or managed devices instruction generation SNMP data packet send is set;
(4) after SNMP data packet arrives SNMP agent end place arm-linux platform, resolve the IP agreement in SNMP data packet, udp protocol, the link layer of SNMP data packet, network layer, transport layer are peeled off the snmp protocol bag of the layer that is applied;
(5) SNMP agent end is made to decode rule parsing snmp protocol bag obtain SNMP order, SNMP parameter according to snmp management agreement, BER; Described SNMP order comprises replacement, increases; Described SNMP parameter comprises access rights, the equipment information indicating of needs amendment accords with or equipment information attribute after amendment;
(6) if current SNMP parameter access authority grade is lower than the access permission level in equipment information, then forward step (3) to until data storage system maintenance terminates, if the access permission level that current SNMP parameter access authority grade is not less than in equipment information, then make SNMP agent end use all devices information stored in the traversal SQLite database of the reading access interface in dynamic link storehouse according to SNMP parameter indexing symbol, obtain the first address, data buffer of equipment information corresponding to current SNMP parameter;
(7) if current SNMP order is for replacing, current equipment information is accessed in the first address, data buffer then obtained according to step (6), and the device attribute using amendment replaces the corresponding attribute in current equipment information, if current SNMP order is for increasing, current equipment information is accessed in the first address, data buffer then obtained according to step (6), and after the corresponding attribute being increased in current equipment information by the device attribute of amendment, forward step (3) to until data storage system maintenance terminates.
2. a kind of data storage system maintenance method based on SNMP and SQLite according to claim 1, it is characterised in that: described equipment information is object type.
3. a kind of data storage system maintenance method based on SNMP and SQLite according to claim 1 and 2, it is characterised in that: described SQLite database access function is write for using C language.
CN201510993585.6A 2015-12-25 2015-12-25 A kind of data storage system maintenance method based on SNMP and SQLite Expired - Fee Related CN105634800B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510993585.6A CN105634800B (en) 2015-12-25 2015-12-25 A kind of data storage system maintenance method based on SNMP and SQLite

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510993585.6A CN105634800B (en) 2015-12-25 2015-12-25 A kind of data storage system maintenance method based on SNMP and SQLite

Publications (2)

Publication Number Publication Date
CN105634800A true CN105634800A (en) 2016-06-01
CN105634800B CN105634800B (en) 2018-09-11

Family

ID=56049338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510993585.6A Expired - Fee Related CN105634800B (en) 2015-12-25 2015-12-25 A kind of data storage system maintenance method based on SNMP and SQLite

Country Status (1)

Country Link
CN (1) CN105634800B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656601A (en) * 2016-12-23 2017-05-10 哈尔滨理工大学 Embedded remote agent system based on SNMP
CN119128021A (en) * 2024-08-14 2024-12-13 上海弘连网络科技有限公司 Data extraction method and system based on SQLite3 eigenvalue-based memory retrieval database

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040204778A1 (en) * 2003-01-06 2004-10-14 Harish Lalapeth Method for persisting SNMP MIB data in files
US20090049163A1 (en) * 2007-08-17 2009-02-19 Matthew Douglas Love Dynamically typed extensible mib for snmp agents
CN101521592A (en) * 2008-02-29 2009-09-02 北大方正集团有限公司 Method and device for establishing the SNMP agent of printer
CN102215132A (en) * 2011-06-16 2011-10-12 奥维通信股份有限公司 Embedded SNMP (Simple Network Management Protocol) management end data collecting device, system and method based on database
CN105187244A (en) * 2015-08-21 2015-12-23 成都广达新网科技股份有限公司 Access management system of digital communication equipment supporting multiple management modes

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040204778A1 (en) * 2003-01-06 2004-10-14 Harish Lalapeth Method for persisting SNMP MIB data in files
US20090049163A1 (en) * 2007-08-17 2009-02-19 Matthew Douglas Love Dynamically typed extensible mib for snmp agents
CN101521592A (en) * 2008-02-29 2009-09-02 北大方正集团有限公司 Method and device for establishing the SNMP agent of printer
CN102215132A (en) * 2011-06-16 2011-10-12 奥维通信股份有限公司 Embedded SNMP (Simple Network Management Protocol) management end data collecting device, system and method based on database
CN105187244A (en) * 2015-08-21 2015-12-23 成都广达新网科技股份有限公司 Access management system of digital communication equipment supporting multiple management modes

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ARMAN ROOHI; KHASHAYAR RAEISIFARD; SUHAIMI IBRAHIM: ""An application for management and monitoring the data centers based on SNMP"", 《2014 IEEE STUDENT CONFERENCE ON RESEARCH AND DEVELOPMENT》 *
苏智勇,曲海平,冯硕: ""基于EVMS和SNMP的存储管理框架"", 《计算机工程》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656601A (en) * 2016-12-23 2017-05-10 哈尔滨理工大学 Embedded remote agent system based on SNMP
CN119128021A (en) * 2024-08-14 2024-12-13 上海弘连网络科技有限公司 Data extraction method and system based on SQLite3 eigenvalue-based memory retrieval database

Also Published As

Publication number Publication date
CN105634800B (en) 2018-09-11

Similar Documents

Publication Publication Date Title
CN105763426B (en) A kind of internet of things service processing system based on multi-protocol instant messaging system
US8627442B2 (en) Hierarchical rule development and binding for web application server firewall
CN109510846A (en) API Calls system, method, apparatus, electronic equipment and storage medium
US20120079461A1 (en) Extensible device object model
US10382265B1 (en) Reversible yang-based translators
CN104461567A (en) Method and system for releasing software package
CN104184826A (en) Multi-data-center storage environment managing method and system
CN103414762B (en) cloud backup method and device
KR102226915B1 (en) Method, apparatus and computer program for operating the flow rules database in software defined network
CN110334545B (en) SQL-based permission control method and device and electronic equipment
CN107665237A (en) Data structure sorter, the distribution subscription system of unstructured data and method
Copie et al. Benchmarking cloud databases for the requirements of the internet of things
CN105824944B (en) A kind of XML configuration data maintaining method and system based on scripting language
CN103957174A (en) Method for semantic switch loose coupling system to process information
US7127721B2 (en) Core object model for network management configuration applications in telecommunication systems
CN105634800B (en) A kind of data storage system maintenance method based on SNMP and SQLite
CN1160971C (en) Command storage and command interpretation method for router operation maintenance and configuration commands
CN108989406A (en) Software shelf realization method and system based on micro services
CN103957173A (en) Semantic switch
CN113590190A (en) Dependency tree generation method, device and equipment
US10970316B1 (en) Maintaining a class hierarchy of an object-oriented data model using shared columns and/or overflow tables
CN100358297C (en) Method for set-up artificial equipment agency
CN111711695A (en) Distributed equipment management system based on cloud platform
CN116501482A (en) Cloud computing management system, cloud computing management device, readable storage medium and computing equipment
US9652264B2 (en) Methods, systems, and computer readable media for providing a unified framework to support diverse data generation engines

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180911

Termination date: 20181225