- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- shutdown and startup logging
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
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
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
тАО01-14-2011 09:32 AM
тАО01-14-2011 09:32 AM
how to capture the boot/reboot logs ?
HPUX pushes all output of the scripts during shutdown and startup to /etc/rc.log
is there something similar in RHEL 5.x ?
once upon a time there linux used /var/log/boot.log but it looks depreciated .
any thoughts appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2011 01:24 PM
тАО01-14-2011 01:24 PM
SolutionSee the RedHat Bugzilla entry:
https://bugzilla.redhat.com/show_bug.cgi?id=223446
It includes a workaround, with a caveat that your console will be flooded with "WARNING: initlog is deprecated..." messages.
If you care enough, you might get the source RPM for the package that includes initlog, comment out the deprecation warning, and build yourself a custom binary RPM.
(That reminds me... one of these days I need to check if boot.log or something equivalent works in RHEL 6, and if the workaround is still applicable to RHEL 5.6 that just came out.)
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2011 01:03 AM
тАО01-17-2011 01:03 AM
Re: shutdown and startup logging
so the line (from the bugzilla entry);
initlog $INITLOG_ARGS -n $0 -s "$1" -e 1
would need to be;
initlog $INITLOG_ARGS -n $0 -s "$1" -e 1 2> /dev/null
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2011 07:25 AM
тАО01-17-2011 07:25 AM
Re: shutdown and startup logging
I am doing some testing to see if I cannot simply tee the startups in /etc/rc.d/rc to a log files.
It may not be perfect but I am having an issue where 1 or more shutdown scripts is not running and I at least need to catch the message..
If that fails I may move onto what Matti mentioned, although I hate to add one more thing to my list that I have manually manage.
Will post any results if I find something.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2011 01:15 PM
тАО01-18-2011 01:15 PM
Re: shutdown and startup logging
in /etc/rc add "|tee -a filename" (no quotes) to the end of the start and stop lines found in the "# Now run the START scripts" and the # # First, run the KILL scripts." sections.
and btw, I found my real issue with the help of this logging.
if /var/lock/subsys/<script_name> does not exist then the kill script will be skipped.
(at least on RHEL 5.3 and newer.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2011 01:31 PM
тАО02-14-2011 01:31 PM
Re: shutdown and startup logging
ILO2 and ILO3 have a screen recorder option.
enable in the settings section of remote console.
you will then have a "camera" icon in the top toolbar of your integrated console.
click to start recording and select a file location.
click again when you are done.
you can then use the HP ILO player (found on biz support site) to view your recording.