MG-SOFT SNMP EasyAgent Source Code Template Generator是一个软件工具,以MIB文件作为输入,然后根据给定的MIB定义,生成C++或Delphi或Visual Basic源代码模板(stub),该模板可以用于开发MG-SOFT SNMP EasyAgent framework的代理扩展(副代理)。
具备了源代码模板后,程序员只需添加执行OID行为的源代码即可,以实现SNMP-GET、SNMP-SET 、SENDTRAP事件。
MG-SOFT SNMP EasyAgent Source Code Template Generator软件包含有以下软件组件:
MgSrcGen——命令行程序,将给定的MIB模块转换为相应的C++或Delphi或Visual Basic模板文件。
MgSrcWiz——GUI程序,为运行MgSrcGen Source Code Template Generator命令行程序提供一个用户友好接口。
AgentBaseClass——源代码,包含SNMP EasyAgent framework的基本初始化函数、读写函数、复查代码等。基类中执行的函数可以用在生成的C++或Delphi或Visual Basic文件中。
MG-SOFT SNMP EasyAgent Source Code Template Generator支持下列SMI结构:
对象ID
对象类型
trap类型
通知类型
还支持下列SMI类型:
• SNMP_SYNTAX_INT
• SNMP_SYNTAX_UINT32
• SNMP_SYNTAX_CNTR32
• SNMP_SYNTAX_GAUGE32
• SNMP_SYNTAX_TIMETICKS
• SNMP_SYNTAX_OCTETS
• SNMP_SYNTAX_IPADDR
• SNMP_SYNTAX_CNTR64
• SNMP_SYNTAX_OID
MG-SOFT SNMP EasyAgent
Source Code Template Generator
MG-SOFT SNMP EasyAgent Source Code Template Generator is a software utility that takes a MIB file on its input and, according to the given MIB definition, generates a C++ or Delphi or Visual Basic source code template (stub) for developing agent extension (subagent) for the MG-SOFT SNMP EasyAgent framework.
Having the generated source code template, the programmer only needs to add the source code implementing required actions on OIDs for SNMP-GET, SNMP-SET and/or SENDTRAP events.
MG-SOFT SNMP EasyAgent Source Code Template Generator package consists of the following software components:
MgSrcGen
Command line application that translates given MIB modules to corresponding C++ or Delphi or Visual Basic template files.
MgSrcWiz
GUI application providing an user-friendly interface for running the MgSrcGen Source Code Template Generator command line application.
AgentBaseClass
Source code containing the basic initialization of SNMP EasyAgent framework, reading and writing functions, callbacks. Functions implemented in the base classes are used from generated C++ or Delphi or Visual Basic files.
MG-SOFT SNMP EasyAgent Source Code Template Generator supports the following SMI constructs:
• object-identifier
• object-type
• trap-type
• notification-type
and the following SMI types:
• SNMP_SYNTAX_INT
• SNMP_SYNTAX_UINT32
• SNMP_SYNTAX_CNTR32
• SNMP_SYNTAX_GAUGE32
• SNMP_SYNTAX_TIMETICKS
• SNMP_SYNTAX_OCTETS
• SNMP_SYNTAX_IPADDR
• SNMP_SYNTAX_CNTR64
• SNMP_SYNTAX_OID