- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Trimming log files in SAM
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
05-26-2003 10:17 AM
05-26-2003 10:17 AM
Trimming log files in SAM
Is there a way to automate the trimming of log files in SAM (or any other way)? When I look in SAM, I can set the recommended size, but not how to trim them once they get beyond the recommended size.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2003 11:39 AM
05-26-2003 11:39 AM
Re: Trimming log files in SAM
For the sake of simplicity, I have a script that does these things.
1) It creates a tar file with all the logs.
2) It zeros out the logs
> logfilename
I run it once a month via cron.
The list of files I deal with I got from sam's trim utility.
The only thing you need to decide is frequency, based on how fast /var fills up.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2003 03:22 PM
05-26-2003 03:22 PM
Re: Trimming log files in SAM
But in SAM routine task->System Log Files ,you also can trim the log file .Foe every system log files ,there are recommended size.So you can asked SAM to trim up to recomemded size.But still manually.
regards
mB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2003 05:57 PM
05-26-2003 05:57 PM
Re: Trimming log files in SAM
http://www.introcomp.co.uk/examples/logrotate.html
regards
Michael
"When I have trouble spelling, it's called fat finger syndrome"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2003 09:27 PM
05-26-2003 09:27 PM
Re: Trimming log files in SAM
There is also a Log management tool for sysadmins for HP-UX - Logrotate. This 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.
You can download it from:
http://gatekeep.cs.utah.edu/hppd/hpux/Sysadmin/logrotate-2.5/
You can use this and with proper cronjobs implement what you desire...
hope this helps!
regards
Yogeeraj