Hi everybody,
i am trying to display the Windows Server Uptime.
-
There is iso.org.dod.internet.mgmt.mib-2.system.sysUpTime.sysUpTimeInstance (1.3.6.1.2.1.1.3.0) which shows the uptime of the SNMP service.
-
And there is iso.org.dod.internet.mgmt.mib-2.host.hrSystem.hrSystemUptime.0 (1.3.6.1.2.1.25.1.1.0) which shows a strange time.
The 1. time says: 07:12:13.97 (must be hh:mm:ss.ms)
The 2. time says: 4d 08:43:07.18
The systems is up since 7 hours and 15 minutes.
I found the real uptime in the performance library under system > system up time (i used the snmptools.dll to transfer those wmi-date to snmp).
This time says 38027.3689884 which is true > 38027 seconds.
I can to a /60 /60 /24 to get the days. And i can round. But i am not able to convert/split this number into pieces of days, hours and minutes.
Can somebody give me a hint on this one? Would be really great…
Thanks ![]()