TT#15450 Fix POD sections, markup and content

Change-Id: If17383b9cb6496f120aed19a8da83cfea79b8f66
changes/05/13005/1
Guillem Jover 8 years ago
parent 6cab5bb0f2
commit c3463345ea

@ -31,7 +31,6 @@ sub usage {
my $missing = shift; my $missing = shift;
pod2usage(-exitval => $missing ? 1 : 0, pod2usage(-exitval => $missing ? 1 : 0,
-verbose => 99, -verbose => 99,
-sections => [ qw(NAME OPTIONS USAGE) ],
-message => $missing ? "Missing parameters: $missing" : '', -message => $missing ? "Missing parameters: $missing" : '',
); );
return; return;
@ -66,53 +65,36 @@ __END__
ngcp-api_ping - check NGCP API status ngcp-api_ping - check NGCP API status
=head1 SYNOPSIS
B<ngcp-api_ping> [I<options>]
=head1 DESCRIPTION
B<This program> checks whether NGCP API is running.
=head1 OPTIONS =head1 OPTIONS
=over 8 =over 8
=item B<-help> =item B<--help>
Print a brief help message. Print a brief help message.
=item B<-verbose> =item B<--verbose>
Show additional debug information. Default false. Show additional debug information. Default false.
=back =back
=head1 USAGE
ngcp-api_ping [options]
=head1 DESCRIPTION
B<This program> checks if NGCP API is running.
=head1 REQUIRED ARGUMENTS
None
=head1 EXIT STATUS =head1 EXIT STATUS
Exit code 0 means everything is fine otherwise 1. Exit code 0 means everything is fine otherwise 1.
=head1 CONFIGURATION
=head1 DIAGNOSTICS
=head1 SEE ALSO =head1 SEE ALSO
NGCP::API::Client NGCP::API::Client
=head1 DEPENDENCIES
ngcp-api_ping relies on a bunch of Perl modules, all of them specified as
dependencies through the ngcp-panel Debian package.
=head1 INCOMPATIBILITIES
No known at this time.
=head1 BUGS AND LIMITATIONS =head1 BUGS AND LIMITATIONS
Please report problems you notice to the Sipwise Please report problems you notice to the Sipwise
@ -122,7 +104,7 @@ Development Team <support@sipwise.com>.
Victor Seva <vseva@sipwise.com> Victor Seva <vseva@sipwise.com>
=head1 LICENSE AND COPYRIGHT =head1 LICENSE
Copyright (C) 2016 Sipwise GmbH, Austria Copyright (C) 2016 Sipwise GmbH, Austria

@ -36,7 +36,6 @@ sub usage {
my $missing = shift; my $missing = shift;
pod2usage(-exitval => $missing ? 1 : 0, pod2usage(-exitval => $missing ? 1 : 0,
-verbose => 99, -verbose => 99,
-sections => [ qw(NAME OPTIONS USAGE) ],
-message => $missing ? "Missing parameters: $missing" : '', -message => $missing ? "Missing parameters: $missing" : '',
); );
return; return;
@ -68,50 +67,44 @@ __END__
ngcp-create_customer - create a customer ngcp-create_customer - create a customer
=head1 OPTIONS =head1 SYNOPSIS
=over 8
=item B<-help> B<ngcp-create_customer> [I<options>...] I<required-arguments>...
Print a brief help message.
=item B<-billing_profile_id> =head1 DESCRIPTION
Billing profile id. B<This program> creates a customer on the NGCP platform.
=item B<-contact_id> =head1 REQUIRED ARGUMENTS
Contact id. =over 8
=item B<-type> =item B<--billing_profile_id>
Customer can be one of the "sipaccount" or "pbxaccount" type. Defaults to Billing profile id.
"sipaccount".
=item B<-verbose> =item B<--contact_id>
Show additional debug information. Default false. Contact id.
=back =back
=head1 USAGE =head1 OPTIONS
ngcp-create_customer [options]
ngcp-create_customer --billing_profile_id 1 --contact_id 4 --type sipaccount =over 8
=head1 DESCRIPTION =item B<--type>
B<This program> creates a customer on the NGCP platform. Customer can be one of the "sipaccount" or "pbxaccount" type. Defaults to
"sipaccount".
=head1 REQUIRED ARGUMENTS =item B<--verbose>
=over 8 Show additional debug information. Default false.
=item B<-billing_profile_id> =item B<--help>
=item B<-contact_id> Print a brief help message.
=back =back
@ -119,23 +112,10 @@ B<This program> creates a customer on the NGCP platform.
Exit code 0 means everything is ok otherwise 1. Exit code 0 means everything is ok otherwise 1.
=head1 CONFIGURATION
=head1 DIAGNOSTICS
=head1 SEE ALSO =head1 SEE ALSO
NGCP::API::Client NGCP::API::Client
=head1 DEPENDENCIES
ngcp-create_customer relies on a bunch of Perl modules, all of them specified as
dependencies through the Debian package.
=head1 INCOMPATIBILITIES
No known at this time.
=head1 BUGS AND LIMITATIONS =head1 BUGS AND LIMITATIONS
Please report problems you notice to the Sipwise Please report problems you notice to the Sipwise
@ -145,7 +125,7 @@ Development Team <support@sipwise.com>.
Victor Seva <vseva@sipwise.com> Victor Seva <vseva@sipwise.com>
=head1 LICENSE AND COPYRIGHT =head1 LICENSE
Copyright (C) 2016 Sipwise GmbH, Austria Copyright (C) 2016 Sipwise GmbH, Austria

@ -44,7 +44,6 @@ sub usage {
my $missing = shift; my $missing = shift;
pod2usage(-exitval => $missing ? 1 : 0, pod2usage(-exitval => $missing ? 1 : 0,
-verbose => 99, -verbose => 99,
-sections => [ qw(NAME OPTIONS USAGE) ],
-message => $missing ? "Missing parameters: $missing" : '', -message => $missing ? "Missing parameters: $missing" : '',
); );
return; return;
@ -75,49 +74,49 @@ __END__
ngcp-create_domain - create an NGCP domain ngcp-create_domain - create an NGCP domain
=head1 OPTIONS =head1 SYNOPSIS
=over 8 B<ngcp-create_domain> [I<options>...] I<required-arguments>...
=item B<-help> =head1 DESCRIPTION
Print a brief help message. B<This program> creates a domain on the NGCP platform.
=item B<-reseller_id> =head1 REQUIRED ARGUMENTS
Reseller id. Default 1. =over 8
=item B<-skip_sip> =item B<--domain> I<domain>
Skip reloading SIP services. If true, changes will not be effective immedeately The domain to create.
until the respective service is restarted or properly notified. Default false.
=item B<-skip_xmpp> =back
Skip reloading XMPP services. If true, changes will not be effective immedeately =head1 OPTIONS
until the respective service is restarted or properly notified. Default false.
=item B<-verbose> =over 8
Show additional debug information. Default false. =item B<--reseller_id> I<rid>
=back Reseller id. Default 1.
=head1 USAGE =item B<--skip_sip>
ngcp-create_domain [options] Skip reloading SIP services. If true, changes will not be effective immedeately
until the respective service is restarted or properly notified. Default false.
ngcp-create_domain --domain example.org =item B<--skip_xmpp>
=head1 DESCRIPTION Skip reloading XMPP services. If true, changes will not be effective immedeately
until the respective service is restarted or properly notified. Default false.
B<This program> creates a domain on the NGCP platform. =item B<--verbose>
=head1 REQUIRED ARGUMENTS Show additional debug information. Default false.
=over 8 =item B<--help>
=item B<-domain> Print a brief help message.
=back =back
@ -125,23 +124,10 @@ B<This program> creates a domain on the NGCP platform.
Exit code 0 means everything is ok otherwise 1. Exit code 0 means everything is ok otherwise 1.
=head1 CONFIGURATION
=head1 DIAGNOSTICS
=head1 SEE ALSO =head1 SEE ALSO
NGCP::API::Client NGCP::API::Client
=head1 DEPENDENCIES
ngcp-create_domain relies on a bunch of Perl modules, all of them specified as
dependencies through the Debian package.
=head1 INCOMPATIBILITIES
No known at this time.
=head1 BUGS AND LIMITATIONS =head1 BUGS AND LIMITATIONS
Please report problems you notice to the Sipwise Please report problems you notice to the Sipwise
@ -151,7 +137,7 @@ Development Team <support@sipwise.com>.
Victor Seva <vseva@sipwise.com> Victor Seva <vseva@sipwise.com>
=head1 LICENSE AND COPYRIGHT =head1 LICENSE
Copyright (C) 2016 Sipwise GmbH, Austria Copyright (C) 2016 Sipwise GmbH, Austria

@ -41,7 +41,6 @@ sub usage {
my $msg = shift; my $msg = shift;
pod2usage(-exitval => $msg ? 1 : 0, pod2usage(-exitval => $msg ? 1 : 0,
-verbose => 99, -verbose => 99,
-sections => [ qw(NAME OPTIONS USAGE) ],
-message => $msg -message => $msg
? $msg =~ /not found/i ? $msg =~ /not found/i
? $msg ? $msg
@ -90,84 +89,74 @@ __END__
ngcp-create_subscriber - create a subscriber ngcp-create_subscriber - create a subscriber
=head1 OPTIONS =head1 SYNOPSIS
=over 8 B<ngcp-create_subscriber> [I<options>...] I<required-arguments>...
=item B<-help> =head1 DESCRIPTION
Print a brief help message. B<This program> creates a subscriber on the NGCP platform.
=item B<-customer_id> =head1 REQUIRED ARGUMENTS
=over 8
=item B<--customer_id> I<cid>
An existing customer id to assign this subscriber to. An existing customer id to assign this subscriber to.
=item B<-username|u> =item B<-u>, B<--username> I<username>
A SIP username. A SIP username.
=item B<-domain|d> =item B<-d>, B<--domain> I<domain>
An existing domain for the new subscriber. An existing domain for the new subscriber.
=item B<-password|p> =item B<-p>, B<--password> I<password>
An unencrypted SIP password for the new subscriber. An unencrypted SIP password for the new subscriber.
=item B<-webpassword|w> B<Note:> using this option is a security hole, as it will be visible to
other users at least from the /proc filesystem.
=item B<-w>, B<--webpassword> I<password>
An unencrypted web password for the new subscriber. An unencrypted web password for the new subscriber.
=item B<-cc|c> B<Note:> using this option is a security hole, as it will be visible to
other users at least from the /proc filesystem.
=item B<-c>, B<--cc> I<country-code>
A country code part of the subscriber's number. A country code part of the subscriber's number.
=item B<-ac|a> =item B<-a>, B<--ac> I<area-code>
An area code part of the subscriber's number. An area code part of the subscriber's number.
=item B<-number|n> =item B<-n>, B<--sn> I<sub-number>
A local number part of the subscriber's number. A local number part of the subscriber's number.
=item B<-admin|s>
Set the administrative flag for the new subscriber.
Defaults to 0 (no).
=item B<-verbose>
Show additional debug information. Default false.
=back =back
=head1 USAGE =head1 OPTIONS
ngcp-create_subscriber [options]
ngcp-create_subscriber --customer_id 1 --username 4311101 --domain sipwise.com --password SecurePassword1 --cc 43 --ac 111 --sn 01
=head1 DESCRIPTION
B<This program> creates a subscriber on the NGCP platform.
=head1 REQUIRED ARGUMENTS
=over 8 =over 8
=item B<-customer_id> =item B<-s>, B<--admin>
=item B<-username> Set the administrative flag for the new subscriber.
Defaults to 0 (no).
=item B<-domain>
=item B<-password> =item B<--verbose>
=item B<-cc> Show additional debug information. Default false.
=item B<-ac> =item B<--help>
=item B<-sn> Print a brief help message.
=back =back
@ -175,23 +164,10 @@ B<This program> creates a subscriber on the NGCP platform.
Exit code 0 means everything is ok otherwise 1. Exit code 0 means everything is ok otherwise 1.
=head1 CONFIGURATION
=head1 DIAGNOSTICS
=head1 SEE ALSO =head1 SEE ALSO
NGCP::API::Client NGCP::API::Client
=head1 DEPENDENCIES
ngcp-create_customer relies on a bunch of Perl modules, all of them specified as
dependencies through the Debian package.
=head1 INCOMPATIBILITIES
No known at this time.
=head1 BUGS AND LIMITATIONS =head1 BUGS AND LIMITATIONS
Please report problems you notice to the Sipwise Please report problems you notice to the Sipwise
@ -201,7 +177,7 @@ Development Team <support@sipwise.com>.
Victor Seva <vseva@sipwise.com> Victor Seva <vseva@sipwise.com>
=head1 LICENSE AND COPYRIGHT =head1 LICENSE
Copyright (C) 2016 Sipwise GmbH, Austria Copyright (C) 2016 Sipwise GmbH, Austria

@ -40,7 +40,6 @@ sub usage {
my $msg = shift; my $msg = shift;
pod2usage(-exitval => $msg ? 1 : 0, pod2usage(-exitval => $msg ? 1 : 0,
-verbose => 99, -verbose => 99,
-sections => [ qw(NAME OPTIONS USAGE) ],
-message => $msg -message => $msg
? $msg =~ /not found/i ? $msg =~ /not found/i
? $msg ? $msg
@ -159,53 +158,37 @@ __END__
ngcp-credit-warning - checks for contract balances above credit warning thresholds ngcp-credit-warning - checks for contract balances above credit warning thresholds
=head1 OPTIONS =head1 SYNOPSIS
=over 8
=item B<-help> B<ngcp-credit-warning> [I<options>...]
Print a brief help message.
=item B<-verbose> =head1 DESCRIPTION
Show additional debug information. Default false. B<This program> checks for contract balances above credit warning thresholds
and sends email notifications about the incidents.
=back =head1 OPTIONS
=head1 USAGE =over 8
ngcp-credit-warning [options] =item B<--verbose>
=head1 DESCRIPTION Show additional debug information. Default false.
B<This program> checks for contract balances above credit warning thresholds and sends email notifications about the incidents =item B<--help>
=head1 REQUIRED ARGUMENTS Print a brief help message.
None =back
=head1 EXIT STATUS =head1 EXIT STATUS
Exit code 0 means everything is ok otherwise 1. Exit code 0 means everything is ok otherwise 1.
=head1 CONFIGURATION
=head1 DIAGNOSTICS
=head1 SEE ALSO =head1 SEE ALSO
NGCP::API::Client NGCP::API::Client
=head1 DEPENDENCIES
ngcp-credit-warning relies on a bunch of Perl modules, all of them specified as
dependencies through the Debian package.
=head1 INCOMPATIBILITIES
No known at this time.
=head1 BUGS AND LIMITATIONS =head1 BUGS AND LIMITATIONS
Please report problems you notice to the Sipwise Please report problems you notice to the Sipwise
@ -215,7 +198,7 @@ Development Team <support@sipwise.com>.
Kirill Solomko <ksolomko@sipwise.com> Kirill Solomko <ksolomko@sipwise.com>
=head1 LICENSE AND COPYRIGHT =head1 LICENSE
Copyright (C) 2016 Sipwise GmbH, Austria Copyright (C) 2016 Sipwise GmbH, Austria

@ -37,7 +37,6 @@ sub usage {
my $msg = shift; my $msg = shift;
pod2usage(-exitval => $msg ? 1 : 0, pod2usage(-exitval => $msg ? 1 : 0,
-verbose => 99, -verbose => 99,
-sections => [ qw(NAME OPTIONS USAGE) ],
-message => $msg -message => $msg
? $msg =~ /not found/i ? $msg =~ /not found/i
? $msg ? $msg
@ -86,45 +85,45 @@ __END__
ngcp-delete_domain - delete an NGCP domain ngcp-delete_domain - delete an NGCP domain
=head1 OPTIONS =head1 SYNOPSIS
=over 8 B<ngcp-delete_domain> [I<options>...] I<required-arguments>...
=item B<-help> =head1 DESCRIPTION
Print a brief help message. B<This program> deletes a domain on the NGCP platform.
=item B<-skip_sip> =head1 REQUIRED ARGUMENTS
Skip reloading SIP services. If true, changes will not be effective immedeately =over 8
until the respective service is restarted or properly notified. Default false.
=item B<-skip_xmpp> =item B<--domain> I<domain>
Skip reloading XMPP services. If true, changes will not be effective immedeately The domain name to delete.
until the respective service is restarted or properly notified. Default false.
=item B<-verbose> =back
Show additional debug information. Default false. =head1 OPTIONS
=back =over 8
=head1 USAGE =item B<--skip_sip>
ngcp-delete_domain [options] Skip reloading SIP services. If true, changes will not be effective immedeately
until the respective service is restarted or properly notified. Default false.
ngcp-delete_domain --domain example.org =item B<--skip_xmpp>
=head1 DESCRIPTION Skip reloading XMPP services. If true, changes will not be effective immedeately
until the respective service is restarted or properly notified. Default false.
B<This program> deletes a domain on the NGCP platform. =item B<--verbose>
=head1 REQUIRED ARGUMENTS Show additional debug information. Default false.
=over 8 =item B<--help>
=item B<-domain> Print a brief help message.
=back =back
@ -132,23 +131,10 @@ B<This program> deletes a domain on the NGCP platform.
Exit code 0 means everything is ok otherwise 1. Exit code 0 means everything is ok otherwise 1.
=head1 CONFIGURATION
=head1 DIAGNOSTICS
=head1 SEE ALSO =head1 SEE ALSO
NGCP::API::Client NGCP::API::Client
=head1 DEPENDENCIES
ngcp-delete_domain relies on a bunch of Perl modules, all of them specified as
dependencies through the Debian package.
=head1 INCOMPATIBILITIES
No known at this time.
=head1 BUGS AND LIMITATIONS =head1 BUGS AND LIMITATIONS
Please report problems you notice to the Sipwise Please report problems you notice to the Sipwise
@ -158,7 +144,7 @@ Development Team <support@sipwise.com>.
Victor Seva <vseva@sipwise.com> Victor Seva <vseva@sipwise.com>
=head1 LICENSE AND COPYRIGHT =head1 LICENSE
Copyright (C) 2016 Sipwise GmbH, Austria Copyright (C) 2016 Sipwise GmbH, Austria

@ -41,7 +41,6 @@ sub usage {
my $msg = shift; my $msg = shift;
pod2usage(-exitval => $msg ? 1 : 0, pod2usage(-exitval => $msg ? 1 : 0,
-verbose => 99, -verbose => 99,
-sections => [ qw(NAME OPTIONS USAGE) ],
-message => $msg -message => $msg
? $msg =~ /not found/i ? $msg =~ /not found/i
? $msg ? $msg
@ -205,55 +204,36 @@ ngcp-fraud-auto-lock - checks for contract balances above fraud limit thresholds
=head1 SYNOPSIS =head1 SYNOPSIS
ngcp-fraud-daily-lock B<ngcp-fraud-auto-lock> [I<options>...]
=head1 OPTIONS =head1 DESCRIPTION
=over 8 B<This program> checks for contract balances above fraud limit warning
thresholds and sends email notifications about the incidents as applying
actions on such contracts (e.g. lock). Interval: 'month'.
=item B<-help> =head1 OPTIONS
Print a brief help message. =over 8
=item B<-verbose> =item B<--verbose>
Show additional debug information. Default false. Show additional debug information. Default false.
=back =item B<--help>
=head1 USAGE
ngcp-fraud-auto-lock [options]
=head1 DESCRIPTION
B<This program> checks for contract balances above fraud limit warning thresholds and sends email notifications about the incidents as applying actions on such contracts (e.g. lock). Interval: 'month'
=head1 REQUIRED ARGUMENTS Print a brief help message.
None =back
=head1 EXIT STATUS =head1 EXIT STATUS
Exit code 0 means everything is ok otherwise 1. Exit code 0 means everything is ok otherwise 1.
=head1 CONFIGURATION
=head1 DIAGNOSTICS
=head1 SEE ALSO =head1 SEE ALSO
NGCP::API::Client NGCP::API::Client
=head1 DEPENDENCIES
ngcp-fraud-auto-lock relies on a bunch of Perl modules, all of them specified as
dependencies through the Debian package.
=head1 INCOMPATIBILITIES
No known at this time.
=head1 BUGS AND LIMITATIONS =head1 BUGS AND LIMITATIONS
Please report problems you notice to the Sipwise Please report problems you notice to the Sipwise
@ -263,12 +243,10 @@ Development Team <support@sipwise.com>.
Kirill Solomko <ksolomko@sipwise.com> Kirill Solomko <ksolomko@sipwise.com>
=head1 COPYRIGHT =head1 LICENSE
Copyright (C) 2016 Sipwise GmbH, Austria Copyright (C) 2016 Sipwise GmbH, Austria
=head1 LICENSE
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or the Free Software Foundation, either version 3 of the License, or

@ -41,7 +41,6 @@ sub usage {
my $msg = shift; my $msg = shift;
pod2usage(-exitval => $msg ? 1 : 0, pod2usage(-exitval => $msg ? 1 : 0,
-verbose => 99, -verbose => 99,
-sections => [ qw(NAME OPTIONS USAGE) ],
-message => $msg -message => $msg
? $msg =~ /not found/i ? $msg =~ /not found/i
? $msg ? $msg
@ -205,55 +204,36 @@ ngcp-fraud-daily-lock - checks for contract balances above fraud limit threshold
=head1 SYNOPSIS =head1 SYNOPSIS
ngcp-fraud-daily-lock B<ngcp-fraud-daily-lock> [I<options>...]
=head1 OPTIONS =head1 DESCRIPTION
=over 8 B<This program> checks for contract balances above fraud limit warning
thresholds and sends email notifications about the incidents as applying
actions on such contracts (e.g. lock). Interval: 'day'.
=item B<-help> =head1 OPTIONS
Print a brief help message. =over 8
=item B<-verbose> =item B<--verbose>
Show additional debug information. Default false. Show additional debug information. Default false.
=back =item B<--help>
=head1 USAGE
ngcp-fraud-daily-lock [options]
=head1 DESCRIPTION
B<This program> checks for contract balances above fraud limit warning thresholds and sends email notifications about the incidents as applying actions on such contracts (e.g. lock). Interval: 'day'
=head1 REQUIRED ARGUMENTS Print a brief help message.
None =back
=head1 EXIT STATUS =head1 EXIT STATUS
Exit code 0 means everything is ok otherwise 1. Exit code 0 means everything is ok otherwise 1.
=head1 CONFIGURATION
=head1 DIAGNOSTICS
=head1 SEE ALSO =head1 SEE ALSO
NGCP::API::Client NGCP::API::Client
=head1 DEPENDENCIES
ngcp-fraud-daily-lock relies on a bunch of Perl modules, all of them specified as
dependencies through the Debian package.
=head1 INCOMPATIBILITIES
No known at this time.
=head1 BUGS AND LIMITATIONS =head1 BUGS AND LIMITATIONS
Please report problems you notice to the Sipwise Please report problems you notice to the Sipwise
@ -263,12 +243,10 @@ Development Team <support@sipwise.com>.
Kirill Solomko <ksolomko@sipwise.com> Kirill Solomko <ksolomko@sipwise.com>
=head1 COPYRIGHT =head1 LICENSE
Copyright (C) 2016 Sipwise GmbH, Austria Copyright (C) 2016 Sipwise GmbH, Austria
=head1 LICENSE
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or the Free Software Foundation, either version 3 of the License, or

@ -32,7 +32,6 @@ sub usage {
my $missing = shift; my $missing = shift;
pod2usage(-exitval => $missing ? 1 : 0, pod2usage(-exitval => $missing ? 1 : 0,
-verbose => 99, -verbose => 99,
-sections => [ qw(NAME OPTIONS USAGE) ],
-message => $missing ? "Missing parameters: $missing" : '', -message => $missing ? "Missing parameters: $missing" : '',
); );
return; return;
@ -63,63 +62,46 @@ __END__
ngcp-get_customer - retreives an NGCP Customer ngcp-get_customer - retreives an NGCP Customer
=head1 OPTIONS =head1 SYNOPSIS
=over 8 B<ngcp-get_customer> [I<options>...] I<required-arguments>...
=item B<-help> =head1 DESCRIPTION
Print a brief help message. B<This program> retreives a customer from the NGCP platform.
=item B<-customer_id> =head1 REQUIRED ARGUMENTS
Customer id =over 8
=item B<-verbose> =item B<--customer_id> I<cid>
Show additional debug information. Default false. Customer id.
=back =back
=head1 USAGE =head1 OPTIONS
ngcp-get_customer [options]
ngcp-get_customer --customer_id 11
=head1 DESCRIPTION =over 8
B<This program> retreives a customer from the NGCP platform. =item B<--verbose>
=head1 REQUIRED ARGUMENTS Show additional debug information. Default false.
=over 8 =item B<--help>
=item B<-customer_id> Print a brief help message.
=back =back
=head1 EXIT STATUS =head1 EXIT STATUS
Exit code 0 means everything is ok otherwise 1. Exit code 0 means everything is ok, otherwise 1.
=head1 CONFIGURATION
=head1 DIAGNOSTICS
=head1 SEE ALSO =head1 SEE ALSO
NGCP::API::Client NGCP::API::Client
=head1 DEPENDENCIES
ngcp-get_customer relies on a bunch of Perl modules, all of them specified as
dependencies through the Debian package.
=head1 INCOMPATIBILITIES
No known at this time.
=head1 BUGS AND LIMITATIONS =head1 BUGS AND LIMITATIONS
Please report problems you notice to the Sipwise Please report problems you notice to the Sipwise
@ -129,7 +111,7 @@ Development Team <support@sipwise.com>.
Victor Seva <vseva@sipwise.com> Victor Seva <vseva@sipwise.com>
=head1 LICENSE AND COPYRIGHT =head1 LICENSE
Copyright (C) 2016 Sipwise GmbH, Austria Copyright (C) 2016 Sipwise GmbH, Austria

@ -32,7 +32,6 @@ sub usage {
my $missing = shift; my $missing = shift;
pod2usage(-exitval => $missing ? 1 : 0, pod2usage(-exitval => $missing ? 1 : 0,
-verbose => 99, -verbose => 99,
-sections => [ qw(NAME OPTIONS USAGE) ],
-message => $missing ? "Missing parameters: $missing" : '', -message => $missing ? "Missing parameters: $missing" : '',
); );
return; return;
@ -63,39 +62,35 @@ __END__
ngcp-sound_set - retreives an NGCP Sound Set ngcp-sound_set - retreives an NGCP Sound Set
=head1 OPTIONS =head1 SYNOPSIS
=over 8 B<ngcp-sound_set> [I<options>...] I<required-arguments>...
=item B<-help> =head1 DESCRIPTION
Print a brief help message. B<This program> retreives a sound set from the NGCP platform.
=item B<-id> =head1 REQUIRED ARGUMENTS
Sound set id =over 8
=item B<-verbose> =item B<--id> I<sid>
Show additional debug information. Default false. Sound set ID.
=back =back
=head1 USAGE =head1 OPTIONS
ngcp-sound_set [options]
ngcp-sound_set --id 11
=head1 DESCRIPTION =over 8
B<This program> retreives a sound set from the NGCP platform. =item B<--verbose>
=head1 REQUIRED ARGUMENTS Show additional debug information. Default false.
=over 8 =item B<--help>
=item B<-id> Print a brief help message.
=back =back
@ -103,23 +98,10 @@ B<This program> retreives a sound set from the NGCP platform.
Exit code 0 means everything is ok otherwise 1. Exit code 0 means everything is ok otherwise 1.
=head1 CONFIGURATION
=head1 DIAGNOSTICS
=head1 SEE ALSO =head1 SEE ALSO
NGCP::API::Client NGCP::API::Client
=head1 DEPENDENCIES
ngcp-sound_set relies on a bunch of Perl modules, all of them specified as
dependencies through the Debian package.
=head1 INCOMPATIBILITIES
No known at this time.
=head1 BUGS AND LIMITATIONS =head1 BUGS AND LIMITATIONS
Please report problems you notice to the Sipwise Please report problems you notice to the Sipwise
@ -129,7 +111,7 @@ Development Team <support@sipwise.com>.
Victor Seva <vseva@sipwise.com> Victor Seva <vseva@sipwise.com>
=head1 LICENSE AND COPYRIGHT =head1 LICENSE
Copyright (C) 2016 Sipwise GmbH, Austria Copyright (C) 2016 Sipwise GmbH, Austria

@ -32,7 +32,6 @@ sub usage {
my $missing = shift; my $missing = shift;
pod2usage(-exitval => $missing ? 1 : 0, pod2usage(-exitval => $missing ? 1 : 0,
-verbose => 99, -verbose => 99,
-sections => [ qw(NAME OPTIONS USAGE) ],
-message => $missing ? "Missing parameters: $missing" : '', -message => $missing ? "Missing parameters: $missing" : '',
); );
return; return;
@ -64,39 +63,35 @@ __END__
ngcp-terminate_customer - terminate an NGCP Customer ngcp-terminate_customer - terminate an NGCP Customer
=head1 OPTIONS =head1 SYNOPSIS
=over 8 B<ngcp-terminate_customer> [I<options>...] I<required-arguments>...
=item B<-help> =head1 DESCRIPTION
Print a brief help message. B<This program> terminates a customer on the NGCP platform.
=item B<-customer_id> =head1 REQUIRED ARGUMENTS
Customer id =over 8
=item B<-verbose> =item B<--customer_id> I<cid>
Show additional debug information. Default false. Customer ID.
=back =back
=head1 USAGE =head1 OPTIONS
ngcp-terminate_customer [options]
ngcp-terminate_customer --customer_id 11
=head1 DESCRIPTION =over 8
B<This program> terminates a customer on the NGCP platform. =item B<--verbose>
=head1 REQUIRED ARGUMENTS Show additional debug information. Default false.
=over 8 =item B<--help>
=item B<-customer_id> Print a brief help message.
=back =back
@ -104,23 +99,10 @@ B<This program> terminates a customer on the NGCP platform.
Exit code 0 means everything is ok otherwise 1. Exit code 0 means everything is ok otherwise 1.
=head1 CONFIGURATION
=head1 DIAGNOSTICS
=head1 SEE ALSO =head1 SEE ALSO
NGCP::API::Client NGCP::API::Client
=head1 DEPENDENCIES
ngcp-terminate_customer relies on a bunch of Perl modules, all of them specified as
dependencies through the Debian package.
=head1 INCOMPATIBILITIES
No known at this time.
=head1 BUGS AND LIMITATIONS =head1 BUGS AND LIMITATIONS
Please report problems you notice to the Sipwise Please report problems you notice to the Sipwise
@ -130,7 +112,7 @@ Development Team <support@sipwise.com>.
Victor Seva <vseva@sipwise.com> Victor Seva <vseva@sipwise.com>
=head1 LICENSE AND COPYRIGHT =head1 LICENSE
Copyright (C) 2016 Sipwise GmbH, Austria Copyright (C) 2016 Sipwise GmbH, Austria

@ -33,7 +33,6 @@ sub usage {
my $msg = shift; my $msg = shift;
pod2usage(-exitval => $msg ? 1 : 0, pod2usage(-exitval => $msg ? 1 : 0,
-verbose => 99, -verbose => 99,
-sections => [ qw(NAME OPTIONS USAGE) ],
-message => $msg -message => $msg
? $msg =~ /not found/i ? $msg =~ /not found/i
? $msg ? $msg
@ -84,45 +83,39 @@ __END__
ngcp-terminate_subscriber - terminate an NGCP Subscriber ngcp-terminate_subscriber - terminate an NGCP Subscriber
=head1 OPTIONS =head1 SYNOPSIS
=over 8 B<ngcp-terminate_subscriber> [I<options>...] I<required-arguments>...
=item B<-help> =head1 DESCRIPTION
Print a brief help message B<This program> terminates a subscriber on the NGCP platform.
=item B<-username> =head1 REQUIRED ARGUMENTS
Subscriber username =over 8
=item B<-domain> =item B<--username> I<name>
Subscriber domain Subscriber username.
=item B<-verbose> =item B<--domain> I<domain>
Show additional debug information. Default false. Subscriber domain.
=back =back
=head1 USAGE =head1 OPTIONS
ngcp-terminate_subscriber [options]
ngcp-terminate_subscriber --username 431110001 --domain example.org
=head1 DESCRIPTION
B<This program> terminates a subscriber on the NGCP platform. =over 8
=head1 REQUIRED ARGUMENTS =item B<--verbose>
=over 8 Show additional debug information. Default false.
=item B<-username> =item B<--help>
=item B<-domain> Print a brief help message
=back =back
@ -130,23 +123,10 @@ B<This program> terminates a subscriber on the NGCP platform.
Exit code 0 means everything is ok otherwise 1. Exit code 0 means everything is ok otherwise 1.
=head1 CONFIGURATION
=head1 DIAGNOSTICS
=head1 SEE ALSO =head1 SEE ALSO
NGCP::API::Client NGCP::API::Client
=head1 DEPENDENCIES
ngcp-terminate_subscriber relies on a bunch of Perl modules, all of them specified as
dependencies through the Debian package.
=head1 INCOMPATIBILITIES
No known at this time.
=head1 BUGS AND LIMITATIONS =head1 BUGS AND LIMITATIONS
Please report problems you notice to the Sipwise Please report problems you notice to the Sipwise
@ -156,7 +136,7 @@ Development Team <support@sipwise.com>.
Victor Seva <vseva@sipwise.com> Victor Seva <vseva@sipwise.com>
=head1 LICENSE AND COPYRIGHT =head1 LICENSE
Copyright (C) 2016 Sipwise GmbH, Austria Copyright (C) 2016 Sipwise GmbH, Austria

Loading…
Cancel
Save