Subscribe
Highlighted

cluster mode system-cli with SDK

[ Edited ]

Hi,

 

i'm trying to get system-cli from SDK to work in clsuter mode environment, but it doesnt seem to work for me (Perl code):

my $server = $_[0];
my $cmd = NaElement->new("system-cli");
my $cmd_args = NaElement->new("args");
$cmd_args->child_add(NaElement->new("arg", "df"));
$cmd->child_add($cmd_args);
my $out = $server->invoke_elem( $cmd );
if($out->results_status() eq "failed")
{
print($out->results_reason() ."\n");
exit(-2);
}
my $results = $out->child_get_string("cli-output");;
print Dumper(\$results);

However nothing is returned..

 

can anyone please advise? 

 

Thanks,

Ofer