General :: Last Uptime After Reboot?

Dec 3, 2010

I want to know if there is a way to know the uptime for a server after a reboot process, I need that information for a statistic, but I forgot to take the uptime before reboot the server, so I am looking for that information after the server is power on.

View 1 Replies


ADVERTISEMENT

Red Hat :: Uptime Dropped Dramatically But No Reboot Logged Anywhere?

Apr 22, 2010

This is an observation of something that I can't explain. Its not a problem in itself.

[Code]...

View 2 Replies View Related

Server :: Init Uptime Longer Than System Uptime?

Sep 15, 2010

How can init process uptime be longer than the uptime of whole system?

Code:
martin@server:~> ps -p 1 -o pid,cmd,bsdtime,start
PID CMD TIME STARTED
1 init [3] 20:50 Mar 05
martin@server:~> uptime
2:23pm up 559 days 1:42, 10 users, load average: 0.18, 0.28, 0.34
martin@server:~>

View 1 Replies View Related

General :: Uptime - Getting Date & Time Of System Startup?

Mar 28, 2011

I know that uptime prints the time a machine has been up and running, but is there an easier (reliable) way to get the date of the start up than counting down from this output?I tried looking around /proc, but didn't find anything of relevance. There's also a line like this on my dmesg: [ 0.673492] rtc_cmos rtc_cmos: setting system clock to 2011-03-14 14:26:52 UTC (1300112812), but I'm wondering if this method is distribution and kernel version agnostic.

View 5 Replies View Related

General :: Difference Between System Uptime And Last Boot Time?

May 11, 2011

My Linux system was last rebooted few hours ago. But it seems little confusing for me to figure out the exact reason behind it. I guess following command should justify what i meant to say.

Code:
# date
Wed May 11 13:22:49 IST 2011
# last | grep "May 10"
reboot system boot 2.6.18-194.el5 Tue May 10 17:35 (19:46)
root pts/1 XXXX Tue May 10 17:24 - 18:18 (00:53)

[Code]...

My question is Why the uptime is saying that the system is up since last 47 min.It should be more than 1 day if i m not wrong.

View 2 Replies View Related

General :: Calculation Of Working Time Based On System Uptime

Jul 28, 2010

I know several tools that allow tracking time spend on different tasks / projects.Is there any existing tool for very very simplified work-time-tracking.I am an employee, come to the office, switch on my laptop directly. I have mostly around 1 hr lunchtime, but sometimes less, sometimes more.At around 18:00 I want to type one command in the console (or simple GUI would also be okay of course) that tells me:"1 hour overworked. Go home now! (came at 8:00, 1 hour standard lunch-break)."

View 1 Replies View Related

General :: Embedded Reboot Crash - Error Executing The Reboot Command

May 4, 2011

I'm working with Linux 2.6.23 on an embedded device and am receiving the following error executing the reboot command.

View 2 Replies View Related

General :: Will Not Reboot After Install (Arch) - -bash: /sbin/reboot: Input/output Error

Oct 7, 2010

I am using sda1 as /, which is a bootable drive. I do not know if my problem is that I did not create a /boot drive. After removing the iso dvd, I tried to reboot and I get this back: -bash: /sbin/reboot: input/output error Then it returns me to the terminal prompt.

View 6 Replies View Related

General :: How To Change "uptime"

Apr 13, 2010

Being a newbie, I did check for similar threads before posting this message. There is an existing thread that contains a very similar question to mine, but since the existing thread is approx. 7 years old, I thought I would go ahead and post my question.I am wondering how I can change "uptime" on a Linux 2.6 box. I want to do this to test a complex wireless system that contains multiple Linux boxes.I am able to change "uptime" on a Solaris or VxWorks box with "lbolt" and "tickSet" commands respectively. But these commands do not work on Linux boxes (no surprise there).

View 9 Replies View Related

Debian :: GNU - Resets It's Uptime Every 497 - 498 - Days

Sep 10, 2010

I've read from some Web-page that GNU/Linux resets it's uptime every 497 (498) days... So even if GNU system works 1000 days, uptime never will be more then 497 (498) days. Is it true?

View 2 Replies View Related

Debian :: Silent Lenny After 1-3day Uptime?

Apr 14, 2010

This seems like a nicely populated forum so I hope some knowledgeable people happen to see this thread.

I've been encountering this issue where the system will not respond to seemingly anything after being on for generally no shorter than a day but sometimes as long as three days. This has been going on for few months since I only have physical access to the machine for about a day or two once every two weeks. So I'll come to the machine, reboot it, it will be fine for a day; then about a day after I'm away from it, it will not respond in any way. When I am away from it I only have ssh access, but when I'm with it, I have access to anything and everything.

After it locks up into the silent issue I have tried: ssh either remotely or locally, where it will time outPinging from the local network, where I get "ping: sendto: Host is down" a lot and occasionally a "ping: sendto: Host is down"Plugging in a monitor and keyboard, where the monitor never gets a signal no matter what I do on the keyboard. When it isn't locked up into the silent issue and I plug in the keyboard and monitor, the monitor gets a signal right after I hit the spacebar for sure. After the silent issue triggers it's fans still whir, the power light is on and light on the Ethernet port is on (and turns off if I unplug the Ethernet cable, and back on if I plug it back in) like everything was normal but there is no hard drive or network activity (even after unplugging/replugging the Ethernet cable).

After a reboot, all log files have nothing past a certain time and date, which I assume is the time when the silent issue got triggered. My setup is the following: Debian 5.0 "lenny" on an HP ProLiant ML110 G6Using full disk encryption with ext3 which was all set up by the installerIIRC "core" and "minimal" were selected in tasksel during install. I'm sure about "core", not about "minimal". The programs I have running are apticron, ddclient, sshd, fail2ban, screen, php-cgi (php5-cgi), cherokee (from unstable) and rtorrent (from unstable). I can provide a "ps aux" if necessary. The packages from unstable, that I have all set to Pin-Priority 990 in /etc/apt/preferences, are:

[Code]...

I'm pretty sure I don't have ECC memory so I don't think a lockup from a flipped bit is an issue. I'm thinking one thing to test would be to set up some kind of daemon that sends log info over the network to a logging server and compare the latest timestamps of what the daemon sent versus what the latest info on the disk is, and that would show that the issue is with the encrypted disk since things are still functioning in memory but not able to write to disk. If that's the case then I guess it locks up eventually from not being able to read or write something. Does anyone know of something out there like this? Or perhaps a way to do something similar?

Is there something I could do to determine whether this is caused by maybe some kind of kernel panic or by something like the motherboard having issues?

View 7 Replies View Related

Ubuntu :: Write A Script To Gather The Uptime Of A Box?

Jun 23, 2011

trying to write a script to gather the uptime of a box and send an email out if the box has died. Problem being that this is hard when `uptime` changed from the format 23:59 to 1 day. Is there a method to just see the uptime in hours or minutes or even seconds?

View 4 Replies View Related

Programming :: Get System Uptime In YYMMDD Format?

Feb 22, 2010

language: cOs: ubuntu 9.10 want a c or c++ program that gives the system uptime in YYYY: MM: DD HH : MM: SS format.eally it is head ditching..This is not home work or assisgnment..

View 10 Replies View Related

Ubuntu Servers :: Server With Planned Short Uptime?

Jul 27, 2010

I've installed Ubuntu server on a small box with a couple of large hard drives to use as a remote backup server. Since my backups will run nightly in the wee hours, I'm configuring this to use Wake-on-LAN to start the server and run the backup. Once the backup completes - probably on the order of an hour later - another script shuts the server down. Once in a while I'll remote in to update packages and check on the status of the system, though I can check backup logs to insure that is still running.

Need I be concerned about the various cron jobs that periodically run to tidy things up? Should I periodically - say once/month - leave the system up for a full day to make sure that everything that needs to happen will run?

View 9 Replies View Related

Ubuntu Servers :: Server Ram Usage Increases Dramatically After A Few Days Of Uptime?

Jan 31, 2010

I was wondering why after a couple of days of my ubuntu server running, that it goes from starting off at 94mb of ram usage all the way up to 498mb of ram usage?

View 2 Replies View Related

Ubuntu Servers :: Mail Server Will Not Receive Emails After Uptime Over One Hour?

Jan 12, 2011

It is the strangest thing. I can not receive emails on this server after it has been up for an hour. I noticed that everytime and email is received that a sshd opens but never closes. Causeing a memory issue that I dont know how to fix. Also the mailq grows and grows. Mostly with email stating the recipient and send are both [URL].. also postmaster@mail.jmchd.com shows mail system configuration error. I have to restart the server every 30 minutes so users can get and send emails. This is horrible because for every 5 minutes out of the hour emails are bouncing.i have looked through them but I know not what I am looking at.

PS. I was thrown into the position and have limited knowledge. I am used to a GUI.

View 4 Replies View Related

Ubuntu :: Applet Which Shows The Total Data Usage (In+out) (of The Current Session Or Since The Uptime) On The Panel?

Jul 7, 2011

I need applet which shows the total data usage (In+out) (of the current session or since the uptime) on the panel.I searched a lot, but everytime I had to click somewhere to see my data usage. I don't want that. I want my data usage displayed regularly on the panel.

View 9 Replies View Related

General :: [FYI] "last -f <old Wtmp> -x Reboot Shutdown" Incorrect For Last Reboot And Shutdown?

Mar 25, 2010

Further to this LQ thread which Tinkster solved by suggesting the last command (thanks Tinkster) I have been exploring last -x reboot and have found that the reported duration is incorrect for the last reboot and shutdown when a old wtmp file is used. Not having a record for the following shutdown, last assumes that the system has been up until the current time and similarly for the shutdown.

The output comes in time order, latest first, each line showing the time of the reboot and the uptime from then to shutdown. Using last -x reboot shutdown to show the shutdown time, here's an illustration

Code:

shutdown system down 2.6.29.6-smp Sun Mar 7 15:35 - 03:02 (11:27)
reboot system boot 2.6.29.6-smp Sun Mar 7 09:35 (05:59)
09:35 until 15:35 is 05:59.

When the uptime exceeds 24 hours it is shown as (<days>+<hours:minutes) like this
Code:
shutdown system down 2.6.29.6-smp Sun Feb 21 12:39 - 13:20 (00:40)
reboot system boot 2.6.29.6-smp Sat Feb 20 09:39 (1+02:59)
09:39 until 12:39 the next day is 1 day 02:59.

The time in parentheses at the end of the shutdown lines is normally the time until the next shutdown.

So far so good. The incorrect output is for the last reboot and shutdown of an old wtmp file. Here's the output of last /var/log/wtmp -x reboot shutdown; last -f /var/log/wtmp.1 -x reboot shutdown

Code:

[snip]
reboot system boot 2.6.29.6-smp Fri Mar 12 07:42 (01:54)
shutdown system down 2.6.29.6-smp Fri Mar 12 01:31 - 09:37 (08:05)
wtmp begins Thu Mar 11 08:25:26 2010
[snip]
reboot system boot 2.6.29.6-smp Wed Mar 10 14:12 (15+01:42)
shutdown system down 2.6.29.6-smp Wed Mar 10 12:41 - 15:54 (15+03:13)
[snip]

The boot started at "Wed Mar 10 14:12" which had an actual uptime of 1 day 11:20 is reported as 15 days 03:13 which is the time from then until the last -f /var/log/wtmp.1 -x reboot shutdown command was issued. The time from shutdown to shutdown is similarly affected.

View 1 Replies View Related

Red Hat / Fedora :: Identify Reboot Source Or Cause Of Reboot?

Feb 16, 2011

last -a shows server rebooted, how to identify the source or cause of reboot? thx reboot system boot Wed Feb 16 08:52 (02:0 2.6.21.7-2.fc8xen

View 2 Replies View Related

Red Hat / Fedora :: Difference Between "uptime" And "date" Command?

Sep 9, 2010

what is diff between "uptime" and "date" command. where we can use these command

View 3 Replies View Related

General :: What Really Does 'reboot -f ' Command Does

May 17, 2010

What is the exact way 'reboot -f' command operates? How does it differ from regular reboot/shutdown? Is it proper to restart pc using 'reboot -f', if not why? The reason why I'm asking this: After installing live-distros via USB, I usually do this 'reboot -f' for restarting.

View 1 Replies View Related

General :: Can't Reboot Server

Jul 2, 2011

I login to my server and when I open new console I get:

-bash: /etc/profile: Input/output error
-bash: /root/.profile: Input/output error

and nothing is working I tried to reboot or top command but not working also I can't open SFTP the server says The server has rejected the SFTP request.

View 2 Replies View Related

General :: Reboot From Windows With Grub?

May 6, 2010

I have machine with Windows and Linux with GRUB, only with remote access. Is there any way to chage default OS in grub from windows? I know how to achieve it from linux, something like

echo "savedefault --default=2 --once" | grub --batch; sudo reboot

should work. Is there any way to achieve it from windows?

View 1 Replies View Related

General :: Sustain Data After Reboot?

Feb 1, 2011

i want to sustain some contents in a particular directory say /usr/bin/dir1 after reboot

View 5 Replies View Related

General :: Changes To /etc Files Revert Changes After Reboot?

Nov 22, 2010

I've been messing around with a Verizon Hub trying to see if I can get it to register with my Asterisk server. I have been able to telnet into the phone with the root username. I can change files in every other folder on the device except in the /etc folder. I have tried mounting many different ways, changing file permissions but everytime I change the file and reboot it goes back to its default configuration.

View 2 Replies View Related

General :: Possible UUIDs Changing Every Reboot?

Aug 1, 2011

I have installed CrunchBang, then I moved the /tmp and /var to different partitions (I like to put these on reiserfs) the reason I did it after the install is because CrunchBang's installer doesn't give me the options to create reiserfs partitions during install (but does recognise reiserfs as I can manually mount them). Also these two partitions are logical.Anyway I have Windows 7 and Ubuntu 10.04 already installed and working fine but CrunchBang always changes the UUIDs of /var and /tmp when I reboot. Is that even possible I have also tried using the old method of /dev/sd** but of course that gets changed as well.

View 3 Replies View Related

General :: Need To Be Able To Set Cron To Reboot System Every 5 Min

Jul 19, 2010

I have a friend who needs a script to reboot a system every 5 min... not sure how to set cron to do this every 5 min.

View 1 Replies View Related

General :: ASM Will Not Start Automoatically After A Reboot

Nov 3, 2010

Running close to a go live date of 11/10/10 and need to have this fixed. DBA is pointing to the OS which is RedHat Enterprise Release 5.3. with Oracle RAC 10G

Oracle works fine it just won�t start up automatically after a reboot. After a reboot a person with root access has to increase the number of semaphores and then oracle will start and function. The next time the machine is bounced the same issue will arise and the semaphores need to be increased again by hand. Every time the machine is bounces the semaphores need to be increased by hand. This is not normal for a Unix machine. Semaphores are not part of the oracle install, it is a kernel parameter on Unix machines. Eventually after several reboots the semaphore parameter will be too high for the box to function. Once the semaphores have hit their peak, we reset them back to the original value and the whole process starts over again. This is a Unix build issue that has only surfaced on the production machines. The DAS development machines have the exact same oracle build and do not have this issue.

View 1 Replies View Related

General :: Get Black Screen After Reboot?

Mar 6, 2011

I just installed Ubuntu and after the restart all I get is a black screen. Sounds like the program booted up but I can't see any thing.

Using a Gforce 9400 vid card.

View 1 Replies View Related

General :: Can't Force Reboot From Program?

Jul 7, 2011

running Linux release 2.4.19-uc0, build #511 embedded on a device. It is stripped down to a very minimal configuration and so many of the normal commands are not present.I'm trying to force a reboot from an application I've got running. I've tried the following:

system("shutdown -r");
or
sync();

[code]....

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved