More specifically, I get from piping the output of get-ncclusternode and get-ncnode to Get-Member that they return objects of types DataONTAP.C.Types.Cluster.ClusterNodeInfo and DataONTAP.C.Types.System.NodeDetailsInfo respectively. $controller is of type NetApp.Ontapi.Filer.C.NcController
How/why does get-ncdisk figure out how to return disk information from three different object types, yet it doesn't understand a literal such as na-test-cl1 ? So the values passed to "-Controller" and "-NodeName" must always be object instances ?
Lastly, I am trying to achieve the following:
I would like to go over a cluster's nodes and create an excel file per HA pair, containing the shelf info and disk info for that HA pair. I want an excel file per HA pair in the cluster, not per node.
How do I go about filtering out the HA pair info ?
I can get the nodes in the cluster via:
$nodes = Get-NcclusterNode
And I can get a node's HA partner like this:
$partner = get-ncclusterhapartner -node $node
but what would be the recommended PowerShell way filter out partner nodes to avoid going over both nodes of an HA pair in a cluster when looking up the shelf & disk info ?
(I am coming from a Perl scripting background so I guess getting my head around an object based approach is what's going to be the biggest challenge).
Thanks in advance for answering one or two questions 🙂