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 try to find a way to tag netapp volumes and after it to get a report of all Volumes with Tag information as well. In the Gui, it looks like there is no way to modify volumes with tag Information. Powershell or Netappcli ? Is there a good option to to this? Tanks for your help Get-NCvol | ?{ $_.Aggregate -like "*$filer*" } | ForEach-Object {
$x = "" | Select Name,State ,TotalSizeGB,Dedup,UsedPercent,AvailableGB,Aggregate,SVM,NCcontroller,Tag
$x.name = $_.Name
$x.Aggregate = $_.Aggregate
$x.TotalSizeGB= [Math]::Round($_.TotalSize / 1GB)
$x.Dedup = $_.Dedupe
$x.UsedPercent = $_.Used
$x.state = $_.state
$x.SVM = $_.Vserver
$x.AvailableGB = [Math]::Round($_.Available / 1GB)
$x.NCcontroller = $_.NcController
$x.Tag = $_.TAG # I dont know?
$mycol += $x
} a
... 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
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, 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