Subject: | |
From: | |
Reply To: | |
Date: | Fri, 31 Aug 2001 14:03:23 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Mark already mentioned the ;ON keyword -- here is some additional detail.
BACKUP+/iX has an ;ON keyword that can work together with the freely
available SENDMAIL and Mark Bixby's MailSPF script (see URLs below) to
provide sophisticated message triggers. Here is a simple example:
>STORE /;*T;ON ERROR DO 'MAILSPF [log in to unmask]
This would cause the $STDLIST of the job to be emailed to the specified
address in the event of an error.
;ON also supports other triggers like ;ON FILE=filename.
You can use MailSPF after the backup completes to conditionally send
messages based on status variables like FILESNOTSTORED.
Finally, here is one additional example you might find useful. Here at the
ORBiT R&D office, our complex weekend job schedule sometimes logjams,
preventing the weekend backup from running successfully. I schedule the
following job as a catch-all to verify whether the backup ran at all, and
page me if it didn't. (This only works if you use the TML module to manage
tape cycles).
!job chkback,jon.tools
!backuppl.pub.orbit "show cycle=full" >chkb1
!/bin/awk '''{y=x;x=$2}END{print y}''' <chkb1 >chkb2
!input x <chkb2
!setvar y hpyyyymmdd
!if str(y,3,6) <> str(x,7,2) + str(x,1,2) + str(x,4,2)
! echo To: [log in to unmask] >chkb3
! echo From: [log in to unmask] >>chkb3
! echo Subject: backup appears not to have run >>chkb3
! echo >>chkb3
! xeq SENDMAIL.PUB.SENDMAIL "-t" <chkb3
!endif
!pause 120
!stream chkback;day=sat;at=10:00
!eoj
Sendmail/iX: <http://www.bixby.org/mark/sendmailix.html>
MailSPF: <http://www.bixby.org/ftp/pub/mpe/mailspf.ci>
HTH
_______________________
[log in to unmask]
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|