[SNMP4J] How to create a scalar object with a snmpType="TruthValue"
wafae alami
alami.ouafae at gmail.com
Thu Mar 26 17:53:49 CET 2009
Hi Frank ,
Thank you for your response , it's Ok now , but what's about scalar
mbean attribute with :
type="long"
snmpType="TimeTicks"
I have found a similar class to TruthValueTC : TimeStampTC ,Is it the
correct one to use for that case ? and what's about the value of Variable
argument ?
Best regards,
Ouafae.
2009/3/25 Frank Fock <fock at agentpp.com>
> 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