Solved

DPM script to expire tape data

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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

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.
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 show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

688 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