Solved

DPM script to expire tape data

Posted on 2011-03-25
8
1,808 Views
Last Modified: 2013-11-14
I need help writing a dpm powershell script for DPM 2010 that will:
1) refresh the stand alone tape drive data
2) pause for this job to complete
3) get the presently inserted tape
4) expire the recovery points on the tape
4a) either searching for just the oldest and expiring that one OR
4b) expiring all the recovery points.

The reason for this is that DPM is problematic with tapes and when/how it prunes them.

I have found lots of information similar to what I require on the technet pages but most info references tape libraries not stand alone drives and requires manual input for the parameters.

Please help - thanks in advance
0
Comment
Question by:dexterhome
  • 4
8 Comments
 
LVL 13

Expert Comment

by:Felix Leven
ID: 35215085
All of the *-Tape* cmdlets like Start-TapeRecatalog are used for standalone Drives. Try to searh for them in the DPM Management Shell  

Get-Command -Noun *Tape*
0
 
LVL 5

Author Comment

by:dexterhome
ID: 35215820
Thanks MrGraves

I have been searching through all the options.

I am having issues with fact the I need to string it all together.
I can do individual bits, but not others, some data can be piped and other stuff cannot because the parameter must be set first.
0
 
LVL 5

Author Comment

by:dexterhome
ID: 35259110
deleted by mistake.
Please re-instate so I can add my script for everyone else to use.
0
 
LVL 5

Accepted Solution

by:
dexterhome earned 0 total points
ID: 35259145
I have trudged through all the command helps sections and managed to write a very basic script to do all the points in my question.

It just needs DPMSVR changing to your dpm server name and then scheduling.

get-dpmlibrary -dpmservername DPMSVR | start-dpmlibraryinventory -detailed
ping localhost -n 60
get-dpmlibrary -dpmservername DPMSVR | get-tape | get-recoverypoint | remove-recoverypoint -forcedeletion -confirm:$false
ping localhost -n 10
get-dpmlibrary -dpmservername DPMSVR | get-tape | set-tape -free
ping localhost -n 10
get-dpmlibrary -dpmservername DPMSVR | start-dpmlibraryinventory -detailedping
exit

Open in new window

0
 
LVL 5

Author Closing Comment

by:dexterhome
ID: 35349313
I found the answer myself through a combination of a lot of forums and reading the help files.
0

Featured Post

Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Concerto Cloud Services, a provider of fully managed private, public and hybrid cloud solutions, announced today it was named to the 20 Coolest Cloud Infrastructure Vendors Of The 2017 Cloud  (http://www.concertocloud.com/about/in-the-news/2017/02/0…
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question