The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
File timestamp stevefox UNIX for Dummies Questions & Answers 4 12-24-2007 10:14 PM
override the system date-timestamp on the Unix servers DavidH UNIX for Dummies Questions & Answers 5 09-27-2007 07:05 AM
Pls help : file stamp issue on HP UX Servers siddaonline UNIX for Dummies Questions & Answers 2 07-04-2007 08:14 AM
timestamp of file krisdhar UNIX for Dummies Questions & Answers 4 10-28-2003 07:31 AM
retrieve timestamp associated with a file 2nilotpal UNIX for Dummies Questions & Answers 2 08-08-2002 03:23 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-04-2007
Registered User
 

Join Date: Jun 2007
Posts: 10
File timestamp issue on HP servers

Hi All ,

I have a file which gets updated by a korn job daily . The file gets the latest timestamp on everyrun.
But of late i have observed that the file timestamp gets modified to a older date ( Oct 25 2006 ) at some point in time of the day. This change has nothing to do with the job which updates this file.
There is some unknown process which is acting on this and changing the timestamp ( to Oct25 2006 ) everyday. Once the korn job runs it puts the right time stamp. The unexpected change is happening at some other time by some other process.
Could anyone help me find a way to identify the unknown process in question which is modifying the timestamp of this file.

Note : the unknown process is not playing with the content of the file..

Important finding : This is happening with other files on different servers...

Any help in this reg is highly appreciated ... Thanks in advance

Thanks
Sridhar
Reply With Quote
Forum Sponsor
  #2  
Old 07-04-2007
kamitsin's Avatar
Registered User
 

Join Date: Nov 2006
Location: /dev/null
Posts: 177
Quote:
But of late i have observed that the file timestamp gets modified to a older date ( Oct 25 2006 ) at some point in time of the day.
What time ?? Check the timestamp at which the file is getting modifed. Check the cron schedule for other programs which are using the same timestamp?

Quote:
Important finding : This is happening with other files on different servers...
Make sure no one is playing with your systems.

Do some investigation on your own. We can't suggest much from the information you have provided.
Reply With Quote
  #3  
Old 07-04-2007
Registered User
 

Join Date: Jun 2007
Posts: 10
we monitored and observed that the filestamp is changing at different times
in the day but always changing to the same old timestamp (Oct 25 2006 )

we used ps-ef, fuser options but of no avail...

fuser is not returning any processes running at that point of time when the file timestamp changes... please see the script i used

cd /prod/risop/prod/bsld/data
monitor_log=/prod/monitoring_panda_yesterday_file.log
agedfile=$(find . -name "YESTERDAYS_ALLROWS.TXT" -mtime +2)
echo $agedfile>> ${monitor_log} 2>&1
while [[ $agedfile = "" ]]
do
agedfile=$(find . -name "YESTERDAYS_ALLROWS.TXT" -mtime +2)
v_date=$(date +%H%M)
done
/usr/sbin/fuser -u YESTERDAYS_ALLROWS.TXT>> ${monitor_log} 2>&1
echo
date>> ${monitor_log} 2>&1
echo>> ${monitor_log} 2>&1
echo $agedfile>> ${monitor_log} 2>&1
echo>> ${monitor_log} 2>&1
ps -ef>> ${monitor_log} 2>&1
echo>> ${monitor_log} 2>&1
echo>> ${monitor_log} 2>&1
ls -l YESTERDAYS_ALLROWS.TXT>> ${monitor_log} 2>&1
exit 0
Reply With Quote
  #4  
Old 07-04-2007
kamitsin's Avatar
Registered User
 

Join Date: Nov 2006
Location: /dev/null
Posts: 177
I would suggest that you first search for all the files which mentions directory /prod/risop/prod/bsld/data !! Start the search from root directory and not the current directory.
Reply With Quote
  #5  
Old 07-04-2007
Registered User
 

Join Date: Jun 2007
Posts: 10
Yes I'm searching from the root.. Could you pls provide me a sample code for some xyz file...

are there any other options to monitor a file ??
Reply With Quote
  #6  
Old 07-04-2007
kamitsin's Avatar
Registered User
 

Join Date: Nov 2006
Location: /dev/null
Posts: 177
Quote:
sample code for some xyz file
I am not sure what you are asking for.

Quote:
are there any other options to monitor a file ??
Monitor a file ?? alteast i am not aware of it , if there is any.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
mtime

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:03 AM.


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 Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0