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.

PowerShell Discussions

Enabling Storage Failover and Disable Auto-Giveback

MattBaldwin
656 Views

Does the powershell toolkit have the ability to enable storage failover and disable auto-giveback?

Similar to these commands:

storage failover modify -node nodename -enabled true

storage failover modify -node nodename -auto-giveback false

storage failover modify -node nodename -auto-giveback-after-panic false

1 ACCEPTED SOLUTION

mbeattie
607 Views

Hi Matt,

 

I'm not sure if the storage failover configuration can be modified by a PSTK CmdLet however you can always use the private REST CLI to invoke a CLI via the REST API. You could create a script with input parameters for the cluster/node name etc and have it invoke those commands. Here's an example script of using the private REST CLI: https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/REST-API-snapmirror-relationships-create-with-a-schedule/td-p/437466 

 

Hope that helps

 

/Matt 

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

2 REPLIES 2

mbeattie
608 Views

Hi Matt,

 

I'm not sure if the storage failover configuration can be modified by a PSTK CmdLet however you can always use the private REST CLI to invoke a CLI via the REST API. You could create a script with input parameters for the cluster/node name etc and have it invoke those commands. Here's an example script of using the private REST CLI: https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/REST-API-snapmirror-relationships-create-with-a-schedule/td-p/437466 

 

Hope that helps

 

/Matt 

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

MattBaldwin
594 Views

Thank you.  Seem like there needs to be some updates to the toolkit..  🙂

Public