Network Management
How to use NCM to make config changes on multiple nodes
This article details how to execute scripts or push config changes to a device(s) via NCM
First published date
Last published date
Overview
Product section
Resolution
- Log in to the Orion Web Console.
- Click My Dashboards > Network Configuration > Configuration Management.
- Select the nodes and then click Execute Script.
- To execute a previously saved script, click Load Script from File and select the file. Otherwise, type the commands.
- Click Execute.
Tips
Typically, users enter the commands to enter config mode in the script instead of selecting Execute Script in Config Mode. To use this option, make sure the device template include commands to enter config mode.
If this is a command to be issued frequently, save the script.
These command in the Execute Command Script will mimic making a change via PuTTY. For example, if set up correctly, NCM login will get you as far as the Enable prompt after a login. At this point, if you are making a change, you will probably need to enter into a configuration mode.
Below is an example of removing a username from a Cisco IOS device and then an explanation of what NCM is actually doing.
conf t no username bill end
At the end of each line NCM is going to send a ${CRLF} to enter, so it looks like this:
conf t[ENTER] no username bill[ENTER] end[ENTER]
If there are blank lines between commands, NCM will send ${CRLF}, which might not be what you want. The following example shows the same command as above, but with a blank line:
conf t no username bill end
NCM sends the following:
conf t[ENTER] no username bill[ENTER] [ENTER] end[ENTER]
In this example, the blank line is not a problem, but in other cases blank lines could increase overhead or result in the device returning an error and disconnecting. As a rule of thumb, avoid extra spaces, indents, and blank lines. If you do want to send an carriage return line feed, go ahead and enter ${CRLF} instead of a blank line.