O'Reilly logo

Mastering PowerCLI by Sajal Debnath

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required