none
MCT Script errors from DPMEraseTape RRS feed

  • Question

  • Hi,

    i am trying to run the DPMEraseTape against a HP LTO3 Stand Alone Tape Drive. I get all kinds of weird erros. I have specified slot 0 and LTO as a wildcard for the name. This is how the log looks like:

    [03-08-2011 10:47.02] DPMeraseTape V1.2
    [03-08-2011 10:47.03] ======================
    [03-08-2011 10:47.03] MCT:  The system cannot find the file specified.

    [03-08-2011 10:47.05] MCT:  The system cannot find the file specified.
    [03-08-2011 10:47.05] TRAP:  You cannot call a method on a null-valued expression.
    You cannot call a method on a null-valued expression.
    At C:\DPMScripts\DPMeraseTape.ps1:227 char:85
    +         [int]$global:firstslot = ( $changerinfo | ? {$_ -match "First Slot Nu
    mber"}).split <<<< (":")[1]
        + CategoryInfo          : InvalidOperation: (split:String) [], RuntimeExce
       ption
        + FullyQualifiedErrorId : InvokeMethodOnNull

    I have tried different paths, names, slots etc.. nothing makes a difference.

    Thanks in advance

    Tuesday, March 8, 2011 10:35 AM

Answers

All replies

  • Hi,

    MCT does not work on standalone tape drives, just use the mytape.exe to erase the tape.   Get the symbolic name [\\.\tape01234567] of the tape drive from the details section of the standalone tape drive in the DPM console, then run the following commands.

    Mytape.exe \\.\Tape01234567

    \\.\Tape01234567>TapeConsole_1.0>loadtape

    \\.\Tape01234567>TapeConsole_1.0>taperewind

    \\.\Tape01234567>TapeConsole_1.0>erasetape s

     


    Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.
    • Marked as answer by garpenrud Tuesday, March 8, 2011 3:44 PM
    Tuesday, March 8, 2011 3:31 PM
    Moderator
  • Thank you Mike, i didnt know that.

    I tried mytape.exe as well, copied the symbolic name from the GUI and got the following error message.

    Status: Getting the handle for \\.\Tape2147483646...Failed
    Error_Id Reported = 5

    C:\DPMScripts>

    Tuesday, March 8, 2011 3:33 PM
  • Please make sure no ongoing tape jiobs are running and then stop the DPMLA service.

    net stop dpmla

    Then try the mytape commands


    Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.
    • Marked as answer by garpenrud Tuesday, March 8, 2011 3:44 PM
    Tuesday, March 8, 2011 3:38 PM
    Moderator
  • Thanks, that did it!
    Microsoft Certified Master | Exchange Server 2010
    Tuesday, March 8, 2011 3:44 PM
  • Hi again, today i got a simliar error, but on a library this time. Don't understand why. Any ideas?

     

     Changer is Capable of positioning transport to Slot.
     Changer is Capable of positioning transport to Drive.
    [3/23/2011 5:07:57 PM] MCT on [DELL PowerVault 136T Autoloader] reported first slot = 1
    [3/23/2011 5:07:57 PM] Using \\.\Changer0 = DELL PowerVault 136T Autoloader
    [3/23/2011 5:07:59 PM] TRAP:  You cannot call a method on a null-valued expression.
    You cannot call a method on a null-valued expression.
    At C:\Scripts\DPMeraseTape\DPMeraseTape.ps1:115 char:44
    +             $ident = ($mctout[5].Split(":")[1]).trim <<<< ()
        + CategoryInfo          : InvalidOperation: (trim:String) [], RuntimeExcep
       tion
        + FullyQualifiedErrorId : InvokeMethodOnNull


    Microsoft Certified Master | Exchange Server 2010
    Wednesday, March 23, 2011 4:09 PM