snmp bug?
Caleb Tennis
caleb.tennis@REDACTED
Sat Feb 6 21:18:52 CET 2010
I've been communicating with snmp devices on the network with erlang, but I'm having issues getting MIBs into erlang, but I'm running into errors with the compiler.
One of the mibs I've focused on uses the TEXTUAL-CONVENTION macro, but I get these errors when trying to compile it:
root@REDACTED:~# erlc AP-SERIES-300-UPS-MODULE-MIB.mib
AP-SERIES-300-UPS-MODULE-MIB.mib: 47: Error: Macro 'TEXTUAL-CONVENTION' not imported.
AP-SERIES-300-UPS-MODULE-MIB.mib: 54: Error: Macro 'TEXTUAL-CONVENTION' not imported.
Now, I recognize this may be an issue with the MIB file itself, and I consider myself far from an snmp expert. But in digging, I've noticed that there are a number of MIBs that come with erlang, and some of them are compiled and put into the priv directory, but not all.
In digging some more, it seems like those MIBs don't compile. For example, SNMPv2-TC.mib, which I believe is needed for understanding TEXTUAL-CONVENTIONS, gives this error:
root@REDACTED:~# erlc SNMPv2-TC.mib
SNMPv2-TC.mib: 8: Error: syntax error before: 'TEXTUAL-CONVENTION'
In fact, there are a number of mib files that ship with erlang that give errors like this, all on line with MACRO statements.
The erlang code leads me to believe that these *should* work and compile, but it looks like they don't. So, while I'm not positive this is a bug, it smells a bit like one, hence why I'm posting.
Thanks,
Caleb
More information about the erlang-bugs
mailing list