User Tools

Site Tools


scripting:python_scripts:checkpoint.py

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
scripting:python_scripts:checkpoint.py [2019/01/11 15:44] jotasandokuscripting: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,message):   def mail_alert_push(ipaddr,message):
-          SERVER = "ash1mail.marketaxess.com"+          SERVER = "ash1mail.mycompany4.com"
           FROM = "CheckPointPushAlerts@crpashnetdev01.com"           FROM = "CheckPointPushAlerts@crpashnetdev01.com"
-          TO = 'network@marketaxess.com'+          TO = 'network@mycompany4.com'
           SUBJECT = "CHECKPOINT PUSH FAILED FOR PUSH " + ipaddr ,  message           SUBJECT = "CHECKPOINT PUSH FAILED FOR PUSH " + ipaddr ,  message
           TEXT = "ALERT! The push policy script was not able to run!!!!!!" + message           TEXT = "ALERT! The push policy script was not able to run!!!!!!" + message
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,output):   def mail_alert_final(ipaddr,output):
-          SERVER = "ash1mail.marketaxess.com"+          SERVER = "ash1mail.mycompany4.com"
           FROM = "CheckPointPushAlerts@crpashnetdev01.com"           FROM = "CheckPointPushAlerts@crpashnetdev01.com"
-          TO = 'network@marketaxess.com'+          TO = 'network@mycompany4.com'
           SUBJECT = "CHECKPOINT POLICY HAS BEEN PUSHED" #real good dun duh dun dun duh dun dun nun na nun nun nah           SUBJECT = "CHECKPOINT POLICY HAS BEEN PUSHED" #real good dun duh dun dun duh dun dun nun na nun nun nah
           TEXT = "Checkpoint Policy has been pushed via the push policy script"           TEXT = "Checkpoint Policy has been pushed via the push policy script"
scripting/python_scripts/checkpoint.py.1547221453.txt.gz · Last modified: (external edit)