Has anyone used the -template switch with the nc-get commands?
I am trying to use get-ncvserver -template to retrieve only cluster and data vservers, not node vservers. I tried using the exact syntax from the posh documentation as follows:
$v = Get-NcVserver -Template
$v.State = "running"
$v.VserverType = "cluster"
Get-NcVserver -Query $v
Get-WFALogger -Info -message $("Vservers : "+$v)
However, the only thing returned is:
Vservers : DataONTAP.C.Types.Vserver.VserverInfo
I suspect this might be a usage problem.