导入mib时报错,请教高手该如何解决?

周祯烜 发布于 2016/01/25 08:35
阅读 357
收藏 0

Fri Jan 22 10:47:46 CST 2016 [INFO] Parsing MIB file C:\Program Files (x86)\OpenNMS\share\mibs\pending\mmblade.mib
Fri Jan 22 10:47:48 CST 2016 [ERROR] Problem found when compiling the MIB: 
 ERROR: Cannot find imported symbol OBJECT-TYPE in module C, Source: mmblade.mib, Row: 17, Col: 13

MIB文件的前面一部分如下,MIB文件应该没问题,IBM官网下的,而且下了几个都有类似的不同的报错,应该不是MIB文件的问题。我估计是不是还缺什么依赖的MIB?但我应该再加载什么MIB呢?要导入的MIB前几行如下,能看出线索吗?

--*******************************************************************************
-- File         : mmblade.mib
-- Description  : Management Module MIB for SNMP
-- Version      : 6.3
-- Date         : July 2013
-- Copyright (c) 2002-2013 IBM  All Rights Reserved.
--*******************************************************************************
--
-- Contains MIB description for:
--   This MIB is to be used to provide configuration support and monitoring for the
--   BladeCenter, BladeCenter T, BladeCenter H, and BladeCenter HT.
-- ********************************************************************************
BLADE-MIB DEFINITIONS ::= BEGIN


        IMPORTS
            OBJECT-TYPE                          FROM RFC-1212
            enterprises                          FROM RFC1155-SMI
            -- DisplayString                        FROM RFC1213-MIB
            IpAddress                            FROM RFC1155-SMI
            TRAP-TYPE                            FROM RFC-1215;
            -- textual conventions



            InetAddressIPv6 ::= TEXTUAL-CONVENTION
                        DISPLAY-HINT "2x:2x:2x:2x:2x:2x:2x:2x"
                        STATUS       current
                        DESCRIPTION
                        "Represents an IPv6 network address. Since MIB browsers
                         may require different formats, the address is
                         expected to be the 16 byte address in network-byte order,
                         and shortened formats such as 0::0 are not accepted in SET
                         operations. Two common examples are:

                         The NetSNMP command line will accept SET requests like:
                           snmpset -v1 -cprivate <host> s 2001:00:00:00:FFFF:CCC4:BBB2:AAA6

                         Other MIB browsers may require the SET request value to be formatted as:
                           # 0x20 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0xFF 0xFF 0xCC 0xC4 0xBB 0xB2 0xAA 0xA6"
                        SYNTAX       OCTET STRING (SIZE (16))

            EntryStatus ::= INTEGER
                         { valid(1),
                           createRequest(2),
                           underCreation(3),
                           invalid(4)
                         }

加载中
0
1
1505412718
没有RFC-1212或者你的RFC-1212中没有定义OBJECT-TYPE 
0
周祯烜
确实,系统里已带的RFC-1212里面没定义实质内容,重新找了个RFC-1212.mib后可以加载上了,多谢。
返回顶部
顶部