Microsoft Virtualization Discussions

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

uptimenow
3,248 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,213 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,214 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