Discuss NetApp solutions for Microsoft Private Cloud and the Hyper-V platform, including FlexPod Datacenter, OnCommand Plug-in for Microsoft, and ONTAP PowerShell Toolkit.
Discuss NetApp solutions for Microsoft Private Cloud and the Hyper-V platform, including FlexPod Datacenter, OnCommand Plug-in for Microsoft, and ONTAP PowerShell Toolkit.
Hi everyone. I'm fairly new to PowerShell. I was tasked with verifying all of our scripts run in PowerShell 7. Currently they are running in PowerShell 5. When used in PowerShell 5, the Get-NcVol command works perfectly, but in PowerShell 7 it misses nearly all of our volumes. I installed the latest version of NetApp PowerShell Toolkit (ver. 9.17.1), but no change. I'm puzzled by this behavior. The main issue right now is the command: Get-NcVol. Example: PowerShell 5. PS C:\Users\_dhiggins> $volumes = Get-NcVol PS C:\Users\_dhiggins> $volumes.count 566 <-- this is correct Example: PowerShell 7: PS C:\Users\_dhiggins> $volumes = Get-NcVol PS C:\Users\_dhiggins> $volumes.count 23 <-- Why?? Nothing changed. We are using Windows Server 2022 Standard, ver. 21H2 (PowerShell 7 is running in Visual Studio Code), fully updated. Has anyone encountered this? Do I need to use the Get-NcVol command differently in PS7?? I am unable to find a solution. I contacted NetApp and they directed me here. Thank you, Doug
... View more
I created a new role that should only have snapshot permissions to volumes ending with _stg: security login role create -role stg-admin -vserver dc -cmddirname "volume" -access readonly security login role create -role stg-admin -vserver dc -cmddirname "vserver" -access readonly security login role create -role stg-admin -vserver dc -cmddirname "network interface" -access readonly security login role create -role stg-admin -vserver dc -cmddirname "volume snapshot" -query "-volume *_stg" -access all A new user with that role is not able to delete a random snapshot for vol1, but is able to delete snapshots from vol2_stg. So permissions are working properly. The problem is I'm getting "Remove-NcSnapshot : [403]: not authorized for that command" on both examples, even when it does successfully delete the vol2_stg vol snapshot. Am I missing a permission it's expecting even though it is successfully deleting them? Or is this a bug in NetApp.ONTAP module?
... View more
I use Powershell to create a script, ONTAP Powershell Version is 9.14.1 I user get-ncdisk command to get disk information, and my environment is simulator, At the beginning the command [get-ncdisk] can be use, but suddenly I can't use get-ncdisk, and system force me to use -zapi to performance, but zapi can't get some information, for example when I don't -use -zapi, I can see Shelf ID but If I use -zapi, the Shelf ID Field is empty, how can fix this problem?
... View more
I login to scvmm use the account [scvmmsvc] I create a CIFS SVM, and create a share, and give the scvmmsvc ntfs and cifs permission both full controller But When I create a library share in SCVMM, it show me error, it tell me I don't have share permission, Is anyone tell me how to create a library share in SCVMM?
... View more