none
DPM 2010 Scripting Help RRS feed

  • Question

  • Hello

    I'm having trouble getting a script together that will show me the replica volume/recovery point volume information for all my protected databases in one concise report.

    I've been able to do this only on an individual database basis by running the following:

    $pg=get-protectiongroup -dpmservername <dpm server>

    $ds=get-datasource -protectiongroup $pg[x]

    get-datasourcediskallocation -datasource $ds[x] | fl

    Using | fl ends up displaying disk allocation information for the database, like this:

    Disk allocation       : Replica volume: 292.97 GB allocated, 124.60 GB used | Recovery point volume: 491.69 GB allocated, 408.30 GB used

    My DPM servers can have 8 to 12 protection groups, 5 data sources per protection group.

    How can I extract the disk allocation property for all my data sources in one shot? I'm just looking for a way to report on things. I'm not looking to grow or shrink volumes.

    Thanks in advance for a reply


    • Edited by KoM1565 Wednesday, February 26, 2014 6:47 PM clarification
    Wednesday, February 26, 2014 6:47 PM

Answers

  • #Shows Disk allocation for each datasource
    #run 2 times to get accurate latest, oldest and total recovery points count
    
    $DPMservername=&"hostname"
    "Selected DPM server = $DPMservername"
    $PG=get-protectiongroup $DPMServerName
    foreach ($member in $PG)
    {
    $ds=get-datasource $member
    $alloc=Get-DatasourceDiskAllocation $ds
    $alloc|format-list
    }

    DPM Disk Allocated

    Get-DPMSizingValues.ps1


    Have a nice day !!!


    Thursday, February 27, 2014 6:24 AM
    Moderator

All replies

  • #Shows Disk allocation for each datasource
    #run 2 times to get accurate latest, oldest and total recovery points count
    
    $DPMservername=&"hostname"
    "Selected DPM server = $DPMservername"
    $PG=get-protectiongroup $DPMServerName
    foreach ($member in $PG)
    {
    $ds=get-datasource $member
    $alloc=Get-DatasourceDiskAllocation $ds
    $alloc|format-list
    }

    DPM Disk Allocated

    Get-DPMSizingValues.ps1


    Have a nice day !!!


    Thursday, February 27, 2014 6:24 AM
    Moderator
  • Thanks, this is very helpful....
    Thursday, February 27, 2014 4:11 PM