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
[email protected]
http://lists.agentpp.org/mailman/listinfo/snmp4j

--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com

_______________________________________________
SNMP4J mailing list
[email protected]
http://lists.agentpp.org/mailman/listinfo/snmp4j

Reply via email to