BigIP-iControl
view release on metacpan or search on metacpan
lib/BigIP/iControl.pm view on Meta::CPAN
foreach my $service (@{$self->_request(module => 'System', interface => 'Services', method => 'get_all_service_statuses')}) {
$res{$service->{service}} = $service->{status}
}
return %res
}
=head3 save_configuration ($filename)
$ic->save_configuration('backup.ucs');
# is equivalent to
$ic->save_configuration('backup');
# Not specifying a filename will use today's date in the
# format YYYYMMDD as the filename.
$ic->save_configuration();
# is equivalent to
$ic->save_configuration('today');
lib/BigIP/iControl.pm view on Meta::CPAN
}
=head3 download_file ( $FILE )
# Print the bigip.conf file to the terminal
print $ic->download_file('/config/bigip.conf');
This method provides direct access to files on the target system. The method returns a scalar containing
the contents of the file.
This method may be useful for downloading configuration files for versioning or backups.
=cut
sub download_file {
my ($self,$file_name) = @_;
my $chunk = 65536;
my $offset = 0;
my ($data, $output);
$file_name or croak 'No file name specified';
( run in 0.620 second using v1.01-cache-2.11-cpan-49f99fa48dc )