开发者社区> 问答> 正文

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

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)
                         }

展开
收起
爱吃鱼的程序员 2020-06-10 14:38:39 1033 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    没有<spanstyle="font-family:Verdana,sans-serif,宋体;font-size:14px;line-height:22px;background-color:#FFFFFF;">RFC-1212或者你的<spanstyle="font-family:Verdana,sans-serif,宋体;font-size:14px;line-height:22px;background-color:#FFFFFF;">RFC-1212中没有定义<spanstyle="font-family:Verdana,sans-serif,宋体;font-size:14px;line-height:22px;background-color:#FFFFFF;">OBJECT-TYPE 确实,系统里已带的RFC-1212里面没定义实质内容,重新找了个RFC-1212.mib后可以加载上了,多谢。

    2020-06-10 14:38:56
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载