NAME
IPsonar - Wrapper to interact with the Lumeta IPsonar API
VERSION
Version 0.15
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.
my $rsn = IPsonar->new('rsn_address_or_name','username','password');
my $test_report = 23;
my @ip_list;
my $results = $rsn->query('detail.devices',
{
'q.f.report.id' => $test_report,
'q.f.servicediscovery.ports' => 23,
}) or die "Problem ".$rsn->error;
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). If you're getting back paged data we'll return the number of items available in the query. If we're getting back a single result we return a hashref to those results.
Get next paged results
Get error information