16 Apr 2012 @ 12:59 PM 

One of my customers uses System Center Data Protection Manager to backup their environment and are currently doing a manual inventory of their backup tapes. Now, it is possible to get this information through the GUI with the following action:

  • Open the DPM Administrator Console
  • Click Protection.
  • Click a protection group.
  • Click View tape list.

When yoú have multiple protection groups, this may take a lot of manual labor.
There is an easier way… by using PowerShell.

With the following command you’ll get a list of all tapes that are available in DPM:

Get-ProtectionGroup –DPMServer DPM001 | get-tape | select -ExpandProperty label | sort | out-file E:\Temp\DPMTapeLabelList.txt

But normally a tape has a barcode sticker on it, not the label Knipogende emoticon So, for getting all barcodes:

Get-ProtectionGroup –DPMServer DPM001 | get-tape | select barcode | sort | out-file E:\Temp\DPMTapeBarcodeList.txt

And now you can check which backup tapes are actually there and which are missing…

Post to Twitter

Posted By: Jeff Wouters
Last Edit: 23 Apr 2012 @ 06:14 AM

EmailPermalink
Tags
Categories: Microsoft, PowerShell, SCDPM


  • http://twitter.com/bazcurtis Michael Curtis

    That is very handy, thanks very much. I had to change the | sort to  | sort barcode though to list the tapes in order.

  • Vikneshvaran Thinakaran

    Hi Guys, Could you kindly advise on a brief command to view both the barcode and expiry date. Thank You.

  • http://www.facebook.com/russell.hinds Russell Hinds

    Hi there,
    Please can you show if its possible to have the output of both the label and the barcode together on one output file.
    Would it also be possible to show the protection group of each tape

    hope you can help

    Russell

  • http://www.jeffwouters.nl/ Jeff Wouters

    Hi Vikneshvaran,
    That one is a little tricky and since I haven’t got access to a DPM environment anymore (different customer) I can’t help you myself.
    I think that with some tweaks the answer in the following script would come pretty close to what you want…?
    http://gallery.technet.microsoft.com/scriptcenter/fab7b8df-5288-4a67-bc11-61c9d3a27ed3
    Jeff.

  • http://www.jeffwouters.nl/ Jeff Wouters

    Hi Russell,
    I would love to help but haven’t got access to a DPM environment anymore…sorry.
    Jeff.


 Last 50 Posts
 Back
Change Theme...
  • Users » 1
  • Posts/Pages » 250
  • Comments » 429
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

About



    No Child Pages.

Contact



    No Child Pages.