[SNMP4J] How to create a scalar object with a snmpType="TruthValue"
Frank Fock
fock at agentpp.com
Wed Mar 25 21:31:17 CET 2009
Hi Ouafae,
Just use "new Integer32(1)" with TruthValueTC.createScalar(..).
Best regards,
Frank
wafae alami wrote:
> Hi ,
>
> I want to create a MOScalar object for a scalar mbean attribute :
> attribute type =boolean
> attribute snmpType=TruthValue
>
> MOScalar moScalar =
> moFactory.createScalar(oidScalarMbeanAttribute,
>
> moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_WRITE), ? ,
> "MIB-MODULE-NAME", "TruthValue")
>
>
>
> what should be the value of the Variable argument ?
> Sould I create an enumeration for that attribute with "true" , "false"
> value or there is another thing ready to use in that case ?
>
>
>
>
> Thanks in advance .
>
> Ouafae .
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com
More information about the SNMP4J
mailing list