Microsoft Virtualization Discussions

Get SVM/vserver allowed protocols via Powershell, no Get-NcVserverProtocol

uptimenow
3,818 Views

Hi,

 

Powershell newbie here ...

 

I am trying to enumerate the available protocols on a number of SVMs on a large group of clusters, but it looks like there is no "Get-NcVserverProtocol" that would easily let me do this. There is a 7-mode Get-NaVfilerProtocol.

 

How would one go about obtaining this information using Powershell ?

Am I overlooking something ?

 

Thanks in advance!

1 ACCEPTED SOLUTION

JohnChampion
3,783 Views

That is odd that cmdlet is not available - you could try something like this ...

 

Command:

 

Get-NcVserver | Where { $_.VserverType -eq "data" } | foreach { $v=$_.Vserver; $p=$_.AllowedProtocols; "$v `t $p" }

 

Sample Output:

 

BTS_NAS     nfs cifs fcp iscsi ndmp
BTS_SAN     nfs cifs fcp iscsi ndmp

 

Adjust as needed

View solution in original post

1 REPLY 1

JohnChampion
3,784 Views

That is odd that cmdlet is not available - you could try something like this ...

 

Command:

 

Get-NcVserver | Where { $_.VserverType -eq "data" } | foreach { $v=$_.Vserver; $p=$_.AllowedProtocols; "$v `t $p" }

 

Sample Output:

 

BTS_NAS     nfs cifs fcp iscsi ndmp
BTS_SAN     nfs cifs fcp iscsi ndmp

 

Adjust as needed

Public