Re: [opennms-discuss] mib2opennms 'voiss_trapV1.my' contains errors, output may be flawed
Miles Taylor <miles.taylor <at> gmail.com>
2005-11-02 00:37:22 GMT
I did as you suggested and ran the smilint command against the MIB and
it came back 225 errors. From the 30 or so that I checked they all
appear to center around two lines in each trap definition:
VARIABLES { severity, infoString }
DESCRIPTION
"TCP/IP connection to other Call Agent Server(s) has been lost or
re-established.
This includes Conference Boards and Gateways as well"
This is beginning of the output of smilint
voiss_trapV1.my:52: syntax error, unexpected '{', expecting
UPPERCASE_IDENTIFIER or LOWERCASE_IDENTIFIER or NUMBER
voiss_trapV1.my:53: syntax error, unexpected VARIABLES
voiss_trapV1.my:54: syntax error, unexpected DESCRIPTION
voiss_trapV1.my:61: syntax error, unexpected VARIABLES
I checked some of the other mibs that come with net-snmp and VARIABLES
and DESCRIPTION appear to be valid keywords. What am I missing?
Thanks for the help.
Here is the VOISS-MIB.txt
VOISS-MIB DEFINITIONS ::= BEGIN
IMPORTS
enterprises FROM RFC1155-SMI
OBJECT-TYPE FROM RFC-1212
DisplayString FROM RFC1158-MIB
TRAP-TYPE FROM RFC-1215;
vocaldata OBJECT IDENTIFIER ::= { enterprises 6463 }
voissMibs OBJECT IDENTIFIER ::= { vocaldata 1 }
voissTraps OBJECT IDENTIFIER ::= { voissMibs 1 }
voissCallAgent OBJECT IDENTIFIER ::= { voissMibs 2 }
voissGateway OBJECT IDENTIFIER ::= { voissMibs 3 }
voissConfBridge OBJECT IDENTIFIER ::= { voissMibs 4 }
voissAgentCaps OBJECT IDENTIFIER ::= { voissMibs 5 }
voissDiscoveryMibs OBJECT IDENTIFIER ::= { voissCallAgent 1 }
voissMeasurements OBJECT IDENTIFIER ::= { voissCallAgent 2 }
voissSystemStates OBJECT IDENTIFIER ::= { voissCallAgent 3 }
voissSIPMib OBJECT IDENTIFIER ::= { voissCallAgent 4 }
voissSIPMibCaps OBJECT IDENTIFIER ::= { voissAgentCaps 1 }
--************************************************************************
-- Textual conventions
-- ***********************************************************************
StartTime ::= DisplayString(SIZE(1..64))
-- DESCRIPTION: A value in the format of a character string.
-- The start time is when a device is started.
-- It is represented like Fry Mar 23 2001 00:00:00: "
DeviceName ::= DisplayString(SIZE(0..64))
-- DESCRIPTION: Any given name of the the device or system.
-- It could be an Ip host name or a name just describes the type of device
SWVersion ::= DisplayString(SIZE(1..32))
--DESCRIPTION: The software release version
-- The format is based on the type of device/system
PhoneNumber ::= DisplayString(SIZE(20))
--DESCRIPTION: the complete 10 disgits of a phone number.
DisplayTime ::= DisplayString(SIZE(1..64))
-- DESCRIPTION: A value in the format of a character string.
-- It is represented like Fry Mar 23 2001 00:00:00: "
-- ***************************End of Texual conventions *****************
END
On 11/1/05, jonathan sartin <jonathan <at> opennms.org> wrote:
> Miles Taylor wrote:
> > I am trying to run mib2opennms against a MIB, and I am only receiving
> > the error "'voiss_trapV1.my' contains errors, output may be flawed".
> > The command I am running is mib2opennms -v -f /tmp/out.xml
> > voiss_trapV1.my.
> >
> > The xml file only contains
> > <!-- Start of auto generated data from MIB: OPENNMS-MIB -->
> > <!-- End of auto generated data from MIB: OPENNMS-MIB -->
> >
> >
> > Can anyone tell me what is wrong with the the MIB I am trying to convert?
>
> Well, not immediately
, it's kinda long for these tired eyes.
>
> First thing I notice is that it imports voissTraps from VOISS-MIB. As
> you've not included any other mibs in your mib2opennms invocation that
> may cause problems.
>
> At the risk of being tedious, there's a pretty good tutorial on
> mib2opennms here: http://www.opennms.org/wiki/index.php?page=mib2opennms
>
> If you genuinely think that the MIB is flawed you can do some limited
> syntax checking using smilint, which is part of the libsmi distribution
> (not OpenNMS).
>
> Cheers .. Jonathan.
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Please read the OpenNMS Mailing List FAQ:
> http://www.opennms.org/wiki/index.php?page=MailingListFaq
>
> opennms-discuss mailing list
>
> To *unsubscribe* or change your subscription options, see the bottom of this page:
> https://lists.sourceforge.net/lists/listinfo/opennms-discuss
>
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/wiki/index.php?page=MailingListFaq
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss