I just posted some performance code examples for clustered Data ONTAP on my blog. I think you will find it useful.
I now sure what you're looking for with memory utilization, but you should be able to get CPU utilization. Remember that you will want to obtain CPU utilization for each controller node in the controller.