Re: ntpdate: socket in use

2000-04-08 Thread Chanop Silpa-Anan
Once upon a time, I heard Aaron Solochek say

> Well, I've been trying to update my clock to the local kerberos servers,
> but it doesn't work.
> 
> leko:/home/aarons#rdate kerberos.andrew.cmu.edu
> rdate: Could not connect socket: Connection refused
> leko:/home/aarons#ntpdate kerberos.andrew.cmu.edu
>  8 Apr 00:22:26 ntpdate[583]: the NTP socket is in use, exiting
> leko:/home/aarons#
> 
> 
> What could be causing this?

Very good to provide the foolowing data.
> leko:/home/aarons#ps aux
[snip]
> root   194  0.0  0.2  1548 1540 ?SL   Apr07   0:00
> /usr/sbin/ntpd
  ^^

You should have stop ntp by /etc/init.d/ntp stop before use ntpdate to
syncronize the clock. Then /etc/init.d/ntp start after you sync you
clock with /etc/init.d/ntpdate start.

Chanop

-- 
,-.
| Chanop Silpa-Anan  <[EMAIL PROTECTED]> |
| Australian National University  |
| Tel. +61 2 6279 8826, +61 2 6279 8837 (office hour) |
|  +61 2 6249 5240 (home +voice mail) |
|   Debian GNU/BSDICQ uin 11366301|
`-'


pgp52wYhQscMA.pgp
Description: PGP signature


ntpdate: socket in use

2000-04-08 Thread Aaron Solochek
Well, I've been trying to update my clock to the local kerberos servers,
but it doesn't work.

leko:/home/aarons#rdate kerberos.andrew.cmu.edu
rdate: Could not connect socket: Connection refused
leko:/home/aarons#ntpdate kerberos.andrew.cmu.edu
 8 Apr 00:22:26 ntpdate[583]: the NTP socket is in use, exiting
leko:/home/aarons#


What could be causing this?

leko:/home/aarons#ps aux
USER   PID %CPU %MEM   VSZ  RSS TTY  STAT START   TIME COMMAND
root 1  0.3  0.0  1020  464 ?SApr07   0:05 init
root 2  0.0  0.0 00 ?SW   Apr07   0:00 [kflushd]
root 3  0.0  0.0 00 ?SW   Apr07   0:00 [kupdate]
root 4  0.0  0.0 00 ?SW   Apr07   0:00 [kpiod]
root 5  0.0  0.0 00 ?SW   Apr07   0:00 [kswapd]
daemon  70  0.0  0.0  1128  420 ?SApr07   0:00
/sbin/portmap
root   129  0.0  0.1  1352  632 ?SApr07   0:00
/sbin/syslogd
root   131  0.0  0.1  1364  800 ?SApr07   0:00
/sbin/klogd
root   135  0.0  0.1  1056  540 ?SApr07   0:00
/sbin/rpc.statd
root   137  0.0  0.0 00 ?SW   Apr07   0:00 [lockd]
root   138  0.0  0.0 00 ?SW   Apr07   0:00 [rpciod]
root   153  0.0  0.1  1300  552 ?SApr07   0:00
/usr/sbin/inetd
root   163  0.0  0.1  1352  560 ?SApr07   0:00
/usr/sbin/lpd
root   181  0.0  0.2  2040 1180 ?SApr07   0:00 sendmail:
accepting connections on port 25
root   189  0.0  0.1  2228  924 ?SApr07   0:00
/usr/sbin/sshd
root   194  0.0  0.2  1548 1540 ?SL   Apr07   0:00
/usr/sbin/ntpd
root   199  0.0  0.1  2112  976 ?SApr07   0:00 proftpd
(accepting connections)
root   202  0.0  0.2  2012 1240 tty1 SApr07   0:00 -bash
aarons 203  0.0  0.2  1996 1216 tty2 SApr07   0:00 -bash
root   204  0.0  0.0  1004  444 tty3 SApr07   0:00
/sbin/getty 38400 tty3
root   205  0.0  0.0  1004  444 tty4 SApr07   0:00
/sbin/getty 38400 tty4
root   206  0.0  0.0  1004  444 tty5 SApr07   0:00
/sbin/getty 38400 tty5
root   207  0.0  0.0  1004  444 tty6 SApr07   0:00
/sbin/getty 38400 tty6
root   208  0.0  0.1  1668  860 ?SApr07   0:00 nmbd -a
root   341  0.0  0.0  1160  432 tty1 S00:01   0:00 LCDd -d
MtxOrb --contrast 200
root   376  0.6  0.1  1184  536 tty1 S00:02   0:07 lcdproc
-s 128.2.148.19 C M T
aarons 444  0.0  0.1  1744  820 tty2 S00:03   0:00 sh
/usr/bin/X11/startx
aarons 452  0.0  0.1  2192  764 tty2 S00:03   0:00 xinit
/home/aarons/.xinitrc -- -auth /home/aarons/.Xauthority
root   453  1.7  7.8 74688 40424 tty2S00:03   0:20 X :0
-auth /home/aarons/.Xauthority
aarons 454  0.0  0.4  3588 2272 tty2 S00:03   0:01
/usr/bin/X11/WindowMaker
aarons 455  0.0  0.1  3260  888 tty2 S00:03   0:00 xplanetbg
--label --labelpos -1315+0 --markers --random
aarons 459  0.0  0.1  2664  988 tty2 SN   00:03   0:00 wmsetbg
-helper -d
aarons 468  0.0  0.7  6708 3712 tty2 S00:03   0:00 panel
aarons 469  0.0  0.9  7908 5160 tty2 S00:03   0:00 gmc
aarons 479  0.0  0.2  2528 1216 ?S00:03   0:00
gnome-name-service
aarons 487  0.0  0.5  6136 3100 ?S00:03   0:00
gen_util_applet --activate-goad-server gen_util_applet
aarons 492  0.0  0.8  7072 4320 ?S00:03   0:00 gnomeicu
--activate-goad-server gnomeicu
aarons 498  0.0  0.6  4648 3324 tty2 S00:03   0:00 gaim
aarons 525  1.2  3.5 24856 18376 tty2S00:04   0:13
/usr/local/netscape/netscape
aarons 529  0.0  0.7 16556 3628 tty2 S00:04   0:00 (dns
helper)
aarons 541  0.0  0.3  3600 2004 tty2 S00:05   0:00 Eterm -T
Eterm on leko -b black -f yellow -F -misc-fixed-medium
aarons 544  0.0  0.2  1992 1212 pts/0S00:05   0:00 -bash
aarons 547  0.0  0.2  2440 1212 pts/0S00:05   0:00 ssh
unix15
aarons 550  0.0  0.3  3600 2004 tty2 S00:06   0:00 Eterm -T
Eterm on meatball -b black -f yellow -F -misc-fixed-me
aarons 553  0.0  0.2  2424 1184 pts/1S00:06   0:00 ssh
meatball.res.cmu.edu
aarons 558  0.0  0.4  3688 2100 tty2 S00:12   0:00 Eterm -T
Eterm on leko -b black -f yellow -F -misc-fixed-medium
aarons 561  0.0  0.2  1988 1212 pts/2S00:12   0:00 -bash
root   565  0.0  0.2  1996 1224 pts/2S00:13   0:00 bash
aarons 574  7.6  0.7  6260 3864 tty2 R00:17   0:25
/usr/bin/gtop
root   584  0.0  0.2  2780 1136 pts/2R00:22   0:00 ps aux

Also, my system has been a little strange lately, and I don't know what
a lot of this running stuff is.  If anyone notices anything odd about
what my system is running, please tell me!  Thanks.

-Aaron Solochek
 [EMAIL PROTECTED]