File timestamp issue on HP servers


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users File timestamp issue on HP servers
# 1  
Old 07-04-2007
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  
Old 07-04-2007
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.
kamitsin
# 3  
Old 07-04-2007
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  
Old 07-04-2007
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.
kamitsin
# 5  
Old 07-04-2007
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  
Old 07-04-2007
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.
kamitsin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Sendmail - issue within DMZ for some servers but not all

Hi All, I have a strange issue and I am not sure where the problem lies. I have about six Ubuntu servers on our DMZ two of which were built on 18.04 from scratch the others were upgraded to 18.04 from 16.04. The servers built from scratch can send emails from the server via sendmail fine, so... (4 Replies)
Discussion started by: dakelly
4 Replies

2. Shell Programming and Scripting

Timestamp issue

Dear friend, i have a script as below.. #!/bin/ksh #set -vx checkprocess () { PROCESS_NUM=`ps -ef| grep test |wc -l` # for degbuging... if ; then # echo $PROCESS_NUM echo "My job is started" if ; then ... (2 Replies)
Discussion started by: Jewel
2 Replies

3. Red Hat

Subversion Timestamp Issue

Trying to find out the following strange subversion timestamping issue: - Used $Id$ in my source file and resulted in the following output Check date & time (issue 'date' command) on my local machine, it shows the following: Also check date & time on my subversion server, the time is... (0 Replies)
Discussion started by: tanlccc
0 Replies

4. UNIX for Dummies Questions & Answers

How to compare a file by its timestamp and store in a different location whenever timestamp changes?

Hi All, I am new to unix programming. I am trying for a requirement and the requirement goes like this..... I have a test folder. Which tracks log files. After certain time, the log file is getting overwritten by another file (randomly as the time interval is not periodic). I need to preserve... (2 Replies)
Discussion started by: mailsara
2 Replies

5. Shell Programming and Scripting

Getting a relative timestamp from timestamp stored in a file

Hi, I've a file in the following format 1999-APR-8 17:31:06 1500 3 45 1999-APR-8 17:31:15 1500 3 45 1999-APR-8 17:31:25 1500 3 45 1999-APR-8 17:31:30 1500 3 45 1999-APR-8 17:31:55 1500 3 45 1999-APR-8 17:32:06 1500 3 ... (1 Reply)
Discussion started by: vaibhavkorde
1 Replies

6. Shell Programming and Scripting

Issue faced while accessing data from files on different servers.

I have two log files of same name and structure which resides on different servers with ssh-keygen installed. I want to search for a list of strings available in an array on last 15 minutes logs of both files and calculate the total count of occurence of each string. Sample format of both file... (0 Replies)
Discussion started by: poweroflinux
0 Replies

7. Shell Programming and Scripting

Timestamp issue

Hello all, I have a problem with timestamps in perl. Suppose we have the following timestamp: Wed Oct 22 13:20:41 2008 This timestamp is produced with 'localtime' function. How can i convert the above timestamp to the format: 081022132041 08=2008 10=Oct Thank you... (5 Replies)
Discussion started by: chriss_58
5 Replies

8. Shell Programming and Scripting

Timestamp comparison of 2 files present in 2 different servers

Hi, I have 2 different log servers and logs are stored in both of them at varied times. Those servers have same files stored at different times. I want to retrieve the latest of the log files that are stored inthe servers. Say "file.log" is present on both servers, i want to check which of it is... (3 Replies)
Discussion started by: goutham4u
3 Replies

9. UNIX for Dummies Questions & Answers

override the system date-timestamp on the Unix servers

I am looking for a tool that allows us to override the system date-timestamp on the Unix servers so that we can perform regression tests using the same set of scripts and data. CDS is an example of a system where the logic is very date/time dependent. It would make regression testing much easier... (5 Replies)
Discussion started by: DavidH
5 Replies

10. UNIX for Dummies Questions & Answers

Pls help : file stamp issue on HP UX 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... (2 Replies)
Discussion started by: siddaonline
2 Replies
Login or Register to Ask a Question