cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1665
Views
0
Helpful
3
Replies

Script to output applied settings on NX-OS & IOS

dgoodson1
Level 1
Level 1

Hi,

We've recently implemented a lot of new infrastructure across two data centres and our HQ campus site.

Post implementation we are required to produce some standards documentation showing what settings have been applied across the devices.  Obviously a "sh run" will produce a copy of the config, but I just wondered whether there are any scripts (potentially 3rd party) which I can run which will output settings/variables applied in friendlier format.

We've used similar Powershell in the past to get settings out of our Nutanix, Citrix and Netscaler platforms it'd be nice if there's something for Cisco as well.

Thanks in advance,

Dan

3 Replies 3

sakatumi83
Level 1
Level 1

This would be great. I'm looking for something very similar as well. Would love to hear what others have done.

sivathot
Cisco Employee
Cisco Employee

Hi,

You can execute commands through Template Editor (Tool). Kindly find the below steps.

Create Templates

Procedure


Step 1

Select Tools > Template Editor.

Step 2

Select the project in the left menu under which you are creating templates, and click the gear icon  > Add Templates or click  > Add Templates located at the top of the tree pane.

Step 3

In the Add New Template window, enter the following details:

  • Name—Unique name for the template within a project.
  • Project Name—Unique name for the project. The text box is enabled if you are navigating from the  > Add Templates path. The text box is disabled if you select a project, and click the gear icon  > Add Templates in the tree pane.
  • Description—Template description.
  • Tags—Metadata tags which are used to search projects in the project tree.
  • Device Type—The drop-down list contains the product family, series, or type. You can select the type of devices to which you want to apply the template.
  • Software Type—The drop-down list contains the software types. You can select the specific software type such as IOS-XE, ISO-XR, or NX-OS if there are commands specific to these software types. If you select the software type as IOS, then the commands are applicable to all software types including IOS-XE, IOS-XR, and NX-OS. This is used at the provisioning time to check whether the selected device is conforming to the selection in the template.
  • Software Version—Minimum software version to which the template is applicable. During provisioning, the DNA Center checks to see if the selected device has the similar software version as mentioned in the template. If there is a mismatch, then the provision skips the template.
  • Click Add. The template is now created and is listed in the left menu.
Step 4

You can edit the template content by selecting the template you created in the left menu.

Step 5

The template editor window opens where you can enter content for the template.

Step 6

You can validate the template by selecting Check for errors from the Actionsdrop-down list.

DNA Center checks for these errors and reports them:
  • Velocity syntax error

  • Conflicts with blacklisted commands.

Step 7

To save the template content, select Save from the Actions drop-down list. You can use the Velocity Template Language (VTL) to write the content in the template. For more information about using VTL, see http://velocity.apache.org/engine/devel/vtl-reference.html.

After saving the template, the DNAC checks for any errors in the template. If there are any syntax errors, then the template content is not saved and all the input variables defined in the template is automatically identified during the save process. The local variables (variables used in for loops, assigned though a set, and so on) are also ignored.

Step 8

Click the Form Editor icon, which is located at the top-right corner of the page to enter additional information to the variables in the template.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: