Important This version of the product has reached end of support. The documentation is available for your convenience. However, you must be logged in to access it. You will not be able to leave comments.

Managing configuration change using templates


The following example procedures, which are specific to an environment consisting of Cisco IOS routers contain steps that can be performed to manage configuration change using templates in a quick start stand-alone TrueSight Network Automation configuration:

Creating a change template

The following example procedure demonstrates how to create a change template. You can also create a template by using an existing configuration for a device as a template, as described in Adding-a-template.

  1. Open the Templates page by navigating to Network > Scripts > Templates in the UI.
  2. Open the Add Template page by clicking Add in the menu.
  3. In the Name field, enter Standard Cisco IOS Banner.
  4. Click the Contents tab.
  5. Click Add to add template contents.
  6. In the Device Type field, enter Cisco and Cisco IOS Switch/Router.
  7. In the Contents field enter the following:

    banner motd “No Trespassing. All use of this network device must be authorized by the owning organization. This device is being monitored.”

    End
  8. Click Enter.

    Note

    You can create multiple entries in the Contents field, each assigned a unique device type and OS version. This enables you to define one template that supports a multi-vendor change. When you use the template in a Deploy to Active job, the system selects the Content entry appropriate to the target device’s device type and OS version.

  9. Click Save.

Back to top

Deploying a change using a template

Te following example procedure demonstrates how to deploy a configuration change using a template.

  1. Open the Add Job page.
  2. Open the Deploy to Action pop-up.
    1. In the Annotation field, enter Banner Change.
    2. In the Network Span field, select Device.  
    3. Click Ellipsis.png and select your device from the listing in the pop-up.
    4. In the Configuration field, select Template.
    5.  Click Ellipsis.png and select Standard Cisco IOS Banner from the pop-up.
    6. Click OK.
    7. In the Actions tab in the Add Job page, note that by clicking on Icon_Reportdetails.png Report, you can view a Configuration Comparison Report comparing the current configuration with the template.
  3. In the Details tab in the Add Job page, enter the following:
    1. In the Run At field, select the Now or When Approved option.
    2. Click Save and Submit.

Back to top

Verifying the change took place

The following example procedure demonstrates how to verify that the change took place.

  1. After the Deploy to Active action is completed, the status of the action in the Jobs page (Network > Actions > Jobs) should be Completed.

    Note

    Completed jobs remain in the listing on the Jobs page for 7 to 120 days, depending on how you have set the Purge Completed Jobs After system parameter.

  2. Open the Job Details report by clicking Icon_Reportdetails.png Details in the Actions column for the recently executed job.

     

    Note

    The Job Details report displays the workflow summary along with a link to the Job Summary Report, link to the Transcript Details, and a link to the Deploy to Active script (as applicable) for each device involved in the action.

  3. Open the Job Summary Report by clicking on the Job Summary link and note that the workflow parameters and schedule are displayed along with the actual changes made to the devices involved.

    Note

    You can also view these changes in the Dashboard by clicking Icon_Discrepancy.png Discrepancy in the Running vs Trusted Running column for the device.

Scalability Note

If the change took place on a group of devices, the Job Summary Report includes the comparison for each device of the before and after configuration. Templates allow you to organize common change requests for devices with different device types and OS versions. For example, a template called Banners could contain three (3) content entries for assigning the banner for three (3) different vendors: one for Cisco IOS; one for Cisco PixOS; and lastly one for NetScreen. On the Deploy to Active span action, you select the Banners template and the network span. TrueSight Network Automation will use the content entry that matches the device’s type and OS version and will skip entries for other devices.

Back to top

Accepting the configuration change

The following example procedure demonstrates how to accept the configuration change.

  1. Open the Dashboard by clicking the Home tab.
  2. Click the Cisco Router device name.
    A pop-up containing information about the device and links to various actions and reports is displayed. 
  3. In the pop-up, click Commit in the Actions section.
  4. In the Commit window, make the following changes:
    1. In the Annotation field, enter Standard banner change accepted.
    2. Select the Mark As Trusted option.
    3. Click OK.

      Scalability Note

      If you select the Group or Combo Group view of the Dashboard, and click the name of the group, you can act on all devices in the group with a single operation. Selecting Commit with the Mark As Trusted option selected, for instance, will accept the new configuration as trusted for every device in the group.

  5. In the Run At field of the Add Job window, select the Now or When Approved option.
  6. Click Save and Submit.

Note

  • Since the new banner change has been made Trusted and committed to the Startup configuration, there is no longer a discrepancy in the dashboard for the Cisco Router.
  • When you initially deployed the change using the template, you could have selected options to Commit and Mark as Trusted

Back to top

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*