NAME
IPsonar - Wrapper to interact with the Lumeta IPsonar API
VERSION
Version 0.11
SYNOPSIS
This module wraps the IPsonar RESTful API. It handles the paging and https stuff so you can concentrate on extracting information from reports.
Code snippet.
use IPsonar;
my $rsn = Lumeta50API->new('rsn_address_or_name','username','password');
my $test_report = 1;
my @ip_list;
$results = $rsn->query('detail.devices',
{
'q.f.report.id' => $test_report,
'q.f.servicediscovery.ports' => 2300,
}) or die "Problem ".$rsn->error;
my $count = 0;
while (my $x = $rsn->next_result) {
push @ip_list $x->{ip};
}
SUBROUTINES/METHODS
Establish connection to a report server using username / password Note: This doesn't actually initiate a connection until you issue a query.
Establish connection to a report server using SSL certificate
Issue a query (get results for non-paged queries) $rsn->query ( method, hashref_of_parameters)
Get paged results
Get error information