ā06-21-2023 06:39 AM
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?
ā06-23-2023 05:58 AM
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")
ā06-23-2023 06:05 AM
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.
Thank you in advance.
ā06-23-2023 06:24 AM
. 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)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide