-
- Enthusiast
- Posts: 82
- Liked: 1 time
- Joined: Apr 28, 2015 7:52 am
- Contact:
Last backup using NetBackup Grouping Expression
Hi,
I'm trying to amend the last backup date to show VMs backed up using NetBackup which we use in addition to Veeam B&R. I tried amending the Grouping Expression as follows:
CASE
WHEN LastBackupDate > DateAdd(Today, -1, "d") THEN "VMs with daily backup"
WHEN LastBackupDate > DateAdd(Today, -7, "d") THEN "VMs with weekly backup"
WHEN ToDate(CustomAttribute("NB_LAST_BACKUP")) > DateAdd(Today, -1, "d") THEN "VMS with NetBackup"
ELSE "VMs with no backups"
END
The idea is that it would convert to date the value in the NB_LAST_BACKUP then report accordingly. It doesn't seem to work. What am I doing wrong and how can I fix this?
I'm trying to amend the last backup date to show VMs backed up using NetBackup which we use in addition to Veeam B&R. I tried amending the Grouping Expression as follows:
CASE
WHEN LastBackupDate > DateAdd(Today, -1, "d") THEN "VMs with daily backup"
WHEN LastBackupDate > DateAdd(Today, -7, "d") THEN "VMs with weekly backup"
WHEN ToDate(CustomAttribute("NB_LAST_BACKUP")) > DateAdd(Today, -1, "d") THEN "VMS with NetBackup"
ELSE "VMs with no backups"
END
The idea is that it would convert to date the value in the NB_LAST_BACKUP then report accordingly. It doesn't seem to work. What am I doing wrong and how can I fix this?
-
- VP, Product Management
- Posts: 27377
- Liked: 2800 times
- Joined: Mar 30, 2009 9:13 am
- Full Name: Vitaliy Safarov
- Contact:
Re: Last backup using NetBackup Grouping Expression
Hi,
Can you please confirm that you have custom attributes containing NetBackup data collected in Veeam ONE? When you type in this expression, do you see any error message?
Thanks!
Can you please confirm that you have custom attributes containing NetBackup data collected in Veeam ONE? When you type in this expression, do you see any error message?
Thanks!
-
- Enthusiast
- Posts: 82
- Liked: 1 time
- Joined: Apr 28, 2015 7:52 am
- Contact:
Re: Last backup using NetBackup Grouping Expression
I don't know. How can I check this? I assumed the Veeam ONE collects everything! If not, how can I tell it to do so?
-
- VP, Product Management
- Posts: 27377
- Liked: 2800 times
- Joined: Mar 30, 2009 9:13 am
- Full Name: Vitaliy Safarov
- Contact:
Re: Last backup using NetBackup Grouping Expression
Can you please try to type in just this expression - CustomAttribute("NB_LAST_BACKUP")? Do you see any groups created based on the returned values?
-
- Enthusiast
- Posts: 82
- Liked: 1 time
- Joined: Apr 28, 2015 7:52 am
- Contact:
Re: Last backup using NetBackup Grouping Expression
I've done that and now I'm only seeing "VMs with Weekly backup"
CASE
WHEN LastBackupDate > DateAdd(Today, -1, "d") THEN "VMs with daily backup"
WHEN LastBackupDate > DateAdd(Today, -7, "d") THEN "VMs with weekly backup"
WHEN CustomAttribute("NB_LAST_BACKUP") THEN "VMS with NetBackup"
ELSE "VMs with no backups"
END
CASE
WHEN LastBackupDate > DateAdd(Today, -1, "d") THEN "VMs with daily backup"
WHEN LastBackupDate > DateAdd(Today, -7, "d") THEN "VMs with weekly backup"
WHEN CustomAttribute("NB_LAST_BACKUP") THEN "VMS with NetBackup"
ELSE "VMs with no backups"
END
-
- VP, Product Management
- Posts: 27377
- Liked: 2800 times
- Joined: Mar 30, 2009 9:13 am
- Full Name: Vitaliy Safarov
- Contact:
Re: Last backup using NetBackup Grouping Expression
Actually, this is not what I meant. Can you please just type this - CustomAttribute("NB_LAST_BACKUP")? Does it return any values?
-
- Enthusiast
- Posts: 82
- Liked: 1 time
- Joined: Apr 28, 2015 7:52 am
- Contact:
Re: Last backup using NetBackup Grouping Expression
CASE
WHEN CustomAttribute("NB_LAST_BACKUP") THEN "VMS with NetBackup"
END
Does not work. I get an error "invalid grouping expression"
Any chance we can get support to expedite this? I appreciate I've left it for a while as I had more pressing issues.
WHEN CustomAttribute("NB_LAST_BACKUP") THEN "VMS with NetBackup"
END
Does not work. I get an error "invalid grouping expression"
Any chance we can get support to expedite this? I appreciate I've left it for a while as I had more pressing issues.
-
- VP, Product Management
- Posts: 27377
- Liked: 2800 times
- Joined: Mar 30, 2009 9:13 am
- Full Name: Vitaliy Safarov
- Contact:
Re: Last backup using NetBackup Grouping Expression
Yes, sure our support team can assist you with this. Please open a case and tell me your case ID, so I could route your request to the corresponding team.
-
- Enthusiast
- Posts: 82
- Liked: 1 time
- Joined: Apr 28, 2015 7:52 am
- Contact:
Re: Last backup using NetBackup Grouping Expression
Thanks @Vitality
I've raised Case #02194629 for this. Thank you.
I've raised Case #02194629 for this. Thank you.
Who is online
Users browsing this forum: No registered users and 1 guest