Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TRAP Listener In Windows the Custom MIB Path don't get added. #72

Open
sbhattach opened this issue Aug 5, 2017 · 0 comments
Open

TRAP Listener In Windows the Custom MIB Path don't get added. #72

sbhattach opened this issue Aug 5, 2017 · 0 comments

Comments

@sbhattach
Copy link

sbhattach commented Aug 5, 2017

Hi,
TRAP Listener In Windows the Custom MIB Path don't get added. Hence it could not able to load custom M-IB file.

    raise error.MibNotFoundError('%s compilation error(s): %s' % (modName, errs))
pysnmp.smi.error.MibNotFoundError: <MIB-FILE> compilation error(s): missing

This works fine in Linux.
But when I windws when I use, given custom MIB DIR path won't get added and when i try to load some MIB which exist in that path Fails.

in setMibSources I don't see my dir path which is 'file:///G:/MIBS/'

from pysnmp.smi import builder, view, compiler, rfc1902, error
custom_mib_path =['file:///G:/MIBS/'] # The dir file path
mibBuilder = builder.MibBuilder()
compiler.addMibCompiler(mibBuilder, sources=custom_mib_path.split(","))
mibViewController = view.MibViewController(mibBuilder)
mibs=['<MIB-FILE-1>','<MIB-FILE-2>']
mibs=load_mib_module.split(",")
mibBuilder.loadModules(*mibs)

Refer the attached
debug_log.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant