The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Reading a file and writing the file name to a param file. thebeginer UNIX for Advanced & Expert Users 1 10-05-2007 01:38 PM
Reading file names from a file and executing the relative file from shell script anushilrai Shell Programming and Scripting 4 03-10-2006 01:25 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-28-2004
Registered User
 

Join Date: Apr 2004
Location: Singapore
Posts: 13
File Trimig for HP-UX

Hi,
As this HP-UX server is hitting disk full quite frequently, I would like to seek help in how I can maintain this directory better and what are the files thatI can trim or delete from this following directory in
/var/adm/sw
The list of files are as follow, what is the of this log files, is it needed that for future patches removal or installation.
-rw-r--r-- 1 root sys 126 Sep 27 2000 .codewords
-rwxr--r-- 1 root sys 1027 Aug 15 2003 config.prev
-r--r--r-- 1 bin bin 1244 Sep 27 2000 defaults
-r--r--r-- 1 bin bin 481 Nov 7 1997 defaults.patchfilters
-r--r--r-- 1 bin bin 639 Nov 7 1997 getdate.templ
-r-------- 1 root sys 133 Nov 28 2001 host_object
-rw-r--r-- 1 root sys 80 Sep 27 2000 needs_remove
dr-x------ 498 root sys 11264 Mar 31 2004 products
drwx------ 7 root sys 1024 Sep 27 2000 queue
dr-x------ 372 root sys 8192 Mar 31 2004 save
drwxr-xr-x 3 root sys 96 Sep 27 2000 save-custom
dr-x------ 4 root sys 96 Sep 27 2000 save_custom
drwxr-xr-x 2 bin bin 1024 Nov 7 2001 security
drwxr-xr-x 2 root root 1024 Aug 15 2003 sessions
drwxr-xr-x 2 root sys 96 Sep 27 2000 software
-rw-r--r-- 1 root sys 672316 Oct 26 15:49 swagent.log
-rw-r--r-- 1 root sys 101957 Oct 26 15:51 swagentd.log
-rw-r--r-- 1 root root 251518 Aug 15 2003 swconfig.log
-rw-r--r-- 1 root sys 15069 Nov 28 2001 swcopy.log
-rw-r--r-- 1 root sys 0 Aug 25 09:55 swinstall.log
-rw-r--r-- 1 root sys 138832 Aug 15 2003 swmodify.log
-rw-r--r-- 1 root sys 387 Nov 6 2000 swreg.log
-rw-r--r-- 1 root root 53022 Oct 26 15:49 swremove.log
drwxr-xr-x 2 root sys 96 Sep 27 2000 targets
drwxr-xr-x 3 root sys 96 Sep 27 2000 ui

Thanks alot
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-29-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,452
Those log files should be trimmed. When log files get that large they discourage people from reading them. This won't really buy you much space back though. A "du -sk * | sort -n" will probably show that "save" has most of the space. This is need to remove patches. HP has a script that can help reclaim some of that space called "cleanup". It became more powerful with HP-UX 11i. If you are running that release, you can try "cleanup -p -c 2" or even "cleanup -p -c 1" if you're feeling brave. The -p is preview so it will only tell you what it would do without actually doing it. If it looks good, reryun the command without the -p.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:01 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0