Server Uptime

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
KHeitz
Posts: 14
Joined: Thu Jan 27, 2011 8:02 am

Server Uptime

Post by KHeitz »

Hello,

I'm looking for a task that displays the server uptime.
But I have so far not found any script that displays the uptime in format with the following:

DD-HH-MM

Can anyone help me in this cause?

Thank you and best regards
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

What exactly server do you want to check? If server supports WMI or SNMP protocol, I don't think you need any script.
You may use SNMP Get or WMI test method and "Tune up Reply value" option.

E.g.
WMI test
Query: Select SystemUpTime from Win32_PerfFormattedData_PerfOS_System
Tune up Reply value: Reply = [%SuggestedReply% div 86400]-[(%SuggestedReply% mod 86400) div 3600]-[(%SuggestedReply% mod 3600) div 60]

SNMP test
OID: 1.3.6.1.2.1.1.3.0
Tune up Reply value: Reply = [(%SuggestedReply% div 100) div 86400]-[((%SuggestedReply% div 100) mod 86400) div 3600]-[((%SuggestedReply% div 100) mod 3600) div 60]

Regards
Alex
KHeitz
Posts: 14
Joined: Thu Jan 27, 2011 8:02 am

Post by KHeitz »

Hi,

I have some problems with the test.
If I use WMI, shows me the server 1 hour 56 minutes
If I use snmp on the same server shows me the test 8 days
In the network card will also appear on 8 days.
Why does WMI not the correct time.
Do I read a different value in WMI?
Because, unfortunately, not all servers, the SNMP query works, I would like to take the test on WMI.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Why does WMI not the correct time
Good question to Microsoft.
What Windows do you use? Service Pack?

As we know SNMP agent provides sysUptime that actually shows time since SNMP service restart (service, not entire system) so if you restart SNMP agent, this counter will be resetted.
May be there is some similar issue with WMI but we did not find such informaion. I think it always show correct system uptime...

Are you using correct query for this test?
What test settings do you use (query, tune-up reply expression)?

Regards
Alex
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

BTW:
May be somebody changed system time on this system? In such case WMI can report invalid uptime.

Regards
Alex
KHeitz
Posts: 14
Joined: Thu Jan 27, 2011 8:02 am

Post by KHeitz »

Hi,
The time on the server is correct.
I have now checked the wmi parameters several times.
but this value remains the same.
The output from the wmi test is always the same.
TCwho
Posts: 1
Joined: Sun Jul 22, 2012 9:25 pm

Post by TCwho »

I am also trying to configure an WMI report for SystemUptime. I did the following:

Add>>WMI

Clicked on WMI Explorer

Located Win32_PerfRawData_PerfOS_System and saw SystemUpTime as a variable. I ended up saving it as: select SystemUpTime from Win32_PerfRawData_PerfOS_System

After tests excutes, I am unable to see result in DD-HH-MM-SS format. Where do I enter the "Tune Up Reply" value referenced in this thread?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You do not see this option?
Then click small [+] button located above [Help] button (Test Properties dialog)

Regards
Alex
Post Reply