[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mibble-users] newbie question about using mibble
From: |
Lloyd Parkes |
Subject: |
Re: [Mibble-users] newbie question about using mibble |
Date: |
Fri, 14 Sep 2012 09:25:59 +1200 |
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