Creating Automation Policies
An automation policy includes the following:
A script or script package.
A schedule for when the script will run, either by using an execution schedule or by creating a custom schedule.
Automatic inclusion rules that determine which type of devices on which the script runs.
Optionally, manually applied sites, groups, and devices.
Optionally, devices that are excluded from the policy.
The Calendar displays:
Automated tasks created using an automation policy are displayed.
Any scheduled tasks you have created by going toย Automationย >ย Calendar, selecting a time block, and clickingย Schedule.
After creating an automation policy, you can add it to a service for use in a service plan. For more information, seeย Creating Services.
To create an automation policy
In Service Center, clickย Service Deliveryย >ย Policiesย >ย Automation.
Clickย New.
Provide a policy name and description.
Clickย Create.
Click theย Settingsย tab.
Clickย Create.
To select the script or script package that will run
ย From theย Choose what to executeย list, select a favorite script, or select (Item from library) and then do the following:
From theย Choose an item from the libraryย list, filter the list of scripts in theย Chooseย anย itemย byย nameย list by selecting the operating system on which the script runs. Choose from Windows, Mac OS, or Unix/ Linux.
From theย Chooseย anย itemย byย nameย list, select a script or script package.
To run the automation policy using an execution schedule
When you set up an automation policy to use execution schedules, you must select whether the policy will use the daily, weekly, or monthly schedule for automated tasks, as defined in the execution schedule.
In theย Scheduleย area, select theย Runย asย perย applicableย Executionย Scheduleย option button. For more information about execution schedules, seeย Setting Up Execution Schedules.
Select one of the following option buttons:
Daily
Weekly
Monthly
Toย setย upย anย automationย policyย scheduleย thatย overridesย applicable executionย schedules
In theย Scheduleย area, select theย Override Execution Schedulesย option button.
In theย Start Timeย box, type a start time for when the automated task will begin. Alternatively, you can click the clock icon to select a time from the list.
Specify how often to run the task by selecting one of the following:
To run a task daily, select theย Dailyย option button, and then specify how often the task will run each day by selecting a frequency from theย Run dailyย list. By default, daily tasks run once a day.
To run a task weekly, select theย Weeklyย option button. Then specify what day or days to run the task.
To run a task monthly, select theย Monthlyย option button. Then select either a specific date or a recurring day in the month.
To set timeout limits for the automation policy
Clickย Show Advancedย Configuration.
In theย Timeoutsย area, set the following timeouts:
To set a timeout for the execution of the task, from theย Executionย list, select the length of time the task can execute before the timeout occurs.
To set a timeout for when the device is unreachable, from theย Device Unreachableย list, select the length of time the task can be unreachable before the timeout occurs.
To wake computers to run a task
You have the option to wake a computer if it is asleep so that the task can be run at the scheduled time.
Clickย Show Advancedย Configuration.
In theย Miscellaneousย area, click theย Wake computers if asleepย check box.
Toย addย anย alertย ifย theย scriptย failsย toย beย executedย orย returnsย outputย thatย is not considered a successfulย execution
Clickย Show Advancedย Configuration.
In theย Alerts - Execution Resultsย section, clickย Add.
Type a title for the alert.
Optionally, type a description for the alert.
In theย Alert Ruleย area, clickย Add.
The options for adding an alert rule differ depending on whether you are scheduling a script or an automation package to run.If you are scheduling a script to run as a task, select the parameters that will generate an alert:
Return Codeย Indicates the execution outcome of the script. The return codes can vary because they can be defined inside the script itself.
Standard Outputย Indicates the output produced, if any, by a task to the StOut. Standard output is used to express anything the script needs to communicate, such as error messages, success messages, or lists of data.
Standard Errorย Indicates the error produced by the script.
Theย Return Code,ย Standard Output, andย Standard Errorย are values that are scripted or programmed into the script or executable that is being run.Clickย Save.
To add an alert for delivery failure
Clickย Show Advancedย Configuration.
In theย Alerts - Delivery Failureย area, clickย Add.
Do the following:
To add an alert category when a script fails to be delivered, clickย Categorize Alertย and add a category from the list.
To remove an alert category for when a script fails to be delivered, clickย Categorize Alertย and remove a category from the list.
To create a trouble ticket when a script fails to be delivered, select theย Create Trouble Ticketย check box.
To set the alert to self-heal when a script fails to be delivered, select theย Self-Healย check box. To specify the setting for self-heal, click theย Self-Healย link. To clear the associated Trouble Ticket, ensure theย Clear Troubleย Ticketย check box is selected. To send a notification, select theย Enable Self-Heal Notificationย check box and specify the time delay. Then clickย Save.
To send an email when a script fails to be delivered, select theย Send Emailย check box and select eitherย All Usersย to send an email to all users whose role is to receive alert notifications or selectย Specify Emailsย to specify certain recipients who should be notified. In the From box, type the email address from where the alert is emailed.
To escalate an alert if an alert has not been cleared or self-healed in a set amount of time, select theย Escalate Alertย check box and select a time after which the Alert Escalation will take effect. Select theย Send Emailย check box and follow the instructions in the previous bullet.
To automate reactions to an alert, select theย Runย Scriptย check box and select theย Categoryย andย Scriptย name, and set any parameters if necessary.
Clickย Save.
Contact Us
Barracuda Campus
Barracuda Support