PowerShell Discussions

Enabling Storage Failover and Disable Auto-Giveback

MattBaldwin
99 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
50 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
51 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
37 Views

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

Public