Discussions related to exporting backups to tape and backing up directly to tape.
Post Reply
cbrasga
Influencer
Posts: 16
Liked: 2 times
Joined: Apr 27, 2013 2:09 am
Full Name: Cazi Brasga
Contact:

Feature Request: Separate Email Notification for Tape Jobs

Post by cbrasga »

I am the system admin for the company so I receive all of the emails for the backups via the global email notification settings under File > Options. I have a IT support tech that pulls the tapes each day that I would like to get just the tape notifications because the report includes the useful information of which tapes were used, so he can easily pull them.

Currently, he will have to get all of the backup & replication notifications in order to get the tape backup job notifications. Please allow for a separate notification setting on the tape jobs as well.

Thanks,

Cazi
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Feature Request: Separate Email Notification for Tape Jo

Post by veremin »

Hi,Cazi,

As a potential workaround, you can write and schedule a custom PS script that will initiate a start of tape jobs and send to given addresses an email with required information, once the tape job is finished.

Thanks.
Speights
Service Provider
Posts: 2
Liked: never
Joined: Nov 24, 2013 10:44 pm
Contact:

Re: Feature Request: Separate Email Notification for Tape Jo

Post by Speights »

I second that we have managed customers who delegate a user to change tapes and they need an individual notification relating only to the tape backup. Looks like I will have to go back to BE until we get this facility. :(

Gutted cause the tape backup works really well.

Thanks,
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Feature Request: Separate Email Notification for Tape Jo

Post by veremin »

As mentioned above, for now you can put into use a custom PS script scheduled via Windows Scheduler. This script will start a given tape job, form a required mail and send it to the said address.

Additionally, we consider adding this functionality in one of the next product releases.

Thanks.
bplancic
Influencer
Posts: 21
Liked: never
Joined: Nov 26, 2013 11:37 am
Contact:

Re: Feature Request: Separate Email Notification for Tape Jo

Post by bplancic »

Hi,

I wrote PS script that triggers on event in event viewer, checks if it is tape backup and sends mail saying that the tape must be changed (and with which tape).

Code: Select all

<#
Script activates on specific event in Event viewer, and sends email if specific text is found in event body. 
When sending email script translates day from english to croatian, checks which week is it and which month.
#>

$x = (get-eventlog "Veeam Backup" | where {$_.timegenerated -gt $(get-date).addminutes(-1)}).Message #checks events in event log "Veeam Backup" older than 1 minute
$datum = get-date #2/9/2013 Todays date
$dan = ($datum).DayOfWeek 
$tjedan = ($datum).Day
switch ($dan) #Determines day of the week and transletes it from english to croatian
   {
   "Monday" {        #Determines if monday is first monday of month and which month
        if (($tjedan -ge 1) -and ($tjedan -lt 8))
        {$dan = $datum.Month
        switch ($dan)
        {
        "1" {$dan = "Siječanj"}
        "2" {$dan = "Veljača"}
        "3" {$dan = "Ožujak"}
        "4" {$dan = "Travanj"}
        "5" {$dan = "Svibanj"}
        "6" {$dan = "Lipanj"}
        "7" {$dan = "Srpanj"}
        "8" {$dan = "Kolovoz"}
        "9" {$dan = "Rujan"}
        "10" {$dan = "Listopad"}
        "11" {$dan = "Studeni"}
        "12" {$dan = "Prosinac"}
        }
        }
        else {$dan = "Ponedjeljak"}
   }
   "Tuesday" {$dan = "Utorak"}
   "Wednesday" {$dan = "Srijeda"}
   "Thursday" {$dan = "Četvrtak"}
   "Saturday" {$dan = "Ponedjeljak"}
   "Sunday" {$dan = "Ponedjeljak"}
   "Friday"{        #Determines which week of the month is it on friday
        if ($tjedan -le 7)
        {$dan = "1. tjedan"}
        elseif (($tjedan -gt 7) -and ($tjedan -le 14))
        {$dan = "2.tjedan"}
        elseif (($tjedan -gt 14) -and ($tjedan -le 21))
        {$dan = "3.tjedan"}
        elseif (($tjedan -gt 21) -and ($tjedan -le 28))
        {$dan = "4.tjedan"}
        else {$dan = "5.tjedan"}
   }
   }
   
if ($x -eq "Session Traka has been completed.") #Text in event body we are looking for
{
Send-MailMessage -To your_mail@your.domain -From TAPE_VEEAM@your.domain -Subject "Text in mail subject" -bodyashtml -encoding unicode -body "<font face=Arial>Text in message body.<br><br> Put tape <font color=red><b>$dan</b></font>" -smtpserver your_mail_server_FQDN
}
else {
break}
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests