Hi, REST API returns "msid" for each reported volume, but how do I get the "flexgroup-msid" which can be displayed via CLI? My goal is to find the flexgroup volume for a given "flexgroup-msid" and I would expect that the "flexgroup-msid" is the same as the "msid" of the flexgroup itself, but this seems not to be the case. Thanks, dg.
... View more
We ran in this problem after upgrading de PSTK to version 9.14, scripts on version 9.10 works ok. when we connect with connect-nccontroller "$netapp-name" without parameters get-ncquota -Vserver "$vserver" -QuotaTarget "$domain\user" ---> wil give you a complete list of all quota's Set-NcQuota -Vserver "$vserver" -QuotaTarget "$domain\user" -Volume "$volume" -Qtree "$qtree" -DiskLimit 16GB -type user gives a warning: record doesn't exists when we connect with connect-nccontroller "$netapp-name" -ontapi parameter get-ncquota -Vserver "$vserver" -QuotaTarget "$domain\user" ---> wil give the correct quota Set-NcQuota -Vserver "$vserver" -QuotaTarget "$domain\user" -Volume "$volume" -Qtree "$qtree" -DiskLimit 16GB -type user gives an error Set-NcQuota : Group parameter neither specified nor set At line:1 char:1 + Set-NcQuota -Vserver xxxx -QuotaTarget 'xxxxx\xxxx' -Vol ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Set-NcQuota], ArgumentException + FullyQualifiedErrorId : Group is empty,DataONTAP.C.PowerShell.SDK.Cmdlets.Quota.SetNcQuota any ideas?
... View more
Hello, I'm trying to display file permissions using rest-api. I have an old vserver and it does not work when SECD cannot resolve SID. It's fine using ZAPI. It displays SID when it cannot resolve to windows name. GET https://ip/api/protocols/file-security/permissions/c26b5fac-1135-11ea-a956-00a098d1acc2/%2FVOLUME%2FDIR%2FSUBDIR User-Agent: python-requests/2.28.1 Accept-Encoding: gzip, deflate Accept: */* Connection: keep-alive X-Dot-Client-App: netapp-ontap-python-9.11.1.0 Authorization: Basic aW52ZW50YWlyZTpZb3VwbGFib3VtMzA= None ----------------------------- DEBUG:charset_normalizer:Encoding detection: ascii is most likely the one. DEBUG:netapp_ontap.host_connection: -----------RESPONSE----------- 404 Not Found Date: Thu, 02 Feb 2023 10:48:14 GMT Server: libzapid-httpd X-Content-Type-Options: nosniff Cache-Control: no-cache,no-store,must-revalidate Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; frame-ancestors: 'self' Content-Length: 144 Content-Type: application/hal+json Keep-Alive: timeout=5, max=99 Connection: Keep-Alive { "error": { "message": "Failed to convert SID to a Windows name. Reason: \"SecD Error: object not found\". ", "code": "4849677" } } ------------------------------ Traceback (most recent call last): File "/home/XXXXXX/projects/reporting_acls/test.py", line 14, in <module> resource.get() File "/srv/xxxxx/venv/netapp/lib/python3.9/site-packages/netapp_ontap/resources/file_directory_security.py", line 1048, in get return super()._get(**kwargs) File "/srv/xxxxx/venv/netapp/lib/python3.9/site-packages/netapp_ontap/utils.py", line 55, in wrapper return on_api_fail(erro) File "/srv/xxxxx/venv/netapp/lib/python3.9/site-packages/netapp_ontap/utils.py", line 78, in on_api_fail raise NetAppRestError(cause=erro) from None netapp_ontap.error.NetAppRestError: Caused by HTTPError('404 Client Error: Not Found for url: https://IP:443/api/protocols/file-security/permissions/c26b5fac-1135-11ea-a956-00a098d1acc2/%2FVOLUME%2FDIR%2FSUBDIR'): Failed to convert SID to a Windows name. Reason: "SecD Error: object not found".
... View more
Dear PowerShell community, We are glad to announce the release of NetApp PowerShell Toolkit version 9.14.1 . This unified release has enhancements for ONTAP PowerShell module. Download the NetApp PowerShell Toolkit 9.14.1 from here. Regards, NetApp PowerShell Toolkit Team
... View more
There is a field in the volume efficiencies called "auto-state" that does not seem to be accessible using standard PowerShell commands (Get-NcSis or Get-NcVolume). From the CLI, it is only visable in diag mode. Does anyone know any way to pull this information using PowerShell, other than using Invoke-NcSSH? This is the command to view it in the CLI (while in diag): vol efficiency show -volume vol1 -fields auto-state I'm asking because we have workflows in WFA that are failing when we try to set the efficiencies on volumes that have been "deprioritized".
... View more