cancel
Showing results for 
Search instead for 
Did you mean: 

NetBackup 5320 - Cron and Email???

Jeff_Foglietta
Level 5
Partner Accredited Certified

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

1 ACCEPTED SOLUTION

Accepted Solutions

Mark_Solutions
Level 6
Partner Accredited Certified

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

View solution in original post

5 REPLIES 5

Mark_Solutions
Level 6
Partner Accredited Certified

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=TE...

Hope this helps

Jeff_Foglietta
Level 5
Partner Accredited Certified

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.

Mark_Solutions
Level 6
Partner Accredited Certified

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

Jim-90
Level 6

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
Level 6
Partner Accredited Certified

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