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,

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

Thanks alot .

Can't you invoke "ntpdate server-name" ?

Thx for your reply sysgate.
I issued the ntpdate command, and it gave back the sun server time, not my netowrk time server one.

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 .

You could kill the running ntp daemon, run ntpdate manually, then restart the daemon.

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 :frowning:

Thanks