Operating System - OpenVMS
1828376 Members
3217 Online
109976 Solutions
New Discussion

Help backup checker on all our systems

 
vmsserbo
Super Advisor

Help backup checker on all our systems

We have a backup-checker ruuning on all our 90 nodes. I want to have the backup checker see if the system has the SYSTEM_TYPE of TEAM-HST, and in cases where a backup PAGE would be sent for those sites, we would send an email instead.

Here is the code I found , can you tell me where I would put this and the command to do this? Thanks!

***********************************************
$ send_page:
$!
$! Set up the page message we will send. Get a formatted current time.
$! We will send an email instead of a page for a development system.
$! Send the email/page.
$!
$ msg="Bcktyp=''Bcktype' - Elapsed=''elap_time' - Avg=''newtime'"
$ gosub get_time
$ system_type = f$edit(f$trnlnm("system_type"),"upcase,trim")
$ if (system_type .eqs. "TEAM-DEV") .or. (count .eq. 0)
$ then
$ mail_list = "''systems_mail'"
$ viotype = "Email"
$ else
$ mail_list = "''page_list'"
$ viotype = "Paged"
$ endif
$ mail/subj="Backups: ''msg'" nl: "''mail_list'"
$ time_page_sent = "YES"
**********************************************


3 REPLIES 3
Karl Rohwedder
Honored Contributor

Re: Help backup checker on all our systems

Miles,

not sure if I understand, but you may change the line:
$ if (system_type .eqs. "TEAM-DEV") .or. (count .eq. 0)
into
$ if (system_type .eqs. "TEAM-DEV") .or. (count .eq. 0) .or. (system_type .eqs. "TEAM-HST")




regards Kalle
vmsserbo
Super Advisor

Re: Help backup checker on all our systems

Yes, Actually what I want this to do is if the system has the SYSTEM_TYPE OF TEAM-HST,

I would just want an email send instead of a page.

Thanks!

Miles
Jan van den Ende
Honored Contributor

Re: Help backup checker on all our systems

Miles,

from the parts given here, I conclude that there are several SYSTEM_TYPEs, one of them being TEAM-DEV. That is the one that gets sends mail, all others do Page. Correct?

Another SYSTEM_TYPE is TEAM-HST, and you want that to send mail as well.

So change the line
$ if (system_type .eqs. "TEAM-DEV") .or. (count .eq. 0)
into
$ if (system_type .eqs. "TEAM-DEV") .or. (system_type .eqs. "TEAM-HST") .or. (count .eq. 0)

(mind the line-breaks, they are forums-formatting, NOT the code!)

If my assumptions from your info are correct, this should do the trick.

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.