VMware Cloud Community
DaddyDee
Enthusiast
Enthusiast

vSphere 6.5 U2 SRM Protected & Unprotected VMs participating in replication Script

Hi,

My existing vSphere environment:

Single SSO domain

x2 sites (protection & recovery)

vCenter 6.5 U2

x2 vRA 8.1.0

x1 SRM 8.1.0

I've managed to source a PowerCLI script (see attached) that allows me to pipe out SRM VMs associated with Protection Groups as well as MoRef IDs and SRM info for protected VMs.  That's all fine and dandy, but would like to know which VMs are replicating but do not form part of existing protection groups too?

Currently in order for me to determine this, I'd need to run existing script which will pipe out all VMs in protection groups, then grab names of all replicating VMs from SRM console and copy into Excel and clean up before performing various conditional formatting against both lists in order to determine unique VMs which do not feature in PowerCLI script (non PG associated).. All a bit tedious I know. 

So was wondering whether there is a single script out there that can pipe out the following attributes from SRM?

PoweredState

Version

Notes

Guest

VM Name

NumCPU

CoresPerSocket

MemoryMB

MemoryGB

VMHost

Folder

UsedSpaceGB

ProvisionedSpaceGB

GuestID

ID (VirtualMachine-vm)

SRM Specific:

MoRef

State

PeerState

NeedsConfiguration

ProtectionGroup

Datastore

RPO Settings

Enable point in time instances

Enable guest OS quiescing

Enable network compression for VR data

As always thanks in advance.

0 Kudos
0 Replies