ā11-26-2024 03:18 PM
Hi
Is it possible to deploy a template to update all domain hostnames of all Cisco devices?
i.e. current are
hostname.domain.net
need to change to: hostname.domain.intranet
thanks!
Solved! Go to Solution.
ā11-27-2024 09:36 AM
@josephbdelossantos This is a good excuse to use the builtin system variables (see the System Variables assistant in the template editor). If you are using VTL, it might be something like:
#if ($__device.platformId.contains("N7"))
Do nexus stuff
#else
Do IOS stuff
#end
Keep in mind that Cat Center supports a limited number of Nexus platforms though.
ā12-05-2024 11:43 AM
That's a good point. I didn't think that far ahead. Why not just set the domain in Design->Network Settings. Then you don't need a template at all. Cat Center will know the necessary command for IOS vs NXOS.
ā11-26-2024 03:43 PM
ā11-27-2024 08:50 AM
yeah, I guess its just template hub with ip domain command.. works now! is there a way to expand the template to deploy
"ip domain name WORD" command to IOS devices and "IP DOMAIN-NAME word" for nexus switches on the same template?
i.e. if DNA sees what platform it is it deploys the correct ip domain name syntax?
thanks!
ā11-27-2024 08:59 AM
I believe so but it is necessary to check the NX-OS version.
ā11-27-2024 09:36 AM
@josephbdelossantos This is a good excuse to use the builtin system variables (see the System Variables assistant in the template editor). If you are using VTL, it might be something like:
#if ($__device.platformId.contains("N7"))
Do nexus stuff
#else
Do IOS stuff
#end
Keep in mind that Cat Center supports a limited number of Nexus platforms though.
ā12-05-2024 08:06 AM - edited ā12-05-2024 08:19 AM
you are required to choose a software type and I don't see you can choose both IOS and NX-OS , how will this builtin system variables work? currently this is what I made using system variables assistant
#if ($__device.series.contains("Data Center Switches"))
ip domain-name XXXXXX
#else
ip domain name YYYYY
#end
ā12-05-2024 11:43 AM
That's a good point. I didn't think that far ahead. Why not just set the domain in Design->Network Settings. Then you don't need a template at all. Cat Center will know the necessary command for IOS vs NXOS.
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