aboutsummaryrefslogtreecommitdiff
path: root/lib/App/Ping903/Command/ipadd.pm
blob: a516aba1a53dcb59744efd03deb10ec91e101c15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package App::Ping903::Command::ipadd;
use strict;
use warnings;
use parent 'App::Ping903::Command';
use App::Ping903::Command ':exit_codes';

sub run {
    my $self = shift;
    $self->SUPER::run;
    $self->usage_error("required parameters missing") unless @ARGV == 1;
    my $ip = shift @ARGV;    
    unless ($self->agent->ipadd($ip)) {
	$self->abend(EX_FAIL, $self->agent->error_message);
    }
}
1;

Return to:

Send suggestions and report system problems to the System administrator.