HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Help backup checker on all our systems
Operating System - OpenVMS
1828376
Members
3217
Online
109976
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2006 03:32 AM
10-17-2006 03:32 AM
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"
**********************************************
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2006 04:56 AM
10-17-2006 04:56 AM
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2006 06:38 AM
10-17-2006 06:38 AM
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
I would just want an email send instead of a page.
Thanks!
Miles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2006 09:07 PM
10-17-2006 09:07 PM
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
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.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP