Unrecognized files in root (/) directory

Hi,

I'm sure I'll be showing my ignorance here, but I noticed some empty files in my root (/) directory:

-rw-r--r--1 rootroot0 Aug 8 20:45 olderThan.19990

-rw-r--r--1 rootroot0 Aug 20 08:00 olderThan.21748

-rw-r--r--1 rootroot0 Aug 5 20:45 olderThan.29402

...and...

-rw-r--r--1 rootroot0 Aug 5 20:45 080050800

-rw-r--r--1 rootroot0 Aug 8 20:45 080080800

Have I misconfigured some service? I've never seen these before.

Thanks,

Phil

[501 byte] By [philforrest] at [2007-11-26 9:42:09]
# 1
It's a count. When it says olderThan.dirt the aliens will begin their attack.I had those pop up for a little while. Not sure what they were about. I am kinda curious too.
kjard_us at 2007-7-7 0:41:19 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2
Once the file is closed, it's difficult to tell how it got there.But if this continues to happen, I think you could write a dtrace script that reports any process that opens a file with a name like that.-- Darren
Darren_Dunham at 2007-7-7 0:41:19 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3
Please let me know if you find an answer for this, as I have these files in my root directory on Solaris 10 as well.Thanks,Shannon
srbudd at 2007-7-7 0:41:19 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 4

I noticed these type of files began to appear in my solaris 10 servers as well recently. They were not there a couple months ago.

In my case, they are showing up in /root. In my servers, the home directory of the root account is /root in order to avoid populating root filesystem (/) with unneeded files and directories generated by root account.

shen at 2007-7-7 0:41:19 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 5

This feature is caused by the automatic smpatch framework thing (or so i think), at least its a bug in /usr/lib/cc-cfw/platform/invagent/bin/cc-invagent, it creates the file in question and use it as a marker, but it never deletes it.

A quick fix would be to edit the script (and the ../etc/cc-invagent-skel file) and add

rm $MARKER

to the unlock() function.

7/M.

mAbrante at 2007-7-7 0:41:19 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 6

Mystery solved.

They are temp files created by Sun Update Manager.

Here is the reply from Sun:

To view the forum, visit:

http://forum.sun.com/jive/forum.jspa?forumID=316

Topic "olderThan files" was updated by ForumModerator with the following message:

They are temp files used by the inverntory agent which should run once a day from root's crontab. Providing the inventory agent is not currently running it is safe to remove them all though they should be removed by the inventory agent towards the end of it's daily run anyway.

The inventory agent entry in crontab should look similar to the following -

26 21 * * * /usr/lib/cc-cfw/platform/invagent/bin/cc-invagent

shen at 2007-7-7 0:41:19 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 7
Its always nice when people read what you post, isn't it :-)? 7/M.
mAbrante at 2007-7-7 0:41:19 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 8
I know exactly what you mean, Magnus.I, for one, always look forward to your forum contributions.<grin>
rukbat at 2007-7-7 0:41:19 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 9
Hehe, Thanks! 7/M.
mAbrante at 2007-7-7 0:41:19 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 10

7/M,

Thanks!

Is this how I should add the 'rm $MARKER'?

[clip]

##

# unlock

# Remove our file in the lock directory.

unlock()

{

rm -f $LOCK_FILE

rm $MARKER

}

[clip]

Also, I cannot find a ../etc/cc-invagent-skel file. I searched for it, but came back with nothing.

srbudd at 2007-7-7 0:41:19 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 11
thats how i'ld do it.. :) 7/M.
mAbrante at 2007-7-7 0:41:19 > top of Java-index,Solaris Operating System,Solaris 10 Features...