Compare datasources between DPM servers
Hi everyone,

We have two primary/secondary 2012 R2 DPM-servers in our environment, and would like to compare the datasources between these two in some way. Are there any ready reports for this? Or some PS-scripts for this purpose?

/Amir
May 20th, 2015 5:32am

Hi,

I think you may find a way to do this as DPM support SQL query, if the build-in reports cannot meet your purpose.

You can post your question to Scripting forum to see if anything further you can get. 

https://social.technet.microsoft.com/Forums/en-US/home?forum=dpmpowershell

Free Windows Admin Tool Kit Click here and download it now
May 21st, 2015 7:48am

Hi Amir,

Here is a simple script you can start out with and run on each DPM-server to get a list of its protected datasources and a list of available datasources:

# Get all Production Servers that is attached to the DPM server
$ps = Get-ProductionServer

# Gets all Protection Groups
$pg=Get-ProtectionGroup -DPMServerName (&hostname)

# Queries the DPM-server for all protected datasources
Write-Host "Querying DPM for protected datasources!" -ForegroundColor Yellow
foreach ($ds in $pg) 
    {
    GET-DataSource -ProtectionGroup $ds
    }

# Queries all Production Servers attached to the DPM server for its datasources
foreach ($Allds in $ps) 
    { 
    Write-Host "Querying $Allds for available datasources!" -ForegroundColor Yellow 
    Get-DPMDatasource -ProductionServer $Allds
    }

Hope it helps you get started!

Kind Regards
Markus

May 21st, 2015 7:53pm

Hi Amir,

Here is a simple script you can start out with and run on each DPM-server to get a list of its protected datasources and a list of available datasources:

# Get all Production Servers that is attached to the DPM server
$ps = Get-ProductionServer

# Gets all Protection Groups
$pg=Get-ProtectionGroup -DPMServerName (&hostname)

# Queries the DPM-server for all protected datasources
Write-Host "Querying DPM for protected datasources!" -ForegroundColor Yellow
foreach ($ds in $pg) 
    {
    GET-DataSource -ProtectionGroup $ds
    }

# Queries all Production Servers attached to the DPM server for its datasources
foreach ($Allds in $ps) 
    { 
    Write-Host "Querying $Allds for available datasources!" -ForegroundColor Yellow 
    Get-DPMDatasource -ProductionServer $Allds
    }

Hope it helps you get started!

Kind Regards
Markus

Free Windows Admin Tool Kit Click here and download it now
May 21st, 2015 11:52pm

Hi Amir,

Here is a simple script you can start out with and run on each DPM-server to get a list of its protected datasources and a list of available datasources:

# Get all Production Servers that is attached to the DPM server
$ps = Get-ProductionServer

# Gets all Protection Groups
$pg=Get-ProtectionGroup -DPMServerName (&hostname)

# Queries the DPM-server for all protected datasources
Write-Host "Querying DPM for protected datasources!" -ForegroundColor Yellow
foreach ($ds in $pg) 
    {
    GET-DataSource -ProtectionGroup $ds
    }

# Queries all Production Servers attached to the DPM server for its datasources
foreach ($Allds in $ps) 
    { 
    Write-Host "Querying $Allds for available datasources!" -ForegroundColor Yellow 
    Get-DPMDatasource -ProductionServer $Allds
    }

Hope it helps you get started!

Kind Regards
Markus

May 21st, 2015 11:52pm

Hi Amir,

Here is a simple script you can start out with and run on each DPM-server to get a list of its protected datasources and a list of available datasources:

# Get all Production Servers that is attached to the DPM server
$ps = Get-ProductionServer

# Gets all Protection Groups
$pg=Get-ProtectionGroup -DPMServerName (&hostname)

# Queries the DPM-server for all protected datasources
Write-Host "Querying DPM for protected datasources!" -ForegroundColor Yellow
foreach ($ds in $pg) 
    {
    GET-DataSource -ProtectionGroup $ds
    }

# Queries all Production Servers attached to the DPM server for its datasources
foreach ($Allds in $ps) 
    { 
    Write-Host "Querying $Allds for available datasources!" -ForegroundColor Yellow 
    Get-DPMDatasource -ProductionServer $Allds
    }

Hope it helps you get started!

Kind Regards
Markus

Free Windows Admin Tool Kit Click here and download it now
May 21st, 2015 11:52pm

Hi Amir,

Here is a simple script you can start out with and run on each DPM-server to get a list of its protected datasources and a list of available datasources:

# Get all Production Servers that is attached to the DPM server
$ps = Get-ProductionServer

# Gets all Protection Groups
$pg=Get-ProtectionGroup -DPMServerName (&hostname)

# Queries the DPM-server for all protected datasources
Write-Host "Querying DPM for protected datasources!" -ForegroundColor Yellow
foreach ($ds in $pg) 
    {
    GET-DataSource -ProtectionGroup $ds
    }

# Queries all Production Servers attached to the DPM server for its datasources
foreach ($Allds in $ps) 
    { 
    Write-Host "Querying $Allds for available datasources!" -ForegroundColor Yellow 
    Get-DPMDatasource -ProductionServer $Allds
    }

Hope it helps you get started!

Kind Regards
Markus

May 21st, 2015 11:52pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics