
Hi,
it is difficult to help as long as I am not 100% sure which version you use. In this particular case, RFC1158-MIB has a number of things that are not valid in more recent SMI versions such as SMIv1 and SMIv2. My recommendation would simply to avoid RFC1158-MIB since it has been superseeded by RFC1213-MIB which has been superseeded by other MIBs itself.
/js
On Mon, Dec 16, 2013 at 02:15:31PM +0000, Peter Postma wrote:
Dear list users,
I am trying to dump a MIB to XML using smidump (v0.4.8) but the output provides invalid XML.
The MIB in question is: http://www.snmplink.org/OnLineMIB/Standards/index.html#124 (RFC1158-MIB, "rfc 1158 MIB-II.mib"). Some sources do have syntax errors (like missing comma's) which I corrected in the source file already. The XML output from smidump however is invalid XML. It generates the following XML e.g.:
<table name="ipNetToMediaTable" oid="1.3.6.1.2.1.4.22" status="mandatory"> <description> ... </description> <row name="ipNetToMediaEntry" oid="1.3.6.1.2.1.4.22.1" status="mandatory"> <linkage> </linkage> <description> ... </description> <scalar name="ipNetToMediaIfIndex" oid="1.3.6.1.2.1.4.22.1.1" status="mandatory"> ------------------------
As can be seen in this example, the <row> tag is never closed and neither is the <table> tag. This is not the only occurance though and happends several times in this same file. This means I can not parse the XML output and also means I'm missing data. Is this a known bug? Is there a workaround? Or am I doing something wrong?