Mail Archive: Open Networks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Exception when calling setName on SystemGroup
Hi Bryan,
>
> Hello,
>
> I have a couple of questions related to using SNMP API calls.
>
> 1. When I call systemGroup.setName(String), I get the following
> exception
>
> Exception:
> com.nortelnetworks.ore.service.jmibmap.loopback.LoopbackException: Ca
> nnot send PDU: com.nortelnetworks.ore.service.jsnmp.SnmpException: PDU
> receive e
> rror: Receive timed out
The problem is that you can not write to the SNMP agent. Try snmpset for
sure.
>
> 2. As I read from the SNMP spec, SNMP requests should indicate the
> community name it is using, how is that achieved in the API ? Where
> should I set the community name to be for authentication purpose ?
Two communities are used internally by "jmibmap_loopback", they are
"public" and "private". If you want to use your own communities, you'd
re-write the a new JMIB mapper.
On the other hand, these Java mibs (e.g., jmib_mib2 for MIB II) are
automatically generated from their mib texts which do not contain a
community name. So, the JMIB APIs do not support setting a community
name. Rob, it that right?
Thanks,
Phil
>
> Any comments much appreciated.
>
> Thanks,
>
> Bryan
Home |
Date Index |
Thread Index