[SNMP4J] cannot print out date properly
Sam Chen
csam2ca at yahoo.com
Fri Sep 2 05:18:02 CEST 2005
Hi,
When I tried to get the software table and tried to
print out the result for
installed_date(1.3.6.1.2.1.25.6.3.1.5) by using the
following code:
////////////////////////////////////////////
VariableBinding[] variables = tableEvent.getColumns();
String value = variables[3].getVariable().toString();
system.out.println(value);
/////////////////////////////////
and it prints out the value like
07:d5:07:15:17:08:20:00
I was expecting values like a date format of string.
How can I convert that to a string that is in the date
format?
thanks in advance
sam
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
More information about the SNMP4J
mailing list