DPM CLI> Hello World - System Center: Data Protection Manager Engineering Team Blog - Site Home - TechNet Blogs

DPM CLI> Hello World

DPM CLI> Hello World

  • Comments 2
  • Likes

Welcome to the DPM CLI world. The CLI is based upon the latest Powershell technology from Microsoft, and gives the user a powerful scripting and CLI experience in a .Net environment. Feel free to browse through the Powershell pages, blogs etc. for great reads on this cool technology. You can also download lots of sample scripts from there.

 

Introduction to DPM CLI design

 

In DPM v2, we have built cmdlets for the following scenarios: Disk and Library Management, Protection and Recovery. In fact, the UI for these areas also use cmdlets internally (except for Disk Management), and that ensures the same user experience across UI and CLI. If an ISV were to build a small applet outside DPM, one could use the same cmdlets. Hence, this gives a great engineering benefit for the product, and simplified learning experience for customers.

 

Machine Boundary

 

DPM CLI Design 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

What scenarios can be automated through CLI?

All the protection, recovery, library and disk management scenarios that can be done from the UI can be done from CLI too. In fact, there are features like setting up of backup LAN, configuring protection and housekeeping job start times, agent configuration over a firewall, Disaster recovery switch protection etc. that can be done only from the CLI.

 

Remotability of CLI

Though both the UI and CLI sit above the cmdlet layer, only the CLI is remotable in DPM v2. By using the Connect-DPMServer and Disconnect-DPMServer, one can connect to multiple DPM servers (one-by-one, at a time, only one active connection is possible) in the same session.

 

This is a new feature for DPM v2 Beta2, and we would love your feedback. Going forward, we would be posting bunch of sample scripts for various scenarios here.

 

-          Balaji Hariharan

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Hello,

    I've been trying to make a remote connection to a DPM server by using the Connect-DPMServer cmdlet.  I end up  getting a 'Unable to connect to a server' error (ID:948), and it says I should verify that the DPM service is running on this computer. I've checked the DPM-server services tons of times, and it is running... and it shouldn't be a problems with permissions cause I'm using the admin account. Have you got any ideas how to solve this problem? I'd be very grateful if you could help.

    Len

  • "Remotability" - "Remotable" !!! You're just making words up now!