[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mibble-devel] Extracting a list of value-labels from a mib
From: |
Per Cederberg |
Subject: |
Re: [Mibble-devel] Extracting a list of value-labels from a mib |
Date: |
Wed, 18 May 2005 20:32:47 +0200 |
Hi David,
Hmm... To me this sounds like a bug. No time to verify right now,
so I'll have to get back later on this. I've uploaded the current
development version to the web site, could you please test with
that one too?
http://www.mibble.org/download/development/index.html
One should surely be able to call IntegerType.getAllSymbols() even
though the symbols are defined in another MIB. If this is still a
problem, I'd apreciate if you could report it in the bug tracker:
https://savannah.nongnu.org/bugs/?group=mibble
That way I can keep you up to date on the bug progress easily.
Cheers,
/Per
On wed, 2005-05-18 at 11:42 +0300, David Kohen wrote:
> Hi,
>
> I wonder if someone can help me. I've been asked to do a pilot using
> Mibble to extract a table definition from a mib and store it in a
> specific XML format. The problem I'm having is that the table entry
> contain variables such as there:
>
>
> pwVcType OBJECT-TYPE
> SYNTAX PwVcType
> MAX-ACCESS read-create
> STATUS current
> DESCRIPTION
> "Long string here....
> "
> DEFVAL { ethernet }
> ::= { pwVcEntry 2 }
>
> pwVcOwner OBJECT-TYPE
> SYNTAX INTEGER {
> manual (1),
> pwIdFecSignaling (2), -- PW signaling with PW ID FEC
> genFecSignaling (3), -- Generalized attachment FEC
> l2tpControlProtocol (4),
> other (5)
> }
> MAX-ACCESS read-create
> STATUS current
> DESCRIPTION
> "Long string here
> "
> ::= { pwVcEntry 3 }
>
> PwVcType is defined in another mib file (see below) as also being a list
> of possible values..
>
> My problm is that I need to extract the list. In the cae of PwVcType I
> have no problem - I call IntegerType.GetAllSymbols and then extract the
> data from the list. However this doesn't work for pwVcOwner - the best I
> havve been able to do is to extract a list of possible values from the
> constraints. What I need is the symbolic names for those values.
>
> Does anyone know of a way to get the names?
>
> Regards
>
> David Kohen
>
> PwVcType ::= TEXTUAL-CONVENTION
> STATUS current
> DESCRIPTION
> "Indicates the PW type (i.e. the carried service).
> "
> SYNTAX INTEGER {
> other(0),
> frameRelayDlci(1),
> atmAal5SduVcc(2),
> atmTransparent(3),
> ethernetTagged(4),
> ethernet(5),
> hdlc(6),
> ppp(7),
> cem(8), -- old format
> atmCellNto1Vcc(9),
> atmCellNto1Vpc(10),
> ipLayer2Transport(11),
> atmCell1to1Vcc(12),
> atmCell1to1Vpc(13),
> atmAal5PduVcc(14),
> frameRelayPortMode(15),
> cep(16),
> e1Satop(17),
> t1Satop(18),
> e3Satop(19),
> t3Satop(20),
> basicCesPsn(21),
> basicTdmIp(22),
> tdmCasCesPsn(23),
> tdmCasTdmIp(24)
> }
>
>
>
>
> _______________________________________________
> Mibble-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/mibble-devel