none
DPM Job to show progress

    Question

  • I am trying to see progress of a job been created but interested in the percentage or data transferred.  I wrote this script but its rather dumb.  I am basically looping on the Inprogress status until complete but i'd prefer to see either data transferred, or progress percentage.  

    do {
    $count = (Get-DPMJob -ProductionServerName "SERVER BACKING UP" -status Inprogress).count
    $startTime = Get-Date
    write-host ("$starttime + Creating.......") -ForegroundColor green
    sleep 25
    }
    while ($count -ne 0)

    Can anyone help me?

    Monday, March 11, 2019 10:45 AM

All replies

  • Hello,

    Write-Progress cmdlet can help you with this.

    An example:

    $count = 0
    
    do
    {
        
        Write-Progress -Activity "Loading..." -PercentComplete ($count / 5000 * 100)
        $count += 1
    } while ($count -lt 5000)

    Monday, March 11, 2019 11:37 AM
  • Hello there!

    As far as I know it isn't possible to get detailed information like percentage (%) or in data transferred (GB) in a progress bar within the DPM PowerShell for the DPM jobs.

    There's an old blog post about getting some job information with DPM Shell, but it still isn't what you're looking for.
    https://blogs.technet.microsoft.com/dpm/2007/09/04/cli-script-job-object-fundamentals/


    Best regards,
    Leon


    Blog: https://thesystemcenterblog.com LinkedIn:

    • Proposed as answer by Leon Laude Monday, March 11, 2019 11:04 PM
    Monday, March 11, 2019 5:38 PM
  • thankyou.  i will find that useful in other things but not this.  i dont know where the end of the file is.  so i dont have a 100%.  if that makes sense, and as the other poster says there is no way to get the amount of data been transferred.

    or even maximum of the datasource 

    Monday, March 11, 2019 10:56 PM