ntpdate

Johan johansche at absamail.co.za
Sun Oct 31 18:14:02 UTC 2004


On Sun, 31 Oct 2004 17:26:16 +0000
Niall Sheridan <niall at blacknight.ie> wrote:

> On Sun, 2004-10-31 at 18:51 +0200, Johan wrote:
> > On Sun, 31 Oct 2004 15:56:01 +0000
> > Niall Sheridan <niall at blacknight.ie> wrote:
> > 
> > > Are you running ntpd on those boxes? ntpdate cannot run while ntpd is
> > > running.
> > > 
> > > Niall
> > > 
> > *********
> > Thanks for your reply.
> > Sorry I do not know..what does it do..can it be stopped without affecting the system.
> > Thanks
> 
> ntpd is the ntp server. it runs as a local service to keep time
> synchronized, and can provide this function to other clients e.g.
> running ntpdate. It runs on port 123.
> The problem arises when ntpd is running and you try to run ntpdate, as
> ntpdate attempts to use port 123 also. Basically, you cannot run both at
> the same time.
> run `netstat -lnup' as root and attach the output.
> 
*****************
# netstat -lnup
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
udp        0      0 127.0.0.1:111           0.0.0.0:*                          4640/portmap
udp        0      0 192.168.1.2:123         0.0.0.0:*                          5533/ntpd
udp        0      0 127.0.0.1:123           0.0.0.0:*                          5533/ntpd
udp        0      0 0.0.0.0:123             0.0.0.0:*                          5533/ntpd
udp6       0      0 :::123                  :::*                               5533/ntpd

Thanks

-- 
Johan Sch
Registered linux user #333034
May this be a good day for learning




More information about the ubuntu-users mailing list