- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- using sam to trim files periodically
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
03-02-2006 07:44 PM
03-02-2006 07:44 PM
I would like to understand if it's possible to use sam (routine task -> system log files) to trim system log files automatically and periodically.
Reading help on line of sam, it said that files dimension are evaluated only at boot time or at first access of the files.
Can someone help me?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 08:00 PM
03-02-2006 08:00 PM
SolutionI believe sam will not automatically trim the logs for you.
You could use logrotate
http://hpux.ee.ualberta.ca/hppd/hpux/Sysadmin/logrotate-2.5/
or write your own cron job.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 08:02 PM
03-02-2006 08:02 PM
Re: using sam to trim files periodically
You can use logrotate for this purpose.
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/logrotate-2.5/
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/logrotate-2.5/man.html
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 08:08 PM
03-02-2006 08:08 PM
Re: using sam to trim files periodically
Check this thread , has lot of inputs
forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=57218
Regards,
Abhijit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 08:14 PM
03-02-2006 08:14 PM
Re: using sam to trim files periodically
Thanks to all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 09:17 PM
03-02-2006 09:17 PM
Re: using sam to trim files periodically
please note that most of the logs files are not found in this section of SAM. These are only operating system related. Also, you are required to manually purge or trim these files.
In practice, you will have lot more to purge! You know your applications better, you have to write your custom scripts for this purpose. E.g. Apache log files, Oracle trace files, temporary files... core dump files....
hope this helps too!
kind regards
yogeeraj