manjunath.kadaba | 1 Jun 2004 13:52

[opennms-discuss] Cannot generate proper xml file from MIB

Hello,
 
I am trying to use mib2opennms tool to convert a MIB into XML format by following command
 
/usr/local/bin/mib2opennms -v -f IPV6-MIB.xml -m /usr/local/bin/net-snmp-5.0.9/mibs/ /usr/local/bin/net-snmp-5.0.9/mibs/IPV6-MIB.txt
 
I am receiving following output when executed
-----------------------------------------------------------------------------------------------------------------------------------------------------
mib2opennms version 0.2.2
mib2opennms: '/usr/local/bin/net-snmp-5.0.9/mibs/IPV6-MIB.txt' contains errors, output may be flawed
-----------------------------------------------------------------------------------------------------------------------------------------------------
when i open the file to see the conversion to XML, i only see ipv6IfStateChange has been identified.
Where is the problem, why remaining is objects are not identified.
Any help is greatly appreciated
 
Thanks and Regards
Manjunath
Andrew Hood | 1 Jun 2004 14:52
Picon

Re: [opennms-discuss] Cannot generate proper xml file from MIB


manjunath.kadaba <at> wipro.com wrote:
| Hello,
|
| I am trying to use mib2opennms tool to convert a MIB into XML format by
| following command
|
| */usr/local/bin/mib2opennms -v -f IPV6-MIB.xml -m
| /usr/local/bin/net-snmp-5.0.9/mibs/
| /usr/local/bin/net-snmp-5.0.9/mibs/IPV6-MIB.txt*
| **
| I am receiving following output when executed
|

-----------------------------------------------------------------------------------------------------------------------------------------------------
| mib2opennms version 0.2.2
| mib2opennms: '/usr/local/bin/net-snmp-5.0.9/mibs/IPV6-MIB.txt' contains
| errors, output may be flawed
|

-----------------------------------------------------------------------------------------------------------------------------------------------------

runing smilint against the net-snmp version of IPV6-MIB gives:

IPV6-MIB.txt:650: subtyping not allowed in SEQUENCE

I suggest you get the version that comes with libsmi where the syntax
errors have been fixed. There are a few warnings, but the syntax is correct.

http://www.ibr.cs.tu-bs.de/projects/libsmi/

| when i open the file to see the conversion to XML, i only see
| *ipv6IfStateChange *has been identified.
| Where is the problem, why remaining is objects are not identified.
| Any help is greatly appreciated
|
| Thanks and Regards
| Manjunath

--
There's no point in being grown up if you can't be childish sometimes.
~                -- Dr. Who

Gmane