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

Cisco DNA template editor hide passwords

iran
Level 1
Level 1

I am using Cisco DNA template editor to create some scripts.

One is to create a template to configure SNMP:
snmp-server user {{ ro_user }} {{ group }} v3 auth sha {{ auth_cred }} priv aes 128 {{ encry_cred }}

I do not intend to use the input form to fill the {{ auth_cred }} and {{ encry_cred }} or to configure these passwords in clear text inside the template.

1- Is there any option to do it without the need to use form input or to insert the passwords manually in clear text inside the template?
2- Is it possible to get this information from the device credentials that we have in network settings?

iran_0-1687354575520.png

 









3 Replies 3

pieterh
VIP
VIP

you do not need to create a template for this
DNA will already add the SNMP credentials configured here when adding a device to DNA
and selected in device properties SNMP -> snmpv3 -> global credential -> drop-downlist (select "test")

Hi, 
Thank you for the quick reply.

Yes, I noticed it. But I have an issue here.
Cisco DNA is configuring group-name as default, and I need to have a different group-name.
Is there any option to change the default group via DNAC?

I am aware that I can do it via CLI, but I need to avoid configuring the password in clear-text.

iran_0-1687525354308.png

Thank you in advance.





. You can specify either a plain text password or a localized MD5 digest.

If you have the localized MD5 or SHA digest, you can specify that string instead of the plain text password. The digest should be formatted as aa:bb:cc:dd where aa, bb, and cc are hexadecimal values. Also, the digest should be exactly 16 octets in length.

you can use a public hash generator like MD5 Hash Generator 
or use a local unix/linux system using md5sum 
Linux Generate A MD5 String or Hash with md5sum Command - nixCraft (cyberciti.biz)

Review Cisco Networking for a $25 gift card