Changeset View
Changeset View
Standalone View
Standalone View
head/contrib/ntp/scripts/ntpsweep/ntpsweep-opts
# EDIT THIS FILE WITH CAUTION (ntpsweep-opts) | # EDIT THIS FILE WITH CAUTION (ntpsweep-opts) | ||||
# | # | ||||
# It has been AutoGen-ed October 21, 2015 at 12:34:16 PM by AutoGen 5.18.5 | # It has been AutoGen-ed January 7, 2016 at 11:26:43 PM 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; | ||||
Show All 26 Lines | sub processOptions { | ||||
}; | }; | ||||
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.8p4 | ntpsweep - Print various informations about given ntp servers - Ver. 4.2.8p5 | ||||
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 reasonable number) | -m, --maxlevel=num Traverse peers up to this level (4 is a reasonable 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 | ||||
Show All 13 Lines |