Re: [questions] Fwd: Usage of ntpdsim

2023-04-04 Thread Arturs Laizans
Removing the comma made no difference.

On Mon, Apr 3, 2023 at 6:43 PM Jan Ceuleers 
wrote:

> On 03/04/2023 17:34, Arturs Laizans wrote:
>
> Documentation there provides such test script to be used:
>
>> #!/bin/bash
>> rm -f ./ntpstats/*
>> ntpdsim -C .001 -T 400 -W 1 -c ./ntp.conf,
>>
> I know that the comma is included on the web page, but I suspect its
> author was pursuing punctuation correctness rather than ndptsim syntactical
> correctness. I suggest retrying without the trailing comma.
>



Re: [questions] Fwd: Usage of ntpdsim

2023-04-03 Thread Harlan Stenn

Arturs,

Might I trouble you to file a documentation category bug report at 
bugs.ntp.org?


Thanks...

H

On 4/3/2023 8:34 AM, Arturs Laizans wrote:
I received notification that my previous email was rejected by the list, 
because I am not subscribed. So hopefully now I am properly subscribed 
and I am resending this email.


Best,
Arturs

On Mon, Apr 3, 2023 at 10:48 AM 'Arturs Laizans' via 
comp.protocols.time.ntp > wrote:


Hello List!

I have trouble using ntpdsim. I want to test jumps, leaps and
erratic behavior of upstream NTP sources to my infrastructure. I
hoped to simulate different conditions with help of ntpdsim.
However, I cannot figure out how to use it.

I follow documentation and example found in
https://www.ntp.org/documentation/4.2.8-series/ntpdsim/


Documentation there provides such test script to be used:
#!/bin/bash
rm -f ./ntpstats/*
ntpdsim -C .001 -T 400 -W 1 -c ./ntp.conf,

And I get such errors when I run it:
/usr/local/bin/ntpdsim: illegal option -- C
ntpd - NTP daemon program - Ver. 4.2.8p15
Usage:  ntpdsim [ - [] | --[{=| }] ]... \
                 [  ...  ]
Try 'ntpdsim --help' for more information.

When I execute ntpdsim with --help flag, the output does not mention
the specific ntpdsim CLI parameters:
$ ntpdsim --help
ntpd - NTP daemon program - Ver. 4.2.8p15
Usage:  ntpdsim [ - [] | --[{=| }] ]... \
                 [  ...  ]
   Flg Arg Option-Name    Description
    -4 no  ipv4           Force IPv4 DNS name resolution
                                 - prohibits the option 'ipv6'
    -6 no  ipv6           Force IPv6 DNS name resolution
                                 - prohibits the option 'ipv4'
    -a no  authreq        Require crypto authentication
                                 - prohibits the option 'authnoreq'
    -A no  authnoreq      Do not require crypto authentication
                                 - prohibits the option 'authreq'
    -b no  bcastsync      Allow us to sync to broadcast servers
    -c Str configfile     configuration file name
    -d no  debug-level    Increase debug verbosity level
                                 - may appear multiple times
    -D Num set-debug-level Set the debug verbosity level
                                 - may appear multiple times
    -f Str driftfile      frequency drift file name
    -g no  panicgate      Allow the first adjustment to be Big
                                 - may appear multiple times
    -G no  force-step-once Step any initial offset correction.
    -i --- jaildir        built without --enable-clockctl or
--enable-linuxcaps or --enable-solarisprivs
    -I Str interface      Listen on an interface name or address
                                 - may appear multiple times
    -k Str keyfile        path to symmetric keys
    -l Str logfile        path to the log file
    -L no  novirtualips   Do not listen to virtual interfaces
    -n no  nofork         Do not fork
                                 - prohibits the option 'wait-sync'
    -N no  nice           Run at high priority
    -p Str pidfile        path to the PID file
    -P Num priority       Process priority
    -q no  quit           Set the time and quit
                                 - prohibits these options:
                                 saveconfigquit
                                 wait-sync
    -r Str propagationdelay Broadcast/propagation delay
       Str saveconfigquit Save parsed configuration and quit
                                 - prohibits these options:
                                 quit
                                 wait-sync
    -s Str statsdir       Statistics file location
    -t Str trustedkey     Trusted key number
                                 - may appear multiple times
    -u --- user           built without --enable-clockctl or
--enable-linuxcaps or --enable-solarisprivs
    -U Num updateinterval interval in seconds between scans for new
or dropped interfaces
       Str var            make ARG an ntp variable (RW)
                                 - may appear multiple times
       Str dvar           make ARG an ntp variable (RW|DEF)
                                 - may appear multiple times
    -w Num wait-sync      Seconds to wait for first clock sync
                                 - prohibits these options:
                                 nofork
                                 quit
                                 saveconfigquit
    -x no  slew           Slew up to 600 seconds
       opt version        output version information and exit
    -? no  help   

Re: [questions] Fwd: Usage of ntpdsim

2023-04-03 Thread Jan Ceuleers
On 03/04/2023 17:34, Arturs Laizans wrote:
> Documentation there provides such test script to be used:
>
> #!/bin/bash
> rm -f ./ntpstats/*
> ntpdsim -C .001 -T 400 -W 1 -c ./ntp.conf,
>
I know that the comma is included on the web page, but I suspect its
author was pursuing punctuation correctness rather than ndptsim
syntactical correctness. I suggest retrying without the trailing comma.



[questions] Fwd: Usage of ntpdsim

2023-04-03 Thread Arturs Laizans
I received notification that my previous email was rejected by the list,
because I am not subscribed. So hopefully now I am properly subscribed and
I am resending this email.

Best,
Arturs

On Mon, Apr 3, 2023 at 10:48 AM 'Arturs Laizans' via
comp.protocols.time.ntp  wrote:

> Hello List!
>
> I have trouble using ntpdsim. I want to test jumps, leaps and erratic
> behavior of upstream NTP sources to my infrastructure. I hoped to simulate
> different conditions with help of ntpdsim. However, I cannot figure out how
> to use it.
>
> I follow documentation and example found in
> https://www.ntp.org/documentation/4.2.8-series/ntpdsim/
>
> Documentation there provides such test script to be used:
> #!/bin/bash
> rm -f ./ntpstats/*
> ntpdsim -C .001 -T 400 -W 1 -c ./ntp.conf,
>
> And I get such errors when I run it:
> /usr/local/bin/ntpdsim: illegal option -- C
> ntpd - NTP daemon program - Ver. 4.2.8p15
> Usage:  ntpdsim [ - [] | --[{=| }] ]... \
> [  ...  ]
> Try 'ntpdsim --help' for more information.
>
> When I execute ntpdsim with --help flag, the output does not mention the
> specific ntpdsim CLI parameters:
> $ ntpdsim --help
> ntpd - NTP daemon program - Ver. 4.2.8p15
> Usage:  ntpdsim [ - [] | --[{=| }] ]... \
> [  ...  ]
>   Flg Arg Option-NameDescription
>-4 no  ipv4   Force IPv4 DNS name resolution
> - prohibits the option 'ipv6'
>-6 no  ipv6   Force IPv6 DNS name resolution
> - prohibits the option 'ipv4'
>-a no  authreqRequire crypto authentication
> - prohibits the option 'authnoreq'
>-A no  authnoreq  Do not require crypto authentication
> - prohibits the option 'authreq'
>-b no  bcastsync  Allow us to sync to broadcast servers
>-c Str configfile configuration file name
>-d no  debug-levelIncrease debug verbosity level
> - may appear multiple times
>-D Num set-debug-level Set the debug verbosity level
> - may appear multiple times
>-f Str driftfile  frequency drift file name
>-g no  panicgate  Allow the first adjustment to be Big
> - may appear multiple times
>-G no  force-step-once Step any initial offset correction.
>-i --- jaildirbuilt without --enable-clockctl or
> --enable-linuxcaps or --enable-solarisprivs
>-I Str interface  Listen on an interface name or address
> - may appear multiple times
>-k Str keyfilepath to symmetric keys
>-l Str logfilepath to the log file
>-L no  novirtualips   Do not listen to virtual interfaces
>-n no  nofork Do not fork
> - prohibits the option 'wait-sync'
>-N no  nice   Run at high priority
>-p Str pidfilepath to the PID file
>-P Num priority   Process priority
>-q no  quit   Set the time and quit
> - prohibits these options:
> saveconfigquit
> wait-sync
>-r Str propagationdelay Broadcast/propagation delay
>   Str saveconfigquit Save parsed configuration and quit
> - prohibits these options:
> quit
> wait-sync
>-s Str statsdir   Statistics file location
>-t Str trustedkey Trusted key number
> - may appear multiple times
>-u --- user   built without --enable-clockctl or
> --enable-linuxcaps or --enable-solarisprivs
>-U Num updateinterval interval in seconds between scans for new or
> dropped interfaces
>   Str varmake ARG an ntp variable (RW)
> - may appear multiple times
>   Str dvar   make ARG an ntp variable (RW|DEF)
> - may appear multiple times
>-w Num wait-sync  Seconds to wait for first clock sync
> - prohibits these options:
> nofork
> quit
> saveconfigquit
>-x no  slew   Slew up to 600 seconds
>   opt versionoutput version information and exit
>-? no  help   display extended usage information and exit
>-! no  more-help  extended usage information passed thru pager
>
> Options are specified by doubled hyphens and their name or by a single
> hyphen and the flag character.
>
>
> The following option preset mechanisms are supported:
>  - examining environment variables named NTPD_*
>
> Please send bug reports to:  
>
> Does anyone has any insight on how to use ntpdsim or have an working