Hi Mathew -
The invoke method doesn't take array inputs. Please use zexplorer for testing and code generation. Also the example perf_operatioin.rb in the SDK code example directory is helpful. In the meantime, the code below should help.
pogi = NaElement.new("perf-object-get-instances");
pogi.child_add_string("objectname", "aggregate");
counters = NaElement.new("counters");
counters.child_add_string("counter", "total_transfers");
pogi.child_add(counters);
instances = NaElement.new("instances");
instances.child_add_string("instance", "aggr0");
Regards,
- Rick -
pogi.child_add(instanes);
aggr_perf = s.invoke_elem(pogi);