VMware Global Community
dai00
Contributor
Contributor

SRMのフェールオーバー時のリカバリタイプについて

SRM(バージョン6.5)でリカバリプランを作成し、リカバリプランの実行(フェールオーバー)を実行するスクリプト(PowerCLI)を作成したいのですが

リカバリタイプのオプションを指定する方法がわかりません。

スクリプト自体は下記サイトを参考に作成しています。

SRM_Automation.ps1 · GitHub

上記サイトの場合、「$plan.Start($mode)」実行時に別の変数を組み込むようにすると思うのですが

こちらに関して説明されているサイトがほぼない為、質問をさせていただきました。

どなたかご存知の方がいらっしゃいましたらご教示いただけますでしょうか。

Reply
0 Kudos
4 Replies
Daniel_Georgiev
VMware Employee
VMware Employee

Hi,

thanks to translating program I think that I have something for PowerCLI and SRM with examples:

- The recovery mode to invoke on the plan. Maybe one of "Test", "Cleanup", "Failover", "Migrate", "Reprotect".

- PowerCLI-Example-Scripts/Meadowcroft.Srm.Recovery.ps1 at master · vmware/PowerCLI-Example-Scripts · ... (Function New-RecoveryPlan)

Hope this helps,

Daniel G.

Reply
0 Kudos
dai00
Contributor
Contributor

回答ありがとう。

内容を見ると処理モード(Recovery Mode)の事を説明していますね。

今回やりたいことは、Failoverを実行するPowerCLIコマンドの"Recovery Type"で

Planned Migration or Disaster Recoveryを指定できる方法を探しています。

Reply
0 Kudos
gowatana
Leadership
Leadership

日本語での投稿のため、Site Recovery Manager から移動致しました。

Reply
0 Kudos
gowatana
Leadership
Leadership

こんにちは。

以前に、同様のAPI利用についての投稿がありました。

こちらが参考になりませんでしょうか?

SRM APIs: How to specify if the Recovery operation must be Planned migration or Disaster recovery

こちらの投稿のスクリプトでは、変数 $mode.value__ は $RPmode.Value__ となっています。

Reply
0 Kudos