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
im starting with NMSDK Please share me an example to connect with specific vserver and list all cifs using NetApp library and c# and please share me the location of c# documentation of library.
... View more
Hello I am trying to get Metrocluster diagnostics information via netapp_ontap python library as shown below but the python code returns {'additional_info': {'_schema': ['Invalid input type.']}} error but API (https://<cluster ip>/docs/api/#/cluster/metrocluster_diagnostics_get) shows the output without any issue. Has anyone had the same issue and the resolution? Python code: try:
config.CONNECTION = HostConnection(cluster_ip, username=cluster_username, password=cluster_password, verify=False)
resource = MetroclusterDiagnostics()
resource.get(fields="cluster.details")
print(resource)
except Exception as e:
logging.error(e) Python code Error : ERROR Caused by ValidationError({'cluster': {'details': {0: {'checks': {0: {'additional_info': {'_schema': ['Invalid input type.']}}, 1: {'additional_info': {'_schema': ['Invalid input type.']}}}}, 1: {'checks': {0: {'additional_info': {'_schema': ['Invalid input type.']}}, 1: {'additional_info': {'_schema': ['Invalid input type.']}}}}}}}) API output (https://<cluster ip>/docs/api/#/cluster/metrocluster_diagnostics_get) : {
"cluster": {
"details": [
{
"cluster": {
"uuid": "xxxxxxxxxx",
"name": "netapp2-1-util-np"
},
"timestamp": "2024-06-28T09:47:00+00:00",
"checks": [
{
"name": "negotiated_switchover_ready",
"result": "not_applicable",
"additional_info": "Disaster recovery readiness checks are not performed as part of periodic metrocluster check. To run these checks, use the \"metrocluster check run\" command."
},
{
"name": "switchback_ready",
"result": "not_applicable",
"additional_info": "Disaster recovery readiness checks are not performed as part of periodic metrocluster check. To run these checks, use the \"metrocluster check run\" command."
},
{
"name": "job_schedules",
"result": "ok"
},
{
"name": "licenses",
"result": "ok"
},
{
"name": "periodic_check_enabled",
"result": "ok"
},
{
"name": "onboard_key_management",
"result": "ok"
},
{
"name": "external_key_management",
"result": "ok"
}
]
},
{
"cluster": {
"uuid": "xxxxxxx",
"name": "netapp1-1-util-np"
},
"timestamp": "2024-06-28T09:47:00+00:00",
"checks": [
{
"name": "negotiated_switchover_ready",
"result": "not_applicable",
"additional_info": "Disaster recovery readiness checks are not performed as part of periodic metrocluster check. To run these checks, use the \"metrocluster check run\" command."
},
{
"name": "switchback_ready",
"result": "not_applicable",
"additional_info": "Disaster recovery readiness checks are not performed as part of periodic metrocluster check. To run these checks, use the \"metrocluster check run\" command."
},
{
"name": "job_schedules",
"result": "ok"
},
{
"name": "licenses",
"result": "ok"
},
{
"name": "periodic_check_enabled",
"result": "ok"
},
{
"name": "onboard_key_management",
"result": "ok"
},
{
"name": "external_key_management",
"result": "ok"
}
]
}
]
}
} Regards Moon
... View more