Operating System - HP-UX
1826665 Members
2483 Online
109696 Solutions
New Discussion

Re: How to view HP rp3440 server Startup time

 
RajeevKharkwal
New Member

How to view HP rp3440 server Startup time

Hello all,
I want to know how can we see server startup time in HP UX 11.23 as we can see shutdown time in /etc/shutdownlog
Thanks in advance
15 REPLIES 15
Vihang.
Trusted Contributor

Re: How to view HP rp3440 server Startup time

Hi Rajeev,

You can refer to /etc/rc.log. It has startup logs for all system services. Or else, you can just run "uptime" command & it will tell the you time for which the server has been up & running.


Regards,
Vihang.
Asif Sharif
Honored Contributor

Re: How to view HP rp3440 server Startup time

Hi Rajeev,

#/etc/rc.log
#/var/adm/syslog/syslog.log
#uptime

Regards,
Asif Sharif


Regards,
Asif Sharif
Rasheed Tamton
Honored Contributor

Re: How to view HP rp3440 server Startup time

Hello Rajeev,

who -b
plus all the above.


Regards.
Deepak Kr
Respected Contributor

Re: How to view HP rp3440 server Startup time

rc.log under /etc is the best way to see all details in a single place...
"There is always some scope for improvement"
Dennis Handly
Acclaimed Contributor

Re: How to view HP rp3440 server Startup time

"last reboot" also will show the startup times.
SKR_1
Trusted Contributor

Re: How to view HP rp3440 server Startup time

You can check /etc/rc.log

Thanks

SKR
Steven E. Protter
Exalted Contributor

Re: How to view HP rp3440 server Startup time

Shalom,

You can also do this:

uptime

That will tell you how long its been running. The date stamps on the files listed by others will be close to that.

You can also watch things happen interactively on the console. rp3440 systems have a network console built in. It merely needs to be configured with an IP address.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Prashanth Waugh
Esteemed Contributor

Re: How to view HP rp3440 server Startup time

HiRajeev ,

Check it using # who -r


Regards
atul
For success, attitude is equally as important as ability
Khairul_1
Frequent Advisor

Re: How to view HP rp3440 server Startup time

Hi Rajeev,

You can use #uptime command to see the server startup time in HP-UX 11.23.

Please assing point to all ITRC member.

Thanks
Khairul
RajeevKharkwal
New Member

Re: How to view HP rp3440 server Startup time

Well i tried all these commands. but what I need to view the logs of startup time of server over the period of time. For example I want to see at what time server started on 27, 26,25, 24/8/2008. Using the above command i only get the current boot time.
Pls help.

Re: How to view HP rp3440 server Startup time

Hi,

could you please explain what you mean by "server startup time". A good clear explanation will make it easier for us to provide you with a good answer.

Regards,
Roland
Torsten.
Acclaimed Contributor

Re: How to view HP rp3440 server Startup time

You will see when the server was doing a shutdown in the shutdown_log, but there is no similar startup log.

The rc.log and syslog will tell you about last boot, the OLDsyslog about the previous boot - but that's it.


If you need that information for any whatever reason, you may consider to write your own script and run it at boot.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Dennis Handly
Acclaimed Contributor

Re: How to view HP rp3440 server Startup time

>Well I tried all these commands.

"last reboot" gives you all the times, unless you scratched /var/adm/wtmps.

>Torsten: but there is no similar startup log.

It's called /var/adm/wtmps.
Torsten.
Acclaimed Contributor

Re: How to view HP rp3440 server Startup time

You are right Dennis. I forgot about that ... never needed this special info so far.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Dennis Handly
Acclaimed Contributor

Re: How to view HP rp3440 server Startup time

>Torsten: I forgot about that ... never needed this special info so far.

It's pretty obvious if you have one going back 3+ years. :-)
(And you get forum questions on how to figure out the year.)