The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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-25-2007 01:14 AM
override the system date-timestamp on the Unix servers DavidH UNIX for Dummies Questions & Answers 5 09-27-2007 10:05 AM
Pls help : file stamp issue on HP UX Servers siddaonline UNIX for Dummies Questions & Answers 2 07-04-2007 11:14 AM
timestamp of file krisdhar UNIX for Dummies Questions & Answers 4 10-28-2003 10:31 AM
retrieve timestamp associated with a file 2nilotpal UNIX for Dummies Questions & Answers 2 08-08-2002 06:23 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
  #1 (permalink)  
Old 07-04-2007
siddaonline siddaonline is offline
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
  #2 (permalink)  
Old 07-04-2007
kamitsin's Avatar
kamitsin kamitsin is offline
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.
  #3 (permalink)  
Old 07-04-2007
siddaonline siddaonline is offline
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
  #4 (permalink)  
Old 07-04-2007
kamitsin's Avatar
kamitsin kamitsin is offline
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.
  #5 (permalink)  
Old 07-04-2007
siddaonline siddaonline is offline
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 ??
  #6 (permalink)  
Old 07-04-2007
kamitsin's Avatar
kamitsin kamitsin is offline
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.
Closed Thread

Bookmarks

Tags
mtime

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:04 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0