NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

PowerShell ONTAP script causing file lockouts

tonypags
1,285 Views

Hi,
I wrote a health check script using the NetApp.ONTAP PowerShell SDK v9.14.1.2401 and it's working OK, but my team told me that they are getting files locked out due to my script running. In their logs (see screenshot) it shows the error message

"GET /api/private/cli/system/node/virtual-machine/instance/show-settings/?fields=consumer"

and

"This API is unsupported on this platform." 

 

There are no errors when I run the script, and no indication of any issues. However, when I run the script with verbose messaging enabled, I get this message when running the Connect-NcController command:
 
VERBOSE: Trying HTTP/HTTPS
VERBOSE: Connected to <HOSTNAME>.<domain>.tld using HTTPS
VERBOSE: Setting value of global:CurrentNcController
VERBOSE: Starting EMS logging
VERBOSE: Failed to complete EMS logging The remote server returned an error: (400) Bad Request.

 

I am not sure if this is related to the issue. One thing I am not sure about is that I do not have the ability to DISCONNECT from a controller before connecting to the next one. Please help me understand the problem here, fix the file lockout issue, or find a workaround. 

0 REPLIES 0
Public