<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Metrocluster switchover with python - is it possible? in Python Discussions</title>
    <link>https://community.netapp.com/t5/Python-Discussions/Metrocluster-switchover-with-python-is-it-possible/m-p/156453#M36</link>
    <description>&lt;P&gt;Hi, guys!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I'm looking a template, or example, to write a simple script that will make a switchover of metrocluster. I'm not sure, if it's possible at all, but maybe somebody have already done such task. Any comments or advises?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 11:08:36 GMT</pubDate>
    <dc:creator>iUser</dc:creator>
    <dc:date>2025-06-04T11:08:36Z</dc:date>
    <item>
      <title>Metrocluster switchover with python - is it possible?</title>
      <link>https://community.netapp.com/t5/Python-Discussions/Metrocluster-switchover-with-python-is-it-possible/m-p/156453#M36</link>
      <description>&lt;P&gt;Hi, guys!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I'm looking a template, or example, to write a simple script that will make a switchover of metrocluster. I'm not sure, if it's possible at all, but maybe somebody have already done such task. Any comments or advises?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 11:08:36 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Python-Discussions/Metrocluster-switchover-with-python-is-it-possible/m-p/156453#M36</guid>
      <dc:creator>iUser</dc:creator>
      <dc:date>2025-06-04T11:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Metrocluster switchover with python - is it possible?</title>
      <link>https://community.netapp.com/t5/Python-Discussions/Metrocluster-switchover-with-python-is-it-possible/m-p/156456#M37</link>
      <description>&lt;P&gt;Haven't tried it myself, but look at the "metrocluster-switchover" in the NetApp SDK documentation. I guess something like this should work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;import NaServer, NaElement

hostname = ''
username = ''
password = ''

zapi = SDK.NaServer(hostname, 1, 3)                                                                                           
zapi.set_server_type('FILER')                                                                                                       
zapi.set_transport_type('HTTPS')                                                                                                    
zapi.set_style('LOGIN')                                                                                                             
zapi.set_admin_user(username, password)
                                                                                     
request = SDK.NaElement('metrocluster-switchover')                                                                                       
request.child_add_string('simulate', 'true')  

response = zapi.invoke_elem(request)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should simulate a switchover, but I warn again: haven't tried it myself.&amp;nbsp; &lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 16:58:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Python-Discussions/Metrocluster-switchover-with-python-is-it-possible/m-p/156456#M37</guid>
      <dc:creator>vachagan_gratian</dc:creator>
      <dc:date>2020-05-22T16:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Metrocluster switchover with python - is it possible?</title>
      <link>https://community.netapp.com/t5/Python-Discussions/Metrocluster-switchover-with-python-is-it-possible/m-p/156462#M38</link>
      <description>&lt;P&gt;Thanks for your answer, i'll try to reproduce it in lab!&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 19:54:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Python-Discussions/Metrocluster-switchover-with-python-is-it-possible/m-p/156462#M38</guid>
      <dc:creator>iUser</dc:creator>
      <dc:date>2020-05-22T19:54:13Z</dc:date>
    </item>
  </channel>
</rss>

