Using the cwcli netconfig to make changes to devices from the command line without the need of webui has many advantages such as simplicity, practicality and speed of deployment for mass pushing of config.
This document will explain how to deploy changes to a single device by creating a subinterface with name description and community strings using the command files, device list and cwcli utilities. The example below applies to both LMS 3.2 and LMS 4.0.
Device must be managed by LMS.
Device must have correct credentials with correct privileges to make changes.
User must have correct privileges to make changes from LMS.
1. Create the content of the files using the following examples for creating community strings and sub-interface with a name description. Note that command1, command2, command3, and command4 are command list examples and not actual syntaxes. You will need to create two files, one for the commands only and the second for the device using the display name as it appears in LMS.
GigabitEthernet0_1.cmd command file:
Command List File
snmp-server community private rw
snmp-server community public ro
Note: Commands are not validated so you must define the complete cli syntax.
GigabitEthernet0_1.dev device file:
Device List File
2. Go to NMSROOT/bin
Running cwcli netconfig
The cwcli config command is located in the following directories, where install_dir is the directory in which LMS is installed:
This example uses NMSROOT/bin/cwcli commands. NMSROOT is the installation directory of CiscoWorks Lan Management Solution.
On UNIX systems, /opt/CSCOpx/bin
On Windows systems, install_dir\CSCOpx\bin where the default install directory is C:\Program Files.
3. Use the following syntax as an example for creating “netconfig” jobs from the cli.
I have imported our Sites and and WIFI Maps from Prime which appears to have worked to get the images and locations in to DNAC. However the Site data perfectly transferred the GPS data across but the map data appears to have had incorrect GPS c...
Hello, gentlemenkindly I need your assist fo my case, which is:I have 3 sites controlled by DNA Center and no IPAM for integration, so I have DHCP,I got a task to create new VOIP pools to the sites using DNA Center, I did it but when I tried to assigne th...
Hello. I will use dummy-IP's to explain my situation. I am failing a ping test with a server I am attempting to add to my network. The management interface of the server is set as a private IP (192.168.0.1) as part of a dummy VLAN (VLAN 5)...
I am seeing a lot of ARP-4-OWN_SRCMAC errors being thrown by a few pairs of Nexus 9K switches that we have deployed. Here are an example of the errors from one pair: Sep 23 14:30:53 uschidc-csw-02.trustwave.com : 2020 Sep 23 19:30:53.206 UTC: %ARP-4-...