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)
}
没有<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后可以加载上了,多谢。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。