Submit a ticketCall us

Have You Auto Renewed? If not, you're missing out.
The SolarWinds Renewal Program comes with a host of benefits including the most recent product updates, 24/7 technical support, virtual instructor-led training and more. Experience all of this with the convenience of Auto Renewal, and never worry about missing any of these great benefits. Learn More.

Home > Success Center > Network Configuration Manager (NCM) > Network Configuration Manager Getting Started Guide > Manage network change > Edit a config using a script

Edit a config using a script

Created by Chris.Moyer, last modified by Anthony.Rinaldi_ret on Oct 04, 2016

Views: 184 Votes: 0 Revisions: 6

Edit config change scripts to update access lists, modify community strings, or make other configuration changes. Before you write a script, be sure you know the basics of commands, variables, and logical structures. This guide does not address how to write CLI commands.

Scripts are often used to make bulk changes to multiple devices. SolarWinds recommends running a script on one device to test your changes and, if you verify your changes and they are successful, then apply the script to multiple devices.

This topic provides steps on how to add, edit, and verify a config change script for one or more devices.

Add a config change script

To edit a config using a script, you must first add a config change script.

The following example shows how to add a SolarWinds banner config change script.

  1. Click My Dashboard > Configs > Configuration Management.
  2. Click the Script Management tab.
  3. Click Add New Script.

    File:Success_Center/Reusable_content_-_InfoDev/NCM/Getting_Started_Guide/Getting-Started-MindTouch/040/030/ncm_gs_click_add_new_script.png

  4. Enter the script information and click Save.

    File:Success_Center/Reusable_content_-_InfoDev/NCM/Getting_Started_Guide/Getting-Started-MindTouch/040/030/ncm_gs_enter_script_info.png

The script is displayed in the Script Management tab.

File:Success_Center/Reusable_content_-_InfoDev/NCM/Getting_Started_Guide/Getting-Started-MindTouch/040/030/ncm_gs_new_script_displayed.png

Edit a config using a script

The following example shows how to execute the SolarWinds banner script against a node managed in SolarWinds NCM.

  1. Click My Dashboards > Configs > Configuration Management.
  2. Select the configuration item to edit and click Execute Script.

    File:Success_Center/Reusable_content_-_InfoDev/NCM/Getting_Started_Guide/Getting-Started-MindTouch/040/030/ncm_gs_select_node_to_execute.png

  3. Select a script and click Execute.

    File:Success_Center/Reusable_content_-_InfoDev/NCM/Getting_Started_Guide/Getting-Started-MindTouch/040/030/ncm_gs_choose_script_execute.png

  4. To view the change you just made, log in to the device. This is an example of the script banner change for the Tex-3750.aus.lab router.

    File:Success_Center/Reusable_content_-_InfoDev/NCM/Getting_Started_Guide/Getting-Started-MindTouch/040/030/ncm_gs_banner_login_screen.png

Verify config changes

After you change a login banner, you can log in to the device to verify the change. For more complex changes, you can verify the change by viewing a report that compares the configs before and after the change. Because the config change report compares configs line by line, you can also use the report to troubleshoot issues.

The following example shows that the Tex-3750.aus.lab router config was updated on August 4, and the report highlights the differences between the config before and after the change.

  1. Click My Dashboard > Config > Config Summary.
  2. Navigate to the Last 5 Config Changes resource and note the date and time of the config change.

    You can click Edit to change the number of configs listed in the resource.

    File:Success_Center/Reusable_content_-_InfoDev/NCM/Getting_Started_Guide/Getting-Started-MindTouch/040/030/ncm_gs_last_five_config_change.png

  3. To view changes, click the View Change Report link.

    File:Success_Center/Reusable_content_-_InfoDev/NCM/Getting_Started_Guide/Getting-Started-MindTouch/040/030/ncm_gs_change_report_view.png

Edit multiple configs

To make changes to multiple devices, select multiple configs before you click Execute Script.

File:Success_Center/Reusable_content_-_InfoDev/NCM/Getting_Started_Guide/Getting-Started-MindTouch/040/030/ncm-gs-edit-configs-multiple-nodes.png

 

Last modified

Tags

Classifications

Public