If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Backup completion email notification

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-05-08, 10:38
itsonlyme44 itsonlyme44 is offline
Registered User
 
Join Date: Dec 2007
Posts: 261
Backup completion email notification

we are running DB2/UDB V 9.5.100.179 (fix pack 2 )

We use the task scheduler to run backups and other maintenance and I rely heavily on the built-in notification system for the status of backups.

We are now moving to a third party scheduling system on the mainframe and I had to build command line scripts for all my backup jobs and save them to .bat jobs in order for this third party scheduling system to call them..

Problem is... now I've lost my email notifications. is there a way to have DB2 notify via email when database is backed up? or is there a way to code this in my command line backup?

any help would be appreciated.
Reply With Quote
  #2 (permalink)  
Old 08-06-08, 02:04
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
on unix you can create a simple script that invokes db2 backup db...
when finished, checks the return code or queries the history file (with sql) and mails the answer to any user (mailx)
schedule this in crontab
in developer works, there is even a sample of a small java program that ships mail with attachment, as by default this is not supported on unix
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 08-06-08, 03:29
itsonlyme44 itsonlyme44 is offline
Registered User
 
Join Date: Dec 2007
Posts: 261
This is DB2 on a windows box.
Reply With Quote
  #4 (permalink)  
Old 08-06-08, 05:47
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
you can use task center and schedule jobs
also mailing is supported with task center
see infocenter how to create toolscat and setup smtp for admin
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #5 (permalink)  
Old 08-06-08, 05:54
itsonlyme44 itsonlyme44 is offline
Registered User
 
Join Date: Dec 2007
Posts: 261
We are using task center now but the requirement is to now stop using task center, create command line backup jobs and use a third party central scheduling system on the mainframe to schedule the backup and maintenance jobs (see my original post)

The third party scheduler on the mainframe does not have a notification agent... Is there anyway to have db2 do email notifications outside of the task center... like through command line?

Last edited by itsonlyme44; 08-06-08 at 08:50.
Reply With Quote
  #6 (permalink)  
Old 08-06-08, 18:26
sundaram sundaram is offline
Registered User
 
Join Date: Mar 2006
Posts: 104
We have a set-up for backup as follows:

DOS script that calls db2 backup and then checks ERRORLEVEL from backup command. If ERROLEVEL denote failure then an entry is written to NT Event log. We use a thirdparty software (HP Open View) which checks NT event Log for db back up failure entry and then alerts admin through Email.

To write entry to Event log use 'logevent' command in Windows.


Hope the info is useful

Regards

Harikumar
Reply With Quote
  #7 (permalink)  
Old 08-07-08, 04:55
itsonlyme44 itsonlyme44 is offline
Registered User
 
Join Date: Dec 2007
Posts: 261
Thank you . We also use HP Openview for monitoring and alerting. Problem is we are using Unix scripting for the actual Backup.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On