cancel
Showing results for 
Search instead for 
Did you mean: 

Logrotate

SOLVED
Go to solution
Brian_274
Frequent Advisor

Logrotate

This might be more of an OS question but I'm using for the alert.log so I'm putting it under database section. On AIX and Linux there is an OS tool called Logrotate. I've asked the HP-ux guys here but they've never heard about it. There's no man page entry for it either. Basically the way it works on Linux is that you specify how often you want it to run. It renames the file, in this case, alert.log, to the new timestamp name. Then the normal cleanup process removes these after a period of time. I know it would be easy to write something like this but I'd rather use one that's already provided.

thanks.
7 REPLIES
Sanjay_6
Honored Contributor
Solution

Re: Logrotate

Hi Brian,

Download it from here.

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/logrotate-2.5/

Hope this helps.

Regds
Bruno Ganino
Honored Contributor

Re: Logrotate

Script logrotate (example)
http://aa11.cjb.net/hpux_admin/2001/05/0182.html

Bruno
Torino (Turin) +2H
Brian_274
Frequent Advisor

Re: Logrotate

So there is no built in HP-UX logrotate tool? You two just created your own?
Bruno Ganino
Honored Contributor

Re: Logrotate

Brian, the post of Sanja not solve your request ?
There are logrotate download.

Bruno
Torino (Turin) +2H
Brian_274
Frequent Advisor

Re: Logrotate

His posting does give me a solution but after looking at the website it's not an HP website. So therefore it most likely isn't certified by HP. I will most likely use it, but I was asking if there was a logrotate procedure from HP. I meant one that was certified by HP. I know there isn't much to a logrotate, I just wanted to know if HP had one that was built into their system already.
Cheryl Griffin
Honored Contributor

Re: Logrotate

There is not one built into the system already or one that is HP certified. Freeware is posted at http://hpux.cs.utah.edu/

There are many here that can attest this version works fine.
"Downtime is a Crime."
Fabio Ettore
Honored Contributor

Re: Logrotate

Hi Brian,

argument seems to be clear: logrotate with official support by HP doesn't exist.

Anyway if your need is to find file too large (as log files) just a suggestion: there is by SAM on HP-UX a Section called "Routine Tasks".
There are 2 interesting subsections:

1. "Selective File Removal"
You can search file larger than 2 GB (anyway you can set the size for search).
Sometimes launch it in order to find file too large.

2. "System Log Files"
You can select a log files and trim it.

Of course it is not as fast and powerfull as logrotate but it is an alternative.

Just a thought....

Best regards,
Ettore
WISH? IMPROVEMENT!