CN101170451A - A device management method and a device agent system - Google Patents
A device management method and a device agent system Download PDFInfo
- Publication number
- CN101170451A CN101170451A CNA2007101947704A CN200710194770A CN101170451A CN 101170451 A CN101170451 A CN 101170451A CN A2007101947704 A CNA2007101947704 A CN A2007101947704A CN 200710194770 A CN200710194770 A CN 200710194770A CN 101170451 A CN101170451 A CN 101170451A
- Authority
- CN
- China
- Prior art keywords
- snmp
- equipment
- message
- sxp
- request message
- 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.)
- Pending
Links
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
Description
技术领域technical field
本发明涉及计算机领域,尤其涉及一种设备管理方法及一种设备代理系统。The invention relates to the field of computers, in particular to an equipment management method and an equipment agent system.
背景技术Background technique
基于TCP/IP的网络管理包含两个部分:网络管理系统(NetworkManagement System,NMS)和被管设备。网络管理系统上运行管理进程,而代理进程则是驻留在被管设备上的一个进程。管理进程和代理进程之间的通信协议叫做简单网络管理协议(Simple Network Management Protocol,SNMP),SNMP是被广泛接受并投入使用的工业标准,使用该协议的网络管理中,网络管理员通过网络管理系统可以检索到任何节点的信息,然后根据检索到的信息寻找故障的节点,并完成故障诊断、容量规划和报告生成。TCP/IP-based network management consists of two parts: Network Management System (NMS) and managed devices. The management process runs on the network management system, while the agent process is a process residing in the managed device. The communication protocol between the management process and the agent process is called Simple Network Management Protocol (SNMP). SNMP is an industrial standard that is widely accepted and put into use. In network management using this protocol, network administrators manage The system can retrieve the information of any node, and then find the faulty node according to the retrieved information, and complete fault diagnosis, capacity planning and report generation.
现有的SNMP定义了管理进程和代理进程之间交互时的5种报文:The existing SNMP defines 5 types of messages when the management process and the agent process interact:
1、Get request操作:管理进程从代理进程处提取一个或多个参数值。1. Get request operation: The management process extracts one or more parameter values from the agent process.
2、Set request操作:管理进程设置代理进程的一个或多个参数值。2. Set request operation: the management process sets one or more parameter values of the agent process.
3、GetNext request操作:管理进程从代理进程处提取紧跟当前参数值的下一个参数值。3. GetNext request operation: the management process extracts the next parameter value following the current parameter value from the proxy process.
4、Get/Set response操作:代理进程向管理进程返回的一个或多个参数值,或代理进程向管理进程返回的关于Set request操作的响应消息。这个操作是由代理进程发出的。它是前面操作1或2的响应操作。4. Get/Set response operation: one or more parameter values returned by the agent process to the management process, or the response message about the Set request operation returned by the agent process to the management process. This operation is issued by the agent process. It is the response operation of previous operation 1 or 2.
5、Trap操作:代理进程主动发出的报文,通知管理进程有某些事情发生。5. Trap operation: A message sent by the agent process to notify the management process that something has happened.
现有技术一提供的一种简单网络管理方法中,一个NMS需要管理多个设备,每个被管设备包含一个代理进程,并在该代理进程中保存有该设备自身的管理信息库(Management Information Base,MIB),即:各被管设备各自实现SNMP报文的解析并进行相应的响应,因此,NMS管理工作的复杂度高。此外,由于每个代理进程中实现的MIB功能都是固定的,当需要扩展代理进程所支持的MIB时,MIB的更新导致代理进程也必须更新。可见,现有技术一无法在支持不改变原有代理的情况下扩展MIB,即不能实现动态扩展。而许多分布式设备或者由许多独立模块组成的复杂设备上的代理都有动态扩展MIB的需求,若对每个被管设备开发单独的代理进程(扩展各被管设备的MIB),则开发工作重复,效率低。In a simple network management method provided by prior art 1, an NMS needs to manage multiple devices, and each managed device includes an agent process, and the management information base (Management Information Database) of the device itself is stored in the agent process. Base, MIB), that is, each managed device implements the analysis of SNMP messages and responds accordingly. Therefore, the complexity of NMS management work is high. In addition, since the MIB functions implemented in each agent process are fixed, when the MIB supported by the agent process needs to be expanded, the update of the MIB leads to the update of the agent process. It can be seen that the existing technology cannot support MIB expansion without changing the original agent, that is, dynamic expansion cannot be realized. However, agents on many distributed devices or complex devices composed of many independent modules have the requirement of dynamically expanding MIB. If a separate agent process is developed for each managed device (expanding the MIB of each managed device), the development work Duplicate, inefficient.
为了解决现有技术一的缺陷,现有技术二提供一种新的管理方案,其中使用了AgentX协议。AgentX协议定义了一个可扩展SNMP代理的标准体系结构,将SNMP协议处理和MIB访问这两个功能进行了分解,从结构上将网络代理划分为主代理和子代理两个部分:1)一个主代理:负责处理收到的SNMP协议消息,与NMS进行信息交互,但是一般不具备直接访问其管理的设备的MIB的权限;2)若干子代理:各子代理负责访问本地的MIB。主代理进程和子代理进程通过代理进程X协议进行通信。In order to solve the defects of the prior art 1, the prior art 2 provides a new management solution, wherein the AgentX protocol is used. The AgentX protocol defines a standard architecture of an extensible SNMP agent, decomposes the two functions of SNMP protocol processing and MIB access, and divides the network agent into two parts: the main agent and the sub-agent structurally: 1) a main agent : responsible for processing received SNMP protocol messages, and information exchange with NMS, but generally does not have the right to directly access the MIB of the equipment it manages; 2) Several sub-agents: each sub-agent is responsible for accessing the local MIB. The main agent process and the sub-agent process communicate through the agent process X protocol.
如图1所示,在现有技术二提供的方案中,一些被管设备可以既充当主代理又充当子代理:这些设备可以接受NMS的请求命令,而这些请求命令中一部分与这些设备本地的数据有关,另一部分与“连接”至这些设备的其余设备的数据有关:对于与设备本地的数据有关的请求命令,这些设备作为子代理直接应答NMS发送的SNMP消息,对于与“连接”至这些设备的其余设备的数据有关的请求命令,这些设备就以主代理的身份向它们所管理的设备请求数据,再将应答消息传给起所属的NMS。As shown in Figure 1, in the solution provided by the second prior art, some managed devices can act as both the main agent and the sub-agent: these devices can accept the request commands of the NMS, and some of these request commands are related to the local The other part is related to the data of other devices "connected" to these devices: for the request commands related to the local data of the devices, these devices act as sub-agents to directly answer the SNMP messages sent by the NMS, and for the requests related to the "connected" to these devices The other devices of the device request commands related to the data, and these devices request data from the devices they manage as the main agent, and then send the response message to the NMS to which they belong.
由上可见,对于网络管理系统来说,AgentX协议是透明的。AgentX结构通过子代理向主代理的注册实现了代理灵活的动态扩展功能。但是由于主代理只是简单地使用AgentX协议将SNMP消息发送给其管理的设备,因此各子代理也必须关心SNMP协议的细节,子代理开发较困难。此外,由于现有技术二提供的方案中,SNMP消息必须转化成代理进程X消息下发到各个子代理,因此主代理和子代理之间交互频繁、效率低。It can be seen from the above that, for the network management system, the AgentX protocol is transparent. The AgentX structure realizes the agent's flexible and dynamic expansion function through the registration of sub-agents to the main agent. However, since the main agent simply uses the AgentX protocol to send SNMP messages to the devices it manages, each sub-agent must also care about the details of the SNMP protocol, and it is difficult to develop sub-agents. In addition, in the solution provided by prior art 2, SNMP messages must be converted into agent process X messages and sent to each sub-agent, so the interaction between the main agent and the sub-agents is frequent and inefficient.
综上所述,现有技术无法在扩展SNMP的管理范围时,设备不用关心SNMP的实现细节,且网络管理系统对各设备的管理效率低。To sum up, the prior art cannot expand the management range of SNMP, and the device does not need to care about the implementation details of SNMP, and the management efficiency of each device by the network management system is low.
发明内容Contents of the invention
本发明提供一种设备管理方法及一种设备代理系统,用以解决现有技术中存在的在扩展SNMP的管理范围时,设备必须关心SNMP的实现细节且网络管理系统对各设备的管理效率低的问题。The present invention provides a device management method and a device agent system, which are used to solve the problem in the prior art that when expanding the management range of SNMP, the device must care about the implementation details of SNMP and the management efficiency of each device by the network management system is low The problem.
本发明实施例提供的一种设备管理方法,包括:A device management method provided by an embodiment of the present invention includes:
统一代理UA接收并解析网络管理系统NMS发送的简单网络管理协议SNMP请求消息;The unified agent UA receives and parses the simple network management protocol SNMP request message sent by the network management system NMS;
所述UA确定所述SNMP请求消息对应的设备;The UA determines the device corresponding to the SNMP request message;
所述UA将所述SNMP请求消息转换成简单扩展协议SXP请求消息;The UA converts the SNMP request message into a Simple Extended Protocol SXP request message;
所述UA将所述SXP请求消息发送给所述设备;The UA sends the SXP request message to the device;
所述UA获取所述设备返回的SXP响应消息;The UA obtains the SXP response message returned by the device;
所述UA将收到的所述SXP响应消息转换成SNMP响应消息,并发送给所述NMS。The UA converts the received SXP response message into an SNMP response message, and sends it to the NMS.
本发明实施例还提供一种设备代理系统,包括:The embodiment of the present invention also provides a device agent system, including:
简单网络管理协议SNMP消息处理模块,用于接收并解析网络管理系统NMS发送的简单网络管理协议SNMP请求消息,确定所述SNMP请求消息对应的设备;并用于将协议转换模块生成的SNMP响应消息发送给网络管理系统;The simple network management protocol SNMP message processing module is used to receive and analyze the simple network management protocol SNMP request message sent by the network management system NMS, and determine the device corresponding to the SNMP request message; and is used to send the SNMP response message generated by the protocol conversion module to the network management system;
协议转换模块,用于将所述SNMP消息处理模块提供的SNMP请求消息转换成简单扩展协议SXP请求消息;还用于将接口模块返回的SXP响应消息转换成SNMP响应消息;A protocol conversion module is used to convert the SNMP request message provided by the SNMP message processing module into a simple extension protocol SXP request message; it is also used to convert the SXP response message returned by the interface module into an SNMP response message;
接口模块,用于将所述协议转换模块生成的SXP请求消息发送给所述设备,并将所述设备返回的SXP响应消息发送给所述协议转换模块。An interface module, configured to send the SXP request message generated by the protocol conversion module to the device, and send the SXP response message returned by the device to the protocol conversion module.
本发明实施例提供的方案中,UA将网络管理系统侧提供的SNMP消息通过内部协议转换,转换为SXP消息,相对于现有的AgentX协议实现方式,统一代理对设备屏蔽了SNMP消息细节,使得设备的开发更为简单,且UA可以代理多种类型的设备,提高了统一代理的兼容性。In the solution provided by the embodiment of the present invention, the UA converts the SNMP message provided by the network management system side into an SXP message through an internal protocol. Compared with the existing AgentX protocol implementation mode, the unified agent shields the details of the SNMP message for the device, so that The development of equipment is simpler, and UA can act as an agent for various types of equipment, which improves the compatibility of unified agent.
附图说明Description of drawings
图1为现有技术二提供的网络代理结构示意图;FIG. 1 is a schematic diagram of a network proxy structure provided by prior art 2;
图2为本发明实施例提供的某一设备注册到NMS上的方法流程图;FIG. 2 is a flow chart of a method for registering a certain device to an NMS provided by an embodiment of the present invention;
图3为本发明实施例1提供的一种从已注册设备获取参数的管理方法流程图;FIG. 3 is a flowchart of a management method for acquiring parameters from registered devices provided in Embodiment 1 of the present invention;
图4为本发明实施例2提供的一种设置已注册设备的参数的管理方法流程图;FIG. 4 is a flowchart of a management method for setting parameters of registered devices provided by Embodiment 2 of the present invention;
图5为本发明实施例提供的一种设备代理系统结构示意图之一;FIG. 5 is one of the schematic structural diagrams of a device agent system provided by an embodiment of the present invention;
图6为本发明实施例提供的一种设备代理系统结构示意图之二。FIG. 6 is the second structural diagram of a device agent system provided by an embodiment of the present invention.
具体实施方式Detailed ways
本发明实施例提供一种支持简单网络管理协议SNMP的设备代理方法,该方法中,当统一代理(Uniform Agent,UA)处理SNMP请求消息时,将其转化为简单扩展协议(Simple eXtended Protocol,SXP)请求消息发送给设备,使设备无需关心SNMP请求消息的细节。其中,统一代理类似于现有技术二中的主代理,用于接受网络管理系统的网络管理,并用于管理至少一个设备。The embodiment of the present invention provides a device proxy method supporting the Simple Network Management Protocol SNMP, in which method, when the Uniform Agent (UA) processes the SNMP request message, it is converted into a Simple Extended Protocol (Simple eXtended Protocol, SXP ) request message to the device, so that the device does not need to care about the details of the SNMP request message. Wherein, the unified agent is similar to the master agent in the second prior art, and is used to accept network management from the network management system and to manage at least one device.
以下结合附图,具体说明本发明实施例。Embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.
初始时,UA中可以获取到与其相连接的所有设备的MIB信息,然后设备可以通过UA注册到网络管理系统NMS上,以参与网络管理进程。图2所示为某一设备注册到NMS上的方法流程图,具体包括以下步骤:Initially, the UA can obtain the MIB information of all devices connected to it, and then the devices can register with the network management system NMS through the UA to participate in the network management process. Figure 2 shows a flow chart of a method for registering a certain device to the NMS, which specifically includes the following steps:
S21:UA接收设备的SXP注册消息。S21: The UA receives the SXP registration message of the device.
其中,设备通过注册接口向UA发送注册消息。Wherein, the device sends a registration message to the UA through the registration interface.
S22:UA查找并存储该设备的MIB信息。S22: The UA searches for and stores the MIB information of the device.
其中,UA将该设备与其他设备公共的MIB信息加载到设备公共MIB表中存储;此外,UA为该设备的特定MIB文件设定一特定标识并存储。存储时将该设备的特定MIB文件用可扩展标记语言(XML)描述,并为不同设备的特定MIB文件设定不同的特定标识,例如:可以将某个设备的特定MIB文件加载到UA中一个以“Context”为标识的MIB文件中,即对于名称为“Name”的某个设备,UA端存储的该设备对应的特定MIB文件的标识可以为“ContextName”。Wherein, the UA loads the common MIB information of the device and other devices into the common MIB table of the device for storage; in addition, the UA sets a specific identifier for the specific MIB file of the device and stores it. When storing, the specific MIB file of the device is described in Extensible Markup Language (XML), and different specific identifiers are set for the specific MIB files of different devices. For example, the specific MIB file of a certain device can be loaded into a UA In the MIB file identified by "Context", that is, for a certain device named "Name", the identifier of the specific MIB file corresponding to the device stored on the UA end may be "ContextName".
S23:UA将该SXP注册消息转换为SNMP注册消息并发送给其所属的NMS。S23: The UA converts the SXP registration message into an SNMP registration message and sends it to the NMS to which it belongs.
以下以具体实施例详细说明对注册到NMS上的设备进行管理的方法。The method for managing devices registered on the NMS will be described in detail below with specific embodiments.
实施例1Example 1
图3所示为本实施例1提供的一种从已注册设备获取参数的管理方法流程图,具体包括以下步骤:FIG. 3 is a flow chart of a management method for obtaining parameters from registered devices provided in Embodiment 1, which specifically includes the following steps:
S31:UA接收并解析NMS发送的SNMP获取参数请求消息。S31: The UA receives and parses the SNMP parameter acquisition request message sent by the NMS.
其中,SNMP获取参数请求消息(SNMP Get request消息)中包含了NMS指定的特定标识,该特定标识对应于UA中存储的某个设备的特定MIB文件。Wherein, the SNMP get parameter request message (SNMP Get request message) includes a specific identifier specified by the NMS, and the specific identifier corresponds to a specific MIB file of a certain device stored in the UA.
S32:UA确定该SNMP获取参数请求消息对应的设备。S32: The UA determines the device corresponding to the SNMP parameter acquisition request message.
此步骤中,UA在已存储的若干个特定MIB文件中匹配出特定标识与所述SNMP获取/设置参数请求消息中包含的特定标识一致的MIB文件,并将匹配出的MIB文件对应的设备作为所述设备。In this step, UA matches the MIB file whose specific identifier is consistent with the specific identifier contained in the SNMP get/set parameter request message among several stored specific MIB files, and uses the device corresponding to the matched MIB file as the device.
S33:UA将SNMP获取参数请求消息转换成SXP获取参数请求消息。S33: The UA converts the SNMP parameter acquisition request message into an SXP parameter acquisition request message.
此步骤中,在UA中预先定义了SNMP消息和SXP消息的映射关系,其中,可将SNMP Get request消息转换为SXP-Get消息,该消息用于请求从确定出的设备中提取一个或多个参数值。例如,SXP-Get消息为:ContextName,SquenceID,[ObjIdentifys]。In this step, the mapping relationship between SNMP messages and SXP messages is pre-defined in UA, where the SNMP Get request message can be converted into an SXP-Get message, which is used to request to extract one or more parameter value. For example, the SXP-Get message is: ContextName, SquenceID, [ObjIdentifys].
其中,SXP-Get消息中携带了SNMP Get request消息中请求获取的设备参数类型标识。Wherein, the SXP-Get message carries the device parameter type identification requested in the SNMP Get request message.
S34:UA通过调用获取参数接口,将SXP获取参数请求消息发送给确定出的设备。S34: The UA sends the SXP parameter acquisition request message to the determined device by calling the parameter acquisition interface.
其中,SXP-Get消息对应于获取参数接口,例如:若获取参数接口名为“OnGet”,OnGet接口的参数为:ContextName,SquenceID,[ObjIdentify,ObjValue,ErrCode],UA通过调用OnGet接口获取设备的一个或多个参数。Among them, the SXP-Get message corresponds to the parameter acquisition interface. For example, if the parameter acquisition interface name is "OnGet", the parameters of the OnGet interface are: ContextName, SquenceID, [ObjIdentify, ObjValue, ErrCode], and the UA obtains the device information by calling the OnGet interface. one or more parameters.
S35:设备通过调用获取参数响应接口,向UA返回SXP获取参数响应消息。S35: The device returns an SXP parameter acquisition response message to the UA by calling the parameter acquisition response interface.
类似于SNMP响应消息,若步骤S34中发送的SXP请求消息是SXP-Get消息,则设备通过获取参数响应接口向UA返回SXP-Get Response消息。Similar to the SNMP response message, if the SXP request message sent in step S34 is an SXP-Get message, the device returns an SXP-Get Response message to the UA through the parameter response interface.
其中,获取参数响应接口对应于设备的获取参数接口,当UA调用设备的获取参数接口后,设备通过调用获取参数响应接口,将设备自身的所有数据的数据快照发送给UA。例如:获取参数响应接口可为“ReplyGet”,ReplyGet的参数为:ContextName,SquenceID,[ObjIdentifys,ObjValues,ErrCode]。The parameter acquisition response interface corresponds to the parameter acquisition interface of the device. After the UA calls the parameter acquisition interface of the device, the device sends the data snapshot of all the data of the device to the UA by calling the parameter acquisition response interface. For example: the parameter acquisition response interface can be "ReplyGet", and the parameters of ReplyGet are: ContextName, SquenceID, [ObjIdentifys, ObjValues, ErrCode].
S36:UA存储SXP获取参数响应消息中携带的设备的数据快照。S36: The UA stores the data snapshot of the device carried in the SXP acquisition parameter response message.
S37:UA将收到的SXP获取参数响应消息转换成SNMP获取参数响应消息,并组装后返回给网络管理系统。S37: The UA converts the received SXP parameter acquisition response message into an SNMP parameter acquisition response message, assembles it and returns it to the network management system.
此步骤中,UA从S36中存储的设备的数据快照中提取开始时SNMP Getrequest消息中请求获取的设备参数类型标识对应的参数,并根据预先定义的SNMP消息和SXP消息的映射关系,将返回的SXP-Get Response消息(SXP获取参数响应消息)转换为SNMP Get response消息,该响应消息中携带了UA从数据快照中提取的一个或多个参数值。例如,该消息内容为:ContextName,SquenceID,[ObjIdentifys,ObjValues,ErrCode]。此外,将生成的SNMP Getresponse消息组装为SNMP规定格式的报文发送给NMS。In this step, UA extracts the parameters corresponding to the device parameter type identifier requested in the SNMP Getrequest message at the beginning from the data snapshot of the device stored in S36, and according to the predefined mapping relationship between SNMP messages and SXP messages, returns the The SXP-Get Response message (SXP Get Parameter Response Message) is converted into an SNMP Get response message, which carries one or more parameter values extracted by the UA from the data snapshot. For example, the content of the message is: ContextName, SquenceID, [ObjIdentifys, ObjValues, ErrCode]. In addition, assemble the generated SNMP Getresponse message into a message in the format specified by SNMP and send it to the NMS.
图3所示的方法中,由于步骤S35中设备将自身的所有数据的数据快照发送给了UA,因此,当UA收到NMS发送的SNMP GetNext request消息后,无需再次将该消息转换为SXP-GetNext消息更无需通过调用相应接口以获取设备的参数,而只需在步骤S36中保存的数据快照中获取需要获取的设备的数据,然后将获取到的数据生成SNMP GetNextResponse消息并返回给NMS即可。可见,此方法大大减少了UA与设备的交互,相对于现有技术,设备管理效率更高。In the method shown in Figure 3, since the device sends the data snapshot of all its own data to the UA in step S35, after the UA receives the SNMP GetNext request message sent by the NMS, it does not need to convert the message into an SXP- The GetNext message does not need to call the corresponding interface to obtain the parameters of the device, but only needs to obtain the data of the device to be obtained in the data snapshot saved in step S36, and then generate an SNMP GetNextResponse message for the obtained data and return it to the NMS. . It can be seen that this method greatly reduces the interaction between the UA and the device, and compared with the prior art, the device management efficiency is higher.
实施例2Example 2
图4所示为本发明实施例提供的一种设置已注册设备的参数的管理方法流程图,具体包括以下步骤:FIG. 4 is a flowchart of a management method for setting parameters of registered devices provided by an embodiment of the present invention, which specifically includes the following steps:
S41:UA接收并解析NMS发送的SNMP设置参数请求消息。S41: The UA receives and parses the SNMP parameter setting request message sent by the NMS.
S42:UA确定该SNMP设置参数请求消息对应的设备。S42: The UA determines the device corresponding to the SNMP setting parameter request message.
S43:UA将SNMP设置参数请求消息转换成SXP设置参数请求消息。S43: The UA converts the SNMP parameter setting request message into an SXP parameter setting request message.
类似于实施例1,此步骤中,UA中根据预先定义的SNMP消息和SXP消息的映射关系,将SNMP Set request消息转换为SXP-Set消息,该消息用于请求设置设备的一个或多个参数值。例如,SXP-Set消息为:ContextName,SquenceID,[OperationType,ObjIdentifys,ObjValues]。Similar to Embodiment 1, in this step, the UA converts the SNMP Set request message into an SXP-Set message according to the predefined mapping relationship between the SNMP message and the SXP message, and the message is used to request setting one or more parameters of the device value. For example, the SXP-Set message is: ContextName, SquenceID, [OperationType, ObjIdentifys, ObjValues].
其中,SXP-Set消息中携带了SNMP Set request消息中请求设置的设备参数值。Wherein, the SXP-Set message carries the device parameter value requested to be set in the SNMP Set request message.
S44:UA通过调用设置参数接口,将SXP设置参数请求消息发送给确定出的设备。S44: The UA sends an SXP parameter setting request message to the determined device by calling the parameter setting interface.
其中,SXP-Set消息对应于设置参数接口,例如:若设置参数接口名为“OnGet”,且OnSet接口参数为:ContextName,SquenceID,[OperationType,ObjIdentifys,ObjValues],则UA通过调用OnSet接口,设置该设备的一个或多个参数。Among them, the SXP-Set message corresponds to the setting parameter interface, for example: if the setting parameter interface name is "OnGet", and the OnSet interface parameters are: ContextName, SquenceID, [OperationType, ObjIdentifys, ObjValues], then the UA calls the OnSet interface to set One or more parameters of the device.
S45:设备通过调用设置参数响应接口,向UA返回SXP设置参数响应消息。S45: The device returns an SXP parameter setting response message to the UA by calling the parameter setting response interface.
类似于实施例1,若步骤S44中发送的SXP请求消息是SXP-Set消息,则设备通过设置参数响应接口向UA返回SXP-Set Response消息。Similar to Embodiment 1, if the SXP request message sent in step S44 is an SXP-Set message, the device returns an SXP-Set Response message to the UA through the parameter setting response interface.
其中,设置参数响应接口对应于设备的设置参数接口,当UA调用设备的设置参数接口后,设备设置指定的参数,并通过调用设置参数响应接口,将该操作的执行结果发送给UA。例如:设置参数响应接口可为““ReplySet”,ReplySet的参数为:ContextName,SquenceID,[OperationType,ObjIdentifys,ObjValues,ErrCode]。Wherein, the parameter setting response interface corresponds to the parameter setting interface of the device. When the UA calls the parameter setting interface of the device, the device sets the specified parameter, and sends the execution result of the operation to the UA by calling the parameter setting response interface. For example, the setting parameter response interface can be ""ReplySet", and the parameters of ReplySet are: ContextName, SquenceID, [OperationType, ObjIdentifys, ObjValues, ErrCode].
S46:UA将收到的SXP设置参数响应消息转换成SNMP设置参数响应消息,并组装后返回给网络管理系统。S46: The UA converts the received SXP setting parameter response message into an SNMP setting parameter response message, assembles it and returns it to the network management system.
此步骤中,UA根据预先定义的SNMP消息和SXP消息的映射关系,将返回的SXP-Set Response消息(SXP设置参数响应消息)转换为SNMP Setresponse消息,例如,该消息内容为:ContextName,SquenceID,[OperationType,ObjIdentifys,ObjValues,ErrCode]。In this step, the UA converts the returned SXP-Set Response message (SXP setting parameter response message) into an SNMP Setresponse message according to the predefined mapping relationship between SNMP messages and SXP messages. For example, the content of the message is: ContextName, SquenceID, [OperationType, ObjIdentifys, ObjValues, ErrCode].
类似的,根据本发明实施例提供的上述方法,由设备向UA主动上报的Trap消息的传送过程如下:Similarly, according to the above method provided by the embodiment of the present invention, the transmission process of the Trap message actively reported by the device to the UA is as follows:
1、设备通过调用主动上报接口向UA发送SXP-Trap消息。1. The device sends an SXP-Trap message to the UA by calling the active reporting interface.
例如,设备通过调用“Alarm”接口向SDK上报某些信息,该Alarm接口参数为:ContextName,[Trap Contents]。For example, the device reports certain information to the SDK by calling the "Alarm" interface. The parameters of the Alarm interface are: ContextName, [Trap Contents].
2、UA将SXP-Trap消息转换成SNMP-Trap消息,并组装后返回给NMS。2. The UA converts the SXP-Trap message into an SNMP-Trap message, assembles it and returns it to the NMS.
本发明实施例提供的上述方法中,UA将发送给设备的SNMP消息转换为SXP消息,并通过接口调用,对设备屏蔽了SNMP消息的细节,从而减小了设备接受管理的难度;同时UA对设备的兼容性得到提高,可以代理大量不同种类的设备,减小了在设备管理过程中多个设备的重复开发;此外,由于UA在处理SNMP Get request消息的过程中存储了设备的数据快照,因此,当UA收到NMS发送的SNMP GetNext request消息后,可以直接从自身存储的设备的数据快照中获取需要获取的参数并返回给NMS,减少了UA和设备侧的交互,显著提高了设备管理的效率。In the above method provided by the embodiment of the present invention, the UA converts the SNMP message sent to the device into an SXP message, and calls the device through the interface to shield the details of the SNMP message from the device, thereby reducing the difficulty of receiving management for the device; The compatibility of devices is improved, and a large number of different types of devices can be represented, which reduces the repeated development of multiple devices in the process of device management; in addition, because UA stores the data snapshot of devices in the process of processing SNMP Get request messages, Therefore, when the UA receives the SNMP GetNext request message sent by the NMS, it can directly obtain the parameters to be obtained from the data snapshot of the device stored in itself and return it to the NMS, which reduces the interaction between the UA and the device side and significantly improves device management. s efficiency.
对应于本发明实施例提供的设备管理方法,本发明实施例还提供一种设备代理系统,如图5所示,该系统包括:SNMP消息处理模块51、协议转换模块52和接口模块53。其中,各模块功能如下:Corresponding to the device management method provided by the embodiment of the present invention, the embodiment of the present invention also provides a device agent system, as shown in FIG. 5 , the system includes: SNMP
SNMP消息处理模块51,用于接收并解析NMS发送的简单网络管理协议SNMP请求消息,确定所述SNMP请求消息对应的设备;此外,本模块还用于将协议转换模块52生成的SNMP响应消息发送给NMS。The SNMP
协议转换模块52,用于将SNMP消息处理模块51解析出的SNMP请求消息转换成SXP请求消息;此外,本模块还用于将接口模块53返回的SXP响应消息转换成SNMP响应消息。The
接口模块53,用于将协议转换模块52生成的SXP请求消息发送给设备;此外,接口模块53还用于将设备返回的SXP响应消息发送给协议转换模块52。The
如图6所示,上述设备代理系统还可包括:存储处理模块61和MIB信息加载模块62;其中:As shown in Figure 6, the above-mentioned device proxy system may also include: a
接口模块53,还用于向设备提供注册接口,使设备通过调用该注册接口,向存储处理模块61发送SXP注册消息。The
存储处理模块61,用于预先存储所有设备的MIB信息,并根据收到的SXP注册消息,查找到设备的MIB信息并将其发送给MIB信息加载模块62。The
MIB信息加载模块62,还用于将收到的设备的MIB信息中与其他设备公共的MIB信息加载到预先设置的设备公共MIB表中存储,并将设备的特定MIB文件设定一特定标识后存储。The MIB
协议转换模块52,还用于将接口模块53提供的SXP注册消息转换为SNMP注册消息,并发送给SNMP消息处理模块51。The
SNMP消息处理模块51,还用于将收到的SNMP注册消息组装后发送给NMS,此外,还用于在MIB信息加载模块62中存储的若干个特定MIB文件中匹配出特定标识与SNMP请求消息中包含的特定标识一致的MIB文件,并将匹配出的MIB文件对应的设备作为该SNMP请求消息对应的设备。The SNMP
此外,当NMS向图6所示的设备代理系统发送的SNMP消息为SNMP Getrequest消息时,接口模块53将设备返回的携带该设备的数据快照的SXP-GetResponse消息发送给存储处理模块61。In addition, when the SNMP message sent by the NMS to the device agent system shown in FIG. 6 is an SNMP Getrequest message, the
存储处理模块61提取SXP获取参数响应消息中携带的设备的数据快照并存储。The
当SNMP消息处理模块51接收并解析出NMS发送的SNMP GetNextrequest请求消息时,确定SNMP GetNext request请求消息对应的设备,并通知协议转换模块52获取SNMP GetNext request请求消息对应的设备的参数。When the SNMP
协议转换模块52,还用于根据SNMP消息处理模块的通知,从存储处理模块61中存储的设备的数据快照中获取该SNMP GetNext request请求消息请求获取的参数,并生成SNMP GetNextResponse消息。
SNMP消息处理模块51,还用于将SNMP GetNextResponse消息组装后发送给NMS。The SNMP
前面所提供的设备代理系统中,接口模块53可以设置在设备上。In the device proxy system provided above, the
本发明实施例提供的上述设备代理系统也可对设备屏蔽SNMP消息细节,使得设备的开发更为简单,且所述设备代理系统可以代理多种类型的设备。The above-mentioned device agent system provided by the embodiment of the present invention can also shield the details of SNMP messages for the device, so that the development of the device is simpler, and the device agent system can act as an agent for various types of devices.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007101947704A CN101170451A (en) | 2007-12-03 | 2007-12-03 | A device management method and a device agent system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007101947704A CN101170451A (en) | 2007-12-03 | 2007-12-03 | A device management method and a device agent system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101170451A true CN101170451A (en) | 2008-04-30 |
Family
ID=39390930
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2007101947704A Pending CN101170451A (en) | 2007-12-03 | 2007-12-03 | A device management method and a device agent system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101170451A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011015094A1 (en) * | 2009-08-04 | 2011-02-10 | 中兴通讯股份有限公司 | Peer to peer network management system and method for realizing management thereof |
CN102036245A (en) * | 2010-12-03 | 2011-04-27 | 大唐移动通信设备有限公司 | Network element management method and equipment |
WO2012129848A1 (en) * | 2011-04-01 | 2012-10-04 | 中兴通讯股份有限公司 | Method and apparatus for simulating universal serial bus device |
CN101729530B (en) * | 2009-10-30 | 2013-03-20 | 中兴通讯股份有限公司 | Data synchronization method and data synchronization system |
CN103812690A (en) * | 2013-08-06 | 2014-05-21 | 国家电网公司 | Fault diagnosis information transferring and processing method for normalization management interface of device |
CN103840953A (en) * | 2012-11-21 | 2014-06-04 | 中兴通讯股份有限公司 | Remote log real-time acquisition method and system |
CN104022893A (en) * | 2014-04-22 | 2014-09-03 | 烽火通信科技股份有限公司 | Configuration managing method for SNMP redirection with multiple subagents |
CN109905292A (en) * | 2019-03-12 | 2019-06-18 | 北京奇虎科技有限公司 | A terminal device identification method, system and storage medium |
CN109951354A (en) * | 2019-03-12 | 2019-06-28 | 北京奇虎科技有限公司 | A terminal device identification method, system and storage medium |
CN110808847A (en) * | 2019-09-23 | 2020-02-18 | 三维通信股份有限公司 | Method and device for managing DAS (data-based system), electronic device and storage medium |
CN112383408A (en) * | 2020-09-29 | 2021-02-19 | 武汉虹信科技发展有限责任公司 | Management platform end for data format conversion and data format conversion method |
CN113765972A (en) * | 2020-10-27 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Data request response method, apparatus, system, server and storage medium |
-
2007
- 2007-12-03 CN CNA2007101947704A patent/CN101170451A/en active Pending
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011015094A1 (en) * | 2009-08-04 | 2011-02-10 | 中兴通讯股份有限公司 | Peer to peer network management system and method for realizing management thereof |
CN101729530B (en) * | 2009-10-30 | 2013-03-20 | 中兴通讯股份有限公司 | Data synchronization method and data synchronization system |
CN102036245A (en) * | 2010-12-03 | 2011-04-27 | 大唐移动通信设备有限公司 | Network element management method and equipment |
CN102737003B (en) * | 2011-04-01 | 2015-09-16 | 中兴通讯股份有限公司 | A kind of method and device of simulating USB device |
CN102737003A (en) * | 2011-04-01 | 2012-10-17 | 中兴通讯股份有限公司 | Method and device for simulating USB (Universal Serial Bus) device |
WO2012129848A1 (en) * | 2011-04-01 | 2012-10-04 | 中兴通讯股份有限公司 | Method and apparatus for simulating universal serial bus device |
CN103840953A (en) * | 2012-11-21 | 2014-06-04 | 中兴通讯股份有限公司 | Remote log real-time acquisition method and system |
US9942111B2 (en) | 2012-11-21 | 2018-04-10 | Zte Corporation | Method for remotely acquiring in real time log |
CN103812690A (en) * | 2013-08-06 | 2014-05-21 | 国家电网公司 | Fault diagnosis information transferring and processing method for normalization management interface of device |
CN103812690B (en) * | 2013-08-06 | 2017-02-22 | 国家电网公司 | Fault diagnosis information transferring and processing method for normalization management interface of device |
CN104022893B (en) * | 2014-04-22 | 2017-08-01 | 烽火通信科技股份有限公司 | The configuring management method that a kind of many sub-agent SNMP are redirected |
CN104022893A (en) * | 2014-04-22 | 2014-09-03 | 烽火通信科技股份有限公司 | Configuration managing method for SNMP redirection with multiple subagents |
CN109905292A (en) * | 2019-03-12 | 2019-06-18 | 北京奇虎科技有限公司 | A terminal device identification method, system and storage medium |
CN109951354A (en) * | 2019-03-12 | 2019-06-28 | 北京奇虎科技有限公司 | A terminal device identification method, system and storage medium |
CN110808847A (en) * | 2019-09-23 | 2020-02-18 | 三维通信股份有限公司 | Method and device for managing DAS (data-based system), electronic device and storage medium |
CN110808847B (en) * | 2019-09-23 | 2021-10-15 | 三维通信股份有限公司 | Method and device for managing DAS system, electronic device, storage medium |
CN112383408A (en) * | 2020-09-29 | 2021-02-19 | 武汉虹信科技发展有限责任公司 | Management platform end for data format conversion and data format conversion method |
CN113765972A (en) * | 2020-10-27 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Data request response method, apparatus, system, server and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101170451A (en) | A device management method and a device agent system | |
EP2523528B1 (en) | Device management method, middleware, and machine-to-machine communication platform, device and system | |
US20100299739A1 (en) | Method, terminal, apparatus, and system for device management | |
CN102546260A (en) | Simulator based on SNMP (Simple Network Management Protocol) network management | |
CN101102226A (en) | A general configuration method and device based on SNMP | |
CN113986649A (en) | System monitoring device and method based on prometheus service | |
US8387068B2 (en) | Method and device for managing object instance label | |
JPH09509541A (en) | Data storage | |
CN112698939A (en) | Operation maintenance method and system for ATCA architecture core network | |
CN101345657A (en) | Method and system for cluster management of multiple network elements based on simple network management protocol | |
CN101854262B (en) | Alarm synchronization method, device and system | |
US20030212767A1 (en) | Dynamic network configuration system and method | |
US20110145294A1 (en) | Device description framework information reporting and updating method, device and system | |
CN102684894B (en) | Method and device for realizing northboundbound interface | |
US20050262229A1 (en) | Object conduit MIB for communicating over SNMP between distributed objects | |
CN111552737B (en) | A zookeeper-based multi-source data wide-area access system and method | |
EP2573978B1 (en) | Method, apparatus and system for device management | |
US8073819B2 (en) | System and method for storing element information | |
US9077612B2 (en) | Method for managing configuration information of an outsourced part, and method and system for managing an alarm of an outsourced part | |
CN106254122A (en) | A kind of snmp agent implementation method based on EOC equipment | |
McCarthy et al. | Exploiting the power of OSI Management for the control of SNMP-capable resources using generic application level gateways | |
CN104283706A (en) | SNMP collecting and processing method and device | |
KR20090046054A (en) | Protocol conversion device and method | |
US12407563B2 (en) | System, method, and medium for proactive monitoring of a network | |
Kazaz et al. | One approach to the development of custom SNMP agents and integration with management systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Open date: 20080430 |