- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Old Syslog previous matter deleted in hp-ux 11.23
Operating System - HP-UX
1752781
Members
6116
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО07-29-2009 09:50 PM
тАО07-29-2009 09:50 PM
Old Syslog previous matter deleted in hp-ux 11.23
I have rx 6600 server with Itaniam Processor in hp-ux 11.23. While the server rebooted the previous contain of Oldsyslog was deleted and the curretn syslog contain updated in oldsyslog in /var/adm/syslog. So how retrive the oldsyslog contain before the server rebooted and also how to rectify the issue of oldsyslog (preserve the contain)?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2009 10:16 PM
тАО07-29-2009 10:16 PM
Re: Old Syslog previous matter deleted in hp-ux 11.23
The only way is to restore the old /var/adm/syslog/OLDsyslog.log file from backups. If you don't have a backup, the old file is now gone forever.
The standard HP-UX startup scripts will move the previous /var/adm/syslog/syslog.log to /var/adm/syslog/OLDsyslog.log while the system is booting, destroying the older OLDsyslog.log file if it exists. If you want to preserve the logs, you must either:
1.) make a custom startup script that will move the OLDsyslog.log file away to a safe location each time the system boots, so that there will be no need to overwrite OLDsyslog.log when the system boots next time,
or
2.) use /etc/syslog.conf to configure syslog to write to some other file which is not cleared by standard startup scripts.
MK
The standard HP-UX startup scripts will move the previous /var/adm/syslog/syslog.log to /var/adm/syslog/OLDsyslog.log while the system is booting, destroying the older OLDsyslog.log file if it exists. If you want to preserve the logs, you must either:
1.) make a custom startup script that will move the OLDsyslog.log file away to a safe location each time the system boots, so that there will be no need to overwrite OLDsyslog.log when the system boots next time,
or
2.) use /etc/syslog.conf to configure syslog to write to some other file which is not cleared by standard startup scripts.
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2009 10:18 PM
тАО07-29-2009 10:18 PM
Re: Old Syslog previous matter deleted in hp-ux 11.23
Hi Surajit,
This is the normal process /sbin/init.d/syslogd daemon will do. Whenever system reboots syslog.log file will be moved to OLDsyslog.log and previous OLDsyslog.log will be overwritten.
If you wish to preserve OLDsyslog.log, you should set up cron job to take backup of syslog/OLDsyslog files on daily basis or need to modify the syslogd daemon to backup OLDsyslog.log before it overwrites.
This is the normal process /sbin/init.d/syslogd daemon will do. Whenever system reboots syslog.log file will be moved to OLDsyslog.log and previous OLDsyslog.log will be overwritten.
If you wish to preserve OLDsyslog.log, you should set up cron job to take backup of syslog/OLDsyslog files on daily basis or need to modify the syslogd daemon to backup OLDsyslog.log before it overwrites.
Best wishes,
Ganesh.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2009 03:06 AM
тАО07-30-2009 03:06 AM
Re: Old Syslog previous matter deleted in hp-ux 11.23
Hi,
Before rebooting the system, Move the Oldsyslog to any other name with date.
This is the simple procedure to preserve oldsyslog.
Before rebooting the system, Move the Oldsyslog to any other name with date.
This is the simple procedure to preserve oldsyslog.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP