Santorini
驱动牛犊
驱动牛犊
  • 注册日期2004-07-07
  • 最后登录2005-07-21
  • 粉丝0
  • 关注0
  • 积分10分
  • 威望1点
  • 贡献值0点
  • 好评度1点
  • 原创分0分
  • 专家分0分
阅读:2194回复:0

解析MIB文件出错

楼主#
更多 发布于:2004-07-07 12:55
刚接触SNMP,要开发NMS,正在用iReasoning公司的SNMP Agent Simulator,里面带了个mibs lib,使用Mibble解析,但是解析模拟器里自带的MIB文件,RFC1213-MIB时出了下面的错误:

看不懂错误的意思.......

该MIB文件内容如下,只写出出错的地方:

sysDescr OBJECT-TYPE
              SYNTAX  DisplayString (SIZE (0..255))
              ACCESS  read-only
              STATUS  mandatory
              DEFVAL  "Test Agent Simulator"
              DESCRIPTION
                      "A textual description of the entity.  This value
                      should include the full name and version
                      identification of the system's hardware type,
                      software operating-system, and networking
                      software.  It is mandatory that this only contain
                      printable ASCII characters."
              ::= { system 1 }

ifNumber OBJECT-TYPE
              SYNTAX  INTEGER
              ACCESS  read-only
              STATUS  mandatory
              DEFVAL 1
              DESCRIPTION
                      "The number of network interfaces (regardless of
                      their current state) present on this system."
              ::= { interfaces 1 }

NetworkAddress这个怎么会没有定义呢?


详细的错误信息

Error: in D:\ireasoning\mibbrowser\mibs\RFC1213-MIB: line 79:
    unexpected token ""Test Agent Simulator"" <QUOTED_STRING>,
    expected "{"

              DEFVAL  "Test Agent Simulator"
                      ^
Error: in D:\ireasoning\mibbrowser\mibs\RFC1213-MIB: line 185:
    unexpected token "1" <NUMBER_STRING>, expected "{"

              DEFVAL 1
                     ^
Error: in D:\ireasoning\mibbrowser\mibs\RFC1213-MIB: line 286:
    unexpected token ""Test Interface"" <QUOTED_STRING>, expected "{"

              DEFVAL  "Test Interface"
                      ^
Error: in RFC-1212: line 6:
    couldn't find imported symbol 'ObjectName' in MIB 'RFC1155-SMI'
Error: in RFC-1212: line 70:
    undefined symbol 'NetworkAddress'
游客

返回顶部