Workflow to Run an Exec Script

Complete the following tasks to provision exec scripts:

  1. Download the script—Add the script to the appropriate exec script directory on the router using the script add exec command.

  2. Configure checksum—Check script integrity and authenticity using the script exec <script.py> checksum command.

  3. Run the script—Trigger changes to the router configuration. Include arguments, set the maximum time for the script to run, setup log levels using the script run command.

  4. View the script execution details—Validate the script and retrieve the operational data using the show script execution command.

The following image shows a workflow diagram representing the steps involved in using an exec script:

For more information about performing the workflow, managing Exec scripts and viewing examples, see the Automation Scripts chapter based on the platform: