Active IQ Unified Manager Discussions

using -template switch with get-nc commands

stephen2

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.

1 ACCEPTED SOLUTION

stephen2

Found the answer - you don't need to use -template.

Just test the result  $vserver.vservertype  - it will return admin, data, node

View solution in original post

1 REPLY 1

stephen2

Found the answer - you don't need to use -template.

Just test the result  $vserver.vservertype  - it will return admin, data, node

View solution in original post

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public