- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- xntpd problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 07:44 AM
11-25-2002 07:44 AM
when i try to execute xntpd in the syslog i have this message:
Nov 25 16:26:25 h3mih076 xntpd[3685]: bind() fd 4, family 2, port 123, addr 0000
0000, in_classd=0 flags=1 fails: Address already in use
What's the meaning of that message?
When I execute ntpq -p whats the meaning of refid?
Thank you
Luca
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 07:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 07:50 AM
11-25-2002 07:50 AM
Re: xntpd problem
It means the proces ntpd is running.
#ps -ef | grep ntp
#/sbin/init.d/xntpd stop
now you can execute your script.
after that
#/sbin/init.d/xntp start
Kind regards
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 07:52 AM
11-25-2002 07:52 AM
Re: xntpd problem
check for the port 123 using losf and see wheter some other process is using it or not , incase there is some other process using it , either u need to kill / stop it to chcek wheter ntp restarts .
lsof | grep 123
kill -9 process id
/usr/sbin/init.d/xntpd stop
/usr/sbin/init.d/xntpd start
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 08:09 AM
11-25-2002 08:09 AM
Re: xntpd problem
1)broadcastclient no is the default, so i don't need change ntp.conf
2)ps -ef | grep ntp tell me there are no other ntp process runnig
3)is netstat -an the same of lsof? With netstat -an, when xntpd is stopped, tell me there are no process listing on 123 port, but when xntpd is running this is the output of netstat -an | grep 123:
udp 0 0 10.215.37.1.123 *.*
udp 0 0 10.213.164.129.123 *.*
udp 0 0 *.123 *.*
udp 0 0 10.213.37.1.123 *.*
udp 0 0 127.0.0.1.123 *.*
Thank you for your response
Luca
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 08:19 AM
11-25-2002 08:19 AM
Re: xntpd problem
Just for your other question ... From KBRC00001347 you can read :
refid REFERENCE IDENTIFICATION
Usually the IP address of the server or the name of the external clock, but
can also be a router between the client and server.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 08:23 AM
11-25-2002 08:23 AM
Re: xntpd problem
Luca
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 08:32 AM
11-25-2002 08:32 AM
Re: xntpd problem
Refid states what kind of server GPS or HPUX or SUN/OS.
You better use this one
#ntpq -c readlist ipadres
status=06f4 leap_none, sync_ntp, 15 events, event_peer/strat_chg
system="UNIX/HPUX", leap=00, stratum=2, rootdelay=0.67,
rootdispersion=0.15, peer=41788, refid=145.4.1.2,
reftime=c18cce72.26bdc000 Mon, Nov 25 2002 17:29:38.151, poll=7,
clock=c18cced4.e4332000 Mon, Nov 25 2002 17:31:16.891, phase=0.003,
freq=-24933.67, error=0.05
Hope it helps,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 08:36 AM
11-25-2002 08:36 AM
Re: xntpd problem
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 08:44 AM
11-25-2002 08:44 AM
Re: xntpd problem
[h3mih076] / # ntpq -c readlist ipadres
***Can't find host ipadres
Luca
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 08:46 AM
11-25-2002 08:46 AM
Re: xntpd problem
[h3mih076] / # ntpq -p
remote refid st t when poll reach delay offset disp
==============================================================================
10.213.37.30 0.0.0.0 16 - - 64 0 0.00 0.000 16000.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 09:08 AM
11-25-2002 09:08 AM
Re: xntpd problem
[h3mih076] / # ntpdate 10.213.37.30
25 Nov 18:02:19 ntpdate[12224]: no server suitable for synchronization found
And, i don'know why, xntpd instead tell me that there are no server suitable for sync, tell me, another error. I said that, because other similar machine, with different server, suitable for sync, works fine.
This is the only explanation i found.
Regards.
Luca
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 09:16 AM
11-25-2002 09:16 AM
Re: xntpd problem
The "address alread in use" error indicates that *at that moment*, another process was using port-123.
As suggested, the easist way to isolate it if the problem persists, is with 'lsof':
# lsof -i tcp:123
# lsof -i udp:123
Aside from 'xntp', 'ntpdate' also uses port-123. You cannot run both concurrently.
Remember too, that 'xntp' will fail to synchronize with a time source if the source time differs from the server's time by more than about 1000-seconds. In this case, 'xntpd' will die.
Use 'ntpq -pn' for checking your time associations. The 'refid' is the clock to which you are trying to synchronize. An asterisk character will appear before the address in the 'remote' column if/when time synchronization occurs.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 09:27 AM
11-25-2002 09:27 AM
Re: xntpd problem
However when I use ntpdate i stopped xntpd. I said so, because, when I try to use the able to sync server, it works fine. And when i re-use the non-able to sync server the messages with "address already in use" disappear.
However thank you very much for your information.
By Luca
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 10:12 AM
11-25-2002 10:12 AM
Re: xntpd problem
The dameon is started will try to synchronise and u need to run this check after 3-4 mts to see that the server is syncornising. You may like to look at this link :
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90685/B2355-90685_top.html&con=/hpux/onlinedocs/B2355-90685/00/00/63-con.html&toc=/hpux/onlinedocs/B2355-90685/00/00/63-toc.html&searchterms=NTP&queryid=20020415-123421
and
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1e80e78d8c50d611abdb0090277a778c,00.html
for more info.
Manoj Srivastava