Discussion:
zenmib: smidump preload order incorrect
Michael Poff
2012-03-13 18:49:00 UTC
Permalink
Michael Poff [http://community.zenoss.org/people/mrpoff001] created the discussion

"zenmib: smidump preload order incorrect"

To view the discussion, visit: http://community.zenoss.org/message/65152#65152

--------------------------------------------------------------
Hello,

I'm trying to load certain Juniper MIBs and the loads are failing. All prerequisites are loaded OK. I ran zenmib -v10 to view the smidump command. When I run this smidump standalone, it returns segmentation fault. The problem appears to be caused by the order of MIB preloads in smidump, i.e. the preloads are not listed in order of their dependencies. I rearranged the command with preloads in the correct dependency order, and smidump executes successfully. Is there a way to run zenmib so that dependency order will be correct? I have tried running zenmib against muliple MIBs in their dependency order but smidump still shows the incorrect order. Any help is greatly appreciated.

Regards,
Mike
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65152#65152]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
jcurry
2012-03-14 11:10:50 UTC
Permalink
jcurry [http://community.zenoss.org/people/jcurry] created the discussion

"Re: zenmib: smidump preload order incorrect"

To view the discussion, visit: http://community.zenoss.org/message/65182#65182

--------------------------------------------------------------
Are you saying that you now have a zenmib command with all the prereqs on that command?

For example, if mib1 prereqs mib2, prereqs mib3 then import mib 3 first.
Import mib2 with zenmib run -v10 mib3 mib2
Import mib 1 with zenmib run -v10 mib3 mib2 mib1
You will get messages about mibs already existing but you can ignore those.

I always ensure that the all the mibs I want to import are in the site directory under $ZENHOME/share/mibs

Depending on the version of your Zenoss and the platform you run on, you may also need to put in symlinks and setup your SMIPATH environment variable.  I run on SuSE with Zenoss 3.x and $ZENHOME is /usr/local/zenoss/zenoss.  The mibs source stuff is actually in /usr/local/zenoss/common/share so I have the following links in place:
cd $ZENHOME
ln -s /usr/local/zenoss/common/share
ln -s /usr/local/zenoss/common/libexec

I also have SMIPATH set to (all on one line):

export SMIPATH=$ZENHOME/share/mibs/iana:$ZENHOME/share/mibs/ietf:$ZENHOME/share/mibs/irtf:$ZENHOME/share/mibs/site:$ZENHOME/share/mibs/tubs/

Cheers,
Jane
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65182#65182]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...