Managing vCenter Site Recovery Manager

Here, we will discuss how we can use PowerCLI cmdlets to manage Site Recovery Manager. To manage SRM, we can use two cmdlets: Connect-SrmServer and Disconnect-SrmServer.

To connect to an SRM server, we first need to connect to a vCenter server where SRM is already configured and attached to the vCenter server. Once we connect to the vCenter server using the Connect-VIServer cmdlet, we can connect to the SRM server using the Connect-SrmServer cmdlet:

PS C:\> $srmServer = Connect-SrmServer
PS C:\> $srmServer

Name                           Port  User                 
----                           ----  ----                 
192.168.12.20                  9007  lab.com\Administrator

To disconnect from an SRM server, we can use the Disconnect-SrmServer cmdlet. To get more information from the SRM server and to manage ...

Get Mastering PowerCLI now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.