Questions tagged [uptime]

uptime is a Unix command which tells how long the system has been running.

Note: Please use for questions relating to the remote monitoring tool Uptime.

173 questions
1
vote
1 answer

how to get complete startup time on solaris

I'm struggling to find a command or even a way to find the complete startup time on my Solaris(sun4u sparc SUNW,Netra-T12) box Solaris who -b gives me Jun 22 11:09 but no year same with last reboot | head -n 1 However in my Linux(GNU/Linux x86_64)…
Bad_Coder
  • 1,019
  • 1
  • 20
  • 38
1
vote
1 answer

ktime_get() equivalent in user space

I want to map the time taken through ktime_get() at kernel space to something of the same unit from user space. Is there any proc entry or any other source(at user level) which can be compared with ktime_get()?
Sandeep
  • 18,356
  • 16
  • 68
  • 108
1
vote
1 answer

Cmd/PowerShell/SQL server: Is there any way to see how long a windows service has been running?

So I managed to check if a sevice is running with sc query "ServiceName" | find "RUNNING" or net start | find "Service Name", or in SQL Server using xp_servicecontrol. Is there any way to see the uptime of a service? How can I see the uptime of a…
Claudiu Haidu
  • 817
  • 4
  • 12
  • 24
1
vote
1 answer

Getting user uptime in bash script

I'm trying to write a bash script and need to learn how many seconds past since user logged in(xsession). I'm searching for hours and i couldn't find a solution for that. I found only uptime command but i think it's only get computers running…
1
vote
1 answer

C++ Kill child processes, but not parent, and uptime through exec function

I don't know if the current way I am killing the child processes is correct. I want when child three's timer (temp) hit's zero that it kills all the children, then the parent prints a message than exits. Also, I tried using sysinfo to get the uptime…
user3339703
  • 73
  • 1
  • 10
1
vote
1 answer

How to find uptime, load average for last one hour in Solaris/Unix like OS

I want to find load average of system for last one hour. I could find the command:uptime 07:05:05 up 1151 days, 20:06, 2 users, load average: 0.01, 0.10, 0.29 Where average number of jobs in the run queue over the last 1, 5 and 15 minutes. I want…
1
vote
3 answers

How can I get the uptime of a IBM AIX box in seconds?

I'm writting a Perl script for which I need the uptime in seconds to do some calculation, in all the machine in the shop (i.e. linux, SunOS, and AIX). I have a way to get the uptime for linux (/proc/uptime), and SunOS (kstat -p…
user251529
1
vote
1 answer

ManagementFactory.getRuntimeMXBean().getUptime() formatting to display day, hours, minutes, and seconds

This is my code to display the uptime of the application: /** * Gets the uptime of the application since the JVM launch * @return The uptime in a formatted String (DAYS, MONTHS, MINUTES, SECONDS) */ public static String getGameUptime() { …
Tyluur
  • 91
  • 1
  • 2
  • 9
1
vote
1 answer

Know if uptime timer is reset or Android has been rebooted

I have a independent clock created in my application. The clock runs as a different thread in the activity, starting from a base time set by me. I update the clock using the difference between the uptimemillis when I set the clock, and the current…
Eghes
  • 177
  • 1
  • 5
  • 18
1
vote
2 answers

How to deal with uptime and redundancy issues in a shared hosting environment in coldfusion?

I'm running a production service in a shared Coldfusion 10 environment. Although it is much more reliable than CF9, I still run into some issues that when they do, the live service might be down for almost a day before the techs take care of…
1
vote
3 answers

Wordpress Site Monitoring software / service

What do you use to monitor the uptime / performance of your websites, specifically those based on a PHP/MySQL platform like Wordpress? I'm looking for something that alerts me if the site is down, or performing too slowly, and has some useful (not…
David Laing
  • 7,605
  • 10
  • 33
  • 44
0
votes
5 answers

Measuring server uptime

I'm creating an game server list, and I want to measure uptime for certain server (to be specific, uptime should be displayed in percents). I have configured a cronjob for my script, which is checking every 5 minutes if server is up or down, so I…
Cyclone
  • 14,839
  • 23
  • 82
  • 114
0
votes
3 answers

getting program uptime

I'm beginner to programming. This is my code: private void timer1_Tick(object sender, EventArgs e) { sec++; textBoxSeconds.Text = sec.ToString(); if (sec > 59) { sec = 0; textBoxSeconds.Text = sec.ToString(); …
docxx
  • 93
  • 1
  • 4
  • 12
0
votes
0 answers

How to get uptime using BGinfo on desktop?

I need assistance in obtaining the system uptime using BGinfo. I have tried various methods, including PowerShell and VBScript, but unfortunately, I haven't been able to display the uptime information on the BGinfo desktop wallpaper. Can anyone…
0
votes
0 answers

Trying to calculate total windows uptime for each day using the Windows Event Log (System)

I am trying to calculate the uptime of a system by analyzing Windows Event Log records. The goal is to determine the duration for which the system was operational (i.e., not shut down) on specific date range. The code attempt reads the Windows Event…
Omar Ahmed
  • 139
  • 8