#!/usr/bin/perl
use strict;
use NaServer;
use NaElement;
my $s = NaServer->new ("cluster1", 1, 32);
$s->set_style('LOGIN');
$s->set_admin_user("admin", "password");
$s->set_transport_type('HTTP');
$s->set_server_type('FILER');
my $in = NaElement->new("audit-log-get-iter");
my $out = $s->invoke_elem($in);
if ($out->results_status() eq "failed") {
print($out->results_reason() ."\n");
exit(1);
}
When I run this code I get
Unable to find API: audit-log-get-iter.
This API is in the cluster family according to the OntapClusterAPI doc so I am not setting a vserver and I'm logging into the cluster management LIF. Other Cluster family APIs work (like audit-get) but audit-log-get-iter does not. Any ideas?