Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - ntpdate failure: (3 Items)
   
ntpdate failure  
I issue the following commands after the network is up under QNX6.3.2:

export TZ=MST7MDT
ntpdate ntp
ntpd -g

All works fine.

Under QNX6.4.1 I get the following behavior:

# export TZ=MST7MDT
# ntpdate ntp
Error : servname not supported for ai_socktype
31 Dec 17:30:11 ntpdate[274445]: can't find host ntp

31 Dec 17:30:11 ntpdate[274445]: no servers can be used, exiting

Process 274445 (ntpdate) exited status=1.

ntp is in my /etc/hosts file and I can ping & nslookup ntp:

# ping ntp
PING ntp.mgtsciences.com (172.23.93.7): 56 data bytes
64 bytes from 172.23.93.7: icmp_seq=0 ttl=64 time=9 ms
64 bytes from 172.23.93.7: icmp_seq=1 ttl=64 time=4 ms
64 bytes from 172.23.93.7: icmp_seq=2 ttl=64 time=3 ms
64 bytes from 172.23.93.7: icmp_seq=3 ttl=64 time=5 ms
64 bytes from 172.23.93.7: icmp_seq=4 ttl=64 time=4 ms

----ntp.mgtsciences.com PING Statistics----
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 3/5/9 ms   variance = 5 ms^2

Process 290829 (ping) exited status=0.
# nslookup ntp
Server:         172.23.93.3
Address:        172.23.93.3#53

Name:   ntp.mgtsciences.com
Address: 172.23.93.7


Process 299021 (nslookup) exited status=0.

sloginfo did not produce anything other than a line:
Dec 31 17:00:26    3    25     0 Couldn't initialize listen service: tcp (Address already in use) 


Any suggestions?

Re: ntpdate failure  
Shot in the dark...

Do you have /etc/services ?

-seanb

On Fri, Sep 04, 2009 at 11:56:21AM -0400, Todd Peterson wrote:
> I issue the following commands after the network is up under QNX6.3.2:
> 
> export TZ=MST7MDT
> ntpdate ntp
> ntpd -g
> 
> All works fine.
> 
> Under QNX6.4.1 I get the following behavior:
> 
> # export TZ=MST7MDT
> # ntpdate ntp
> Error : servname not supported for ai_socktype
> 31 Dec 17:30:11 ntpdate[274445]: can't find host ntp
> 
> 31 Dec 17:30:11 ntpdate[274445]: no servers can be used, exiting
> 
> Process 274445 (ntpdate) exited status=1.
> 
> ntp is in my /etc/hosts file and I can ping & nslookup ntp:
> 
> # ping ntp
> PING ntp.mgtsciences.com (172.23.93.7): 56 data bytes
> 64 bytes from 172.23.93.7: icmp_seq=0 ttl=64 time=9 ms
> 64 bytes from 172.23.93.7: icmp_seq=1 ttl=64 time=4 ms
> 64 bytes from 172.23.93.7: icmp_seq=2 ttl=64 time=3 ms
> 64 bytes from 172.23.93.7: icmp_seq=3 ttl=64 time=5 ms
> 64 bytes from 172.23.93.7: icmp_seq=4 ttl=64 time=4 ms
> 
> ----ntp.mgtsciences.com PING Statistics----
> 5 packets transmitted, 5 packets received, 0% packet loss
> round-trip min/avg/max = 3/5/9 ms   variance = 5 ms^2
> 
> Process 290829 (ping) exited status=0.
> # nslookup ntp
> Server:         172.23.93.3
> Address:        172.23.93.3#53
> 
> Name:   ntp.mgtsciences.com
> Address: 172.23.93.7
> 
> 
> Process 299021 (nslookup) exited status=0.
> 
> sloginfo did not produce anything other than a line:
> Dec 31 17:00:26    3    25     0 Couldn't initialize listen service: tcp (Address already in use) 
> 
> 
> Any suggestions?
> 
> 
> 
> 
> 
> _______________________________________________
> 
> io-net migration
> http://community.qnx.com/sf/go/post37384
> 
Re: ntpdate failure  
I had /etc/services, but only entries for ftp and telnet. Added ntp and it now works. It worked under QNX6.3.2 without 
that entry. Thanks!
> 
> Shot in the dark...
> 
> Do you have /etc/services ?
> 
> -seanb
>