09-11-2009
Option 1: Find out which time source the remote server is synchronizing with, and set your computer(s) so use the same
Option 2: If there is no such source, set up a time server which uses NTP. Most OS can synchronize with that (known to me: *BSD, Linux, Windows, HP-UX)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hey all,
When you run the 'ls -la' command it'll show you the time and dates of all files/directories. Now what I am trying to do is create a script that will tell me what files haven't been used in over the past 1 month and what the time and date is that the files that haven't been accessed in... (2 Replies)
Discussion started by: merlin
2 Replies
2. Shell Programming and Scripting
I would like to know if there is a way to get the date and timestamp of the file that is being FTP from the remote server using shell script. Currently the get command from FTP will have current date and timestamp. Tried the earlier suggestion 'HardFeed' but still getting the current date and time... (12 Replies)
Discussion started by: gthokala
12 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
I have some files which are creates every day using a script. I want to create a log files which does write "filename,creation day and time"
how can I do this ??
Alice (3 Replies)
Discussion started by: alisevA3
3 Replies
4. UNIX for Dummies Questions & Answers
:confused: I'm not really sure about the default backup date & time in our Unix system and I would like to change it to a convienient time...how do I do that? Please help? (1 Reply)
Discussion started by: EbeyeJJ
1 Replies
5. Shell Programming and Scripting
Hi guys,
I know that this topic has been discuss numerous times, and I have search the net and this forum for it.
However, non able to address the problem I faced so far.
I am on Solaris Platform and unable to install additional packages like the GNU date and gawk to make use of their... (5 Replies)
Discussion started by: DrivesMeCrazy
5 Replies
6. Shell Programming and Scripting
Hi,
I need to search email files by date & time range in email files.
The timezone is not important.
Can someone plz advise how i can do this ?
For e.g A user can specify only
A single date
A date range
date & time range
Below is part of the email file. (4 Replies)
Discussion started by: coolatt
4 Replies
7. Shell Programming and Scripting
Hello All,
I was having a look on threads on the Forum about time calculation but didn't find exactly this issue.
For instance, if we have these 2 dates, begin & end :
20100430235830
20100501000200
Is there anyway, awk, ksh, perl to calculate the difference in sec and get for... (6 Replies)
Discussion started by: rany1
6 Replies
8. Shell Programming and Scripting
Hi,
I am having a file name as exp_bkp_tables_18_Oct_2010_10_50_28.dmp which is used for import the records.
Now, I want to print the output using the selected file name as below :
Table records will get restored as on date 18-Oct-2010 and time 10:50:28
How it can be done ?
With... (5 Replies)
Discussion started by: milink
5 Replies
9. Programming
Can we select the datetime from oracle database in “hhmmssnnnccyymmdd” format ?
please help to solve this..... (2 Replies)
Discussion started by: Sanal
2 Replies
10. Solaris
I have a cluster of two Solaris server (veritas cluster). one working and the other is standby
I am going to change the date on them , and am looking for a secure solution as it is giving an important service.
my opinion is that the active one doesn't need to be restarted (if I don't change the... (1 Reply)
Discussion started by: barry1946
1 Replies
LEARN ABOUT SUNOS
ntptrace
ntptrace(1M) System Administration Commands ntptrace(1M)
NAME
ntptrace - trace a chain of NTP hosts back to their master time source
SYNOPSIS
/usr/sbin/ntptrace [-vdn] [-r retries] [-t timeout] [server]
DESCRIPTION
ntptrace determines where a given Network Time Protocol (NTP) server gets its time from, and follows the chain of NTP servers back to
their master time source. If given no arguments, it starts with localhost.
OPTIONS
The following options are supported:
-d Turns on some debugging output.
-n Turns off the printing of host names; instead, host IP addresses are given. This may be necessary if a nameserver is down.
-r retries Sets the number of retransmission attempts for each host.
-t timeout Sets the retransmission timeout (in seconds); default = 2.
-v Prints verbose information about the NTP servers.
EXAMPLES
Example 1: Sample Output From the ntptrace Command
The following example shows the output from the ntptrace command:
% ntptrace
localhost: stratum 4, offset 0.0019529, synch distance 0.144135
server2.bozo.com: stratum 2, offset 0.0124263, synch distance 0.115784
usndh.edu: stratum 1, offset 0.0019298, synch distance 0.011993, refid 'WWVB'
On each line, the fields are (left to right):
o The server's host name
o The server's stratum
o The time offset between that server and the local host (as measured by ntptrace; this is why it is not always zero for localhost)
o The host's synchronization distance
o The reference clock ID (only for stratum-1 servers)
All times are given in seconds. Synchronization distance is a measure of the goodness of the clock's time.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWntpu |
+-----------------------------+-----------------------------+
SEE ALSO
xntpd(1M), attributes(5)
BUGS
This program makes no attempt to improve accuracy by doing multiple samples.
SunOS 5.10 19 Mar 1998 ntptrace(1M)