摘要
首先剖析了典型的网络管理开发工具AdventNet Agent Toolkit的代理开发流程,指出其生成的代理需要添加管理信息时必须重新利用开发工具,而不能由终端代理用户直接添加。在此基础上,利用PowerTCP SNMP控件设计实现了一种新的动态SNMP代理生成器。用该生成器生成的代理,在结构设计上,用两个动态链接库分别实现了MIB数据结构的保存和管理数据值的操作,同时采用了.NET的反射技术完成结果的返回,使得被管理信息值的操作代码部分和代理程序本身相分离。这样代理的终端用户在代理运行过程中,可以动态添加被管理信息,操作代码的添加也只需在动态链接库完成,简化了SNMP代理的开发过程。
The process of agent development using AdventNet Agent Toolkit, a typical network management develop tool, is introduced and analyzed at first, which points out the agent code must be re-generated using the tool if the new management information items wish to be added and terminal user of the agent can not increase the items directly. The design and implement of a new dynamical SNMP agent generator with PowerTCP SNMP component is proposed, in which two dynamic link library files are used to keep the structure of MIB and the operation of the management information while. NET reflection technology is adopted to complete the result return, which make the operation code separate from the code of main agent. Using the agent generated by the new generator, the terminal user can dynamically increase the management information items, the operation code is only need to add in a dynamic link library file instead of the agent main programme, which simplify the development of SNMP agent.
出处
《科学技术与工程》
2007年第11期2707-2711,共5页
Science Technology and Engineering
基金
国家自然科学基金项目(60403032)资助