Get Recover Point Expiration Date in DPM Management Shell

Hello,
I am currently using DPM 2010 and am trying to retrieve the Expiration Dates for individual Recovery Points using the DPM Management shell. I know I can
retrieve this information by viewing the tape contents in the DPM console but, I would like to be able to utilize the information in scripts if possible.
I have seen
THIS POST. However, the provided solution has been unsuccessful in my attempts. I am assuming by "get-rps" they meant "get-recoverypoint" which makes sense but, I dont
see any methods with a similar name or apparent function to get-expirydate.
I find it hard to believe you cannot retrieve this information from the DPM Shell but, by the silence of my search results, it just might be.
I look forward to Reading your responses, even if they are telling me it can't be done, or that i missed something in my searches. 

Hi,
Try this new version of the script. It is pretty much the same script I just added an entry that if you do supply a switch label, it will output the label of the tape instead of the tape barcode. Example: if the script is named duetape.ps1 you just run like
this:
.\duetape.ps1 label
# This script will parse all active protection group that is configured for long term #
# protection to tape #
# It will parse all tapes which are already set as offsite ready #
# It will list all expiration date of these tapes. Currently it will list a tape even if it is #
# set to expire months or years in advance. #
# Author : Wilson Souza #
# Script Name : wilson-duetape.ps1 #
# Date Created : 06/26/2011 #
# Last modified : 03/13/2012 #
# Version : 1.3 #
# Change log #
# ========== #
# Ver 1.3 - Added option to show output with Tape Label instead of Barcode #
# To switch to Label just enter the script name followed by word label #
# Example: .\duetape.ps1 label #
# Ver 1.2 - Output now is saved on file duetape.txt #
# Ver 1.1 - Expire date/time information was masked to only show the date but not the #
# time. Took mask out so now we return date and time. #
# This version of the script was only tested on DPM 2010 #
param([string] $barcode)
if ($barcode.toupper() -ne 'LABEL') { $barcode = 'barcode' }
$confirmpreference = "None"
cls
$dpmserver = connect-dpmserver (&hostname)
$pg = @(get-protectiongroup (&hostname) | where { $_.protectionmethod -like "*Long-term using tape*"})
out-file duetape.txt -encoding ASCII
foreach ($pg1 in $pg)
$rp = @()
write-host "Protection Group" $pg1.friendlyname "has tape protection" -foreground white
$ds = @(get-datasource $pg1)
foreach ($ds1 in $ds)
if ((get-recoverypoint $ds1 | where { $_.datalocation -eq "Media"}) -ne $null)
$rp = $rp + (get-recoverypoint $ds1 | where { $_.datalocation -eq "Media"})
$tp = @(get-tape -protectiongroup $pg1)
foreach ($tp1 in $tp)
if ($tp1.Isoffsiteready -eq $true)
$expire = get-date
write-host "Recovery Points present on tape with" $barcode $tp1.$barcode
foreach ($rp1 in $rp)
if ($tp1.id -eq $rp1.RecoverySourceLocations[0].mediamaplist[$rp1.RecoverySourceLocations[0].mediamaplist.count-1].mediaid)
write-host $rp1.RecoverySourceLocations[0].creationdatetime " - " $rp1.RecoverySourceLocations[0].expirydate " - " $tp1.$barcode "-" $rp1.recoverysourcelocations[0].generation -foreground red
if ($expire -lt $rp1.RecoverySourceLocations[0].expirydate)
$expire = ($rp1.recoverysourcelocations[0].expirydate)
if ($tp1.location.isoffline)
write-host "Offsite Tape with" $barcode $tp1.$barcode "is due back to Library on" $expire "`n" -foreground yellow
"Offsite Tape with " + $barcode + " " + $tp1.$barcode + " is due back to Library on " + $expire | out-file duetape.txt -encoding ASCII -append
else
write-host "Tape in" $tp1.location.name "-" $tp1.location.id "expires on" $expire "`n" -foreground green
"Tape in " + $tp1.location.name + "-" + $tp1.location.id +" expires on " + $expire | out-file duetape.txt -encoding ASCII -append
Let me know if worked
Thanks, Wilson Souza - MSFT This posting is provided "AS IS" with no warranties, and confers no rights

Similar Messages

  • Material with Expiration date without Batch Management

    Hi,
    Is it possible to give the expiration date for the Material without Batch Management, during GR.
    Aktar

    Hi
    please find below link. It may help you.
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/63349443a211d189410000e829fbbd/content.htm
    regards
    Srinivas

  • Recovery data using Exchange Management Shell From Recovery Database

    Recently Some of our employees had been requesting a restore of some deleted emails from earlier in the year. Through our Backup Exec 2012 the recovery of the emails were not working. After 2 weeks on the phone with Symantec we determined that theyre Granular
    Recovery Technology was not functioning properly for whatever reasons. As a last resort we recovered the backup set to a recovery database and now need to use the management shell in Exchange in order to recover the emails. I am having trouble with the
    syntax and wanted to see if anyone out there could help me with the necessary commands in order to recover emails. forgive me if i have left out any required information. i am still a student trying to learn

    If you are interested in 3rd party products check out Lucid8's DigiScope
    http://www.lucid8.com/product/digiscope.asp
    which will allow you to open any offline Exchange Database within a familiar Outlook type GUI.  Once opened you can Browse, Search, Export Mailboxes, Folders and Individual Items to PST & MSG or Recover data directly to any Production Exchange
    server or mailbox.
    Regarding the RDB commands, here is a good article
    http://technet.microsoft.com/en-us/library/ee332351.aspx and also here are a couple of Examples
    NOTE:  The examples below assume that you have recovered the DB in question to the RDB and that a copy of the mailbox belonging to John_Doe is within the Recovery Database.
    A:  The command below will recover the mailbox called John_Doe from the Recovery Database called
    RecoveryDatabase1 to the John_Doe mailbox in the live database.  NOTE: This method relies on the original mailbox still being intact on the Production Server.
    Use the Exchange Management Shell and run the following command:
    Restore-Mailbox -Identity John_Doe -Recovery Database RecoveryDatabase1
    B:  You can also recover the John_Doe mailbox from the Recovery Database and place it into
    a folder called "John_Doe Recovery" within a mailbox called BobTheManager.
    Use the Exchange Management Shell and run the following command:
    Restore-Mailbox -Identity BobTheManager -RecoveryDatabase RecoveryDatabase1 -RecoveryMailbox John_Doe -TargetFolder “John_Doe Recovery"
    C: There is also the ability to search the mailbox content for keywords.  In this example we
    search for any messages containing the word “SecretStuff” and restore those items to a folder called “John_Doe recovery with SuperSecret text” within a mailbox called JaneSupervisor. 
    Use the Exchange Management Shell and run the following command:
    Restore-Mailbox -Identity JaneSupervisor -RecoveryDatabase RecoveryDatabase1 -RecoveryMailbox John_Doe -SubjectKeywords "SecretStuff"
    –TargetFolder “John_Doe recovery with SecretStuff"
    Troy Werelius
    www.Lucid8.com
    Search, Recover, & Extract Mailboxes, Folders, & Email Items from Offline EDB's and Live Exchange Servers with Lucid8's DigiScope

  • PowerShell: How do I get Powershell ISE to work within Service Manager Shell

    I want to use PowerShell ISE from within Service Manager Shell.
    When, from within the Service Manager Shell I type "ise" the PowerShell ISE launches but is not aware of the SCSM Cmdlets.
    When I run:
    PS C:\Program Files\Microsoft System Center 2012\Service Manager> Get-SCSMManagementPack
    I get this error:
    The term 'Get-SCSMManagementPack' is not recognized as the name of a cmdlet, function, scr
    ipt file, or operable program. Check the spelling of the name, or if a path was included,
    verify that the path is correct and try again.
    At line:1 char:23
    + Get-SCSMManagementPack <<<<
        + CategoryInfo          : ObjectNotFound: (Get-SCSMManagementPack:String) [], Command
       NotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException

    Hi,
    Try this before calling any SCSM cmdlets:
    CD 'C:\Program Files\Microsoft System Center 2012\Service Manager\Powershell'
    Import-Module .\System.Center.Service.Manager.psd1
    For R2 adjust a path.
    Cheers,
    Marat
    Site: www.scutils.com  Twitter:
      LinkedIn:
      Facebook:

  • Stock transfer are not showing correct expire date for Shelf life subcontracting

    Hi Gurus,
    We have shelf life active for PPDS. We had added 5 characteristic to have min and Max shelf life in APO so that data will be considered during pegging.
    Self life works perfectly fine for production plant where based on manufacture date min shelf life is considered.
    LOBM_APO_SL_MIN
    LOBM_APO_SL_MAX
    LOBM_APO_SL_UTC
    LOBM_VERAB
    LOBM_HSDAT
    Question is for sub contracting process stock or inventory date is giving back dated where when we run planning run stock is getting expired.
    Can any one help in getting stock correct expire date instead of 1982---- some thing like this.
    Thanks in advance
    Thanks & Regards,
    Rajesh Kumar

    When you plan subcontracting in SNP following is generated.
    Object                             Source                                   Destination
    Sub Con PR (Header)       Sub contractor                       Plant
    PR/STR (Child)                Plant                                     Subcontractor
    PR (Child)                       Child Mat Vendor                    Plant (or direct to Sub Contractor)
    Usually first and third items will get converted to Purchase orders and will vanish as and when Goods Receipts are posted against them.
    The second order may not get converted in SAP.  Tis will remain in the system.  But in the next planning run, these will be deleted if the quantities have been already fulfilled.
    Regards
    Nitin Thatte

  • "Failed to retrieve data from OVM Manager"

    I'm trying to setup Cloud Control 12c Private Cloud environment. My machines in OVM pool have local disks so there is a repository per physical machine, plus one shared repository on NFS (OVM lists all those repositories in its UI)
    When I try to navigate to VM Manager->Administration->Storage Repository page here is an error dialog I get:
    "Failed to retrieve data from OVM Manager. Please check log file for details"
    I've tried performing VM Manager->Synchronize, but that didn't help.
    Let me note that I can go to other pages like Administration->Network without any problem.
    What is a log file to look into? I tried looking under /u01/app/oracle/Middleware/oms/sysman/log but found nothing useful.

    Hi Diptesh,
       What is your crystal reports version ? CRXI or higher?
    And does your filter bject consists of apostrophie s fields?
    If this is the case then this is a known issue try installing the latest service packs or fix packs to see if it resolves the issue?
    Regards,
    Vinay

  • Get battery expiration date with sscs on CLI

    Hello,
    At the moment I search for a command to view more information as
    sscs list -d <Device-Name> -t battery fru provides.I search something like show battery-status from sccli.
    I found this document about battery status and sscs:
    http://docs.sun.com/source/816-7326-16/ch04_battery.html#53714
    But there is no information about the command for cli to view the battery expiration date.
    Maybe somebody has a few hints or can point my to the right document.
    Thanks in advance,
    Silvio

    If you are managing your storage array with the StorageTek Common Array Manager you can look up the battery age in there.
    1. Go to Storage Systems – 6130a – Troubleshooting – FRUs.
    2. Click Battery.
    3. Click on the relevant tray controller battery, and you'll see details "Life Remaining" and "Element Status" (Optimal, Near Expiration, or Expired) and "Battery Age".

  • HT1657 Can i get a refund for a rental i didn't view before the expiration date?

    Can i get a refund for a rental i didn't view before the expiration date?
    I wasn't able to tranfer the movie to the ipad, and couldn't view it on my pc.

    All purchases are considered final, but you can try contacting iTunes support and see if they will give you a refund or credit : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Get Password Expiration Date of Group members in Active Directory

    hi,
    How can I get password Expiration date of Group members in Active Directory – please advise me
    Fasil CV

    Or DSQUERY Commands.
    dsget group "CN=Group1,DC=myinfralab,DC=com" -members | dsget user - -acctexpires
    Santhosh Sivarajan | Houston, TX | www.sivarajan.com
    ITIL,MCITP,MCTS,MCSE (W2K3/W2K/NT4),MCSA(W2K3/W2K/MSG),Network+,CCNA
    Windows Server 2012 Book - Migrating from 2008 to Windows Server 2012
    Blogs: Blogs
    Twitter: Twitter
    LinkedIn: LinkedIn
    Facebook: Facebook
    Microsoft Virtual Academy:
    Microsoft Virtual Academy
    This posting is provided AS IS with no warranties, and confers no rights.

  • Get the expiration date in the mib

    Hello,
    I'm looking for a way to get the expiration date of my ironport device via snmp But I couldn't find it in the MIB posted on the website.
    Could you please tell me where (and if) I can find this information?!
    Thank you

    Hello Stephane,
    the Cisco IronPortdevices itself has no expiry date, as you have purchased the hardware permanently. However, if you look for expiry dates of feature keys, there are a number of entries providing this info:
    keyExpirationTable
    keyExpirationEntry
    keyExpirationIndex
    keySecondsUntilExpire
    Hope that helps,
    Andreas

  • How to get expiration date of a voucher

    Hi All
    Can anyone please tell me where can I get the expiration date of a voucher?
    Thanks

    If you have a voucher for a Java, Oracle Solaris (Cluster), MySQL, NetBeans or OpenOffice.org voucher, you should contact Prometric www.prometric.com/oracle to find the expiration date for those vouchers.
    If you have a voucher for any Oracle exams (excluding those above), you should contact Pearson VUE www.pearsonvue.com/oracle to find the expiration date for those vouchers.
    Regards,
    Brandye Barrington
    Certification Forum Moderator

  • How to get mailbox expiration date using cmdlets 2007 and 2010?

    i wants to know which cmdlets used to find the expiration date of mailbox in exchange server 2007 and exchange server 2010. I have a cmdlets that gives mailbox expiration date for exchange server 2013. Is there any equivalent cmdltes available for exchange
    server 2007 and exchange server 2010. cmdlets to get expiration date of mailbox for exchange server 2013 is as follow
    Get-ADUser -Filter * –Properties Name, EmailAddress, AccountExpirationDate, GivenName | select Name, EmailAddress, AccountExpirationDate, GivenName | where {$_. AccountExpirationDate –ne $null}

    Hi Belinda
    Thanks for your valuable replies
    Please mention PS command to get the
    expiration date for AD accounts created for Exchange 2010 and Exchange 2007.
    Thanks a lot

  • WLST: How to get "Activation Time" data from a managed server ?

    Hello,
    does someone knows how to get the "Activation Time" (Time when the managed server was started) of a managed server via WLST under WLS 8.1 & 9.2 ?
    Thx a million.

    Under 9.2
    connect()
    serverRuntime()
    print cmo.getActivationTime()
    print java.util.Date(cmo.getActivationTime())
    <Markus Jessl> wrote in message news:[email protected]..
    Hello,
    does someone knows how to get the "Activation Time" (Time when the managed
    server was started) of a managed server via WLST under WLS 8.1 & 9.2 ?
    Thx a million.

  • How to recover backup user data after a restore

    I had a disk fail and could not boot. while in the restore software I was able to backup user data to a USB drive. Now that I've restored from the restore partition and got it running windows 7 home again, I don;t see how to recover the user data made with the low level software. Windows back up doesn't seem to recognise it and I can't find an HP utility to get at it.
    A program saved with the .wim back up files brought up an HP restore manager application that then copied the filed to my new C drive but how do I actually get it to recover them into their appropriate places and recreate users etc.
    Or, should I just consider myself lucky to still have copies of the files at all?  I'll not be real happy about that because it will be a tom of work to recreate everything manually even with the files.
    I'm hoping someone out there has a better solution for recovering all my user data into my new restored initial image.
    thanks,
    -dcb

    Hello dcbrower, You may be able to use the program Universal Extractor to extract the files in the .wim file.
    This is a Free program that can be found at this  Link. .
    Just extract the files in the wim file to a location you would like.
    Please click the White Kudos star on the left, to say thanks.
    Please mark Accept As Solution if it solves your problem.

  • Expiration date not displaying after upgrade from 2007 to 2013

    I recently upgraded from MOSS 2007 to 2013.  I have information management set up on a library of InfoPath forms.  For the forms that were created prior to the upgrade, the expiration date is displaying and actually get updated if I modify them. 
    But none of my forms that have been created after the upgrade, are displaying when the expiration date is, which should be one year from modify date.  If I modify the forms created prior to the upgrade, they reflect the new, update date.
    Are these new forms not getting the policy applied to them, and why not?  I am not sure why the older forms are getting updated, but not my new ones.
    Denise E.

    Hi Denise,
    According to your description, my understanding is that the Expiration date column was not displaying values after upgrading from SharePoint 2007 to SharePoint 2013.
    Per my knowledge, we can only use the date column which is added to the library or list or the Declared Recorded date to set the retention policy, so if the Expiration date is used in the retention policy then the Expiration date should be a column in the
    library or list.
    I recommend to check the retention policy in the library and see which column is used in the retention policy as the image below shows:
    After that, go to the Library settings to find this column.
    Could you please provide screenshots of the retention policy and the columns in the Library settings page?
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

Maybe you are looking for

  • How to temporally link layers in prem cs5?

    Hi I have a complicated project and for various reasons the producer has asked me to drop in a extra gfx making my framing all off.. so I need to simple move a section of the project to the left, but I need to move near 20 layers and have them all mo

  • Differences between different  versions of BW 2.1C,3.0A and 3.5

    Can anybody tell me the differences between different versions of BW. I m new to SAP BW,i directly learned in BI7.0.So please anybody let me know the difference in implementation of features in 2.1C, 3.0A ,3.5 ,if possible BI7.0 also

  • Do we have to upgrade HRMS 11.5.10.2 Family Pack I to Family Pack K?

    Hi, Just a really quick question. Do we need to do a HRMS upgrade from 11.5.10.2 Family Pack I to Family Pack K to get isetup working? Our DBA has identified through analyzing the recommended patches (for 11.5.10.2) that this is a pre-requisite. We r

  • HP Compaq Presario CQ56 Notebook-Battery Problem

    Product Name: Product name: Presario CQ56 Notebook PC Product Number: Product number: XG809UA#ABA OS: Windows 7 Ultimate 32-bit Service Pack 1 Hello,             My notebook is encountered with a problem. The battery is not holiding the charge and wi

  • Problem in stalling PostgreSQL.

    I install a soource code version PostgreSQL in my Solaris 9 computer. I meet following proble: $/usr/bin/initdb -D /var/lib/pgsql/data/mydata ld.so.1: /usr/bin/initdb: fata1: libc.so.1: version 'SUNW_1.22' not found ( required by file /usr/bin/initdb