This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| scripting:python_scripts:checkpoint.py [2016/09/04 17:09] – jotasandoku | scripting:python_scripts:checkpoint.py [2023/11/02 14:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| #or this, this is the mail alert in case we have any problems pushing policy | #or this, this is the mail alert in case we have any problems pushing policy | ||
| def mail_alert_push(ipaddr, | def mail_alert_push(ipaddr, | ||
| - | SERVER = " | + | SERVER = " |
| FROM = " | FROM = " | ||
| - | TO = ' | + | TO = ' |
| SUBJECT = " | SUBJECT = " | ||
| TEXT = " | TEXT = " | ||
| Line 33: | Line 33: | ||
| #if we are lucky this is the only alert we will hit | #if we are lucky this is the only alert we will hit | ||
| def mail_alert_final(ipaddr, | def mail_alert_final(ipaddr, | ||
| - | SERVER = " | + | SERVER = " |
| FROM = " | FROM = " | ||
| - | TO = ' | + | TO = ' |
| SUBJECT = " | SUBJECT = " | ||
| TEXT = " | TEXT = " | ||
| Line 42: | Line 42: | ||
| server.sendmail(FROM, | server.sendmail(FROM, | ||
| server.quit() | server.quit() | ||
| - | + | | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | | + | |
| try: | try: | ||
| conn = pexpect.spawn(' | conn = pexpect.spawn(' | ||