Thank you Victor for a detailed explanation, it's very helpful.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
transport = CreateSNMPTransport($node);
if (transport == null)
{
trace(1,"Snmp transport error on ".$node->ipAddr);
return -1;
}
uptime = SNMPGetValue(transport, ".1.3.6.1.2.1.1.3.0");
if (uptime != null)
{
// return uptime/100; // in seconds as float
// return uptime/8640000 // in days as float
return SecondsToUptime(uptime/100); // readable format
}
else
{
trace(1,"Could not read uptime value for ".$node->ipAddr);
return -1;
}