- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mail from SAM Backup
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
04-07-2004 11:58 PM
04-07-2004 11:58 PM
I have a 10.20 machine that runs a SAM created backup everynight. It used to just email root with the results upon completion but now we want it to email to an internet address.
I have altered the file:
/var/spool/cron/crontabs/root so that instead of it going to root only it goes to:
helpdesk@mycomp.com,root
However, the internet address never receives the mail but the usual local root mailbox does. If I do a manual:
mailx -s "subject line" helpdesk@mycomp.com,root < /somefile
both recipients get the mail OK, so I know sendmail is working OK
Does anyone have clue why it is behaving oddly, or a workaround perhaps
Thanks a lot
Guy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2004 12:03 AM
04-08-2004 12:03 AM
Re: Mail from SAM Backup
change
mailx -s "subject line" helpdesk@mycomp.com,root < /somefile
to
/somefile 2>&1 | mailx -s "subject line" helpdesk@mycomp.com,root
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2004 12:15 AM
04-08-2004 12:15 AM
Re: Mail from SAM Backup
should work. Does the email for helpdesk sits in mailq? What do you get in mail.log?
You can try as follows.
echo "some_file"|mailx -s "" helpdesk@mycomp.com, root
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2004 01:26 AM
04-08-2004 01:26 AM
Re: Mail from SAM Backup
The mailx command I mention above works for me, I only used it to check that sendmail was working. What is NOT working is the sam backup email notification. the backup is triggered from cron as below:
00 1 * * * /usr/sam/lbin/br_backup MAG FULL Y /dev/rmt/1m /etc/sam/br/graphXBAa12086 helpdesk@comp.com,root Y 1 N > /var/tmp/SAM_br_msgs 2>&1 #sambackup
the fbackup jobs runs and emails the results to root but does not email them to the internet address helpdesk@comp.com
When you suggest altering my mailx line do you mean the script within br_backup? I am reticent to go 'mucking' about with this HP script (unless of course there is no other course of action)
Thanks again
Guy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2004 01:36 AM
04-08-2004 01:36 AM
Re: Mail from SAM Backup
00 22 * * * /sam/backupcommand > /usr/bin/mailx -s "Backup report" helpdesk@mail.com 2>&1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2004 01:43 AM
04-08-2004 01:43 AM
Re: Mail from SAM Backup
E.g.
00 22 * * * /sam/backupcommand | /usr/bin/mailx -s "Backup report" helpdesk@mail.com 2>&1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 08:05 PM
04-29-2004 08:05 PM
Re: Mail from SAM Backup
Have not managed to implement your suggestions as the problem seems to have disappeared on its own!!! Issue must have been elsewhere.
Cheers
Guy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 09:11 PM
04-29-2004 09:11 PM
Re: Mail from SAM Backup
The br_backup script states that the argument $6 is for the user that should be sent email, rather than a list of users. You could modify the script, as you are aware it would no longer be supported by HP - and it's possible that patching could overwrite your changes.
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 09:19 PM
04-29-2004 09:19 PM
Re: Mail from SAM Backup
How about I use an alias instead? Think that should work
Cheers
Guy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 09:32 PM
04-29-2004 09:32 PM
Re: Mail from SAM Backup
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 09:35 PM
04-29-2004 09:35 PM
SolutionJust looking your mail it seems everything is perfect except the cron file you have modified. I think you have manually modified the cron. Either Do crontab -e or restart the cron. If you do manually modification then cron will take previous one.
Rgds
Tapas