Mail Archive: Open Networks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: JMIB Example
HI Bryan,
The error is caused by that the JSNMP failed to conntect with the SNMP
daemon. You likely did not use the correct services when you ran the
example. Under Linux, I edit "start.properties" with the following line.
start: logger.jar shell.jar startupShell.jar logwriter.jar jmib.jar
jmib_mib2.jar jsnmp.jar jmibmap_loopback.jar mib_example.jar
You may need to set an environment varialble to your local host.
OREPROPERTIES="-Djmibmap.loopback.target=localhost"
Hope that the above helps. Regards,
Phil
"Ha, Bryan" wrote:
>
> Hello,
>
> I have tried to run the JMIB example on WinNT but this time with SNMP
> services set up.
>
> I have put the MibExample.jar into the start.properties file and when
> it starts up, it throws an error:
>
> java.lang.Error: Attempt to create a variable with no backend defined
> for its OID
>
> at
> com.nortelnetworks.ore.service.jmib.JMibImpl.getSubtrie(JMibImpl.java:118)
> at
> com.nortelnetworks.ore.service.jmib.JMibImpl.getScalar(JMibImpl.java:89)
> at
> com.nortelnetworks.ore.service.jmib.mib2.SystemGroup.<init>(SystemGroup.java:52)
> at
> com.nortelnetworks.ore.service.jmib.mib2.Mib2Group.getSystemGroup(Mib2Group.java:54)
> at
> com.nortelnetworks.ore.service.jmib.mib2.Mib2Impl.getSystemGroup(Mib2Impl.java:47)
> at
> examples.jmib.MibServiceImpl.doMibStuff(MibServiceImpl.java:28)
> at examples.jmib.MibExample$1.run(MibExample.java:21)
>
> Does anybody know why this is happening ?
>
> I read from the FAQ that I need a SNMP-v2 deamon. Does it have to be
> version 2 ?
>
> Any comments are much appreciated.
>
> Bryan Ha
Home |
Date Index |
Thread Index