?
Solved

DPM script to expire tape data

Posted on 2011-03-25
8
Medium Priority
?
1,821 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
[X]
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
  • 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
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 locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
Suggested Courses

765 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