HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- reduce size of the log file
Operating System - HP-UX
1832346
Members
2348
Online
110041
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
Forums
Discussions
Discussions
Discussions
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
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
11-05-2009 04:41 AM
11-05-2009 04:41 AM
reduce size of the log file
Can somebody plese describe me how to reduce log files in HP-UX.
*/etc/rc.logSAMTRM
Really apprciate your Support.
Tadyos
*/etc/rc.logSAMTRM
Really apprciate your Support.
Tadyos
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2009 05:05 AM
11-05-2009 05:05 AM
Re: reduce size of the log file
There is a logrotate tool that you can find here
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/logrotate-2.5/
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/logrotate-2.5/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2009 05:30 AM
11-05-2009 05:30 AM
Re: reduce size of the log file
hpux.cs.utah.edu is dead, here's a link to UK mirror that still seems to work:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/logrotate-2.5/
---
HP-UX 11.23 and older have SAM, a menu-based administration tool. Its "Routine Tasks" sub-menu has a function to trim HP-UX standard log files.
SAM can be started with the command "sam". If you have X11 display configured, it will be used automatically; otherwise SAM will use a text-based menu display.
---
/etc/rc.logSAMTRM is not a standard log file in HP-UX. Normally there is only /etc/rc.log (the log of the latest system start-up) and /etc/rc.log.old (the previous one).
The suffix SAMTRM in name /etc/rc.logSAMTRM would suggest that this is a temporary/backup file created by the "trim log files" function of SAM.
Normally SAM clears this file automatically when the trim operation is completed. The presence of this file suggests your system was once suffering from an old SAM bug. This bug was fixed in HP-UX 11.11 with patch PHCO_28123. This patch was released in 2003: if you don't have it or a superseding patch installed now, you're *way* out of date with patches. Please consider installing the latest HP-UX Quality Pack.
If /etc/rc.log is newer than /etc/rc.logSAMTRM, you can safely remove /etc/rc.logSAMTRM. If your SAM is properly patched, this file should not bother you any more.
MK
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/logrotate-2.5/
---
HP-UX 11.23 and older have SAM, a menu-based administration tool. Its "Routine Tasks" sub-menu has a function to trim HP-UX standard log files.
SAM can be started with the command "sam". If you have X11 display configured, it will be used automatically; otherwise SAM will use a text-based menu display.
---
/etc/rc.logSAMTRM is not a standard log file in HP-UX. Normally there is only /etc/rc.log (the log of the latest system start-up) and /etc/rc.log.old (the previous one).
The suffix SAMTRM in name /etc/rc.logSAMTRM would suggest that this is a temporary/backup file created by the "trim log files" function of SAM.
Normally SAM clears this file automatically when the trim operation is completed. The presence of this file suggests your system was once suffering from an old SAM bug. This bug was fixed in HP-UX 11.11 with patch PHCO_28123. This patch was released in 2003: if you don't have it or a superseding patch installed now, you're *way* out of date with patches. Please consider installing the latest HP-UX Quality Pack.
If /etc/rc.log is newer than /etc/rc.logSAMTRM, you can safely remove /etc/rc.logSAMTRM. If your SAM is properly patched, this file should not bother you any more.
MK
MK
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP