Submit a ticketCall us

Systems Monitoring for Dummies
Our new eBook will teach you the fundamentals and help you create monitors and alerts that are effective, meaningful, and actionable. Monitoring is more than a checkbox on your to-do list. This free eBook will give you practical advice to help you succeed in all aspects of monitoring – discovery, alerting, remediation, and troubleshooting. Don’t miss out on this indispensable resource for newbies, experienced IT pros, and everyone in between. Register Now.

Home > Success Center > Network Configuration Manager (NCM) > NCM 7.7 Administrator Guide > Command scripts

Command scripts

Created by Caroline Juszczak, last modified by Anthony.Rinaldi_ret on Oct 03, 2016

Views: 300 Votes: 0 Revisions: 4

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 appropriate 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 an executable command script

  1. Click My Dashboards > Configs > 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.

If you experience problems with the script execution, see the Troubleshoot script execution section below.

Use variables in scripts

Variables are a powerful feature of the SolarWinds NCM scripting engine. Variables always begin with a dollar sign and curly brace (${) and end with a curly brace (}).

Script variables substitute the appropriate commands based on the device type. For example, the variable ${EnterConfigMode} parses as config terminal when communicating with Cisco IOS devices, but parses as configure when communicating with an HP Procurve Switch.

Troubleshoot script execution

If a script fails to execute on aSolarWinds NCM node, review the log for a possible cause. The log is located at C:\ProgramData\SolarWinds\NCM\Logging\NCMBusinessLayerPlugin.log.

Alternatively, execute the script by Creating a job.

 

Last modified

Tags

Classifications

Public