阅读:2238回复:0
解析MIB文件出错
刚接触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' |
|