[erlang-questions] snmpc: Error when compiling RFC 4669 MIB and others

Kenneth Lakin kennethlakin@REDACTED
Tue Dec 20 13:48:18 CET 2016


On 12/19/2016 09:11 AM, Daniel Goertzen wrote:
> On the lines that have errors, does it help if you change the type to
> INTEGER? (ie InetAddressType becomes INTEGER).

It does. If I change the type of that object to either INTEGER or
InetAddress, the MIB is accepted by the compiler.

I have a minimal MIB that the compiler chokes on. Other than complaints
about unused imports and about how an object of type "InetAddress" isn't
preceded by an object of type "InetAddressType", other MIB checkers
don't appear to see any problems with it. See:

https://gist.github.com/kennethlakin/c4b17c94ea1d9a97d4db1c35c0b64b78
or
https://gist.githubusercontent.com/kennethlakin/c4b17c94ea1d9a97d4db1c35c0b64b78/raw/10fa8078f33fa402d07b6613445597b35e94564d/TEST-MIB.mib

Switch the type of testObj from InetAddressType to InetAddress to get a
file that'll pass through the snmpc MIB compiler.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20161220/e48f5be0/attachment.bin>


More information about the erlang-questions mailing list