- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2022 06:06 AM
Hi All,
I have created template in DNA, where is configuration of usernames with encrypted passwords.
However when I want to provision, every $ symbol in encrypted passwords DNA understands as variable and asks to fill value. This is one of commands:
username USER secret 9 $5k$.../$1.....$ZTX......
How to correctly write that command in template, that password will not change and the same time DNA will not ask for variables?
Thanks
Solved! Go to Solution.
- Labels:
-
Cisco DNA Automation
-
Other Cisco DNA
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2022 02:16 PM
Hello @Harutyun Hakobyan ,
When you edit your template, on the right hand side of the screen, there are 3 buttons. Click on the 'Calculator' button.
Here you will see all variables that DNAC automatically identified. And you can configure one of the identified variable as 'Not a variable' by ticking the checkbox.
Another possibility would be to define your password as a variable.
For example in your template you can type:
username USER secret $myPassword
In the 'Calculator' window, you can then define your variable, putting a default value, or requesting to fill in the field every time you provision a deivce, etc.
Hope this helps.
Regards,
Sylvain.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2022 02:16 PM
Hello @Harutyun Hakobyan ,
When you edit your template, on the right hand side of the screen, there are 3 buttons. Click on the 'Calculator' button.
Here you will see all variables that DNAC automatically identified. And you can configure one of the identified variable as 'Not a variable' by ticking the checkbox.
Another possibility would be to define your password as a variable.
For example in your template you can type:
username USER secret $myPassword
In the 'Calculator' window, you can then define your variable, putting a default value, or requesting to fill in the field every time you provision a deivce, etc.
Hope this helps.
Regards,
Sylvain.
