- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Prune Log Files, Delete Temporary Files ...
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
тАО08-31-2004 12:22 AM
тАО08-31-2004 12:22 AM
I have to administer one AIX and one HP-UX 11 box so I'm not very firm with both OS-es.
Yesterday I found a skript for AIX (tidysys) to prune log files (wtmp, failedlogin, sulog, smit-logs ..), delete temporary files older x days, delete core-dumps etc. etc.
What do you use to clean-up your system and prevent log-files from filling up your filesystems?
Thanks in advance
Thomas Rupp
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2004 12:29 AM
тАО08-31-2004 12:29 AM
Re: Prune Log Files, Delete Temporary Files ...
I use a home-grown script nightly via cron. The script is actually a series of find commands, like "find /tmp -type f -mtime +2 -exec rm {} \;". That way I can just add whatever the latest location to search into the script and cron will run it. There are also some other scripts to shrink wtmp, reorg VxFS file systems, etc.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2004 01:03 AM
тАО08-31-2004 01:03 AM
SolutionLogrotate http://hpux.ee.ualberta.ca/hppd/hpux/Sysadmin/logrotate-2.5/
Logrotate is designed to ease administration of systems that generate large numbers of log files. It allows automatic rotation, compression, removal, and mailing of log files. Each log file may be handled daily, weekly, monthly, or when it grows too large.
And SAM --> Routine Tasks --> System Log files - under Actions, Trim
Look into /etc/rc.config.d/clean_tmps also.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2004 01:33 AM
тАО08-31-2004 01:33 AM
Re: Prune Log Files, Delete Temporary Files ...
Log files are stored over /var/adm/ location.
And more without simply delete them you can take backup by zipping them with gunzip or bunzip2.
collect files using find and take tar those files.
Some of the files will get location over /tmp/ location.
You can logrote or your own script with cron for this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2004 07:40 PM
тАО08-31-2004 07:40 PM
Re: Prune Log Files, Delete Temporary Files ...
Thomas Rupp