Hello Everyone, I'm trying to get my volume tags set via System Manager with the simple powershell cmdlet "get-ncVol", but "Tags" property is always empty. I've also try the cmdlet with "-zapiCall" parameter, but having the same empty result. powershell SDK 9.15.1.2407 powershell 5.1 Windows 2019 Ontap 9.14.1P8 thanks in advance. Yala
... View more
Hi Team, We have resolved the issue related to the code signing certificate, which is now valid until 2027. The versions that include this fix are 9.15.1.2410 and 9.10.1.2410. You can download them from the PowerShell Gallery. Please find the links to the packages below. PSTK Version: 9.15.1.2410 : Supports Rest and ZAPI both PSTK Version: 9.10.1.2410 : Supports ZAPI only If you have any questions, please send an email to ng-ontap-pstk-queries. Thanks, Saharsh Neema
... View more
As usual, PSTK has failed after the upgrade to 9.15.x. Get-NcSnapshot $Volname | where-object { $_.Dependency -NotMatch "snapmirror" } |Sort-Object -Property Created -Descending Get-NcSnapshot: The remote server returned an error: (400) Bad Request. Get-NcVol Get-NcVol: The remote server returned an error: (400) Bad Request. Works only on second attempt
... View more
Hello! New array deployment here. Former NetApp customer returning and looking to manage some aspects of day to day admin via the Netapp.ONTAP powershell modules. I have been unable to get connected and support suggested posting here. if (Get-Module -ListAvailable -Name NetApp.ONTAP) {
Write-Host "NetApp Modules are installed..."
}
else {
Write-Host "NetApp Module does not exist....installing now...."
Install-Module -Name NetApp.ONTAP
}
# Variables
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls13
$NetAppArray='netapp01.domain.com'
$cred=$(Get-Credential)
# Connect to array
Connect-NaController -Name $NetAppArray -Credential $cred -HTTPS Error as follows: Connect-NaController : Connection to netapp01.domain.com using HTTPS failed - The request was aborted: Could not create SSL/TLS secure channel. The error may be resolved by generating a new certificate on the storage controller, with a longer key length. At O:\Network\Scripts\PowerShell\NetApp.ps1:17 char:1 + Connect-NaController -Name $NetAppArray -Credential $cred -HTTPS + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidResult: (netapp01.domain.com:NaController) [Connect-NaController], NaConnectionSSLException + FullyQualifiedErrorId : HttpConnectionFailed,DataONTAP.PowerShell.SDK.ConnectNaController Things I have tried: Verified key length is 2048. I have tried forcing TLS 1.2 and 1.3 from powershell. Tried shortname/FQDN/IP. I have used the built-in self signed cert as well as a purchased digicert wildcard. Some output from the array (run with 'set advanced'): netapp01::*> security certificate show -fields size -type server
vserver common-name serial ca type subtype cert-name size
------- ----------- ---------------- -------- ------ ------- ------------------------- ----
netapp01
netapp01 0C02639083A3E774E2E1B51125F1BB34
"DigiCert Global G2 TLS RSA SHA256 2020 CA1"
server - netapp01_wildcard2025 2048
netapp01
netapp01 17D48425558215B2 netapp01 server - netapp01_17D48425558215B2 2048
4 entries were displayed. netapp01::*> security config show -fields supported-protocols
interface supported-protocols
--------- -------------------
SSL TLSv1.3,TLSv1.2 Thanks in advance for any ideas.
... View more
We are trying to use powershell script to add user to a CIFS folder. The user is a local NetApp CIFS user. How could we resolved it? PS C:\Users\a5115049> $ACL = Get-ACL -Path \\10.165.161.139\TestProg_vol\FTI PS C:\Users\YYY> $AccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule("10.165.161.139\sysadmin","Delete","Deny") PS C:\Users\YYY> $ACL.SetAccessRule($AccessRule) Exception calling "SetAccessRule" with "1" argument(s): "Some or all identity references could not be translated." At line:1 char:1 + $ACL.SetAccessRule($AccessRule) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : IdentityNotMappedException If we tried the following it comes with different error message PS C:\Users\YYY> $AccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule("sysadmin.10.165.161.139.LOCAL","Delete","Deny") PS C:\Users\YYY> $ACL.SetAccessRule($AccessRule) Exception calling "SetAccessRule" with "1" argument(s): "The trust relationship between the primary domain and the trusted domain failed. However if we use the FileExplorer security tab to add, there is no issue.
... View more