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.
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, Hope you can help. I want to get the IP address of a SVM's cifs lif into a variable and use this variable in Test-Path, but I can't work out what's happening: $newshare = share_test
$activevserverip = Get-NcNetInterface -Vserver $activevserver -DataProtocols cifs | Select-Object Address
PS C:\Windows\system32> $activevserverip
Address
-------
xxx.xxx.21.10
Test-Path "\\$activevserverip\$newshare" -verbose
False I receive a 'false' even though I know the path is up and accessible. What am I doing wrong please? Is it something like the data type of the IP address? If I create a path variable the IP address details are enclosed in a hash table (?). How can I reduce it to just the IP address? PS C:\Windows\system32> $path = "\\$activevserverip\$newshare"
PS C:\Windows\system32> $path
\\@{Address=xxx.xxx.21.10}\share_test Sorry if this is basic Thanks
... View more
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