11 Posts

1172

November 10th, 2020 09:00

MAILTO for Crontab at Isilon OneFS

Hi,

I need help on this one.

I would like to use the CRON  to send email to me daily about the quota status but it doesn't work.

I updated the Cron at /etc/mcp/override/crontab.smbtime.

#

#

MAILTO:my@email.com

0  8  * * * root /usr/bin/isi quota list --type=directory --exceeded 

#

#

I even tried to output the quota to a log file then but it still does not working.

#

#

MAILTO:my@email.com

0  8  * * * root /usr/bin/isi quota list --type=directory --exceeded> /ifs/data/script/quota.log

Note: without the MAILTO, the quota cli works fine.

 

Thanks,

 

Best regards

 

 

3 Apprentice

 • 

625 Posts

November 12th, 2020 11:00

@Cherlu 

 

1. sendmail binary has been deprecated in OneFS 8+, only sendmail libraries still exist.

try sendml.py:

https://www.dell.com/community/Isilon/Sendmail-from-an-Isilon-cluster/td-p/6994008 

It's similar to mailx linux syntax. SMTP has to be set on Isilon cluster. Check local node "/var/log/messages" for any messages.

 

# python sendml.py

Usage: sendml.py: [-f sender] -t recipient [ -t recipient ... ] [-s subject] [-b body] [-a attachment]

 

# python sendml.py  -t name@company.com -s "test0" -b "test1"

# tail /var/log/messages

...

2017-06-14T22:28:37-07:00 <1.4> isilon-1 python: Successfully sent to ['name@company.com'] through 'mailhost'

 

2. use isi_ropc in chron

.

Moderator

 • 

7.8K Posts

November 11th, 2020 11:00

Hello Cherlu,

Here is a link to a KB that maybe of assistance. https://dell.to/2IkWPTY

11 Posts

November 11th, 2020 14:00

My cron job issue is that the MAILTO=" " doesn't work.

I added my email as MAILTO="my@email.com" but cron doesn't send out the cron job to my email address.

 

Thanks,

 

No Events found!

Top