adding time server


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers adding time server
# 1  
Old 08-08-2007
adding time server

Hello Everybody,

I have sun machine running Sol9 with ntpq running on it, and I have a network time server, I want to synchronize my sun machine with that time server, is there any way I can add the time server to my sun machine,

Code:
root@yuda>   ntpq
ntpq> peers
localhost: timed out, nothing received
***Request timed out

Thanks alot .
# 2  
Old 08-08-2007
Can't you invoke "ntpdate server-name" ?
# 3  
Old 08-08-2007
Thx for your reply sysgate.
I issued the ntpdate command, and it gave back the sun server time, not my netowrk time server one.

Code:
root@yuda>  ntpdate 11.11.0.19
 8 Aug 23:39:27 ntpdate[21488]: the NTP socket is in use, exiting

I just want my server to update (sync) its time from that time server.
do you have any idea how I can do that .
# 4  
Old 08-08-2007
You could kill the running ntp daemon, run ntpdate manually, then restart the daemon.
# 5  
Old 08-09-2007
Cant I just add that time server as a peer in my sun ntpq???
they used to do it like that here i guess, but im not being able to find out how Smilie

Thanks
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Help with adding a new driver in initrd at install time

I have a really old distro (FC7) that I am trying to make compatible with some new hardware (ie. new RAID drivers)... I put the RAID driver into the ISO so that the installer can detect the RAID set... but post-install (aka: first boot) it appears that the Anaconda-generated initrd does not have... (0 Replies)
Discussion started by: jjinno
0 Replies

2. Shell Programming and Scripting

Adding time to date time in UNIX shell scipting

I needed some help in adding a duration (in seconds) to a start time (in hhmmss format) and a start date (in mmddyy format) in order to get an end date and end time. The concept of a leap year is also to be considered while incrementing the day. The code/ function that I have formed so far is as... (3 Replies)
Discussion started by: codehelp04
3 Replies

3. Shell Programming and Scripting

Adding columns of time

Hello all, I'm in the process of writing a script, and I need to be able to add columns of time in the following format (time elapsed Net Backup logs): 000:01:03 000:00:58 000:00:49 Does anyone have a way of converting and/or adding timestamps such as these accurately? Thanks in... (9 Replies)
Discussion started by: LinuxRacr
9 Replies

4. Solaris

modifying date and time and time zone on solaris 5.10 with (redundant server) veritas

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

5. Shell Programming and Scripting

Adding date and time to file name

Hi All, i wanted to add date and time to the file names in the same directory so lets say a file in the directory is test.txt then after running the shell script it should be test-15-11-2010.txt. So I used the following script which works, #!/bin/bash thetime=`date +%Y-%m-%d--%H:%M:%S`... (7 Replies)
Discussion started by: cc_at_work
7 Replies

6. Shell Programming and Scripting

change the filename by adding up 1 each time, tricky one

:confused: Hi, I posted here before for adding up of datafile name each time, here is an example: #!/bin/bash cutdfname="data11.dbf" newname=$(echo "${cutdfname}" |tr "" "" |tr "#_@-" "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |tr -s "x") num=$(echo $newname |cut -d"." -f1|awk... (5 Replies)
Discussion started by: netbanker
5 Replies

7. UNIX for Dummies Questions & Answers

adding time

I want to write a little script that will add 24:00 to the current time if the current time is in between 00:00 and 05:00. I want to make this new time a brand new file so I can work with it. I am not sure how to do this. variable = current time on our system ( I will pull this) ... (6 Replies)
Discussion started by: nickg
6 Replies

8. UNIX for Advanced & Expert Users

Adding # minutes to current time...

Hi all, Looking for a way to add lets say 10 minutes to the current time output should look like 7:15 AM or 7:15 PM. I know that gdate could do this for me but unfortunately its not available on the system I'm working on. So if any one know any way I can accomplish this using the date command it... (7 Replies)
Discussion started by: gptavares
7 Replies

9. UNIX for Advanced & Expert Users

How To Provide Time Sync Using Nts-150 Time Server On Unix Network?

can anybody tel lme,how to instal NTS -150 on a unix network,it needs some patch to fetch time frm serve,,?? (2 Replies)
Discussion started by: pesty
2 Replies

10. Shell Programming and Scripting

Adding Elapsed time

I'm using the Bourne shell and trying to write a script that will add all the time that any particular user has been on the network for. I've used last-h | grep "username" | cut -c 58-62 to get the times. Then I wrote a script that takes the time and converts it into just minutes. Now I... (1 Reply)
Discussion started by: jrdnoland1
1 Replies
Login or Register to Ask a Question