Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Marriage is low down, but you spend the rest of your life paying for it." -- Baskins


devel / comp.protocols.time.ntp / Re: [questions] Fwd: Usage of ntpdsim

SubjectAuthor
* Usage of ntpdsimArturs Laizans
`- Re: [questions] Fwd: Usage of ntpdsimHarlan Stenn

1
Usage of ntpdsim

<a4ee6faf-7388-438f-a3a5-8756ea277949n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=470&group=comp.protocols.time.ntp#470

  copy link   Newsgroups: comp.protocols.time.ntp
X-Received: by 2002:a05:620a:2191:b0:746:8a6b:d9e8 with SMTP id g17-20020a05620a219100b007468a6bd9e8mr4539973qka.2.1680511687708;
Mon, 03 Apr 2023 01:48:07 -0700 (PDT)
X-Received: by 2002:a05:620a:21c6:b0:71f:b908:7b76 with SMTP id
h6-20020a05620a21c600b0071fb9087b76mr7073882qka.2.1680511687507; Mon, 03 Apr
2023 01:48:07 -0700 (PDT)
Path: i2pn2.org!rocksolid2!i2pn.org!news.swapon.de!news.uzoreto.com!peer01.ams4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.time.ntp
Date: Mon, 3 Apr 2023 01:48:07 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=193.121.161.76; posting-account=QG0h9AoAAAC-_rA43VcG9NG1pBzUq3EO
NNTP-Posting-Host: 193.121.161.76
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a4ee6faf-7388-438f-a3a5-8756ea277949n@googlegroups.com>
Subject: Usage of ntpdsim
From: arturs.laizans@essensium.com (Arturs Laizans)
Injection-Date: Mon, 03 Apr 2023 08:48:07 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 5822
 by: Arturs Laizans - Mon, 3 Apr 2023 08:48 UTC

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 [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \
[ <server1> ... <serverN> ]
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 [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \
[ <server1> ... <serverN> ]
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 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: <http://bugs.ntp.org, bugs@ntp.org>

Does anyone has any insight on how to use ntpdsim or have an working example?

Best,
Arturs Laizans
Mind.be

Re: [questions] Fwd: Usage of ntpdsim

<786aca14-414a-cf20-fc2b-4ac046271714@ntp.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=471&group=comp.protocols.time.ntp#471

  copy link   Newsgroups: comp.protocols.time.ntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
From: stenn@ntp.org (Harlan Stenn)
Newsgroups: comp.protocols.time.ntp
Subject: Re: [questions] Fwd: Usage of ntpdsim
Date: Mon, 3 Apr 2023 23:58:00 -0000 (UTC)
Organization: Taughannock Networks, Trumansburg NY
Message-ID: <786aca14-414a-cf20-fc2b-4ac046271714@ntp.org>
References: <a4ee6faf-7388-438f-a3a5-8756ea277949n@googlegroups.com> <CAHrV9oVUJK9XNTwsOwvVdP_zDFHVO9_5GcpPX16V+eXVkmpeJg@mail.gmail.com> <CAHrV9oXMyO68b7nssJVcLBHWEiryd_fy6rmy+yxeqkvSO1DUXQ@mail.gmail.com>
Reply-To: questions@lists.ntp.org
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 3 Apr 2023 23:58:00 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
logging-data="55903"; mail-complaints-to="abuse@iecc.com"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv: 102.0) Gecko/20100101 Thunderbird/102.8.0
To: questions@lists.ntp.org
Return-Path: <questions+bounces-145-ntpquestions=iecc.com@lists.ntp.org>
Delivered-To: ntpquestions@iecc.com
Delivered-To: questions@lists.ntp.org
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gal.iecc.com
X-Spam-Status: No, score=-0.2 required=4.4 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6
Authentication-Results: iecc.com; spf=pass spf.mailfrom=questions+bounces-145-ntpquestions=iecc.com@lists.ntp.org spf.helo=mail0.chi1.ntfo.org smtp.remote-ip="204.93.207.17"; dkim=pass header.d=ntp.org header.s=mail header.a=rsa-sha256 header.b="Q+OOce6D"; dmarc=pass header.from=ntp.org polrec.p=none polrec.pct=100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntp.org; s=mail; t=1680566033; bh=DAIhKL3+BTvR2CzXHgHg/I9qBjLFDskgE9GmZxXPk1E=; h=Message-ID:Date:Reply-To:List-unsubscribe:List-Id:MIME-Version: Subject:To:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=Q+OOce6DJUQHTXWINhzeO/7dKD3w88yJjGxOq7WA57jgjigwP5gpKq3xgi3te1yLR 9C+MFTknk++ORfP92TgqF/3aBDMnfLyG+6z3KzotcdNz1vZvugldIi96LSaUlPAgBm xzRyIpRp5MfqbdNWbBmgG2ktrL9sdQBGO/p9XZSU=
X-Original-To: questions@lists.ntp.org
List-unsubscribe: mailto: questions+unsubscribe@lists.ntp.org
X-BeenThere: questions@lists.ntp.org
List-Id: questions.lists.ntp.org
Precedence: list
Content-Language: en-US
In-Reply-To: <CAHrV9oVUJK9XNTwsOwvVdP_zDFHVO9_5GcpPX16V+eXVkmpeJg@mail.gmail.com>
X-DCC-iecc-Metrics: gal.iecc.com 1107; Body=1 Fuz1=1 Fuz2=1
Mail-to-news: iecc.com
 by: Harlan Stenn - Mon, 3 Apr 2023 23:58 UTC

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 <comp.protocols.time.ntp@googlegroups.com
> <mailto:comp.protocols.time.ntp@googlegroups.com>> 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/
> <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 [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \
>                 [ <server1> ... <serverN> ]
> 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 [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \
>                 [ <server1> ... <serverN> ]
>   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           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:  <http://bugs.ntp.org
> <http://bugs.ntp.org>, bugs@ntp.org <mailto:bugs@ntp.org>>
>
> Does anyone has any insight on how to use ntpdsim or have an working
> example?
>
> Best,
> Arturs Laizans
> Mind.be
>
>
--
This is questions@lists.ntp.org
Subscribe: questions+subscribe@lists.ntp.org
Unsubscribe: questions+unsubscribe@lists.ntp.org

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor