Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

DPM script to expire tape data

Posted on 2011-03-25
8
1,805 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Utilizing an array to gracefully append to a list of EmailAddresses
The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

808 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