Showing results for 
Search instead for 
Did you mean: 

Some log files

Waqar Razi
Regular Advisor

Some log files

I have a question about some log files: The reason I am asking this is my root / is getting full 98%, I wanna retrieve some space by deleting log files and other files that are no more needed:

The first log files are under /etc/opt/resmon/log:

-rw-r--r-- 1 root root 387944 Dec 19 04:03 api.log
-rw-r--r-- 1 root root 500260 Feb 15 2008 api.log.old
-rw-r--r-- 1 root root 401210 Mar 17 2008 client.log
-rw-r--r-- 1 root root 500325 Feb 4 2007 client.log.old
-rw-r--r-- 1 root sys 47530 Mar 17 2008 emsagent.log
-rw-r--r-- 1 root root 254419 Dec 19 04:04 registrar.log
-rw-r--r-- 1 root root 500274 Mar 17 2008 registrar.log.old
-rw-r--r-- 1 root root 719920 Dec 20 16:05 reslog.html
-rw-r--r-- 1 root root 1000257 Nov 8 2007 reslog.old.html

How important are these log files, Can I just copy them to some other location and then retrieve some space by deleting them?

Patrick Wallek
Honored Contributor

Re: Some log files

All of these are used by EMS. If you move the current ones, then you may effect EMS operations.

I would start by (re)moving any of the files with "old" in the name.

Another thing to check if '/' is filling up is your /dev directory.

The should not be any "regular" files in /dev, they should all be device files. A common mistake is to mistype a tape device and create a large file in /dev/rmt.

This will find any regular files in /dev:

# cd /dev
# find . -type f -exec ls -l {} \;

Any files that the command returns can probably be deleted.
Honored Contributor

Re: Some log files


The EMS log files in /etc/opt/resmon/log are limited to 500 KB in size and are then moved to .old. The previous *.old gets lost.

The limit of 500 KB per logfile can be removed by creating the file /etc/opt/resmon/unlimited_log.

Be careful with creating the unlimited_log. Growing EMS log files can easily fill up root file system.

It is even part of my Operations Acceptance Testing for HP-UX as I had one customer
who made that mistake on a large scale :)

You can move or recycle the old files
on a regular basis:

for myfile in `ls /etc/opt/resmon/log/*.old`
> $myfile

This specific issue was one of the items
highligthed in my internal presentation at
HP Unix Profession Virtual Conference
in December 2008 where I spoke about automated log file management in AIX,
Linux, Solaris, and HP-UX.


VK2COT - Dusan Baljevic
Suraj K Sankari
Honored Contributor

Re: Some log files


The max file size is 977kb which is not a big file better you search some other huge files in / directory.

#find / -size +15000 -print #(more then 15MB)

check any open file is there with


To know how to use lsof check the below link