On Mon, 26 Apr 2010, Vieri wrote:
> I ran the following and it supposedly updated my system time while ntpd
> was running:
>
> # ps ax | fgrep ntp
> 1256 ? Ss 0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -u ntp:ntp
> 1623 pts/14 S+ 0:00 fgrep ntp
>
> # ntpdate -b -u pool.ntp.org
> 26 Apr 19:41:18 ntpdate[2791]: step time server 163.117.131.239 offset
> 0.142263 sec
>From the ntpdate man page:
-u Direct ntpdate to use an unprivileged port for outgoing packets.
This is most useful when behind a firewall that blocks incoming
traffic to privileged ports, and you want to synchronise with
hosts beyond the firewall. Note that the -d option always uses
unprivileged ports.
So ntpdate does not try and use 123 -- which is in use by ntpd.
Does:
sudo netstat -a -n -p | grep ntpd
show something like:
udp 0 0 192.168.0.xx:123 0.0.0.0:* 1693/ntpd
udp 0 0 127.0.0.1:123 0.0.0.0:* 1693/ntpd
udp 0 0 0.0.0.0:123 0.0.0.0:* 1693/ntpd
udp6 0 0 fe80::222:68ff:fe36:123 :::* 1693/ntpd
udp6 0 0 ::1:123 :::* 1693/ntpd
udp6 0 0 :::123 :::* 1693/ntpd
unix 2 [ ] DGRAM 6635 1693/ntpd
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards [email protected] Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users