File Trimig for HP-UX


 
Thread Tools Search this Thread
Operating Systems HP-UX File Trimig for HP-UX
# 1  
Old 11-29-2004
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
# 2  
Old 11-29-2004
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script (sh file) logic to compare contents of one file with another file and output to file

Shell script logic Hi I have 2 input files like with file 1 content as (file1) "BRGTEST-242" a.txt "BRGTEST-240" a.txt "BRGTEST-219" e.txt File 2 contents as fle(2) "BRGTEST-244" a.txt "BRGTEST-244" b.txt "BRGTEST-231" c.txt "BRGTEST-231" d.txt "BRGTEST-221" e.txt I want to get... (22 Replies)
Discussion started by: pottic
22 Replies

2. Shell Programming and Scripting

Compare 2 text file with 1 column in each file and write mismatch data to 3rd file

Hi, I need to compare 2 text files with around 60000 rows and 1 column. I need to compare these and write the mismatch data to 3rd file. File1 - file2 = file3 wc -l file1.txt 58112 wc -l file2.txt 55260 head -5 file1.txt 101214200123 101214700300 101250030067 101214100500... (10 Replies)
Discussion started by: Divya Nochiyil
10 Replies

3. Shell Programming and Scripting

Match list of strings in File A and compare with File B, C and write to a output file in CSV format

Hi Friends, I'm a great fan of this forum... it has helped me tone my skills in shell scripting. I have a challenge here, which I'm sure you guys would help me in achieving... File A has a list of job ids and I need to compare this with the File B (*.log) and File C (extend *.log) and copy... (6 Replies)
Discussion started by: asnandhakumar
6 Replies
Login or Register to Ask a Question