[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] Ang Server tid Debian



Den 22-12-2010 17:39, Bent Bagger skrev:
On 2010-12-22 00:29, Tanja Sørensen wrote:

Jeg har et problem, jeg har nemlig adgang til en server via ssh, men
serveren viser forkert tid.
Tror ikke at ntp synkroniserer ordenligt på serveren.

Hvad er det jeg skal have kikket på når jeg kommer hjem?

Med kommandoen 'pstree' kan du se, om ntp overhovedet kører. Hvis den
gør det kan du med kommandoen 'ntpq -p' se, om din ntp server er
synkroniseret med en ekstern ntp-server, og hvor stor afvigelsen er. Du
skal se noget i stil med dette:

sslug@sslug:~>  ntpq -p
      remote           refid      st t when poll reach   delay   offset
jitter
==============================================================================
  LOCAL(0)        .LOCL.          10 l   27   64  377    0.000    0.000
  0.001
*leopold.oz6bl.d 173.34.166.174   2 u   19  128  377    0.163   -4.045
  1.036
sslug@sslug:~>

Det er den næstsidtse søjle (offset) der fortæller hvor godt
synkroniseret din server er i millisekunder.

Mvh  Bent


Hej Sslug.
Så er jeg kommet hjem og har tjekket en del op via ssh.
Her er de forskellige ting som i har snakket om.

pstree viser ntpd

sslug@sslug:~# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
+0x573fe19a.cpe. 192.38.7.240 2 u 7 64 377 19.097 -658969 0.083 *tigerdyr.wheel. 212.243.86.159 2 u 23 64 377 6.115 -658969 0.236 -box4.lyn.dk 192.38.7.240 2 u 24 64 377 0.730 -658969 1.504 +0x573c7c5a.cpe. 192.36.144.22 2 u 59 64 377 24.052 -658969 0.566


Serveren kører Debian 5


Har fjernet næsten alle out quotet lines i /etc/ntp.conf

# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help

driftfile /var/lib/ntp/ntp.drift

statsdir /var/log/ntpstats/

statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable

server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
server 3.pool.ntp.org

restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery

restrict 127.0.0.1
restrict ::1



sslug@sslug:~# cat /etc/default/ntp
NTPD_OPTS='-g'


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2011-01-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *