Documentation forHybrid Cloud Observability Advancedand Network Configuration Manager

Create an executable command script in NCM

Several tasks can be automated with command scripts. For example:

  • Downloading configuration files
  • Uploading configuration files
  • Uploading IOS images
  • Updating logon banners
  • Updating access control lists (ACLs)

With the correct use of variables, a single script can be executed on several different devices, without concern for syntax differences.

Scripts are delivered one line at a time to the target devices.

Create a command script

  1. Click My Dashboards > Network Configuration > Configuration Management.
  2. Click the Script Management tab.
  3. Click Add New Script.
  4. Add the script information.
  5. Click Save.
  6. To execute the script, on the Config Management tab select one or more nodes and follow the steps to Execute a script on a node.

Use variables in scripts

You can use the following types of variables (also called macros) in command scripts:

With Command variables, you can execute the same script on different types of devices. Command variables substitute the right commands based on the device type. For example, the variable ${EnterConfigMode} is parsed as config terminal when the script runs on Cisco IOS devices, but it is parsed as configure when the script run on an HP Procurve Switch.

See an example variable script.