if (snmpAgent !=null)
{
try
{
Long upTime = (Long)server.getAttribute(snmpAgent, "Uptime");
return new SnmpTimeTicks(upTime.longValue() / 10);
}
catch (Exception e)
{
log.debug("Can't get uptime value from agent");
}
}
// fallback
return new SnmpTimeTicks(System.currentTimeMillis() / 10);
}