Powershell script to re-point\fail-over the VC to another replication Platform Service Controller ( PSC – VCSA 6.0)

Check my other blog for more information on re-pointing the VC to the external PSC , In this blog we can see by using the powershell script to re-point\failover the VC to another replication PSC.

We need cmsso-util to repoint PSC and pls check the  KB 2131191 for detailed information .

I believe currently there is no shell cmdlets from VMware to allow us to run shell commands directly using the powershell\powercli and while searching for any alternative, found the tool plink.exe which allows to run the command using the SSH . Pls refer the blog from Virtu-Al.Net for more info..

Idea of this code for plink.exe was taken from lucd and modified according to the requirement. pls check the help of plink.exe for more info.

To run this script download the plink.exe and provide the path of the same.

Download the script from the below location.

Git-Hub or DropBox

Also there is another script written by virtuallyGhetto to automate the same process which is very helpful to make the re-point operation to automate.

 

 

Reference:

http://www.lucd.info/

SSH PowerShell tricks with plink.exe

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

How to automatically repoint & failover VCSA to another replicated Platform Services Controller (PSC)?

http://kb.vmware.com/selfservice/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=2131191

https://blogs.vmware.com/vsphere/2015/10/reconfiguring-and-repointing-deployment-models-in-vcenter-server-6-0-update-1.html#comment-489138

Advertisements
This entry was posted in F5 Load Balancer for PSC HA, High-Availability, Platform Services Controller (PSC ), Powershell, vCSA 6.0, VMware and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s