Yeah.. its almost a month..
If you feel its fun to use perl.. im sure you will be able to figure out what you want from this....
I guess.. no one really use perl anymore..
A good debugging technique would be to use: print $cmd->sprintf(); to verify the element structure.
#!/usr/bin/perl
#
use strict;
use warnings;
use lib "/netapp-manageability-sdk-5.6/lib/perl/NetApp";
use NaServer;
use NaElement;
my $s = new NaServer('10.10.10.11', 1 , 31);
$s->set_http_version('1.0');
$s->set_server_type('FILER');
$s->set_transport_type('HTTPS');
$s->set_port(443);
$s->set_style('LOGIN');
$s->set_admin_user('username', 'password');
my $api = new NaElement('system-cli');
my $xi = new NaElement('args');
$xi->child_add_string("arg","version");
$api->child_add($xi);
print $api->sprintf();
my $xo = $s->invoke_elem($api);
if ($xo->results_status() eq 'failed') {
print 'Error:\n';
print $xo->sprintf();
exit 1;
}
print 'Received:\n';
print $xo->sprintf();
Hope this helps...