[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Backupedge on SCO unix email notification

Posted on 2014-08-20
2
Medium Priority
?
533 Views
Last Modified: 2014-08-21
I've got backupedge running in SCO 6.0. I've created a script that calls a perl script SendEmail, to create a basic notification email for the backups. In backupedge, I've got a notifier setup to call the script. Recipients and mail servers are hard coded in the script, so it just works. Dead simple. What I can't figure out, is how to get the backup summary from backupedge into the email. Built into backupedge is an email notifier for the root user. It sends a message in plain text to the root mailbox with the following command "|/bin/mail -s %S %n" which results in a message with the backup status as the subject and the summary report as the body of the message. So i set my script up to accept two command line parameters, one for subject, and one for the body. I'm assuming the "%S" variable is the subject line, and in practice, it is. The notification email gets sent and the subject line matches the same subject line in the message that gets sent to root, however the body is empty. I know the script works, as I can pass %S %S in the notifier and I get the subject in both places. If I pass %n %n however, I get nothing, for subject or body. So what variable is passing the summary report? I've searched high and low and I can't find anything at all about this in any sco documentation or backupedge info. I'm hoping someone has done this before and knows what the trick is.
0
Comment
Question by:sdholden28
2 Comments
 
LVL 14

Accepted Solution

by:
mikelfritz earned 2000 total points
ID: 40275265
I'd think edge is piping the summary data to the mail since it starts with a pipe.

I think edge puts the summary data into a log file in /usr/ somewhere. You could craft the mail and pipe the log file for the body, or configure backupedge to send to multiple recipients.
 
Or you could use the built in tools to do this; Page 187 here:
http://www.microlite.com/documentation/UserGuide.pdf
0
 

Author Closing Comment

by:sdholden28
ID: 40276744
ugh... I missed the pipe! Not sure how I missed it, but thanks for pointing it out. Worked straight away. Thanks!!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to update Firmware and Bios in Dell Equalogic PS6000 Arrays and Hard Disks firmware update.
Create your own, high-performance VM backup appliance by installing NAKIVO Backup & Replication directly onto a Synology NAS!
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
Suggested Courses
Course of the Month18 days, 16 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question