Archived community.zenoss.org | full text search
Skip navigation
5455 Views 5 Replies Latest reply: Nov 13, 2006 5:02 AM by Guest RSS
Currently Being Moderated

Nov 13, 2006 5:02 AM

zenmib.py issue

I've been trying to register mibs.
I worked around my unresolved path problem by
qualifying smidump's name in zenmib.py;

exec os.popen('smidump -fpython %s 2>/dev/null' % mibname) in result
to
exec os.popen('/usr/local/zenoss/bin/smidump -fpython %s 2>/dev/null'
% mibname) in result

I then came accross a name error.
the method load() defines mibs;
mibs = self.dmd.Mibs

and the method load1() refers to mibs;
mod = mibs.createMibModule(modname, self.options.path)

but it is not in the scope of load1()
I replaced the line in load1() with
mod = self.dmd.Mibs.createMibModule(modname, self.options.path)

I was then able to register mibs.

Thanks,
Kent

Post generated using Mail2Forum (http://www.mail2forum.com)

    More Like This

    • Retrieving data ...