Sponsored Content
Operating Systems Solaris File created with wrong timestamp Post 302948438 by Don Cragun on Monday 29th of June 2015 04:49:57 PM
Old 06-29-2015
The issue isn't that it is NFS mounted (although the problem is made apparent because the file is mounted from a different machine), the issue is that the clock on the server where the file resides is a little bit ahead of the clock on the machine where you are running these commands. You can probably see the clock skew if you run the commands:
Code:
date
touch abc
ls -ltrE abc
date

For a good way to fix the problem run, ntpd on your machine and on all machines that act as file servers for any files you reference from your machine. (See man ntpd for details.)
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Shell script which will sort all the files in a directory with the timestamp they were created

Team, Pls help writing a shell script which will sort all the files in a directory with the timestamp they were created. (like ls -lrt) (6 Replies)
Discussion started by: asappidi
6 Replies

2. IP Networking

ddns-rev-domainname being created wrong.

Greetings all, I have been battling with this problem for some time now, and I am not sure if I am just not seeing the obvious anymore or have made a stupid mistake, but I just can seem to get the reverse address in my network to run the right way. Short description of my network: I have a... (3 Replies)
Discussion started by: Adesso
3 Replies

3. Homework & Coursework Questions

how to delete core file (file created due to apps crashed)

1. The problem statement, all variables and given/known data: When looking for corefiles, include any file with core in its name. (Some UNIX/Linux systems add the PID of the process that created the core to reduce the chances of overwriting an already existing core file that might be needed. The... (6 Replies)
Discussion started by: s3270226
6 Replies

4. 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

5. 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

6. Shell Programming and Scripting

Identifying files with a timestamp greater than a given timestamp

I need to be able to identify files with file timestamps greater than a given timestamp. I am using the following solution, although it appears to compare files at the "seconds" granularity and I need it at the milliseconds. When I tested my solution, it missed files that had timestamps... (3 Replies)
Discussion started by: nkm0brm
3 Replies

7. Red Hat

Chroot sftp users, remote sftp login shows wrong timestamp on files

Hello, I have a weird issue, I have RHEL 5.7 running with openssh5.2 where sftpgroup OS group is chroot. I see the difference difference in timestamp on files, when I login via ssh and SFTP, I see four hour difference, is something missing in my configuration. #pwd... (8 Replies)
Discussion started by: bobby320
8 Replies

8. Shell Programming and Scripting

To check timestamp in logfile and display lines upto 3 hours before current timestamp

Hi Friends, I have the following logfile. Currently time in india is 07/31/2014 12:33:34 and i have the following content in logfile. I want to display only those entries which contain string 'Exception' within last 3 hours. In this case, it would be the last line only I can get the... (12 Replies)
Discussion started by: srkmish
12 Replies

9. Shell Programming and Scripting

AIX : Need to convert UNIX Timestamp to normal timestamp

Hello , I am working on AIX. I have to convert Unix timestamp to normal timestamp. Below is the file. The Unix timestamp will always be preceded by EFFECTIVE_TIME as first field as shown and there could be multiple EFFECTIVE_TIME in the file : 3.txt Contents of... (6 Replies)
Discussion started by: rahul2662
6 Replies

10. Shell Programming and Scripting

Grep lines between last hour timestamp and current timestamp

So basically I have a log file and each line in this log file starts with a timestamp: MON DD HH:MM:SS SEP 15 07:30:01 I need to grep all the lines between last hour timestamp and current timestamp. Then these lines will be moved to a tmp file from which I will grep for particular strings. ... (1 Reply)
Discussion started by: nms
1 Replies
BOS_LISTHOSTS(8)					       AFS Command Reference						  BOS_LISTHOSTS(8)

NAME
bos_listhosts - Displays the contents of the CellServDB file SYNOPSIS
bos listhosts -server <machine name> [-cell <cell name>] [-noauth] [-localauth] [-help] bos listh -s <machine name> [-c <cell name>] [-n] [-l] [-h] bos getcell -server <machine name> [-cell <cell name>] [-noauth] [-localauth] [-help] bos getc -s <machine name> [-c <cell name>] [-n] [-l] [-h] DESCRIPTION
The bos listhosts command formats and displays the list of a cell's database server machines from the /etc/openafs/server/CellServDB file on the server machine named by the -server argument. To alter the list of machines, use the bos addhost and bos removehost commands. OPTIONS
-server <machine name> Indicates the server machine from which to display the /etc/openafs/server/CellServDB file. Identify the machine by IP address or its host name (either fully-qualified or abbreviated unambiguously). For details, see bos(8). For consistent performance in the cell, the output must be the same on every server machine. The bos addhost reference page explains how to keep the machines synchronized. -cell <cell name> Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see bos(8). -noauth Assigns the unprivileged identity "anonymous" to the issuer. Do not combine this flag with the -localauth flag. For more details, see bos(8). -localauth Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The bos command interpreter presents the ticket to the BOS Server during mutual authentication. Do not combine this flag with the -cell or -noauth options. For more details, see bos(8). -help Prints the online help for this command. All other valid options are ignored. OUTPUT
The first line of the output names the cell to which the server machine belongs. Each of the following lines names a database server machine for that cell. The "Host" number assigned to each database server machine is for server-internal use only and is not the same as, nor necessarily related to, the machine's IP address. The BOS Server assigned it as part of performing the bos addhost command. EXAMPLES
The following command displays the database server machines listed in the /etc/openafs/server/CellServDB file on the machine "fs7.abc.com". % bos listhosts fs7.abc.com Cell name is abc.com Host 1 is db1.abc.com Host 2 is db2.abc.com Host 3 is db3.abc.com PRIVILEGE REQUIRED
None SEE ALSO
CellServDB(5), KeyFile(5), bos(8), bos_addhost(8), bos_removehost(8) COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. OpenAFS 2012-03-26 BOS_LISTHOSTS(8)
All times are GMT -4. The time now is 08:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy