Looking a way to scripting DPM Secondary protection
-
Wednesday, March 21, 2012 8:24 PM
hi Guys,
I currently trying to script Secondary DPM protection and I'm a little bit disappointed...
"Get-datasource" cmdlet give me for example these protected datasources on my Primary DPM :
C:\Program Files\Microsoft DPM\DPM\Volumes\Replica\Microsoft Exchange Writer\vol_361c944f-45aa-493c-bbb5-a9225709e496
C:\Program Files\Microsoft DPM\DPM\Volumes\Replica\Non VSS Datasource Writer\vol_3abb21e6-1361-45ae-a344-77d880ecef28
C:\Program Files\Microsoft DPM\DPM\Volumes\Replica\Non VSS Datasource Writer\vol_21b061b6-fc51-4d9e-9c32-7e807fd7b298
C:\Program Files\Microsoft DPM\DPM\Volumes\Replica\Non VSS Datasource Writer\vol_73894c31-e8da-4fb0-ae50-c64849354720
C:\Program Files\Microsoft DPM\DPM\Volumes\DiffArea\Non VSS Datasource Writer\vol_73894c31-e8da-4fb0-ae50-c64849354720
C:\Program Files\Microsoft DPM\DPM\Volumes\DiffArea\Non VSS Datasource Writer\vol_3abb21e6-1361-45ae-a344-77d880ecef28
C:\Program Files\Microsoft DPM\DPM\Volumes\DiffArea\Microsoft Exchange Writer\vol_361c944f-45aa-493c-bbb5-a9225709e496
C:\Program Files\Microsoft DPM\DPM\Volumes\Replica\Microsoft Exchange Writer\vol_b704ec13-0002-4b2b-b367-b14ccfd402d0
C:\Program Files\Microsoft DPM\DPM\Volumes\DiffArea\Microsoft Exchange Writer\vol_b704ec13-0002-4b2b-b367-b14ccfd402d0
C:\Program Files\Microsoft DPM\DPM\Volumes\Replica\Non VSS Datasource Writer\vol_1fda22e2-8251-4ae6-ae04-ee4f3013a951
C:\Program Files\Microsoft DPM\DPM\Volumes\DiffArea\Non VSS Datasource Writer\vol_1fda22e2-8251-4ae6-ae04-ee4f3013a951
C:\Program Files\Microsoft DPM\DPM\Volumes\Replica\Microsoft Exchange Writer\vol_75860d6f-f01e-4e1e-9d3b-0a038414aa4e
C:\Program Files\Microsoft DPM\DPM\Volumes\DiffArea\Microsoft Exchange Writer\vol_75860d6f-f01e-4e1e-9d3b-0a038414aa4e
C:\Program Files\Microsoft DPM\DPM\Volumes\Replica\Microsoft Exchange Writer\vol_de3edfda-2e72-4059-803b-3877adc08caf
C:\Program Files\Microsoft DPM\DPM\Volumes\DiffArea\Microsoft Exchange Writer\vol_de3edfda-2e72-4059-803b-3877adc08caf
C:\Program Files\Microsoft DPM\DPM\Volumes\DiffArea\Non VSS Datasource Writer\vol_21b061b6-fc51-4d9e-9c32-7e807fd7b298Each line correspond with a protected datasource on my primary DPM server.
Is there a way to retrieve these datasources in a friendly format ? I mean something like "Protected server", "datasource type" and so on. The same good old thing when doing scripting for Primary protection on DPM server. :)
With that output format it's a pain to retrieve datasources efficiently...
Stéphane
- Edited by Stephane LADUNE Wednesday, March 21, 2012 8:25 PM
All Replies
-
Friday, May 11, 2012 6:30 PMAny luck with this?
-
Monday, May 28, 2012 1:05 PM
Hi,
I think I've written something which compares what's protected at my main site against what's protected at the secondary site so I can manually add it to the second site. Is that what you're after?
J
-
Monday, May 28, 2012 1:26 PM
Hi John,
I don't want to compare data between Primary and secondary DPM. :)
I'm looking for a "efficient" way to script PG on Secondary DPM.
Note: Shai also provide a script to compare datasources. http://poshcode.org/3432
Stéphane.
-
Monday, May 28, 2012 4:00 PM
Hi,
I’m curious, when you say efficient way of scripting a secondary DPM server do you mean install? I tend to us the same code for my secondary server as I do for my primary server .. this one audits the protect items on my primary and secondary ... http://gallery.technet.microsoft.com/Get-DPMPGWithResources-7fabb70f
I updated a compare script anyway ... seemed a same not to upload it! ;o)
http://gallery.technet.microsoft.com/Compare-DPMServers-14e875ee
Thanks,
John
-
Tuesday, May 29, 2012 1:25 PM
Hi John,
I mean create Secondary DPM protection with Powershell.
I think that the key is to retrieve information from Primary protected sources (maybe with "replicapath" parameter to identify the data) as you do with your first script and then trying to pull all in form in a friendly powershell script :)
I will get a try if I have time ^^
Note: Your second script is not available (This item is not yet published)
Stéphane
-
Tuesday, May 29, 2012 1:52 PM
Whoops ... I've published that now ;o)
I have different PG's at my secondary site, I don't have a tape library and also have less space so my that site is quite different. Sounds like you want the same setup at the secondary site.
You could modify the compare script to add none protected resources to a default PG ...
-
Thursday, June 14, 2012 8:14 AM
Hi,
Lastly I found how to script Secondary protection... It's working as primary protection scripting :)
There is noneed to deal with "C:\Program Files\Microsoft DPM\DPM\Volumes\DiffArea\Non VSS Datasource Writer\vol_21b061b6-fc51-4d9e-9c32-7e807fd7b298"... On So on.
I was just looking on wrong way.
Stephane.
- Marked As Answer by Stephane LADUNE Thursday, June 14, 2012 8:14 AM

