Discuss NetApp solutions for Microsoft Private Cloud and the Hyper-V platform, including FlexPod Datacenter, NetApp OnCommand Plug-in for Microsoft, and Data ONTAP PowerShell Toolkit.
Discuss NetApp solutions for Microsoft Private Cloud and the Hyper-V platform, including FlexPod Datacenter, NetApp OnCommand Plug-in for Microsoft, and Data ONTAP PowerShell Toolkit.
Hi, I hope that you can help. I want to rename a bunch of CIFS shares using the PSTK - I don't think you can technically rename a share so I am creating/deleting. I'm using the following to retrieve the current share properties that I am interested in keeping: $oldshareproperties = Get-NcCifsShare -Name $oldshare |
Select-Object ShareName,Acl,Path,Comment,Vserver,OfflineFilesMode,ShareProperties I'm then creating some variables to create the new share name with the existing properties: $newshare = "$($oldshareproperties.ShareName)RO$"
$activepath = $oldshareproperties.Path
$newcomment = "READ ONLY $($oldshareproperties.Comment)"
$newofflinemode = $oldshareproperties.OfflineFilesMode
$newproperties = $oldshareproperties.ShareProperties
Add-NcCifsShare -Name $newshare -Path $activepath -Comment $newcomment -OfflineFilesMode $newofflinemode -ShareProperties $newproperties I can capture the ACL (everyone / read) from the existing share but how do I turn these into arguments for the Set-NcCifsShareAcl, i.e. -UserOrGroup and -Permission? Thanks
... View more
I tried to script the following to collect some information that I would normally have to SSH into the filer to collect. Trying to get this to run but it seems to just hang and cannot break out of it. Import-Module DataONTAP $filerName = "napp01" $credential = Get-Credential $command = "priv set diag;sysstat -M 1" Connect-NaController -Name $filerName -Credential $credential Invoke-NAssh -Controller $filerName -Command $command -Credential $credential Any help would be appreciated. Thank you in advance.
... View more
Hello All, I am looking for a way to find all the CIFS shares within NetApp with NTFS permission setup from AD levelin our environmnt in 1 go. We couldn't find the permission 1 by1 for each share as we have n numbers of shares in the environment. Any suggesstions or help on how could we do it from Netapp cluster mode CLI or if we could do it via Netapp powershell toolkit without impacting the busniess and cauing any latency to the environment ? Any help is really appreciated.
... View more
Hello, I would like to set on more than 40 netapp cluster ontap 9.5+, ldaps configuration. So basically, we have to apply 2 commands on each cluster per svm connected to ldap for cifs purpose. certificate install -type server-ca -vserver SVM + insert certificate vserver cifs security modify -vserver SVM -use-ldaps-for-ad-ldap true And maybe additionally to check settings have been applied cifs server security show -vserver SVM -fields use-ldaps-for-ad-ldap I had a look on powersheel toolkit but i don't think i can achieve this goal. Do you have any idea to apply this configuration on multiple cluster/svm by script/automatically ?
... View more
Hi there We use powershell to manage volumes within a Vserver creating new clones, adding snapmirrors etc etc. We have recently decided to add the volumes into a QoS Policy Group and have amended the script to apply the relevant group when performing the volume operations. As an Example we use New-NCVolClone to create a volume clone, and have now added the -QosPolicyGroup option to the call. this commandlet is in the Vserver family, yet after adding the above option it fails with an error [ You cannot use Quality of Service (Qos) feature in Vserver Context. Qos is available to cluster administrators only.] Can you please clarify if this a bug in the API or documentation? It seems strange that Qos Policy Groups are defined and applied at the Vserver level, but volumes cannot be added to the group by the Vserver admin via a normally successful api call Thank you
... View more