Chinaunix首页 | 论坛 | 博客
  • 博客访问: 585534
  • 博文数量: 141
  • 博客积分: 3425
  • 博客等级: 中校
  • 技术积分: 1609
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-23 15:55
文章分类

全部博文(141)

文章存档

2019年(5)

2011年(19)

2010年(36)

2009年(13)

2008年(50)

2007年(18)

分类: LINUX

2011-02-17 16:50:47

命令如下:
env MIBS="+=YOUROWN-MIB" mib2c yourownMib
说明如下
Mib2c complains about not having a "valid OID" - what does this mean?
---------------------------------------------------------------------  
This probably means that you gave it the name of a MIB file (or
module), rather than the name of an object defined in that file.
Mib2c expects the name of a 'root' object, and will generate a
template for the sub-tree starting from there.
If you've got a file 'MY-MIB.txt', defining the MIB module
'MY-MIB' which contains a subtree based on the object 'myMib',
then you should invoke mib2c as
"mib2c .... myMib"
rather than
"mib2c .... MY-MIB.txt"
or "mib2c .... MY-MIB"

Note that you'll probably also have to add your MIB to the list of
MIBs that are loaded automatically, in order for mib2c to recognise
the name of this object. So the command would typically be
"MIBS=+MY-MIB mib2c .... myMib"
or
"MIBS=ALL mib2c .... myMib"


阅读(6638) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~