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! My name is Chris Hildebrandt, I’m a EUC consultant by day, and automation junkie at night. I have worked my way from being small customer to enterprise side customer, with a recent transition into consulting. I enjoy everything EUC focused and more so on how to automate it. I like to find ways to make mine and your jobs easier with automation.