[SNMP4J] snmp agent setValue not being called
Frank Fock
fock at agentpp.com
Tue Feb 4 21:09:26 CET 2014
OIDs do NOT start with a dot!
Have you analyzed the log output of the agent? There you should find
the exact reason.
Best regards,
Frank
Am 04.02.2014 18:52, schrieb David Morales de Frías:
> Thanks for your quick reply Frank.
>
> I'm just creating the MOScalar extended objects
> with MOAccessImpl.ACCESS_READ_WRITE access.
>
> and this is my addViews method in snmp agent, sorry for posting code
> but i can't see where is the problem.
>
>
>
> @Override
> protected void addViews(VacmMIB vacm) {
> vacm.addGroup(securityModel, new OctetString(username), new
> OctetString(_uuid), StorageType.nonVolatile);
> vacm.addAccess(new OctetString(_uuid),
> new OctetString(community),
> SecurityModel.SECURITY_MODEL_ANY,
> authenticationType,
> VacmMIB.vacmExactMatch,
> new OctetString("fullReadView"),
> new OctetString("fullWriteView"),
> new OctetString("fullNotifyView"),
> StorageType.nonVolatile);
> vacm.addViewTreeFamily(new OctetString("fullReadView"),
> new OID("1.3"),
> new OctetString(),
> VacmMIB.vacmViewIncluded,
> StorageType.nonVolatile);
> vacm.addViewTreeFamily(new OctetString("fullWriteView"),
> new OID(".1.3.6.1.4.1.32275.2.1.2.1.1.1.0"),
> new OctetString(),
> VacmMIB.vacmViewIncluded,
> StorageType.nonVolatile);
> vacm.addViewTreeFamily(new OctetString("fullWriteView"),
> new OID("1.3"),
> new OctetString(),
> VacmMIB.vacmViewIncluded,
> StorageType.nonVolatile);
>
> }
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 2014-02-04 Frank Fock <fock at agentpp.com <mailto:fock at agentpp.com>>:
>
> Hi,
>
> Then you might have to check your security configuration (VACM MIB).
> Maybe you are not allowed to set the value. Also check the access
> rights
> for the value.
>
> Best regards,
> Frank
>
> Am 04.02.2014 16:44, schrieb David Morales de Frías:
>
> Hi there,
>
> I'm trying to setup a snmp agent, by registering several
> MOScalar extended
> objects.
>
> I have overwritten getValue and it's working nicely but when
> can't say the
> same about the setValue.
>
> This method is never being called when i set a value from a
> snmp client.
>
> Any idea? Maybe the agent is not properly configured?
>
>
> Regards.
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org <mailto:SNMP4J at agentpp.org>
> https://s16675406.onlinehome-server.info/mailman/listinfo/snmp4j
>
>
> --
> ---
> AGENT++
> Maximilian-Kolbe-Str. 10
> 73257 Koengen, Germany
> https://agentpp.com
> Phone: +49 7024 8688230 <tel:%2B49%207024%208688230>
> Fax: +49 7024 8688231 <tel:%2B49%207024%208688231>
>
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org <mailto:SNMP4J at agentpp.org>
> https://s16675406.onlinehome-server.info/mailman/listinfo/snmp4j
>
>
--
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax: +49 7024 8688231
More information about the SNMP4J
mailing list