The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Understanding System Vish startup scripts darkmatter14B UNIX for Dummies Questions & Answers 0 02-28-2008 05:36 PM
Executing sh files at System Startup appleforme1415 UNIX for Dummies Questions & Answers 13 05-21-2007 02:18 AM
Executing set of sh files at system startup appleforme1415 SuSE 1 05-15-2007 10:05 AM
AIX 5.3: Start Service on System startup dennis.kuehl UNIX for Advanced & Expert Users 1 07-25-2006 04:32 AM
How can I add my own service when system startup? wilsonchan1000 UNIX for Dummies Questions & Answers 6 10-24-2002 05:23 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-16-2006
shoeb_syed shoeb_syed is offline
Registered User
  
 

Join Date: Feb 2006
Location: Mumbai, India
Posts: 23
System Startup Time

Hi all,

Can anyone tell me how to find the System Startup time.

Currently I am using "who -b" to get last reboot time.

I wanted to know is there any log file for SCO Openserver 5, in which all this sort of imformations are kept.

I have tried searching the forum with words like "WHO Command" but being very commonly used word, it is not giving me any specific o/p.

Best Regards

Shoeb
  #2 (permalink)  
Old 03-16-2006
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
Try the commands w or uptime. A sneaky way is to look at the start time for init which must be pid 1...
ps -fp 1
  #3 (permalink)  
Old 03-16-2006
thestevew thestevew is offline
Registered User
  
 

Join Date: Mar 2006
Location: South Yorkshire, UK
Posts: 114
It's a couple of years since I used SCO Openserver but I'm pretty sure that the system log was /usr/adm/messages (or maybe var/adm/messages) and this contained detailed startup/shutdown messages as well as lots of interesting alerts in between.

cheers
  #4 (permalink)  
Old 03-17-2006
shoeb_syed shoeb_syed is offline
Registered User
  
 

Join Date: Feb 2006
Location: Mumbai, India
Posts: 23
System uptime

Thanks Perderabo and thestevew,

I am sorry but I am not able to get the startup time with the commands you have suggested Perderabo, My O/p of the commands are somewhat cryptic to me.

ps -fp 1 is giving me STIME as 17:58:24 which is ofcourse my shutdown time and TIME as 0:00:00.

w & uptime are giving me current time with a notation of up for so many min. Like 9:13 am up 16 mins,

I think I have to do calculations to find out exact startup time.

Just for my knowledge, is using "who -b" is not correct to get the startup time.

Thestevew, I have checked both the files you have mentioned in your post, both exist but nothing written in it.

Hope you people will not get annoyed to put some more light on the issue.

Best Regards

Shoeb
  #5 (permalink)  
Old 03-17-2006
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
STIME is the start time for the process. init starts at boot-up time.
  #6 (permalink)  
Old 03-17-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
You can get the last reboot time for your server by running the command:

Code:
last reboot | head -1

Assuming that you haven't been fiddling with the utmp/wtmp files then you should get the last time you rebooted your server.
  #7 (permalink)  
Old 03-17-2006
shoeb_syed shoeb_syed is offline
Registered User
  
 

Join Date: Feb 2006
Location: Mumbai, India
Posts: 23
System uptime

Thank for your quick replies,

I am sorry Perderabo for my ignorance about the def of STIME, but STIME which is 17:58 is not my startup time, I booted my system at 8:58 in the morning and it is showing 17:58. God only knows why it is not updating it.

blowtorch, my "last reboot" command is just giving me headings, nothing else.

One more thing, can anyone of you tells me where System Log files are kept in SCO Openserver 5.0.5.

Thank you all for your sincere efforts.

Best Regards

Shoeb
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0