- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Power failures - determining server shutdown t...
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
Discussions
Discussions
Discussions
Forums
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
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
тАО10-19-2001 12:15 AM
тАО10-19-2001 12:15 AM
Power failures - determining server shutdown time
I need to know,when there is a power failure and no UPS is connected to the server, how to determine the time that the server went down / the failure occurred.
Many thanks in advance
Manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2001 12:26 AM
тАО10-19-2001 12:26 AM
Re: Power failures - determining server shutdown time
with the command
who -r
you could look when the server has been started.
Also look into /etc/shutdownlog when the system was going down.
In the file /var/adm/syslog/OLDsyslog.log you can see what had happened before the last reboot.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2001 12:39 AM
тАО10-19-2001 12:39 AM
Re: Power failures - determining server shutdown time
/etc/shutdownlog only registers normal restarts or system panics, but in this situations the system shuts itself down.
Things like "who -r" or the startdate of your syslog.log file only show the time of the end of the power failure, when the system restarts, not the beginning of the power failure.
Maybe there are other logfiles on your system that are regularly changed (every minute, every few minutes ?). If they have a timestamp for every line in that logfile, you can detect a gap in the timestamps. This kind of logging is the only way of finding the start a a shutdown. maybe, if you have regular entries in syslog.log, you could check the last entry in this file to determine the shutdown time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2001 12:40 AM
тАО10-19-2001 12:40 AM
Re: Power failures - determining server shutdown time
/var/adm/syslog/OLDsyslog.log and /etc/shutdownlog files will gives you the information .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2001 04:52 AM
тАО10-19-2001 04:52 AM
Re: Power failures - determining server shutdown time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2001 06:09 AM
тАО10-19-2001 06:09 AM
Re: Power failures - determining server shutdown time
If its a power outage, then things like the shutdown log will not contain anything, unless the system had a bit of time to log before it went down.
Otherwise, perhaps you have cron jobs that run alot, in that case the cron log may be helpful as to when the system went down. /var/adm/cron/log or perhaps other logs that get written to frequently would help give you a good idea anyway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2001 06:16 AM
тАО10-19-2001 06:16 AM
Re: Power failures - determining server shutdown time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2001 06:44 AM
тАО10-19-2001 06:44 AM
Re: Power failures - determining server shutdown time
1) Check uptime to find since when the system has been up and running.
2) who -r gives you the date and time when the system was last booted.
3) ll /etc/rc.log (check the time stamp)
4) head /var/adm/syslog/syslog.log - Time stamp the first entry - not 100% as syslog can be restarted anytime.
5) /etc/shutdownlog - may not give if the system was just powered off
6) ll /var/tombstones/ts99
-Sri