- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Checking Total uptime of system
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2003 04:49 AM
06-27-2003 04:49 AM
Is there any command to check the total uptime of the system fromlast reboot.
Regards
Khurram
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2003 04:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2003 04:51 AM
06-27-2003 04:51 AM
Re: Checking Total uptime of system
Easy peasey, Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2003 04:51 AM
06-27-2003 04:51 AM
Re: Checking Total uptime of system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2003 04:51 AM
06-27-2003 04:51 AM
Re: Checking Total uptime of system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2003 04:51 AM
06-27-2003 04:51 AM
Re: Checking Total uptime of system
Try this:
# uptime
or:
# who -r
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2003 04:52 AM
06-27-2003 04:52 AM
Re: Checking Total uptime of system
You guys, do you know all of you post the reply in the same minute ? It must be a record...
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2003 04:52 AM
06-27-2003 04:52 AM
Re: Checking Total uptime of system
This should tell you the uptime as well.
# w
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2003 04:55 AM
06-27-2003 04:55 AM
Re: Checking Total uptime of system
#ls -l /var/adm/syslog/OLDsyslog.log.
This should give the last timestamp of the previous syslog file.
ALso,
#cat syslog.log |head -1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2003 05:00 AM
06-27-2003 05:00 AM
Re: Checking Total uptime of system
/etc/rc.log
the time before last:
/etc/rc.log.old
This is just another way, but i would think that you are lokking for uptime or who -b as others said.
BR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2003 05:05 AM
06-27-2003 05:05 AM
Re: Checking Total uptime of system
When I first saw this, I thought it was a Lubomir question!!!!! ;^)
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2003 05:09 AM
06-27-2003 05:09 AM
Re: Checking Total uptime of system
If the file doesn't exist, you can create it using
touch /etc/shutdownlog
Once this is done, any future reboots (including some crashes/system panics) will be logged.
eg:
/etc =>more shutdownlog
08:10 Wed Jun 11, 2003. Reboot:
09:02 Wed Jun 11, 2003. Reboot:
09:14 Wed Jun 11, 2003. Reboot:
10:19 Wed Jun 11, 2003. Reboot:
10:32 Wed Jun 11, 2003. Reboot:
13:58 Wed Jun 11, 2003. Reboot:
13:58 Wed Jun 11, 2003. Reboot:
15:45 Wed Jun 11, 2003. Reboot:
07:55 Thu Jun 12, 2003. Reboot:
07:55 Thu Jun 12, 2003. Reboot:
10:50 Thu Jun 12 2003. Reboot after panic:
16:15 Thu Jun 12, 2003. Reboot:
11:53 Fri Jun 13, 2003. Halt:
12:28 Fri Jun 13, 2003. Halt:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2003 05:11 AM
06-27-2003 05:11 AM
Re: Checking Total uptime of system
# last reboot | head -1
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2003 05:19 AM
06-27-2003 05:19 AM
Re: Checking Total uptime of system
# uptime
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2003 08:49 AM
06-27-2003 08:49 AM
Re: Checking Total uptime of system
As you say uptime so it's the name of the command that shows the uptime of the machine after the last reboot.
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2003 01:56 AM
06-28-2003 01:56 AM