LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-12-2007, 02:23 AM   #1
yusufs
Member
 
Registered: Oct 2007
Posts: 162

Rep: Reputation: 30
System down


Hai all,


how to get the exact time when the server was rebooted and done by which user.. my NFS Service suddenly stopped ...

Guide please

Yusuf
 
Old 12-12-2007, 02:26 AM   #2
yusufs
Member
 
Registered: Oct 2007
Posts: 162

Original Poster
Rep: Reputation: 30
Linux mystery

Quote:
Originally Posted by yusufs View Post
Hai all,


how to get the exact time when the server was rebooted and done by which user.. my NFS Service suddenly stopped ...

Guide please

Yusuf
In addition to the above, uptime shows :


[root@aliko ~]# uptime
11:10:25 up 1 day, 8:24, 4 users, load average: 0.08, 0.07, 0.08


am the only one working on the OS.. I didnt restart the server.. but how come it is showing like this ?

Please clear it..


Yusuf
 
Old 12-12-2007, 02:45 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Regarding your second question, uptime does not show the real users logged in, but the total number of pseudo-terminal allocated. That is, if you have more than one open terminal, you will be counted for more than 1 user. You may compare with the output of who to clarify this point.
 
Old 12-12-2007, 03:13 AM   #4
yusufs
Member
 
Registered: Oct 2007
Posts: 162

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by colucix View Post
Regarding your second question, uptime does not show the real users logged in, but the total number of pseudo-terminal allocated. That is, if you have more than one open terminal, you will be counted for more than 1 user. You may compare with the output of who to clarify this point.

Colucix,

[root@oracle d05]# uptime
12:02:09 up 1 day, 9:15, 4 users, load average: 0.02, 0.06, 0.14
[root@oracle d05]# uptime
12:02:59 up 1 day, 9:16, 4 users, load average: 0.05, 0.06, 0.13
[root@oracle d05]# who
root pts/1 Dec 12 10:44 (yusuf.ali.com.kw)
oracrp pts/3 Dec 11 14:10 (yusuf.ali.com.kw)
root :0 Dec 12 10:54
root pts/2 Dec 12 10:55 (:0.0)


uptime shows system is rebooted before 9hours 16 mins.. but I didnt reboot my system .NFS service is also stopped automatically.. but all the remaining applications are running normally ..


Please clear this .

Thanks
Yusuf
 
Old 12-12-2007, 03:26 AM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Look at the output of the command last: it will show when a system boot has been done, as in
Code:
reboot   system boot  2.6.22.9-0.4-def Wed Dec 12 09:08          (01:10)
anyway, it will not show who or what triggered the system shutdown (if any). Sometimes shutdowns are related to A/C power losses, and if your BIOS is capable of restore power on A/C return, they will result in system reboots. Could be this an issue for your system?
 
Old 12-12-2007, 03:33 AM   #6
yusufs
Member
 
Registered: Oct 2007
Posts: 162

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by colucix View Post
Look at the output of the command last: it will show when a system boot has been done, as in
Code:
reboot   system boot  2.6.22.9-0.4-def Wed Dec 12 09:08          (01:10)
anyway, it will not show who or what triggered the system shutdown (if any). Sometimes shutdowns are related to A/C power losses, and if your BIOS is capable of restore power on A/C return, they will result in system reboots. Could be this an issue for your system?
Colucix,

result as follows :

[root@oracle d05]# last | grep boot
reboot system boot 2.6.9-42.ELsmp Tue Dec 11 02:47 (1+09:35)

system was rebooted at night 2.47 PM ..

I had my telnet session opened all the night and morning I came and accessed it and it was working fine.. I dont know why linux in all aspects sound mystery to me..


Thanks Colucix
Yusuf
 
Old 12-12-2007, 03:42 AM   #7
yusufs
Member
 
Registered: Oct 2007
Posts: 162

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by yusufs View Post
Colucix,

result as follows :

[root@oracle d05]# last | grep boot
reboot system boot 2.6.9-42.ELsmp Tue Dec 11 02:47 (1+09:35)

system was rebooted at night 2.47 PM ..

I had my telnet session opened all the night and morning I came and accessed it and it was working fine.. I dont know why linux in all aspects sound mystery to me..


Thanks Colucix
Yusuf

Hai,

In addition to the above

tail /var/log/messages at that time returned



Dec 10 16:06:33 oracle sshd(pam_unix)[28899]: session closed for user oracrp
Dec 10 23:46:28 oracle sshd(pam_unix)[22935]: session opened for user root by (uid=0)
Dec 11 02:47:21 oracle syslogd 1.4.1: restart.
Dec 11 02:47:21 oracle syslog: syslogd startup succeeded
Dec 11 02:47:21 oracle kernel: klogd 1.4.1, log source = /proc/kmsg started.
Dec 11 02:47:21 oracle kernel: Linux version 2.6.9-42.ELsmp (bhcompile@hs20-bc1-1.build.redhat.com) (gcc version 3.4.6 200604
04 (Red Hat 3.4.6-2)) #1 SMP Wed Jul 12 23:27:17 EDT 2006
Dec 11 02:47:21 oracle kernel: BIOS-provided physical RAM map:
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
An error Occurred during the file system check. Dropping you to shell; the system wil aneikei Linux - Newbie 3 02-11-2010 07:38 PM
How to find out if my system is i386, i486, or i586? Is there a system info command? mlsbraves Linux - General 6 02-17-2009 04:08 PM
Fedora system stuck at system message bus service upon bootup guy_ripper Linux - Software 4 02-16-2009 01:54 PM
LVM: Deleted my system VG0 and reinstalled system, can't find VG1 CoolAJ86 Linux - Software 0 10-29-2007 03:06 PM
KDE sound system doesn't play system notifications in SUSE with OSS driver mike1111 Linux - Software 0 07-17-2006 12:00 AM


All times are GMT -5. The time now is 07:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration