Operating System - HP-UX
1832335 Members
2337 Online
110041 Solutions
New Discussion

Re: reduce size of the log file

 
Tadyos
Occasional Contributor

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
2 REPLIES 2
Viveki
Trusted Contributor

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/
Matti_Kurkela
Honored Contributor

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
MK