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

mibdump.py fails on LSI-MegaRAID-SAS-MIB #37

Open
wuyuwu0215 opened this issue Jul 30, 2018 · 9 comments
Open

mibdump.py fails on LSI-MegaRAID-SAS-MIB #37

wuyuwu0215 opened this issue Jul 30, 2018 · 9 comments

Comments

@wuyuwu0215
Copy link

wuyuwu0215 commented Jul 30, 2018

Use mibdump.py to convert LSI-MegaRAID-SAS-MIB.

At first,I use the command

mibdump.py  LSI-MegaRAID-SAS-MIB

The mistake is Duplicate symbol found: bbuFRU at MIB LSI-MegaRAID-SAS-MIB.

So I download the file, changed it to make it not a duplicate part.Then I use this command

mibdump.py --mib-source http://192.168.1.170/ LSI-MegaRAID-SAS1-MIB

That's why I can run the locally modified file (LSI-MegaRAID-SAS-MIB).

The new mistake appeared no module "SNMPv2-SMI" in symbolTable at MIB LSI-MegaRAID-SAS-MIB.

I listened to some suggestions, use the command

mibdump.py --mib-source=http://mibs.snmplabs.com/asn1 LSI-MegaRAID-SAS1-MIB

It was not go, the mistake of Missing source MIBs: LSI-MegaRAID-SAS1-MIB.

@etingof
Copy link
Owner

etingof commented Jul 30, 2018

Try adding two --mib-source options like this:

mibdump.py --mib-source http://192.168.1.170/ --mib-source http://mibs.snmplabs.com/asn1 LSI-MegaRAID-SAS1-MIB

The end result would be that mibdump will search first on your local site, when it can't find dependent MIBs there, it will search the second site.

@wuyuwu0215
Copy link
Author

wuyuwu0215 commented Jul 30, 2018

I use the command:
mibdump.py --mib-source http://192.168.1.170/ --mib-source http://mibs.snmplabs.com/asn1 LSI-MegaRAID-SAS1-MIB
No successful conversion.Missing source MIBs: RFC-1212, RFC-1215, RFC1155-SMI, RFC1213-MIB, SNMPv2-CONF, SNMPv2-SMI, SNMPv2-TC.
I feel there's no way to get down.A little sad.

@wuyuwu0215
Copy link
Author

wuyuwu0215 commented Jul 30, 2018

The original name of the file is LSI-MegaRAID-SAS-MIB.In order to distinguish them,I rename i to LSI-MegaRAID-SAS1-MIB.
I had also tried the command-- mibdump.py --mib-source http://192.168.1.170/ --mib-source http://mibs.snmplabs.com/asn1 LSI-MegaRAID-SAS-MIB.(rename it all to LSI-MegaRAID-SAS-MIB)
There's the same mistake.

@wuyuwu0215
Copy link
Author

I tried it again.
>mibdump.py --mib-source=http://192.168.1.170/ --mib-source=http://mibs.snmplabs.com/asn1 LSI-MegaRAID-SAS-MIB

Missing source MIBs: RFC-1212, RFC-1215, RFC1155-SMI, RFC1213-MIB, SNMPv2-CONF, SNMPv2-SMI, SNMPv2-TC Ignored MIBs: Failed MIBs: LSI-MegaRAID-SAS-MIB (no module "SNMPv2-SMI" in symbolTable at MIB LSI-MegaRAID-SAS-MIB)

@etingof
Copy link
Owner

etingof commented Jul 30, 2018

Perhaps you are using some old pysmi version. Try this command:

mibdump.py --mib-source=http://192.168.1.170/ --mib-source=http://mibs.snmplabs.com/asn1/@mib@ LSI-MegaRAID-SAS-MIB

BTW, here is the documentation.

@etingof etingof changed the title Oid to Mib,use the command--mibdump.py LSI-MegaRAID-SAS-MIB mibdump.py fails on LSI-MegaRAID-SAS-MIB Jul 30, 2018
@wuyuwu0215
Copy link
Author

Oh!Yes!Thank you very much!It has been successfully converted!Cool!

@YorkZ
Copy link

YorkZ commented Nov 11, 2019

Perhaps you are using some old pysmi version. Try this command:

mibdump.py --mib-source=http://192.168.1.170/ --mib-source=http://mibs.snmplabs.com/asn1/@mib@ LSI-MegaRAID-SAS-MIB

BTW, here is the documentation.

I also had the same problem, and @mib@ trick worked for me as well, thanks. However, my pysmi version is 0.3.4, seems to be the latest version right?

@etingof
Copy link
Owner

etingof commented Nov 12, 2019

Yes, 0.3.4 is the latest release. Are you saying that without this @mib@ magic MIB search does not work for you?

@YorkZ
Copy link

YorkZ commented Nov 18, 2019

Right, without this @mib@ magic MIB search does not work.

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

3 participants