VMware Cloud Community
jmontgomery2
Enthusiast
Enthusiast

How to identify Virtual Machines that were tagged for Site Replication

I am curious if there is a command to identify Virtual Machines that were tagged for Site Replication without having to go from Host to Host to Identify each individual Virtual Machine.

0 Kudos
5 Replies
LucD
Leadership
Leadership

Do you mean vSphere Replication?
What kind of Tags are you talking about?
And why "go from Host to Host"?
Tags should be shown with Get-TagAsignment for all entities in a vCenter


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jmontgomery2
Enthusiast
Enthusiast

Yes,

I inherited this environment.  Someone had setup or attempted to setup vSphere Replication/Site Recovery.  The following article 

https://kb.vmware.com/s/article/2148376 shows how to identify the VM on a Host and how to disable it etc.  I am just looking to find a way to identify the any VM's in my environment that may have this.  As this is the 2nd VM and I am pretty sure there considerably more.      

0 Kudos
LucD
Leadership
Leadership

Ok, I understand, but I'm not sure where the Tags come into this situation.

Also, setting up an SSH to each ESXi node, running the getstate command can be automated.
You could use Posh-SSH module for that (see my Use Posh-SSH instead of PuTTY dive).

When automated via script you can quickly get an overview of the involved VMs.
Note that you will need to have the root password for all your ESXi nodes.

 


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jmontgomery2
Enthusiast
Enthusiast

Tags was probably not the correct word to use.....but there has to be something on the Virtual Machine that "Notates/Marks/identifies" that Replication was enabled.

0 Kudos
LucD
Leadership
Leadership

So I guess you want to see the SRM Status.

Have a look at this thread: PowerCLI 5.5 R2 and SRM - how to check status of a Recovery Plan?
The thread is old, but the code should still work.
Look at the replies of admin, which is an authority on the use of SRM APIs
It does require installing the SRM-Cmdlets module (written by Ben, aka admin)


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos