tohuw / PowerCLI-SRM

A VMware PowerCLI Module for Site Recovery Manager
MIT License
2 stars 1 forks source link

Current "Punch List" Questions #1

Open tohuw opened 8 years ago

tohuw commented 8 years ago

Here's some outstanding roadblocks I've encountered that RTFM'ing didn't help... I'd welcome any thoughts.

  1. A protection group has a method ListProtectedVMs() which has a property “PeerProtectedVM”, a string that defines a MoRef for the peer to the VM in question. How do I dereference this name (e.g., protected-vm-3160) to something I can use to express the object as vSphere sees it? I dereferenced the protected VM itself from the MoRef in the “VM” property, but there’s no apparent equivalent for the peer.
  2. I’ve a similar problem with protection groups: a protection group contains the “GetInfo” method to provide the name as seen in the UI, but I see no such method on the peer obtained from “GetPeer”.
  3. I’m having trouble understanding how to ask the SRM instance basic questions about itself, like its own instance name (as seen in the GUI), its peer SRM install (or does it only regard peers at the group/plan level?), etc.
  4. How do I access the Array Managers? I don’t see an API space for that…
  5. I’m having trouble making sense of the InventoryMappings. Pools, Folders, and Networks are easily accessible. (Though it would be nice if they had some identifying key property besides MoRef so that the default view of something like $SrmApi.Protection.ListInventoryMappings() isn’t { , , , …} for each of Pools, Folders, and Networks. Name would work here, and would be really convenient if it was aligned with the name visible in the GUI.) However, I don’t understand how to explore the hierarchy plainly visible in the GUI using this method, nor is it clear to me where objects like Clusters are. I thought they might be folders, but I don’t understand how to dereference the folder MoRefs; they’re not IDs Get-Folder knows about.
  6. Is there some way to view the data visible under the GUI section “vSphere Replication”? Of especial interest would be the datastore mappings.
tohuw commented 8 years ago

As an update to this part of the InventoryMappings question:

I don’t understand how to dereference the folder MoRefs; they’re not IDs Get-Folder knows about.

It seems the MoRefs are IDs Get-Folder knows about, but there was an issue with the way I had added the snap-in when testing earlier. I've also uncovered an issue with Get-AllInventoryMapppings that I'll need to solve before I can verify the folders now enumerate properly...

tohuw commented 8 years ago

I can now retrieve and identify the folders, networks, and pools from ListInventoryMappings(), but I can't determine how to view the hierarchy, or where clusters are...