Malformed XML from RFC1158-MIB and coredump converting RMON2-MIB

I am having trouble trying to generate XML from the RFC1155 and RMON2 mibs using the following command lines on Solaris, respectively:
smidump -f xml -p./RFC1155-SMI -oRFC1158-MIB.xml ./RFC1158-MIB
smidump -f xml -p./SNMPv2-SMI -p./SNMPv2-TC -p./SNMPv2-CONF -p./ifmib.mib -p./TOKEN-RING-RMON-MIB -p./RMON-MIB -oRMON2-MIB.xml ./RMON2-MIB
The first results in a malformed XML with mismatched tags.
The second one results in a coredump every time. A pstack of one of the core dumps is as follows: ff3283b0 findNodeByParentAndSubid (ffbff1d0, 1, 0, b0860, 0, ff38d94c) + 54 ff339500 smiparse (ffbfefd2, 1, 1, ffbff1d0, ffbfef90, 400) + 59d4 ff329e84 loadModule (ffbff56f, 0, 94184, 76c00, ff2e8284, ff2f09b0) + 400 ff32f254 smiLoadModule (ffbff56f, 2, 75ed0, ffbff561, 0, 74c00) + 40 00012d14 main (0, ffbff364, 76c00, 771ac, ff3a00c0, ff3a0100) + 2a8 000121a8 _start (0, 0, 0, 0, 0, 0) + 5c
Any help would be appreciated. Note that these MIBs are used from the mibs/ietf folder of the libsmi distribution.
Thanks Altaf

I have used the off-the-shelf FreeBSD libsmi 0.4.5 using MIBs installed with libsmi.
1. RFC1158-MIB according to smilint contains lots of errors, I think that until they are fixed there is little chance to get the smidump output right. Have you tried RFC1213-MIB instead? This one generates output (attached) that looks like sensible XML to me.
RFC 1158 was obsoleted by RFC 1213.
2. Following command-line:
smidump -f xml -pSNMPv2-SMI -pSNMPv2-TC -pSNMPv2-CONF -pIF-MIB\ -pTOKEN-RING-RMON-MIB -pRMON-MIB -oRMON2-MIB.xml RMON2-MIB
using MIBs that come with libsmi gives me result attached.
Can you check your libsmi installation? Please note I am not using dots and slashes in the module names.
Are you using libsmi-provided MIBs?
participants (2)
-
Altaf Aali
-
Marcin Cieslak