mibble-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mibble-users] 2.9.3 not recognizing SMIv1 traps?


From: Per Cederberg
Subject: Re: [Mibble-users] 2.9.3 not recognizing SMIv1 traps?
Date: Sun, 14 Oct 2012 10:16:01 +0200

The SNMPv1 TRAP-TYPE is available, but not part of the OID tree.
Hence, retrieving these traps cannot be done via the root symbol of
the MIB.

Instead, try looping over mib.getAllSymbols() or use
mib.getSymbol(name) or mib.getSymbolByValue().

These traps should of course be shown in MibbleBrowser, however. I've
added a bug for that:
https://github.com/cederberg/mibble/issues/6

Cheers,

/Per

On Tue, Oct 9, 2012 at 3:51 PM, Matthew Walker
<address@hidden> wrote:
> Greetings.
>
> Processing snippet (parsing with mibble 2.9.3)
> =============
> MibSymbol symbol = mib.getRootSymbol();
> MibType type = ((MibValueSymbol)symbol).getType();
>
> if (type instanceof SnmpTrapType) {
>             System.out.println("FOUND SNMP TRAP TYPE");
> }
>
> MIB snippet
> =============
> vlanPortMoveTrap    TRAP-TYPE
>     ENTERPRISE     samsung
>     DESCRIPTION
>         "This trap occurs when the specified port is moved from a vlan."
>     ::= 603
>
>
> in both my code and the MIB Parser utility (GUI) that comes with 2.9.3 this
> value 'vlanPortMoveTrap' is not found. Certainly I am doing something wrong
> (and my understanding of MIBs and SNMP is rudimentary, at best, so that
> doesn't help). Basic question - does mibble 2.9.3 support SMIv1 trap
> definitions. Both my code the parser utility recognize SMIv2
> NOTIFICATION-TYPE just fine.
>
> Much Thanks.
>
> -Matthew
>
>
>
>
> _______________________________________________
> Mibble-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/mibble-users



reply via email to

[Prev in Thread] Current Thread [Next in Thread]