-
- Veeam Legend
- Posts: 822
- Liked: 128 times
- Joined: May 11, 2018 8:42 am
- Contact:
notification on file backup job
Hello,
I don't find in powershell the command to get this information : Storage -> advanced -> notification tab -> Severity options :
-Make file or folder processing issues result in a job warning
-Make file or folder attribute's processing issues result in a job warning
Whare can I find it ?
It's not in notificationOptions property.
Thanks
I don't find in powershell the command to get this information : Storage -> advanced -> notification tab -> Severity options :
-Make file or folder processing issues result in a job warning
-Make file or folder attribute's processing issues result in a job warning
Whare can I find it ?
It's not in notificationOptions property.
Thanks
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: notification on file backup job
Hi matteu,
Yes, it is not there in VBRNASBackupJob type. I noted it as an enhancement request.
As a workaround you can get it with Get-VBRJob cmdlet. This way is unsupported for NAS Backup jobs, but it works:
This property holds an enum and implements both checkboxes. Possible values:
Best regards,
Oleg
Yes, it is not there in VBRNASBackupJob type. I noted it as an enhancement request.
As a workaround you can get it with Get-VBRJob cmdlet. This way is unsupported for NAS Backup jobs, but it works:
Code: Select all
$job = Get-VBRJob -Name 'File Backup Job'
$job.Options.NASBackupOptions.FileProcessingIssuesMarkingFlags
Code: Select all
PS C:\Windows\system32> $enum = [Veeam.Backup.Model.EFileProcessingIssuesMarkingFlags]
$enum.GetEnumValues()
None
MarkFileAndFolderIssuesAsWarnings
MarkFileAndFolderAttributesIssuesAsWarnings
EverythingAsWarnings
Oleg
-
- Veeam Legend
- Posts: 822
- Liked: 128 times
- Joined: May 11, 2018 8:42 am
- Contact:
Re: notification on file backup job
Wow ! Thanks for your answer.
I see you can find all possible values with your last lines...
Is there any way to do it for all command ?
If I want to know all Veeam job type without needing to create them ?
If I can do it, this can save me a lot of time, and it will improve my powershell knowledge because I'm testing all possibilities for each options now to see the different values...
I see you can find all possible values with your last lines...
Is there any way to do it for all command ?
If I want to know all Veeam job type without needing to create them ?
If I can do it, this can save me a lot of time, and it will improve my powershell knowledge because I'm testing all possibilities for each options now to see the different values...
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: notification on file backup job
If going after job types, you can do this:
It's quite raw, but represents all job types, not only those with schedule.
Thanks!
Code: Select all
$jobType = [Veeam.Backup.Model.EDbJobType]
$JobType.GetEnumValues()
Thanks!
-
- Veeam Legend
- Posts: 822
- Liked: 128 times
- Joined: May 11, 2018 8:42 am
- Contact:
Re: notification on file backup job
Thanks for your help.
I totally ignore enum usage but it's wonderfull
I will not need anymore to build hv cluster / scvmm or something else to know what value it is
Is there a command to know what are all the veeam static class and method ?
I find something for all installed in a computer :
But it's too long to execute (I filtered to have only veeam.dll files) and really hard to "manage".
I totally ignore enum usage but it's wonderfull
I will not need anymore to build hv cluster / scvmm or something else to know what value it is
Is there a command to know what are all the veeam static class and method ?
I find something for all installed in a computer :
Code: Select all
[AppDomain]::CurrentDomain.GetAssemblies() | foreach { $_.GetTypes() } | foreach { $_.GetMethods() } | where { $_.IsStatic } | select DeclaringType | Out-File assemblies.txt
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: notification on file backup job
This method still requires to know assemblies' names from the start to filter only Veeam ones and avoid querying the whole list.
Try the way I described in the other thread instead. Thanks!
Try the way I described in the other thread instead. Thanks!
-
- Veeam Legend
- Posts: 822
- Liked: 128 times
- Joined: May 11, 2018 8:42 am
- Contact:
Re: notification on file backup job
Perfect for NAS values :
Code: Select all
$NASBackupJobsReq = Get-VBRJob | where {$_.TypeToString -eq "File Backup"}
$NASBackupJobs = foreach ($element in $NASBackupJobsReq)
{
$NASnotification = $element.Options.NASBackupOptions.FileProcessingIssuesMarkingFlags
FileProcessing = if($NASnotification -eq "MarkFileAndFolderIssuesAsWarnings" -or $NASnotification -eq "EverythingAsWarnings"){$true} else {$false}
FolderAttribute = if($NASnotification -eq "MarkFileAndFolderAttributesIssuesAsWarnings" -or $NASnotification -eq "EverythingAsWarnings"){$true} else {$false}
}
Who is online
Users browsing this forum: No registered users and 16 guests