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?
Haven't tried it myself, but look at the "metrocluster-switchover" in the NetApp SDK documentation. I guess something like this should work:
import NaServer, NaElement
hostname = ''
username = ''
password = ''
zapi = SDK.NaServer(hostname, 1, 3)
request = SDK.NaElement('metrocluster-switchover')
response = zapi.invoke_elem(request)
This should simulate a switchover, but I warn again: haven't tried it myself.
Thanks for your answer, i'll try to reproduce it in lab!