Thanks for the quick reply.
Could not get much help.. following is the snippet where I am getting the error:
if ($filer_type eq "ontap-cm"){
$out = $s->invoke( "quota-add-entry",
"disk-limit","$disklimit",
"quota-type","user",
"quota-target","$uid",
"volume","$volume");
if ($out->results_status() eq "failed"){
print($out->results_errno());
print($out->results_reason());
}
}
else{
$out = $s->invoke( "quota-add-entry",
"disk-limit","$disklimit",
"quota-type","user",
"volume","$volume",
"quota-target","$uid",
"qtree","$qtree" );
if ($out->results_status() eq "failed"){
print ($out->results_errno());
print($out->results_reason());
}
}
The snippet works perfectly fine when the filer type is "ontap" but throws an error when filer type is "ontap-cm"
The error message is "13005 Unable to find API: quota-add-entry ".
Any help/lead would be appreciated.
Thanks,
Rahul