VMware Cloud Community
Almero
Enthusiast
Enthusiast
Jump to solution

Get-SRM - Need help with API calls

Afternoon Team .

How do I get a list of defined Port Group inventory  mappings in SRM .

All I am getting from extension data is $SRM-API. is Content , Protection , Recovery , and Moref

Not all my vCenter DVS port groups have matching port groups in DR site.

So I need to report on ALL VMs in my that have replicating storage, does in fact have a defined / valid port group mapping in SRM

Got this far >

pastedImage_0.png

0 Kudos
1 Solution

Accepted Solutions
RvdNieuwendijk
Leadership
Leadership
Jump to solution

You can get a list of defined port group inventory mappings in SRM with the following PowerCLI command:

$SRM_STUFF.Protection.ListInventoryMappings().Networks

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition

View solution in original post

0 Kudos
1 Reply
RvdNieuwendijk
Leadership
Leadership
Jump to solution

You can get a list of defined port group inventory mappings in SRM with the following PowerCLI command:

$SRM_STUFF.Protection.ListInventoryMappings().Networks

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
0 Kudos