03-30-2015 05:30 AM
Dear Team,
I am using single tape for Enterprise vault backup. If tape get full and it will ask second tape to continue the same backup job. can we configure E-mail notification tape alert to user
Thanks,
SandeepK
Solved! Go to Solution.
04-06-2015 02:31 PM
Logon to OpsCenter / Manage / Alert Policies / Add / Device, Mount Request.
If you want the alert to be emailed, then in OpsCenter, also configure an email recipient, and configure SMTP target details.
03-30-2015 05:39 AM
Netbackup will never ask for a tape for backup jobs.
If you do not have free tapes available at the same pool or at the scratch pool, the backup will fail (error 96).
backup exec has this functionality. (to ask for a tape for backup)
03-30-2015 05:43 AM
Hi,
But we are not using tape library, I have single tape drive LTO 4 and my EV data size in 2. 5 TB
03-30-2015 05:44 AM
FYI - Backups to standalone drives in NetBackup will wait for a tape.
03-30-2015 05:55 AM
Yes is right …..
Suppose my one tape is full and it will ask to second tape for the same backup job. How to know backup job asking to second tape, if is there any alert notification send to user so user will understand backup job asking second tape.
That kind of setting I am looking
03-30-2015 06:14 AM
Sorry for that. I have to work with standalone tapes for more than 10 years.
I do not think that Opscenter have such email alert. But I may be wrong again.
You can write a script that checks for pending requests using the "vmoprcmd -d pr" command and if there is a pending request to send email to the operators.
check
03-31-2015 01:59 AM
Even there are no logs getting generate in windows event viewer.
03-31-2015 03:36 AM
OpsCenter has a pending tape alert that can be configured to send a mail.
03-31-2015 04:29 AM
03-31-2015 05:53 AM
Need a script?
04-02-2015 12:22 AM
Yes.. we need script.......
anyone have this kind of script..plz sahre ,so i will configure tape alter
04-02-2015 08:45 AM
Ok, here's a script, but...
...it may not be completely suitable...
...you may need to make some adjustments...
...and I left in an example of an alert being punted out to BMC Patrol, but it's commented out.
...anyway, the script assumes a few things...
1) That 'blat' is pre-configured and working.
2) That the system wide 'path' includes the path to the NetBackup commands.
3) That you will configure a scheduled taks to run it, perhaps once every 10 or 15 or 30 minutes or so.
4) You will need to modify the 'cluster-node1/2' check so that it matches on the name of your master server.
5) You will need to modify the email target addresses.
6) Create a folder for the script to live in: D:\NBU-SCRIPTS\pending-media
7) Save the script as 'pending-media.bat'
8) Create another plain ASCII text file in the same folder, named 'pending-media.med' (use 'notepad') and enter in to this file a list of all of the master, master/media, media servers in this NetBackup domain that have tape drives visible to them - so that the script can query each media server.
HTH
.
@echo off setlocal enabledelayedexpansion REM ################################################################################ REM # Script: Check for, and send email alerts, for pending media mount requests. REM # Author: sdo REM # Date: 20th February 2006 REM # REM # Date WHO Description REM # ---- --- ----------- REM # 20-FEB-2006 sdo Initial version. REM # 20-FEB-2006 sdo Handle if media server is down. REM # 8-JAN-2009 sdo For new master. REM # 2-MAY-2011 sdo Raise Patrol alert. REM ################################################################################ set z_path=%~dp0 set z_name=%~n0 set z_file_log=!z_path!!z_name!.log set z_file_med=!z_path!!z_name!.med set z_file_tmp=!z_path!!z_name!.tmp call :log "" call :log "***********************************************" call :log "Run date: !date!" REM #################################################################################### REM ### Are we on the cluster node? REM ### if /i not "%computername%"=="cluster-node1" ( if /i not "%computername%"=="cluster-node2" ( call :log "Script cannot run on `!computername!`..." goto :end ) ) REM #################################################################################### REM ### Email the reports... REM ### set z_mail_sto=Storage-Team@myfirm.com set z_mail_ops=Ops-Team@myfirm.com set z_mail_tst=my.name@my-firm.com for /f "tokens=*" %%a in ('type "!z_file_med!"') do ( call :log "Checking: %%a" if exist "!z_file_tmp!" del "!z_file_tmp!" vmoprcmd -h %%a -d pr > "!z_file_tmp!" find "PENDING REQUESTS" "!z_file_tmp!" > NUL if !errorlevel!==0 ( find "<NONE>" "!z_file_tmp!" > NUL if !errorlevel!==1 ( call :log "Sending email alerts re pending media request..." blat "!z_file_tmp!" -to !z_mail_sto! -i NetBackup -s "ALERT: Pending media request." REM blat "!z_file_tmp!" -to !z_mail_ops! -i NetBackup -s "ALERT: Pending media request." REM blat "!z_file_tmp!" -to !z_mail_tst! -i NetBackup -s "INFO: Pending media request." set z_bem_level=MINOR set z_nbu_level=ERROR set z_bem_message=NetBackup - Media mount required. REM call :raise-alert ) ) ) REM #################################################################################### REM ### The end... REM ### :end if exist "!z_file_tmp!" del "!z_file_tmp!" call :log "" call :log "Script completed okay." echo+ exit /b REM #################################################################################### REM ### Display and log to a file... REM ### :log (echo !time:~0,8! %~1) (echo !time:~0,8! %~1)>>"!z_file_log!" goto :eof REM #################################################################################### REM ### Send a trap to BMC Patrol... REM ### :raise-alert call :log "" call :log "Alert details..." call :log " BEM level: !z_bem_level!" call :log " BEM message: !z_bem_message! call :log " NBU level: !z_nbu_level!" call :log "" call :log "Send alert to Patrol/BEM..." set z_msend=D:\Program Files\ProactiveNet Agent\Agent\server\bin\msend.exe if not exist "!z_msend!" ( call :log "Cannot find msend executable..." ) else ( set z_host=!computername! "!z_msend!" -a MY_MSEND -r !z_bem_level! -n bem-server -m "!z_bem_message!" -b "mc_object_class=NETBACKUP;mc_object=!z_name!;mc_parameter_value=!z_deac!;mc_parameter=!z_name!;mc_host=!z_host!;team=Storage Team" -q set z_sts=!errorlevel! if not "!z_sts!"=="0" call :log "Failed to MSEND message to Patrol, status `!z_sts!`..." ) call :log "Done..." goto :eof
04-03-2015 11:25 AM
If you have an OpsCenter server, you can simply setup and alert for mount requests.
04-03-2015 11:47 AM
Was this of any use?
04-06-2015 04:36 AM
Can someone show me what are configuration steps for E-mail alert for mount requests in OpsCenter
This is very helpful solution to everyone………
04-06-2015 02:31 PM
Logon to OpsCenter / Manage / Alert Policies / Add / Device, Mount Request.
If you want the alert to be emailed, then in OpsCenter, also configure an email recipient, and configure SMTP target details.
04-20-2015 02:19 AM
Dear Team,
Thanks’s ..........
it’s work ……..