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
3 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. Shell Programming and Scripting
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
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
LEARN ABOUT SUNOS
rpm2cpio
rpm2cpio(1) User Commands rpm2cpio(1)
NAME
rpm2cpio - convert Red Hat Package (RPM) to cpio archive
SYNOPSIS
rpm2cpio [file.rpm]
DESCRIPTION
The rpm2cpio utility converts the .rpm file specified as its sole argument to a cpio archive on standard output. (See NOTES.) If no argu-
ment is given, an rpm stream is read from standard input. In both cases, rpm2cpio will fail and print a usage message if the standard out-
put is a terminal. Therefore, the output is usually redirected to a file or piped through the cpio(1) utility.
EXAMPLES
Example 1: Converting an rpm file
example% rpm2cpio Device3Dfx-1.1-2.src.rpm | cpio -itv
CPIO archive found!
-rw-r--r-- 1 root root 2635 Sep 13 16:39 1998, 3dfx.gif
-rw-r--r-- 1 root root 11339 Sep 27 16:03 1998, Dev3Dfx.tar.gz
-rw-r--r-- 1 root root 1387 Sep 27 16:04 1998, Device3Dfx-1.1-2.spec
31 blocks
Example 2: Converting from standard input
example% rpm2cpio < Device3Dfx-1.1-2.src.rpm | cpio -itv
CPIO archive found!
-rw-r--r-- 1 root root 2635 Sep 13 16:39 1998, 3dfx.gif
-rw-r--r-- 1 root root 11339 Sep 27 16:03 1998, Dev3Dfx.tar.gz
-rw-r--r-- 1 root root 1387 Sep 27 16:04 1998, Device3Dfx-1.1-2.spec
31 blocks
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWrpm |
+-----------------------------+-----------------------------+
SEE ALSO
cpio(1), attributes(5)
NOTES
rpm2cpio handles versions 3 and 4 RPMs.
SunOS 5.10 20 Aug 2001 rpm2cpio(1)