Video Screencast Help

NetBackup 5320 - Cron and Email???

Created: 26 Sep 2013 • Updated: 20 Dec 2013 | 5 comments
Jeff Foglietta's picture
This issue has been solved. See solution.

A customer of mine has requested a report generated from the appliances which will provide specific pointed information regarding NetBackup images. The problem I am experiencing is when I add the entry to cron to run this command and pipe it to send email, nothing is ever sent. I know cron uses sendmail and I see sendmail is not running on the appliances. However "CallHome" is working fine and after a little research I believe this is using PostFix to send its email..

What do I need to change in my cron job in order to send the output via email?

and

Would there be any repercussions from support if I set up sendmail?

Thanks in advance

Operating Systems:

Comments 5 CommentsJump to latest comment

Mark_Solutions's picture

Usually Symantec will not support customers installing any software on appliances - but you could raise a call to see if it will be allowed.

Not much out there about using the PostFix on it but this thread may give some clues, if nothing else to the script files used which may give the format required

http://www.symantec.com/business/support/index?page=content&pmv=print&impressions=&viewlocale=&id=TECH188948

Hope this helps

Authorised Symantec Consultant

Don't forget to "Mark as Solution" if someones advice has solved your issue - and please bring back the Thumbs Up!!.

Jeff Foglietta's picture

Not installing anything on the appliance Mark. Sendmail is already there, just not configured. And all I am doing in cron is simply executing a bpimagelist command and piping it to various editing commands and attempting to email the output.

Jeff Foglietta

Practice Lead - Data Protection and High Availability

Mark_Solutions's picture

That is fine - did you take a look at the tech note - it may point you to other things that use the commands you need - plenty of cfg files on the appliance (probably in the telementry area) that should have the commands shown

Authorised Symantec Consultant

Don't forget to "Mark as Solution" if someones advice has solved your issue - and please bring back the Thumbs Up!!.

Jim-90's picture

The problem may not be mail but rather incomplete paths and environment vars.  Cron does not set much in the way of enviroment vars or search paths. 

In general do not rely upon cron for anything apart from scheduling the job. Best to use absolute path names for everything and explicitly set all the required environment vars in the script.  The usual symptom for this is the script will run perfectly from the command line but doesn't when cronned.   Suggest sending all the output of the cron job to /dev/null. If the script produces STDERR or STDOUT stuff when the cron job runs that will be locally mailed to the user account that the cron job ran under.  Those mails just accumulate and may full up a filesystem.

Mark_Solutions's picture

A couple more tech notes which may help you track down how it works and where everything is...

http://www.symantec.com/docs/TECH174575

http://www.symantec.com/docs/TECH188948

Authorised Symantec Consultant

Don't forget to "Mark as Solution" if someones advice has solved your issue - and please bring back the Thumbs Up!!.

SOLUTION