mibble-users
[Top][All Lists]
Advanced

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

Re: [Mibble-users] newbie question about using mibble


From: diffuser78
Subject: Re: [Mibble-users] newbie question about using mibble
Date: Tue, 18 Sep 2012 18:26:20 -0700

Hey Lloyd,
 
Quick question: Which class should I use if I want to get the OID by giving Symbol, i.e getOID(ifMIB) will return me "1.3.6.1.2.1.31" ?
 
Thanks.

On Thu, Sep 13, 2012 at 2:25 PM, Lloyd Parkes <address@hidden> wrote:

On 14/09/2012, at 5:34 AM, diffuser78 <address@hidden> wrote:

> Hi All,
>
> I am a newbie at Java and mibble both. Can you please point me how to get started for the following:
>
> 1. I want to read http://net-snmp.sourceforge.net/docs/mibs/IF-MIB.txt ( I am assuming I will use MibLoader to load and read this, please correct me if I am wrong)

Mibble has a local copy of IF-MIB, so you don't need to read it off the internet.

    MibLoader mibLoader = new MibLoader ();
    Mib ifMib = mibLoader.load ("IF-MIB");

> 2. I want to to be able to get OID values if I provide snmp object names as follows: i.e if I want snmp object for 1.3.6.1.2.1.2 then mibble gives me "interfaces".  What class or api will I need

MibValueSymbol interfaces = ifMib.getSymbolByOid ("1.3.6.1.2.1.2");

Cheers,
Lloyd


_______________________________________________
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]