Share

Sequence3: Which script to use for Linux IAS VMs to Disable or enable a crontab entry or do so from SAP Lama

As Admins, If we use any server or Cluster on Linux, we might require to Disable the Cron entries so that we dont get un-necessary alerts. This script can be consumed from any Automation Tool of your choice

What this script does:–
a) Locates the provided crontab entry
b) If used the script with ENABLE command like “CronAlert_StopStart.sh ENABLE” then it unhash and enable the crontab entry
c) If used the script with DISABLE command like “CronAlert_StopStart.sh DISABLE” then it puts hash mark at the beginning of the line and enable the crontab entry
d) If already enabled, then if trying to enable again it would skip. Similarly if disabled and found the Hash mark in the beginning, it would skip as well so that it does not create any discrepancy

 

  Read More Technology Blog Posts by Members articles 

#abap

By ali

Leave a Reply