snmp mib中怎么解析table

xiaoxiao321 2008-10-09 04:38:12
各位大虾,小女子现在遇到一个问题,解析mib库时怎么来解析table,先是怎样判断他是一个table,然后怎样读取解析table下的子节点,请各位指教!
...全文
387 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
商科程序员 2008-10-13
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 jurry72 的回复:]
能否给我一个详细的例子呢,非常感谢,都查找了两天资料了,table的父结点怎么确定,得到的列的值是不是就直接与父结点构成他的一个oid呢?
[/Quote]
难道你不知道MIB库就要去GET数据? 你取回来做什么用呢?
xiaoxiao321 2008-10-10
  • 打赏
  • 举报
回复
怎么没有人知道呢,自己定一下
jurry72 2008-10-10
  • 打赏
  • 举报
回复
能否给我一个详细的例子呢,非常感谢,都查找了两天资料了,table的父结点怎么确定,得到的列的值是不是就直接与父结点构成他的一个oid呢?
商科程序员 2008-10-10
  • 打赏
  • 举报
回复
TABLE 的节点类型和其它的是不一样的.
TABLE 和数据库一样, 只有列定义, 没有行定义.
操作一般都是 get 第一行数据,
getnext 第一行数据(第二行),
getnext 第二行数据(第三行),
...

在得到数据后先查一下所得数据是否还在表内.
1. About the Software --------------------- MG-SOFT MIB Browser Professional Edition is an SNMP MIB Browser running on Microsoft Windows operating systems (Windows 95, Windows 98, Windows NT, Windows ME, Windows 2000 and Windows XP) and Linux operating systems. MIB Browser lets you monitor and manage any SNMP device on the network (i.e. file or database servers, modems, printers, routers, switches,...) by using the standard SNMPv1, SNMPv2c and SNMPv3 protocols. Along the standard SNMPv3 USM model, MIB Browser supports also Diffie-Hellman key exchange model, so that DOCSIS-based SNMPv3 agents (i.e. cable modems, cable modem termination systems, set-top boxes etc.) can be seamlesly contacted and managed. MIB Browser allows you to perform the SNMP Get, SNMP GetNext, SNMP GetBulk and SNMP Set operations. Besides, the software lets you capture the SNMP Trap and SNMP Inform packets that were sent from arbitrary SNMP devices or applications on the network. MIB Browser can monitor several SNMP devices simultaneously and contains features like SNMP Table viewer, logging capabilities, real-time graphical presentation of queried numerical values, scan for implemented MIBs in agents, etc. Generic SNMP Trace window displays SNMP messages exchanged between MIB Browser and SNMP agents. SNMP messages are displayed in raw hexadecimal dump format as well as in the decoded, human-readable format. Therefore, the Generic SNMP Trace window is particularly useful for debugging when developing an SNMP agent and for resolving problems when MIB Browser cannot properly query an SNMP agent. The enclosed MIB Compiler lets you compile any vendor specific MIB file. The compiled MIB file can then be loaded and utilized by MIB Browser. Generally, a MIB file is usually supplied by the vendor of an SNMP manageable device and contains a description of the object hierarchy and object attributes on the managed SNMP device. MIB file serves as a roadmap for managing that device. The enclosed MIB Explorer lets you compare different versions of MIB definitions, search for dependencies between MIB definitions and export MIB definitions to HTML, XML and MOSY formats. Besides, the software contains a powerful search engine for searching various constructs in MIB definitions. The enclosed Visual MIB Builder is a visual MIB module definition file designer and MIB editor. The software supports SMIv1 and SMIv2 notation. The software requires no knowledge about ASN.1 syntax or MIB module definition language. The user can simply drag-and-drop MIB nodes into the MIB tree and assign their SMI properties - MIB definition module can be designed within minutes, no mater if it contains table definitions or not. MIB modules designed with Visual MIB Builder will be syntactically and semantically correct and will compile with any SMI compliant MIB Compiler.
用于网络设备和应用程序的通信。PowerTCP SNMP Tool是一个控件集合,它通过SNMPv1或SNMPv2以及ASN.1标准来管理网络设备和应用程序,具有最高的标准兼容性和速度。它包含一个Agent Control和一个Manager Control——以及一组支持对象,包括一个用来加载和解析MIB文件的Management Information Base(MIB)对象、一个用来编码/解码信息包的SNMP Message Object、一个SNMP Table对象等。 概述 用于网络设备和应用程序的通信。 PowerTCP SNMP Tool是一个控件集合,它通过SNMPv1或SNMPv2以及ASN.1标准来管理网络设备和应用程序,具有目前最高的标准兼容性和速度。它包含一个 Agent Control 和一个 Manager Control ——以及一组支持对象,包括一个用来加载和解析MIB文件的Management Information Base (MIB) 对象、一个用来编码/解码信息包的SNMP Message Object、一个SNMP Table对象等。另外还包含Service Control ,它可以很容易地将你的manager或agent部署为一个Windows服务,以及MIB Compressor应用程序,它可以帮你维护大量的MIB文件。 · 与.NET 100% 兼容,运用了.NET COM interop技术,包含样例。 · 企业版已就绪! 高性能的Manager control可以编码SNMP V1 或 V2c信息包,把它们发送给任何agent,解码回复,并将其作为一个简单的对象显示出来。 · 可以很容易地创建一个 SNMP agent, 它可以为任何应用程序报告管理信息。 · 包含一个独特的MIB Compression应用程序,它可以将上百个MIB结合到一个单独的压缩文件,以便可以很容易地在运行时分布。 · 包含一个Dart公司的 Service 控件,使用户可以很容易地安装任何作为系统服务而开发的Agent或Manager应用程序。 · 包含一组支持对象(DartStream、SnmpMessage、SnmpTableSnmpTableRow、 SnmpTrap、 SnmpTraps、SnmpVariable、 SnmpVariables),它们提供了一个对象模式,可以为专家以及新手简化SNMP运用。 · 支持 COM+ Component Services。 · 可用于多线程的环境。 · 包含免费版权。 包含封装类,可以方便地集成到Visual C++

67,514

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧