PowerShell script exchange
Post Reply
Peejay62
Expert
Posts: 235
Liked: 37 times
Joined: Aug 06, 2013 10:40 am
Full Name: Peter Jansen
Contact:

New_VbrFileToTapeObject method not implemented since V11 upgrade

Post by Peejay62 »

I am using a script with the New_VbrFileToTapeObject cmdlet to populate a filetotape job with a specific input for quite a while (since V9). This has always worked fine. Since being upgraded to V11 it doesn't. I get a "method or operation not implemented". Did anything change for this? My script hasn't and as far as I can see from the documentation the use of the cmdlet didn't either.

A snip from my code:

Code: Select all

$Job=get-vbrtapejob -name $my_jobname
$BkServer = get-vbrserver -name $my_bkpserver
$creds = Get-VBRCredentials -name $My_user
$mask = $my_filemask # filemask for processing
$pad = "/mnt/backupfiles" #path where files are
#create tape object
$TapeObject = New-VBRFileToTapeObject -Server $BkServer -Path "$pad" -IncludeMask "$mask"  -Credentials $creds
$Object = @($TapeObject)
# modify the job to hold the new inclusion
Set-VBRFileToTapeJob -Job $Job -Object $Object
#job modified and ready to run
Maybe I am overlooking something here? I worked fine till V11.

thanks, Peter
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: New_VbrFileToTapeObject method not implemented since V11 upgrade

Post by oleg.feoktistov »

Hi Peter,

Please wrap your script snippets in code tags with </> tool next time. It makes it look clearer, it also makes it much easier to copy the code and test right away. As for your issue, I tested it in my lab with v11 and it worked as expected. However, my v11 is patched with CP2, so it might be the case that something broke in v11 and got fixed later in one of our cumulative patches. Could you please share the $error[0] variable output right after you invoke the script above?

Thanks,
Oleg
Peejay62
Expert
Posts: 235
Liked: 37 times
Joined: Aug 06, 2013 10:40 am
Full Name: Peter Jansen
Contact:

Re: New_VbrFileToTapeObject method not implemented since V11 upgrade

Post by Peejay62 »

Hi Oleg, sorry for the code tags...

the error:

Code: Select all

New-VBRFileToTapeObject : The method or operation is not implemented.
At xxxxxxxxxx(removed path..)/test.ps1:95 char:10
+ $File1 = New-VBRFileToTapeObject -Server $BkServer -Path "$pad" -Incl ...
+          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [New-VBRFileToTapeObject], Exception
    + FullyQualifiedErrorId : System.Exception,Veeam.Backup.PowerShell.Cmdlets.NewVBRFileToTapeObject
regards,

Peter
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: New_VbrFileToTapeObject method not implemented since V11 upgrade

Post by oleg.feoktistov »

Hi Peter,

So, I re-tested it in a clean v11 environment and didn't encounter the issue you are describing. To me, it looks like an environment or installation-related problem. Some .NET assemblies could have been referenced incorrectly or else. Please submit a support case and share its id here.

Thanks,
Oleg
Peejay62
Expert
Posts: 235
Liked: 37 times
Joined: Aug 06, 2013 10:40 am
Full Name: Peter Jansen
Contact:

Re: New_VbrFileToTapeObject method not implemented since V11 upgrade

Post by Peejay62 »

Hi Oleg,

thanks, I will take further action on this,

regards, Peter
Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests