We are monitoring storage performance through API and CLI. There is a big difference between the perfomance values in the API and the values in ontap cli. Is there a command that can show similar results? (latency , iops , throughput) I am using ontap 9.7P23.
... View more
Hello community we are getting 'Loop detected in next()' errors when invoking 'vserver services name-service ldap check' via Private CLI curl -k -X GET "https://XXXXX:443/api/private/cli/vserver/services/name-service/ldap/check?return_timeout=120&return_records=true&vserver=XXXXX&privilege_level=diagnostic" -u admin Enter host password for user 'admin': { "records": [ ], "num_records": 0, "error": { "message": "Loop detected in next() for table ldap_check. Next on \"XXXXX\" returned \"XXXXX\".", "code": "262146" } } Same command in CLI works fine Cluster is running 9.10.1P12 Is this a known issue and fixed in later releases? Any thoughts on how we might be able to overcome this issue? thank you
... View more
I'm trying to use set-NcNetInterface to set a home port for an interface, and it gives me an error ( like every Powershell command I ran): Set-NcNetInterface -name ABC -vserver ABC -node ABC-01 -port a0a -IsHome $true The error is: set-ncnetinterface : IsHome parameter specified, which is not supported for ONTAPI call NetApp Powershell team, can you address all the problems with Powershell ToolKits??
... View more
Can anyone help me with providing the correct syntax to enable/disable file system analytics? I am specifically trying to use the CLI command method through the REST API. So. Using the REST API explicitly to enable/disable file system analytics for a specific volume does work using the following syntax: curl -siku admin:Netapp1! -X PATCH "https://cluster1/api/storage/volumes/d3573f3b-2db8-11ef-8c73-005056b7beb4" -d '{"analytics.state":"off"}' However, trying to use the equivalent above command via CLI through REST API doesnt work? curl -siku admin:Netapp1! --request PATCH "https://cluster1/api/private/cli/volume?vserver=svm1_cluster1&volume=vol1" -d '{"analytics":"on"}' HTTP/1.1 400 Bad Request curl -siku admin:Netapp1! --request PATCH "https://cluster1/api/private/cli/volumes/e128068c-2db8-11ef-a91a-005056b765ba" -d '{"analytics.state":"on"}' HTTP/1.1 404 Not Found curl -siku admin:Netapp1! -X PATCH "https://cluster1/api/private/cli/volume/analytics?volume=vol1" -d '{"analytics.state":"on"}' HTTP/1.1 405 Method Not Allowed I believe I am close. But I dont seem to be using the right syntax using the CLI command through REST API method. Any help would be appreciated.
... 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