[ntp:questions] Re: sntp hangs if network not available

Christopher Nelson cnelson at nycap.rr.com
Thu Dec 1 21:02:40 UTC 2005


Christopher Nelson wrote:
> Harlan Stenn wrote:
> > Have you seen/tried the '-d' option to sntp?
>
> Now I have:
>
>  # sntp -V -P no -r 11.128.0.1
>  sntp options: a=2 v=2 e=0.100 E=5.000 P=2147483647.000
>     d=15 c=5 x=0 op=1 l=/etc/sntp.pid f= 11.128.0.1
>  sntp: receive timed out after 3 seconds
>
> and then it hangs until I Ctrl-C it.  And every value I try for d gives
> me a range error related to -e and -E.

  # sntp -V -P no -d 6 -r 11.128.0.1
  sntp: -c must be less than half -d
  # sntp -V -P no -d 6 -c 3 -r 11.128.0.1
  sntp: -c must be less than half -d
  # sntp -V -P no -d 6 -c 2 -r 11.128.0.1
  sntp options: a=2 v=2 e=0.100 E=5.000 P=2147483647.000
      d=6 c=2 x=0 op=1 l=/etc/sntp.pid f= 11.128.0.1
  sntp: receive timed out after 3 seconds

and then it hangs.  Off to RTFM.




More information about the questions mailing list