1834478 Members
3634 Online
110067 Solutions
New Discussion

logroate equivalent

 
Richard Pereira_1
Regular Advisor

logroate equivalent

Hi,

Do we have any HP products similar to what this does? http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/logrotate-2.5/
i know SAM can do log trimming but can we automate easily these actions?

Thanks adv.
Richard
4 REPLIES 4
Geoff Wild
Honored Contributor

Re: logroate equivalent

I don't know of any HP products that do that...logrotate or you will have to use cron and write your own...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Pete Randall
Outstanding Contributor

Re: logroate equivalent

Richard,

I think the reason someone came up with logrotate is that HP didn't (and doesn't) provide such a facility.


Pete

Pete
Thierry Poels_1
Honored Contributor

Re: logroate equivalent

hi,

HPUX does not have standard tools built in for this.
So either used tools like logrotate, newsyslog, ... or write your own script.

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Bill Hassell
Honored Contributor

Re: logroate equivalent

There's nothing in HP-UX to do this automatically. Part of the problem is that there are dozens of logs, mostly ASCII, some binary, and the techniques needed to trim/archive the log (so that data is not lost) will vary. Attached is a generalized logtrim+archive script that you can customize. It allows you to specify how many archives of old logs will be kept and only trims+archives a logfile when it reaches a certain size.


Bill Hassell, sysadmin