Sponsored Content
Full Discussion: ntp time synchronization
Operating Systems Linux Red Hat ntp time synchronization Post 302563313 by rahul11c on Tuesday 11th of October 2011 01:39:45 AM
Old 10-11-2011
ntp time synchronization

hello all,,

am trying to do a time synchronization between a ntp server and a client, but facing some problems in doing so:

i run the ntpdate in debug mode and this is what i got. please help me out..

Code:
[root@stn228-cub3 etc]# ntpd -d -u 172.22.1.207
ntpd 4.2.2p1@1.1570-o Sun Aug 28 19:21:03 UTC 2011 (1)
addto_syslog: precision = 1.000 usec
create_sockets(123)
addto_syslog: no IPv6 interfaces found
addto_syslog: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16
addto_syslog: bind() fd 16, family 2, port 123, addr 0.0.0.0, in_classd=0 flags=9 fails: Address already in use
addto_syslog: bind() fd 16, family 2, port 123, addr 127.0.0.1, in_classd=0 flags=5 fails: Address already in use
addto_syslog: bind() fd 16, family 2, port 123, addr 172.22.2.101, in_classd=0 flags=25 fails: Address already in use
init_io: maxactivefd 0
local_clock: time 0 base 0.000000 offset 0.000000 freq 0.000 state 0
addto_syslog: getaddrinfo: "::1" invalid host address, ignored
getaddrinfo: "::1" invalid host address, ignored.
key_expire: at 0
peer_clear: at 0 next 1 assoc ID 59492 refid INIT
newpeer: 172.22.2.101->203.200.188.4 mode 3 vers 4 poll 6 10 flags 0x1 0x1 ttl 0 key 00000000
key_expire: at 0
peer_clear: at 0 next 2 assoc ID 59493 refid INIT
newpeer: 172.22.2.101->210.212.45.242 mode 3 vers 4 poll 6 10 flags 0x1 0x1 ttl 0 key 00000000
key_expire: at 0
peer_clear: at 0 next 3 assoc ID 59494 refid INIT
newpeer: 172.22.2.101->123.108.200.163 mode 3 vers 4 poll 6 10 flags 0x1 0x1 ttl 0 key 00000000
key_expire: at 0
peer_clear: at 0 next 4 assoc ID 59495 refid INIT
newpeer: 172.22.2.101->172.22.1.207 mode 3 vers 4 poll 6 10 flags 0x1 0x1 ttl 0 key 00000000
key_expire: at 0
peer_clear: at 0 next 4 assoc ID 59495 refid RMOT
addto_syslog: frequency initialized 88.950 PPM from /var/lib/ntp/drift
local_clock: time 0 base 0.000000 offset 0.000000 freq 88.950 state 1
addto_syslog: Cannot find user `172.22.1.207'

Moderator's Comments:
Mod Comment Video tutorial on how to use code tags

Last edited by pludi; 10-11-2011 at 03:48 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

TIME SYNC (NTP)

Is there a utility which offers the ability to utilize NTP to sync time on machine. If so please point to man page or web site (3 Replies)
Discussion started by: SmartJuniorUnix
3 Replies

2. UNIX for Advanced & Expert Users

ntp across time zones

I've been tasked to implement ntp on my SCO Unix servers. I have over 600 servers spread across the US in different time zones. Each remote server has network connectivity to a main server here, through their local ISP. (That's how we currently deliver mail to them). My question is, how can... (5 Replies)
Discussion started by: Howeird
5 Replies

3. UNIX for Dummies Questions & Answers

Time synchronization

All What is the best way to keep the system clock synchronized? I have looked at ntp and netdate. Is one good over the other? Basically I want to know if what is the most secure way to keep the system clock insync. netdate will require me to open up some port 37... is this safe? ntp also... (1 Reply)
Discussion started by: skotapal
1 Replies

4. HP-UX

NTP time

Is anyone familiar with adding NTP timing to a HPUX 10 OS? Thanks Brian (2 Replies)
Discussion started by: breigner
2 Replies

5. UNIX for Advanced & Expert Users

time synchronization

i have an HP UNIX box w/c acts as ntp server... I tried to change the time plus 8 minutes... the problem is that the other HP UNIX ntp client did not follow the time... when I tried to restart ntp client... using stop start it only sync to the server once... when I issue the command "ntpq -p", w/c... (2 Replies)
Discussion started by: inquirer
2 Replies

6. AIX

NTP - with time difference

We have configured most of 1200 servers with an NTP server. For the rest of the servers, I have a strange requirement. I want to synchronize them with NTP time with a lag of 15 minutes. Is it possible ? If yes How ? (0 Replies)
Discussion started by: shauche
0 Replies

7. Linux

How often does Linux NTP server update its time with the external NTP server?

All here, thank you for listening. Now I've set up a Linux NTP server by adding a external windows NTP server in /etc/ntp.conf. Then I start the ntpd daemon. But how often does the Linux NTP server update its time with the external NTP server? I've looked up everywhere but found no information... (1 Reply)
Discussion started by: MichaelLi
1 Replies

8. Red Hat

Auto NTP Time Synchronization

Good morning, My first post and first visit, so hello. I have been asked to see if one of our Linux boxes can have it's time sync automatically because the person who built the system has told our staff it cannot be done. To me that raised some flags because although I am no Linux expert, I just... (12 Replies)
Discussion started by: YSupport
12 Replies

9. HP-UX

Ntp time synchronization problems

There is one server in my company where the time is out of sync. When I checked (compared with other servers whose time is correct), the XNTPD variable in /etc/rc.config.d/netdaemons was set as 0. I changed this to 1, and tried restarting the xntpd process with : # /sbin/init.d/xntpd start ... (4 Replies)
Discussion started by: anaigini45
4 Replies

10. UNIX for Advanced & Expert Users

Ntp : How is the synchronization time scheduled?

Hello, one of my clients has the following task for me: To write a Perl script that checks, whether ntp is active on a particular AIX or Linux box. Obviously the last synchronization is logged in the file ntp.log So, my task would be find out, when the synchronization SHOULD have taken... (1 Reply)
Discussion started by: Bloehdian1
1 Replies
WLANCTL(8)						    BSD System Manager's Manual 						WLANCTL(8)

NAME
wlanctl -- examine IEEE 802.11 wireless LAN client/peer table SYNOPSIS
wlanctl [-p] interface [...] wlanctl [-p] -a DESCRIPTION
Use the wlanctl utility to print node tables from IEEE 802.11 interfaces. Use the -a flag to print the nodes for all interfaces, or list one or more 802.11 interfaces to select their tables for examination. The -p flag causes only nodes that do not have encryption enabled to be printed. For example, to examine the node tables for atw0, use: wlanctl atw0 wlanctl may print this node table, for example: atw0: mac 00:02:6f:20:f6:2e bss 02:02:6f:20:f6:2e node flags 0001<bss> ess <netbsd> chan 11 freq 2462MHz flags 00a0<cck,2.4GHz> capabilities 0022<ibss,short preamble> beacon-interval 100 TU tsft 18425852102545544165 us rates [1.0] 2.0 5.5 11.0 assoc-id 0 assoc-failed 0 inactivity 0s rssi 161 txseq 10 rxseq 1420 atw0: mac 00:02:2d:2e:3c:f4 bss 02:02:6f:20:f6:2e node flags 0000 ess <netbsd> chan 11 freq 2462MHz flags 00a0<cck,2.4GHz> capabilities 0002<ibss> beacon-interval 100 TU tsft 18425852105450086784 us rates [1.0] 2.0 5.5 11.0 assoc-id 0 assoc-failed 0 inactivity 0s rssi 159 txseq 2 rxseq 551 atw0: mac 00:02:6f:20:f6:2e bss 02:02:6f:20:f6:2e node flags 0000 ess <netbsd> chan 11 freq 2462MHz flags 00a0<cck,2.4GHz> capabilities 0022<ibss,short preamble> beacon-interval 100 TU tsft 18425852102558548069 us rates [1.0] 2.0 5.5 6.0 9.0 11.0 12.0 18.0 24.0 36.0 48.0 54.0 assoc-id 0 assoc-failed 0 inactivity 145s rssi 163 txseq 9 rxseq 2563 This example is taken from a network consisting of three stations running in ad hoc mode. The key for interpreting the node print-outs fol- lows: mac In the example node table, the first network node has MAC number 00:02:6f:20:f6:2e. bss The first node belongs to the 802.11 network identified by Basic Service Set Identifier (BSSID) 02:02:6f:20:f6:2e. node flags Only three node flags, ``bss'', ``sta'', and ``scan'', are presently defined. The first node is distinguished from the rest by its node flags: flag ``bss'' indicates that the node represents the 802.11 network that the interface has joined or created. The MAC number for the node is the same as the MAC number for the interface. ess the name of the (Extended) Service Set we have joined. This is the same as the network name set by ifconfig(8) with the ``ssid'' option. chan wlanctl prints the channel number, the center frequency in megahertz, and the channel flags. The channel flags indicate the frequency band (``2.4GHz'' or ``5GHz''), modulation (``cck'', ``gfsk'', ``ofdm'', ``turbo'', and ``dynamic cck-ofdm''), and operation constraints (``passive scan''). Common combinations of band and modulation are these: Band Modulation Description 2.4GHz cck 11Mb/s DSSS 802.11b 2.4GHz gfsk 1-2Mb/s FHSS 802.11 2.4GHz ofdm 54Mb/s 802.11g 2.4GHz dynamic cck-ofdm mixed 802.11b/g network 5GHz ofdm 54Mb/s 802.11a 5GHz turbo 108Mb/s 802.11a capabilities ad hoc-mode and AP-mode 802.11 stations advertise their capabilities in 802.11 Beacons and Probe Responses. wlanctl under- stands these capability flags: Flag Description ess infrastructure (access point) network ibss ad hoc network (no access point) cf pollable TBD request cf poll TBD privacy WEP encryption short preamble reduce 802.11b overhead pbcc 22Mbps ``802.11b+'' channel agility change channel for licensed services short slot-time TBD rsn TBD Real Soon Now dsss-ofdm TBD beacon-interval In the example, beacons are sent once every 100 Time Units. A Time Unit (TU) is 1024 microseconds (a ``kilo-microsecond'' or ``kus''). Thus 100 TU is about one tenth of a second. tsft 802.11 stations keep a Time Synchronization Function Timer (TSFT) which counts up in microseconds. Ad hoc-mode stations syn- chronize time with their peers. Infrastructure-mode stations synchronize time with their access point. Power-saving stations wake and sleep at intervals measured by the TSF Timer. The TSF Timer has a role in the coalescence of 802.11 ad hoc networks (``IBSS merges''). rates 802.11 stations indicate the bit-rates they support, in units of 100kb/s in 802.11 Beacons, Probe Responses, and Association Requests. wlanctl prints a station's supported bit-rates in 1Mb/s units. A station's basic rates are flagged by an asterisk ('*'). The last bit-rate at which a packet was sent to the station is enclosed by square brackets. assoc-id In an infrastructure network, the access point assigns each client an Association Identifier which is used to indicate traffic for power-saving stations. assoc-failed The number of times the station tried and failed to associate with its access point. Only inactivity Seconds elapsed since a packet was last received from the station. When this value reaches net.link.ieee80211.maxinact, the station is eligible to be purged from the node table. See sysctl(8). rssi Unitless Received Signal Strength Indication (RSSI). Higher numbers indicate stronger signals. Zero is the lowest possible RSSI. On a hostap- or adhoc-mode interface, the node with node flag ``bss'' set uses rssi to indicate the signal strength for the last packet received from a station that does not belong to the network. On an infrastructure-mode station, the node with node flag ``bss'' set indicates the strength of packets from the access point. txseq The next 802.11 packet sent to this station will carry this transmit sequence number. The 802.11 MAC uses the transmit sequence number to detect duplicate packets. rxseq The last packet received from this station carried this transmit sequence number. SEE ALSO
sysctl(8) HISTORY
wlanctl first appeared in NetBSD 3.0. AUTHORS
David Young <dyoung@NetBSD.org> BSD
July 15, 2004 BSD
All times are GMT -4. The time now is 08:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy