Operating System - HP-UX
1833772 Members
2182 Online
110063 Solutions
New Discussion

Re: cleanup -t command is not working on 11.00

 
SOLVED
Go to solution
Dewa Negara_1
Advisor

cleanup -t command is not working on 11.00

Anyone can help me on this. I am using on my script command /usr/sbin/cleamup -t in HP-UX 10.20 to trim all the SD log files located in /var/adm/sw/sw*.log. The script is running well on 10.20, but when the script run in 11.00, it gave an error message. It seems like the command /usr/sbin/cleanup -t is not working on 11.00. Anyone can tell me what the similar command /usr/sbin/cleanup -t in HPUX 11.00? Thanks in advance.

Regards,
Dewa
log all your daily activities on syslog.log every time...
5 REPLIES 5
T G Manikandan
Honored Contributor
Solution

Re: cleanup -t command is not working on 11.00

T G Manikandan
Honored Contributor

Re: cleanup -t command is not working on 11.00

Michael Tully
Honored Contributor

Re: cleanup -t command is not working on 11.00

If it doesn't work in one version, and did in another I would first look at patches. The latest patch for the 'sw' commands is PHCO_27779 on my systems (11). This patch would not require a reboot.

You may wish to check this out further.
Anyone for a Mutiny ?
eran maor
Honored Contributor

Re: cleanup -t command is not working on 11.00

Hi

there isnt any option for cleanup -t in hp-ux 11.00 .

this was an option an hp-ux 10.20 but not any more in hpux 11.00

in hp-ux 11.00 you need to install patch :
PHCO_27779 - s700_800 11.00 HP-UX Patch Tools and White Paper .

you can use SAM - routine task - system log files and you can choose to trim the files .

i have to say that i will not recommend to trim this files becasue there are very impotent to do a trubleshoot and most of the time the dont take a lof of space in /var.

you can use the commadn cleanup -c 1 to clean all old patches - this will give you a lot of space but it recommend just if you need extra space in /var
love computers
Pete Randall
Outstanding Contributor

Re: cleanup -t command is not working on 11.00

I've checked both my 11.0 and 11.11 systems - there is no "-t" option to the cleanup command. You need to run "cleanup -c 1". Check the man pages.

Pete

Pete