Using the same script except using a different IP on a 10GB network works but has errors and when finished locks the IP.
During the backup I can ping the IP but as soon as it finishes can no longer ping the IP and I have to reboot the server to get ESXI running on that network again.
The script throws out errors as below.
Code: Select all
Start-VBRZip : Cannot validate argument on parameter 'Entity'. The argument is null. Provide a valid value for the argument, and then try running the command again.
At C:\Users\johnv\Documents\Veeam Backup Lenovo 10GB.ps1:113 char:40
+ $ZIPSession = Start-VBRZip -Entity $VM -Folder $Directory -Compre ...
+ ~~~
+ CategoryInfo : InvalidData: (:) [Start-VBRZip], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Veeam.Backup.PowerShell.Cmdlets.StartVBRZip
Code: Select all
SpeedTest_2019-12-23T133723 23/12/2019 1:37:23 pm 23/12/2019 1:40:41 pm Success Processing finished at 23/12/2019 13:40:38
SpeedTest_2019-12-23T133723 23/12/2019 1:37:23 pm 23/12/2019 1:40:41 pm Success Processing finished at 23/12/2019 13:40:38
SpeedTest_2019-12-23T133723 23/12/2019 1:37:23 pm 23/12/2019 1:40:41 pm Success Processing finished at 23/12/2019 13:40:38
SpeedTest_2019-12-23T133723 23/12/2019 1:37:23 pm 23/12/2019 1:40:41 pm Success Processing finished at 23/12/2019 13:40:38
SpeedTest_2019-12-23T133723 23/12/2019 1:37:23 pm 23/12/2019 1:40:41 pm Success Processing finished at 23/12/2019 13:40:38
I am at a loss as the script is exactly the same except the IP for the network and the 1GB work perfectly and the 10GB fails.
I also use the same scripts for an HPe DL360 Gen 9 and they both work on that no issue.
Using 6.7U3 Lenovo iso and update 4 of Veeam.
Here is the code in question. I have single stepped through and all the variables have the correct data in them.
Code: Select all
foreach ($VMName in $VMNames)
{
$VM = Find-VBRViEntity -Name $VMName -Server $Server
If ($EnableEncryption)
{
$EncryptionKey = Add-VBREncryptionKey -Password (cat $EncryptionKey | ConvertTo-SecureString)
$ZIPSession = Start-VBRZip -Entity $VM -Folder $Directory -Compression $CompressionLevel -DisableQuiesce:(!$EnableQuiescence) -AutoDelete $Retention -EncryptionKey $EncryptionKey -NetworkCredentials $netcreds
}
Else
{
$ZIPSession = Start-VBRZip -Entity $VM -Folder $Directory -Compression $CompressionLevel -DisableQuiesce:(!$EnableQuiescence) -AutoDelete $Retention -NetworkCredentials $netcreds
}
If ($EnableNotification)
{
$TaskSessions = $ZIPSession.GetTaskSessions().logger.getlog().updatedrecords
$FailedSessions = $TaskSessions | where {$_.status -eq "EWarning" -or $_.Status -eq "EFailed"}
if ($FailedSessions -ne $Null)
{
$MesssagyBody = $MesssagyBody + ($ZIPSession | Select-Object @{n="Name";e={($_.name).Substring(0, $_.name.LastIndexOf("("))}} ,@{n="Start Time";e={$_.CreationTime}},@{n="End Time";e={$_.EndTime}},Result,@{n="Details";e={$FailedSessions.Title}})
}
Else
{
$MesssagyBody = $MesssagyBody + ($ZIPSession | Select-Object @{n="Name";e={($_.name).Substring(0, $_.name.LastIndexOf("("))}} ,@{n="Start Time";e={$_.CreationTime}},@{n="End Time";e={$_.EndTime}},Result,@{n="Details";e={($TaskSessions | sort creationtime -Descending | select -first 1).Title}})
}
}
}