"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "scripts/ntpsweep/ntpsweep-opts" between
ntp-4.2.8p14.tar.gz and ntp-4.2.8p15.tar.gz

About: NTP is the the Official Reference Implementation of the Network Time Protocol (NTP) that synchronize the clocks of computers over a network.

ntpsweep-opts  (ntp-4.2.8p14):ntpsweep-opts  (ntp-4.2.8p15)
# EDIT THIS FILE WITH CAUTION (ntpsweep-opts) # EDIT THIS FILE WITH CAUTION (ntpsweep-opts)
# #
# It has been AutoGen-ed March 3, 2020 at 05:41:59 PM by AutoGen 5.18.5 # It has been AutoGen-ed June 23, 2020 at 02:21:34 AM by AutoGen 5.18.5
# From the definitions ntpsweep-opts.def # From the definitions ntpsweep-opts.def
# and the template file perlopt # and the template file perlopt
use Getopt::Long qw(GetOptionsFromArray); use Getopt::Long qw(GetOptionsFromArray);
Getopt::Long::Configure(qw(no_auto_abbrev no_ignore_case_always)); Getopt::Long::Configure(qw(no_auto_abbrev no_ignore_case_always));
my $usage; my $usage;
sub usage { sub usage {
my ($ret) = @_; my ($ret) = @_;
skipping to change at line 46 skipping to change at line 46
'host' => '', 'host' => '',
'help' => '', 'more-help' => '' 'help' => '', 'more-help' => ''
}; };
my $argument = '[hostfile]'; my $argument = '[hostfile]';
my $ret = GetOptionsFromArray($args, $opts, ( my $ret = GetOptionsFromArray($args, $opts, (
'host-list|l=s', 'peers|p', 'maxlevel|m=i', 'host-list|l=s', 'peers|p', 'maxlevel|m=i',
'strip|s=s', 'host|h=s', 'strip|s=s', 'host|h=s',
'help|?', 'more-help')); 'help|?', 'more-help'));
$usage = <<'USAGE'; $usage = <<'USAGE';
ntpsweep - Print various informations about given ntp servers - Ver. 4.2.8p14 ntpsweep - Print various informations about given ntp servers - Ver. 4.2.8p15
USAGE: ntpsweep [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [hostfile] USAGE: ntpsweep [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [hostfile]
-l, --host-list=str Host to execute actions on -l, --host-list=str Host to execute actions on
- may appear multiple times - may appear multiple times
-p, --peers Recursively list all peers a host synchronizes to -p, --peers Recursively list all peers a host synchronizes to
-m, --maxlevel=num Traverse peers up to this level (4 is a reasona ble number) -m, --maxlevel=num Traverse peers up to this level (4 is a reasona ble number)
-s, --strip=str Strip this string from hostnames -s, --strip=str Strip this string from hostnames
-?, --help Display usage information and exit -?, --help Display usage information and exit
--more-help Pass the extended usage text through a pager --more-help Pass the extended usage text through a pager
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)