[SNMP4J] own agent with own mib
Martin Fischer
fischerm at it.uts.edu.au
Wed Dec 5 01:09:19 CET 2007
Still it is not working. I'll post everything that I think is related to
the view:
This is the user we are using:
user = new UsmUser(new OctetString("TEST"), AuthSHA.ID,
new OctetString("asdf"), PrivDES.ID, new OctetString("asdf"));
usm.addUser(user.getSecurityName(), usm.getLocalEngineID(), user);
=============
vacm.addGroup(SecurityModel.SECURITY_MODEL_USM, new
OctetString("TEST"), new OctetString("v3test"), StorageType.nonVolatile);
=============
vacm.addAccess(new OctetString("v3test"), new OctetString(),
SecurityModel.SECURITY_MODEL_USM, SecurityLevel.AUTH_PRIV,
MutableVACM.VACM_MATCH_EXACT, new OctetString("testReadView"),
new OctetString("testWriteView"), new
OctetString("testNotifyView"), StorageType.nonVolatile);
=============
vacm.addViewTreeFamily(new OctetString("testReadView"), new OID(
"1.3.6.1.3"), new OctetString(), VacmMIB.vacmViewIncluded,
StorageType.nonVolatile);
Frank Fock schrieb:
> Hi Martin,
>
> Martin Fischer wrote:
>>> (b) that the OID of the scalar is in the MIB view of the user
>>> (community) you are using to access the agent?
>>
>> We added
>> vacm.addViewTreeFamily(new OctetString("testReadView"), new OID(
>> "1.3.6.1.3"), new OctetString(), VacmMIB.vacmViewIncluded,
>> StorageType.nonVolatile);
>>
>> to the addViews method. The OID of serverIP is 1.3.6.1.3.1.1.0. Is that
>> sufficient?
>>
> Yes, if the user/community you are using with the request
> is associated with this view.
>
> Best regards,
> Frank
>
>
More information about the SNMP4J
mailing list