[SNMP4J] to convert from string to integer
Rajiv Subramanyam
rajiv_1024 at yahoo.com
Fri Mar 23 13:05:38 CET 2007
pdu.add(new VariableBinding(new OID(new int[]
{1,3,6,1,2,1,25,2,3,1,6,9})));//RAM-hrStorageUsed
ResponseEvent responseEvent = snmp.send(pdu, target);
if (responseEvent != null)
{
response = responseEvent.getResponse();
pdu.setType(PDU.GET);
System.out.println("the obtained value is:");
VariableBinding vb=new VariableBinding();
vb=response.get(0);//gets oid and the value
String d= vb.getVariable().toString();
}
how do i convert d from string to integer i tried but
i was not able to covert so please some one help to
solve the problem.I have pasted the code above
Regards
rajiv
____________________________________________________________________________________
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
More information about the SNMP4J
mailing list