childebrandt42

Worthless info……………Oh blinky lights!

Linked Mode VCSA Replication Checker

A coworker of mine and I where chatting about VCSA Replication Agreements and the agreement is that there should be a fling for mapping replication agreements. So that night I thought about it. Really there is nothing stopping me from doing this. I pulled out the computer and in a few lines of code I had it working. I took the time over the next few nights making it more robust, and work through getting it to accept a seed node and and find all its VCSA replication partners and report back replication status. So turns out that the seeding loop was a little more than I had bargained for. Reached out to the community and talked with my friend Joe Houges @jhoughes and worked out the issues with the looping issues. Also helped with reminding me about SSH code stream.

Below is an example of the report the script with return. This shows the Source vCenter, Replication Partners, Replication Sequence Numbers, and validate the numbers are not off.

SourcePartnerHost_AvailableStatus_AvailableLast_Change_NumberPartner_Change_NumberReplication_Satus
TestvCenter1.chrislab.comTestvCenter2.chrislab.comYesYes171728171728Good
TestvCenter1.chrislab.comTestvCenter3.chrislab.comYesYes171728171728Good
TestvCenter2.chrislab.comTestvCenter1.chrislab.comYesYes166648166648Good
TestvCenter2.chrislab.comTestvCenter3.chrislab.comYesYes166648166648Good
TestvCenter3.chrislab.comTestvCenter2.chrislab.comYesYes168975168975Good
TestvCenter3.chrislab.comTestvCenter1.chrislab.comYesYes168975168975Good
Same as above Just Image as seemed easier to see.

The Script will log into VCSA, enable bash, Pull replication status, clean up the data, and report the info and export it to a CSV, then disable bash. The code lives here:

https://github.com/childebrandt42/VCSAReplicationAgreements

childebrandt42 Avatar

About the author

Hi, I’m Chris Hildebrandt, a Technology Generalist and passionate EUC Solutions Architect at Choice Solutions.

With hands-on experience from enterprise deployments to consulting, I specialize in virtualization, Omnissa Horizon, App Volumes, Azure Virtual Desktop, Nerdio, LoginVSI, Cisco UCS, Pure Storage and streamlining workflows through automation (PowerShell, APIs, and more).

Proud multi-year vExpert, Omnissa Tech Insider, Cisco Champion, former VMUG leader, and co-Leader of World of EUC in KC!

Active in the #vCommunity—let’s connect on EUC challenges, automation ideas, or modern workspaces! 🚀